diff --git a/go.mod b/go.mod index 2006dc70da32..36d853b30c02 100644 --- a/go.mod +++ b/go.mod @@ -17,8 +17,8 @@ require ( github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/hashicorp/go-azure-helpers v0.70.1 - github.com/hashicorp/go-azure-sdk/resource-manager v0.20240906.1232634 - github.com/hashicorp/go-azure-sdk/sdk v0.20240906.1232634 + github.com/hashicorp/go-azure-sdk/resource-manager v0.20240923.1151247 + github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 github.com/hashicorp/go-hclog v1.6.3 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/go-uuid v1.0.3 diff --git a/go.sum b/go.sum index 58f227ff9677..46e92261076d 100644 --- a/go.sum +++ b/go.sum @@ -93,10 +93,10 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/go-azure-helpers v0.70.1 h1:7hlnRrZobMZxpOzdlNEsayzAayj/KRG4wpDS1jgo4GM= github.com/hashicorp/go-azure-helpers v0.70.1/go.mod h1:BmbF4JDYXK5sEmFeU5hcn8Br21uElcqLfdQxjatwQKw= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240906.1232634 h1:hsjAS5gcfhn5FdCiZ08nuAsvQJtlTEsGxJDxqBT6zoA= -github.com/hashicorp/go-azure-sdk/resource-manager v0.20240906.1232634/go.mod h1:0IyF1dmWLHTZak+t9eQeg0VZ7rA/5du4swTm99NX+6I= -github.com/hashicorp/go-azure-sdk/sdk v0.20240906.1232634 h1:FGtv7+jcrx2m35qEKjK177zRXoBmPn3WntuqtqjcHwM= -github.com/hashicorp/go-azure-sdk/sdk v0.20240906.1232634/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240923.1151247 h1:G0gRbm6sT00wzkQeCexQzdH58QO6Liwd19V0wJSoVCA= +github.com/hashicorp/go-azure-sdk/resource-manager v0.20240923.1151247/go.mod h1:JBcndQhypLhEDHUK7HNmM2e8WrEAnEua7SiJuw/z/po= +github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 h1:kzNr/Oqfn72C+k9rL5/G/T3maNo1d87u1aAgjNsKOEQ= +github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247/go.mod h1:dMKF6bXrgGmy1d3pLzkmBpG2JIHgSAV2/OMSCEgyMwE= github.com/hashicorp/go-checkpoint v0.5.0 h1:MFYpPZCnQqQTE18jFwSII6eUQrD/oxMFp3mlgcqk5mU= github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuDrwkBuEQsVcpCOgg= github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/README.md index 8e4ba0df6028..c22170f1cb26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices` Documentation -The `domainservices` SDK allows for interaction with the Azure Resource Manager Service `aad` (API Version `2021-05-01`). +The `domainservices` SDK allows for interaction with Azure Resource Manager `aad` (API Version `2021-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceValue") +id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceName") payload := domainservices.DomainService{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceValue") +id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceValue") +id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceValue") +id := domainservices.NewDomainServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainServiceName") payload := domainservices.DomainService{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/client.go index 910fc751900b..1e0bec0f2c10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/client.go @@ -15,7 +15,7 @@ type DomainServicesClient struct { } func NewDomainServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*DomainServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "domainservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "domainservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DomainServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/id_domainservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/id_domainservice.go index 7138c5eadd9e..9cc2be63bbd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/id_domainservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/id_domainservice.go @@ -42,7 +42,7 @@ func ParseDomainServiceID(input string) (*DomainServiceId, error) { } id := DomainServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDomainServiceIDInsensitively(input string) (*DomainServiceId, error) { } id := DomainServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DomainServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAAD", "Microsoft.AAD", "Microsoft.AAD"), resourceids.StaticSegment("staticDomainServices", "domainServices", "domainServices"), - resourceids.UserSpecifiedSegment("domainServiceName", "domainServiceValue"), + resourceids.UserSpecifiedSegment("domainServiceName", "domainServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/method_get.go index e538df7d451a..10a3dc9af3e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/method_get.go @@ -45,7 +45,6 @@ func (c DomainServicesClient) Get(ctx context.Context, id DomainServiceId) (resu var model DomainService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/version.go index 5bd9e4b8ecd5..367514f7822b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices/version.go @@ -1,12 +1,10 @@ package domainservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/domainservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/domainservices/2021-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md index af7dbee4db7e..3c7881ce339e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants` Documentation -The `tenants` SDK allows for interaction with the Azure Resource Manager Service `aadb2c` (API Version `2021-04-01-preview`). +The `tenants` SDK allows for interaction with Azure Resource Manager `aadb2c` (API Version `2021-04-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/client.go index 1c0201340916..7f993d0ff547 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/client.go @@ -15,7 +15,7 @@ type TenantsClient struct { } func NewTenantsClientWithBaseURI(sdkApi sdkEnv.Api) (*TenantsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tenants", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tenants", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TenantsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/id_b2cdirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/id_b2cdirectory.go index aced71b6cfc5..f8f345186193 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/id_b2cdirectory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/id_b2cdirectory.go @@ -42,7 +42,7 @@ func ParseB2CDirectoryID(input string) (*B2CDirectoryId, error) { } id := B2CDirectoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseB2CDirectoryIDInsensitively(input string) (*B2CDirectoryId, error) { } id := B2CDirectoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_checknameavailability.go index 05f93b401170..02c094218335 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c TenantsClient) CheckNameAvailability(ctx context.Context, id commonids.S var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_get.go index bfe2855be0eb..5d816acf304b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_get.go @@ -45,7 +45,6 @@ func (c TenantsClient) Get(ctx context.Context, id B2CDirectoryId) (result GetOp var model Tenant result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_update.go index 2a92fa543b1e..8960711534ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/method_update.go @@ -50,7 +50,6 @@ func (c TenantsClient) Update(ctx context.Context, id B2CDirectoryId, input Upda var model Tenant result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/version.go index b20b9e335895..0fbcaf881f84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview/tenants/version.go @@ -1,12 +1,10 @@ package tenants -import "fmt" - // Copyright (c) HashiCorp Inc. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-04-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tenants/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tenants/2021-04-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/README.md index ebd6376edd8d..7e3321f0e69f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations` Documentation -The `getrecommendations` SDK allows for interaction with the Azure Resource Manager Service `advisor` (API Version `2023-01-01`). +The `getrecommendations` SDK allows for interaction with Azure Resource Manager `advisor` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := getrecommendations.NewScopedRecommendationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationIdValue") +id := getrecommendations.NewScopedRecommendationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationId") read, err := client.RecommendationsGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/client.go index 46b267240972..47fd270e5d3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/client.go @@ -15,7 +15,7 @@ type GetRecommendationsClient struct { } func NewGetRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*GetRecommendationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "getrecommendations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "getrecommendations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GetRecommendationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/id_scopedrecommendation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/id_scopedrecommendation.go index bafee7826f46..5a00b3f7c31f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/id_scopedrecommendation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/id_scopedrecommendation.go @@ -40,7 +40,7 @@ func ParseScopedRecommendationID(input string) (*ScopedRecommendationId, error) } id := ScopedRecommendationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRecommendationIDInsensitively(input string) (*ScopedRecommendati } id := ScopedRecommendationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRecommendationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAdvisor", "Microsoft.Advisor", "Microsoft.Advisor"), resourceids.StaticSegment("staticRecommendations", "recommendations", "recommendations"), - resourceids.UserSpecifiedSegment("recommendationId", "recommendationIdValue"), + resourceids.UserSpecifiedSegment("recommendationId", "recommendationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationsget.go index 8f66f58abd0d..d10071892c48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationsget.go @@ -45,7 +45,6 @@ func (c GetRecommendationsClient) RecommendationsGet(ctx context.Context, id Sco var model ResourceRecommendationBase result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go index ef2ef9762272..4ab343130b89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/method_recommendationslist.go @@ -41,6 +41,7 @@ func (o RecommendationsListOperationOptions) ToHeaders() *client.Headers { func (o RecommendationsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/version.go index 09dac31e9c87..8d1a5b07a7fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/getrecommendations/version.go @@ -1,12 +1,10 @@ package getrecommendations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/getrecommendations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/getrecommendations/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/README.md index e2fad2494c15..33435276dd82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions` Documentation -The `suppressions` SDK allows for interaction with the Azure Resource Manager Service `advisor` (API Version `2023-01-01`). +The `suppressions` SDK allows for interaction with Azure Resource Manager `advisor` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationIdValue", "suppressionValue") +id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationId", "name") payload := suppressions.SuppressionContract{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationIdValue", "suppressionValue") +id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationId", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationIdValue", "suppressionValue") +id := suppressions.NewScopedSuppressionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "recommendationId", "name") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/client.go index 61c5460e23c9..720ea7878d6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/client.go @@ -15,7 +15,7 @@ type SuppressionsClient struct { } func NewSuppressionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SuppressionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "suppressions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "suppressions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SuppressionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/id_scopedsuppression.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/id_scopedsuppression.go index 5c91856b85f0..4a1ec4913774 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/id_scopedsuppression.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/id_scopedsuppression.go @@ -42,7 +42,7 @@ func ParseScopedSuppressionID(input string) (*ScopedSuppressionId, error) { } id := ScopedSuppressionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScopedSuppressionIDInsensitively(input string) (*ScopedSuppressionId, } id := ScopedSuppressionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -112,9 +112,9 @@ func (id ScopedSuppressionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAdvisor", "Microsoft.Advisor", "Microsoft.Advisor"), resourceids.StaticSegment("staticRecommendations", "recommendations", "recommendations"), - resourceids.UserSpecifiedSegment("recommendationId", "recommendationIdValue"), + resourceids.UserSpecifiedSegment("recommendationId", "recommendationId"), resourceids.StaticSegment("staticSuppressions", "suppressions", "suppressions"), - resourceids.UserSpecifiedSegment("suppressionName", "suppressionValue"), + resourceids.UserSpecifiedSegment("suppressionName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_create.go index 29c5ccab0a34..ce2fa1524583 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_create.go @@ -49,7 +49,6 @@ func (c SuppressionsClient) Create(ctx context.Context, id ScopedSuppressionId, var model SuppressionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_get.go index 183b07ea15a4..0b1fccc5e526 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_get.go @@ -45,7 +45,6 @@ func (c SuppressionsClient) Get(ctx context.Context, id ScopedSuppressionId) (re var model SuppressionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_list.go index 91e057e4ba86..94de20a68095 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/version.go index 9a185f5807ad..b17378ff7da5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/advisor/2023-01-01/suppressions/version.go @@ -1,12 +1,10 @@ package suppressions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/suppressions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/suppressions/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md index 7ccebe6d51e8..1778fdc70074 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules` Documentation -The `smartdetectoralertrules` SDK allows for interaction with the Azure Resource Manager Service `alertsmanagement` (API Version `2019-06-01`). +The `smartdetectoralertrules` SDK allows for interaction with Azure Resource Manager `alertsmanagement` (API Version `2019-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "smartDetectorAlertRuleValue") +id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertRuleName") payload := smartdetectoralertrules.AlertRule{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "smartDetectorAlertRuleValue") +id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertRuleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "smartDetectorAlertRuleValue") +id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertRuleName") read, err := client.Get(ctx, id, smartdetectoralertrules.DefaultGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "smartDetectorAlertRuleValue") +id := smartdetectoralertrules.NewSmartDetectorAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertRuleName") payload := smartdetectoralertrules.AlertRulePatchObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/client.go index 3f5defb5e53e..ae0bd0405a07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/client.go @@ -15,7 +15,7 @@ type SmartDetectorAlertRulesClient struct { } func NewSmartDetectorAlertRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SmartDetectorAlertRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "smartdetectoralertrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "smartdetectoralertrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SmartDetectorAlertRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/id_smartdetectoralertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/id_smartdetectoralertrule.go index d39c9df3adb2..687b9524fbdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/id_smartdetectoralertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/id_smartdetectoralertrule.go @@ -42,7 +42,7 @@ func ParseSmartDetectorAlertRuleID(input string) (*SmartDetectorAlertRuleId, err } id := SmartDetectorAlertRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSmartDetectorAlertRuleIDInsensitively(input string) (*SmartDetectorAle } id := SmartDetectorAlertRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SmartDetectorAlertRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAlertsManagement", "Microsoft.AlertsManagement", "Microsoft.AlertsManagement"), resourceids.StaticSegment("staticSmartDetectorAlertRules", "smartDetectorAlertRules", "smartDetectorAlertRules"), - resourceids.UserSpecifiedSegment("smartDetectorAlertRuleName", "smartDetectorAlertRuleValue"), + resourceids.UserSpecifiedSegment("smartDetectorAlertRuleName", "alertRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_createorupdate.go index 49a2cc868d48..2cf5f2d9bdf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SmartDetectorAlertRulesClient) CreateOrUpdate(ctx context.Context, id Sm var model AlertRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go index ff395fa0f1b6..ec236868c720 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SmartDetectorAlertRulesClient) Get(ctx context.Context, id SmartDetector var model AlertRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go index 027aa56cbc25..186bdb98bb0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go index 5d228dbdd70d..29134a5f709a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_patch.go index b0b4a6e3658b..a013b13b24f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/method_patch.go @@ -49,7 +49,6 @@ func (c SmartDetectorAlertRulesClient) Patch(ctx context.Context, id SmartDetect var model AlertRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/version.go index e31ad90a320a..a4eb78c75321 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2019-06-01/smartdetectoralertrules/version.go @@ -1,12 +1,10 @@ package smartdetectoralertrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/smartdetectoralertrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/smartdetectoralertrules/2019-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md index d63c01d5de9f..b3db1248b04a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules` Documentation -The `alertprocessingrules` SDK allows for interaction with the Azure Resource Manager Service `alertsmanagement` (API Version `2021-08-08`). +The `alertprocessingrules` SDK allows for interaction with Azure Resource Manager `alertsmanagement` (API Version `2021-08-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionRuleValue") +id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertProcessingRuleName") payload := alertprocessingrules.AlertProcessingRule{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionRuleValue") +id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertProcessingRuleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionRuleValue") +id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertProcessingRuleName") read, err := client.GetByName(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionRuleValue") +id := alertprocessingrules.NewActionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "alertProcessingRuleName") payload := alertprocessingrules.PatchObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/client.go index ba92215a8997..ff317e502c38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/client.go @@ -15,7 +15,7 @@ type AlertProcessingRulesClient struct { } func NewAlertProcessingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertProcessingRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "alertprocessingrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "alertprocessingrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AlertProcessingRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/id_actionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/id_actionrule.go index abfb8822d5bb..cf730b20fdc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/id_actionrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/id_actionrule.go @@ -42,7 +42,7 @@ func ParseActionRuleID(input string) (*ActionRuleId, error) { } id := ActionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseActionRuleIDInsensitively(input string) (*ActionRuleId, error) { } id := ActionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ActionRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAlertsManagement", "Microsoft.AlertsManagement", "Microsoft.AlertsManagement"), resourceids.StaticSegment("staticActionRules", "actionRules", "actionRules"), - resourceids.UserSpecifiedSegment("actionRuleName", "actionRuleValue"), + resourceids.UserSpecifiedSegment("actionRuleName", "alertProcessingRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_createorupdate.go index da3c8be6c5c6..67a1cfbb5925 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AlertProcessingRulesClient) CreateOrUpdate(ctx context.Context, id Actio var model AlertProcessingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_getbyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_getbyname.go index b2387c6d32e2..6399bedcf896 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_getbyname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_getbyname.go @@ -45,7 +45,6 @@ func (c AlertProcessingRulesClient) GetByName(ctx context.Context, id ActionRule var model AlertProcessingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_update.go index 316b9b903c5e..c5526bfbfef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/method_update.go @@ -49,7 +49,6 @@ func (c AlertProcessingRulesClient) Update(ctx context.Context, id ActionRuleId, var model AlertProcessingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_action.go index 34348e362ace..0ab781366060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_action.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_action.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Action interface { + Action() BaseActionImpl } -// RawActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Action = BaseActionImpl{} + +type BaseActionImpl struct { + ActionType ActionType `json:"actionType"` +} + +func (s BaseActionImpl) Action() BaseActionImpl { + return s +} + +var _ Action = RawActionImpl{} + +// RawActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawActionImpl struct { + action BaseActionImpl Type string Values map[string]interface{} } -func unmarshalActionImplementation(input []byte) (Action, error) { +func (s RawActionImpl) Action() BaseActionImpl { + return s.action +} + +func UnmarshalActionImplementation(input []byte) (Action, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return nil, fmt.Errorf("unmarshaling Action into map[string]interface: %+v", err) } - value, ok := temp["actionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["actionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AddActionGroups") { @@ -52,10 +69,15 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return out, nil } - out := RawActionImpl{ + var parent BaseActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseActionImpl: %+v", err) + } + + return RawActionImpl{ + action: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_addactiongroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_addactiongroups.go index d90082752510..47647e74b3a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_addactiongroups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_addactiongroups.go @@ -14,6 +14,14 @@ type AddActionGroups struct { ActionGroupIds []string `json:"actionGroupIds"` // Fields inherited from Action + + ActionType ActionType `json:"actionType"` +} + +func (s AddActionGroups) Action() BaseActionImpl { + return BaseActionImpl{ + ActionType: s.ActionType, + } } var _ json.Marshaler = AddActionGroups{} @@ -27,9 +35,10 @@ func (s AddActionGroups) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AddActionGroups: %+v", err) } + decoded["actionType"] = "AddActionGroups" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_alertprocessingruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_alertprocessingruleproperties.go index 0d12d31e4730..56264d360857 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_alertprocessingruleproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_alertprocessingruleproperties.go @@ -20,10 +20,15 @@ type AlertProcessingRuleProperties struct { var _ json.Unmarshaler = &AlertProcessingRuleProperties{} func (s *AlertProcessingRuleProperties) UnmarshalJSON(bytes []byte) error { - type alias AlertProcessingRuleProperties - var decoded alias + var decoded struct { + Conditions *[]Condition `json:"conditions,omitempty"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Schedule *Schedule `json:"schedule,omitempty"` + Scopes []string `json:"scopes"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AlertProcessingRuleProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Conditions = decoded.Conditions @@ -45,7 +50,7 @@ func (s *AlertProcessingRuleProperties) UnmarshalJSON(bytes []byte) error { output := make([]Action, 0) for i, val := range listTemp { - impl, err := unmarshalActionImplementation(val) + impl, err := UnmarshalActionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Actions' for 'AlertProcessingRuleProperties': %+v", i, err) } @@ -53,5 +58,6 @@ func (s *AlertProcessingRuleProperties) UnmarshalJSON(bytes []byte) error { } s.Actions = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_dailyrecurrence.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_dailyrecurrence.go index 78948059a128..4e5a5322d6e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_dailyrecurrence.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_dailyrecurrence.go @@ -13,8 +13,18 @@ var _ Recurrence = DailyRecurrence{} type DailyRecurrence struct { // Fields inherited from Recurrence - EndTime *string `json:"endTime,omitempty"` - StartTime *string `json:"startTime,omitempty"` + + EndTime *string `json:"endTime,omitempty"` + RecurrenceType RecurrenceType `json:"recurrenceType"` + StartTime *string `json:"startTime,omitempty"` +} + +func (s DailyRecurrence) Recurrence() BaseRecurrenceImpl { + return BaseRecurrenceImpl{ + EndTime: s.EndTime, + RecurrenceType: s.RecurrenceType, + StartTime: s.StartTime, + } } var _ json.Marshaler = DailyRecurrence{} @@ -28,9 +38,10 @@ func (s DailyRecurrence) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DailyRecurrence: %+v", err) } + decoded["recurrenceType"] = "Daily" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_monthlyrecurrence.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_monthlyrecurrence.go index 6e2384fd7672..f26a84438bd8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_monthlyrecurrence.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_monthlyrecurrence.go @@ -14,8 +14,18 @@ type MonthlyRecurrence struct { DaysOfMonth []int64 `json:"daysOfMonth"` // Fields inherited from Recurrence - EndTime *string `json:"endTime,omitempty"` - StartTime *string `json:"startTime,omitempty"` + + EndTime *string `json:"endTime,omitempty"` + RecurrenceType RecurrenceType `json:"recurrenceType"` + StartTime *string `json:"startTime,omitempty"` +} + +func (s MonthlyRecurrence) Recurrence() BaseRecurrenceImpl { + return BaseRecurrenceImpl{ + EndTime: s.EndTime, + RecurrenceType: s.RecurrenceType, + StartTime: s.StartTime, + } } var _ json.Marshaler = MonthlyRecurrence{} @@ -29,9 +39,10 @@ func (s MonthlyRecurrence) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MonthlyRecurrence: %+v", err) } + decoded["recurrenceType"] = "Monthly" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_recurrence.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_recurrence.go index 7dee3512f756..00c2aa2ef8f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_recurrence.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_recurrence.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Recurrence interface { + Recurrence() BaseRecurrenceImpl } -// RawRecurrenceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Recurrence = BaseRecurrenceImpl{} + +type BaseRecurrenceImpl struct { + EndTime *string `json:"endTime,omitempty"` + RecurrenceType RecurrenceType `json:"recurrenceType"` + StartTime *string `json:"startTime,omitempty"` +} + +func (s BaseRecurrenceImpl) Recurrence() BaseRecurrenceImpl { + return s +} + +var _ Recurrence = RawRecurrenceImpl{} + +// RawRecurrenceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRecurrenceImpl struct { - Type string - Values map[string]interface{} + recurrence BaseRecurrenceImpl + Type string + Values map[string]interface{} +} + +func (s RawRecurrenceImpl) Recurrence() BaseRecurrenceImpl { + return s.recurrence } -func unmarshalRecurrenceImplementation(input []byte) (Recurrence, error) { +func UnmarshalRecurrenceImplementation(input []byte) (Recurrence, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalRecurrenceImplementation(input []byte) (Recurrence, error) { return nil, fmt.Errorf("unmarshaling Recurrence into map[string]interface: %+v", err) } - value, ok := temp["recurrenceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["recurrenceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Daily") { @@ -60,10 +79,15 @@ func unmarshalRecurrenceImplementation(input []byte) (Recurrence, error) { return out, nil } - out := RawRecurrenceImpl{ - Type: value, - Values: temp, + var parent BaseRecurrenceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRecurrenceImpl: %+v", err) } - return out, nil + + return RawRecurrenceImpl{ + recurrence: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_removeallactiongroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_removeallactiongroups.go index f2a0f887dcd6..dad3119fca67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_removeallactiongroups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_removeallactiongroups.go @@ -13,6 +13,14 @@ var _ Action = RemoveAllActionGroups{} type RemoveAllActionGroups struct { // Fields inherited from Action + + ActionType ActionType `json:"actionType"` +} + +func (s RemoveAllActionGroups) Action() BaseActionImpl { + return BaseActionImpl{ + ActionType: s.ActionType, + } } var _ json.Marshaler = RemoveAllActionGroups{} @@ -26,9 +34,10 @@ func (s RemoveAllActionGroups) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RemoveAllActionGroups: %+v", err) } + decoded["actionType"] = "RemoveAllActionGroups" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_schedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_schedule.go index 8211a9706932..72812c6c4d4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_schedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_schedule.go @@ -18,10 +18,13 @@ type Schedule struct { var _ json.Unmarshaler = &Schedule{} func (s *Schedule) UnmarshalJSON(bytes []byte) error { - type alias Schedule - var decoded alias + var decoded struct { + EffectiveFrom *string `json:"effectiveFrom,omitempty"` + EffectiveUntil *string `json:"effectiveUntil,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Schedule: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.EffectiveFrom = decoded.EffectiveFrom @@ -41,7 +44,7 @@ func (s *Schedule) UnmarshalJSON(bytes []byte) error { output := make([]Recurrence, 0) for i, val := range listTemp { - impl, err := unmarshalRecurrenceImplementation(val) + impl, err := UnmarshalRecurrenceImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Recurrences' for 'Schedule': %+v", i, err) } @@ -49,5 +52,6 @@ func (s *Schedule) UnmarshalJSON(bytes []byte) error { } s.Recurrences = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_weeklyrecurrence.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_weeklyrecurrence.go index 29b12738cba4..410e166f3a45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_weeklyrecurrence.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/model_weeklyrecurrence.go @@ -14,8 +14,18 @@ type WeeklyRecurrence struct { DaysOfWeek []DaysOfWeek `json:"daysOfWeek"` // Fields inherited from Recurrence - EndTime *string `json:"endTime,omitempty"` - StartTime *string `json:"startTime,omitempty"` + + EndTime *string `json:"endTime,omitempty"` + RecurrenceType RecurrenceType `json:"recurrenceType"` + StartTime *string `json:"startTime,omitempty"` +} + +func (s WeeklyRecurrence) Recurrence() BaseRecurrenceImpl { + return BaseRecurrenceImpl{ + EndTime: s.EndTime, + RecurrenceType: s.RecurrenceType, + StartTime: s.StartTime, + } } var _ json.Marshaler = WeeklyRecurrence{} @@ -29,9 +39,10 @@ func (s WeeklyRecurrence) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WeeklyRecurrence: %+v", err) } + decoded["recurrenceType"] = "Weekly" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/version.go index 8aff94df2a09..761812e10818 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules/version.go @@ -1,12 +1,10 @@ package alertprocessingrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-08-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/alertprocessingrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/alertprocessingrules/2021-08-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md index a39447e95d34..30a8465a2958 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups` Documentation -The `prometheusrulegroups` SDK allows for interaction with the Azure Resource Manager Service `alertsmanagement` (API Version `2023-03-01`). +The `prometheusrulegroups` SDK allows for interaction with Azure Resource Manager `alertsmanagement` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "prometheusRuleGroupValue") +id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleGroupName") payload := prometheusrulegroups.PrometheusRuleGroupResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "prometheusRuleGroupValue") +id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "prometheusRuleGroupValue") +id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "prometheusRuleGroupValue") +id := prometheusrulegroups.NewPrometheusRuleGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleGroupName") payload := prometheusrulegroups.PrometheusRuleGroupResourcePatchParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/client.go index 32bd22115f72..e2bf6cd5d157 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/client.go @@ -15,7 +15,7 @@ type PrometheusRuleGroupsClient struct { } func NewPrometheusRuleGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrometheusRuleGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prometheusrulegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prometheusrulegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrometheusRuleGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/id_prometheusrulegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/id_prometheusrulegroup.go index 7130dbb61793..03b6af680dfc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/id_prometheusrulegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/id_prometheusrulegroup.go @@ -42,7 +42,7 @@ func ParsePrometheusRuleGroupID(input string) (*PrometheusRuleGroupId, error) { } id := PrometheusRuleGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrometheusRuleGroupIDInsensitively(input string) (*PrometheusRuleGroup } id := PrometheusRuleGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrometheusRuleGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAlertsManagement", "Microsoft.AlertsManagement", "Microsoft.AlertsManagement"), resourceids.StaticSegment("staticPrometheusRuleGroups", "prometheusRuleGroups", "prometheusRuleGroups"), - resourceids.UserSpecifiedSegment("prometheusRuleGroupName", "prometheusRuleGroupValue"), + resourceids.UserSpecifiedSegment("prometheusRuleGroupName", "ruleGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_createorupdate.go index b9041f5e033b..3f75430a90a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_createorupdate.go @@ -50,7 +50,6 @@ func (c PrometheusRuleGroupsClient) CreateOrUpdate(ctx context.Context, id Prome var model PrometheusRuleGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_get.go index 9a427b3b14ba..80307abd1d0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_get.go @@ -45,7 +45,6 @@ func (c PrometheusRuleGroupsClient) Get(ctx context.Context, id PrometheusRuleGr var model PrometheusRuleGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbyresourcegroup.go index 24be46d23d39..2e6105885369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c PrometheusRuleGroupsClient) ListByResourceGroup(ctx context.Context, id var model PrometheusRuleGroupResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbysubscription.go index 4fb170cc9029..66ecd91d9926 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c PrometheusRuleGroupsClient) ListBySubscription(ctx context.Context, id c var model PrometheusRuleGroupResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_update.go index 4c98a5d6e6f8..4fff98f505cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/method_update.go @@ -49,7 +49,6 @@ func (c PrometheusRuleGroupsClient) Update(ctx context.Context, id PrometheusRul var model PrometheusRuleGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/version.go index 4ab30b94fb45..024cb95e5f2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups/version.go @@ -1,12 +1,10 @@ package prometheusrulegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prometheusrulegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prometheusrulegroups/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/README.md index 89088722e296..6dad4510bc84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices` Documentation -The `analysisservices` SDK allows for interaction with the Azure Resource Manager Service `analysisservices` (API Version `2017-08-01`). +The `analysisservices` SDK allows for interaction with Azure Resource Manager `analysisservices` (API Version `2017-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/client.go index fd87d664a2b2..5cd8b65b6d87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/client.go @@ -15,7 +15,7 @@ type AnalysisServicesClient struct { } func NewAnalysisServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*AnalysisServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "analysisservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "analysisservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AnalysisServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/method_serverslistskusfornew.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/method_serverslistskusfornew.go index 06c8e58c94d0..ffed315978f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/method_serverslistskusfornew.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/method_serverslistskusfornew.go @@ -47,7 +47,6 @@ func (c AnalysisServicesClient) ServersListSkusForNew(ctx context.Context, id co var model SkuEnumerationForNewResourceResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/version.go index 36f54e105bfb..73b67004d91e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/analysisservices/version.go @@ -1,12 +1,10 @@ package analysisservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/analysisservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/analysisservices/2017-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/README.md index 20cff8787390..6ef1168ef4dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `analysisservices` (API Version `2017-08-01`). +The `servers` SDK allows for interaction with Azure Resource Manager `analysisservices` (API Version `2017-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := servers.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := servers.CheckServerNameAvailabilityParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.AnalysisServicesServer{ // ... @@ -63,7 +63,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.DissociateGateway(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.GetDetails(ctx, id) if err != nil { @@ -139,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListGatewayStatus(ctx, id) if err != nil { @@ -155,7 +155,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListSkusForExisting(ctx, id) if err != nil { @@ -171,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.ResumeThenPoll(ctx, id); err != nil { // handle the error @@ -183,7 +183,7 @@ if err := client.ResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.SuspendThenPoll(ctx, id); err != nil { // handle the error @@ -195,7 +195,7 @@ if err := client.SuspendThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.AnalysisServicesServerUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_location.go index b61b68dcc229..0b63233bd859 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAnalysisServices", "Microsoft.AnalysisServices", "Microsoft.AnalysisServices"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_server.go index 034466f21d2b..2dc391a4684a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAnalysisServices", "Microsoft.AnalysisServices", "Microsoft.AnalysisServices"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_checknameavailability.go index 8d952b2e0b1c..aedf5364e28c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c ServersClient) CheckNameAvailability(ctx context.Context, id LocationId, var model CheckServerNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_getdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_getdetails.go index 856d9234053f..bb7dd8211424 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_getdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_getdetails.go @@ -45,7 +45,6 @@ func (c ServersClient) GetDetails(ctx context.Context, id ServerId) (result GetD var model AnalysisServicesServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_list.go index 4e7f67ec23da..1860d210da10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_list.go @@ -47,7 +47,6 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r var model AnalysisServicesServers result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listbyresourcegroup.go index 04885cde544b..da8f9bf9ef4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res var model AnalysisServicesServers result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listgatewaystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listgatewaystatus.go index 646d23202ecc..130bce90663f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listgatewaystatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listgatewaystatus.go @@ -46,7 +46,6 @@ func (c ServersClient) ListGatewayStatus(ctx context.Context, id ServerId) (resu var model GatewayListStatusLive result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listskusforexisting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listskusforexisting.go index d6f6e761368a..42bf74d40b1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listskusforexisting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/method_listskusforexisting.go @@ -46,7 +46,6 @@ func (c ServersClient) ListSkusForExisting(ctx context.Context, id ServerId) (re var model SkuEnumerationForExistingResourceResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/version.go index 3219554646f9..6929b9cad872 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/analysisservices/2017-08-01/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2017-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md index 010a0a81e00d..4379b56949e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api` Documentation -The `api` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `api` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := api.ApiCreateOrUpdateParameter{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, api.DefaultCreateOrUpd ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Delete(ctx, id, api.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := api.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, api.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, api.DefaultListByServiceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := api.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := api.ApiUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/client.go index 5ce281961320..2f776384d61a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/client.go @@ -15,7 +15,7 @@ type ApiClient struct { } func NewApiClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "api", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "api", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go index a70d7f5620c5..cd4bfad07124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go index c50464ed710d..3193282fe8c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go index af3e5430ecfe..d698167d31e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go index fbc43278f3bb..82b9ac905609 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_get.go index 07f671ef6420..0b768d34293e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_get.go @@ -45,7 +45,6 @@ func (c ApiClient) Get(ctx context.Context, id ApiId) (result GetOperationRespon var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go index 6b9bc61fa029..637304ef1e8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_listbyservice.go @@ -43,6 +43,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go index 491fbbeb5c8d..6310b4ab9ad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiClient) Update(ctx context.Context, id ApiId, input ApiUpdateContract var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go index db2989835279..7d28b7cc2052 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/api/version.go @@ -1,12 +1,10 @@ package api -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/api/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/api/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md index 825f010afaa3..1255d1a904e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic` Documentation -The `apidiagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apidiagnostic` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "diagnosticIdValue") +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") payload := apidiagnostic.DiagnosticContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "diagnosticIdValue") +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") read, err := client.Delete(ctx, id, apidiagnostic.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "diagnosticIdValue") +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "diagnosticIdValue") +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apidiagnostic.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apidiagnostic.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByService(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apidiagnostic.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "diagnosticIdValue") +id := apidiagnostic.NewApiDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "diagnosticId") payload := apidiagnostic.DiagnosticContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go index 10bdb8741b23..4e0be722654a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/client.go @@ -15,7 +15,7 @@ type ApiDiagnosticClient struct { } func NewApiDiagnosticClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiDiagnosticClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apidiagnostic", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apidiagnostic", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiDiagnosticClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go index 1c99bf5821c1..8a87a46a6e28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go index d2f0e00b2bb7..ea7aaea497db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/id_apidiagnostic.go @@ -46,7 +46,7 @@ func ParseApiDiagnosticID(input string) (*ApiDiagnosticId, error) { } id := ApiDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseApiDiagnosticIDInsensitively(input string) (*ApiDiagnosticId, error) { } id := ApiDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ApiDiagnosticId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), - resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticIdValue"), + resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go index 2551a5d14453..4f82c372b8f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiDiagnosticClient) CreateOrUpdate(ctx context.Context, id ApiDiagnosti var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go index a781c7b154b6..ede64465f758 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go index bb113001b362..cd148612858b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_get.go @@ -45,7 +45,6 @@ func (c ApiDiagnosticClient) Get(ctx context.Context, id ApiDiagnosticId) (resul var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go index 96b6f06f6747..96e04e5bd42c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go index 00ef4533a35a..1352f0f032b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiDiagnosticClient) Update(ctx context.Context, id ApiDiagnosticId, inp var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go index bcfa88408c36..966080e9f3e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apidiagnostic/version.go @@ -1,12 +1,10 @@ package apidiagnostic -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apidiagnostic/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apidiagnostic/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md index c519646a9c8c..7feb49b5bffb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice` Documentation -The `apimanagementservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apimanagementservice` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := apimanagementservice.ApiManagementServiceApplyNetworkConfigurationParameters{ // ... @@ -42,7 +42,7 @@ if err := client.ApplyNetworkConfigurationUpdatesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := apimanagementservice.ApiManagementServiceBackupRestoreParameters{ // ... @@ -80,7 +80,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := apimanagementservice.ApiManagementServiceResource{ // ... @@ -97,7 +97,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -109,7 +109,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id) if err != nil { @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.GetSsoToken(ctx, id) if err != nil { @@ -191,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.MigrateToStv2ThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.MigrateToStv2ThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := apimanagementservice.ApiManagementServiceBackupRestoreParameters{ // ... @@ -220,7 +220,7 @@ if err := client.RestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apimanagementservice.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := apimanagementservice.ApiManagementServiceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go index 7c5932f73167..4816927cda9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/client.go @@ -15,7 +15,7 @@ type ApiManagementServiceClient struct { } func NewApiManagementServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiManagementServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apimanagementservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apimanagementservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiManagementServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go index 5183555d0c8a..65314551f85c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go index 2a8c875ee1f8..0aa5392bae29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ApiManagementServiceClient) CheckNameAvailability(ctx context.Context, i var model ApiManagementServiceNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go index 771928691f7f..f4d6a7917318 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_get.go @@ -45,7 +45,6 @@ func (c ApiManagementServiceClient) Get(ctx context.Context, id ServiceId) (resu var model ApiManagementServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go index 40d031a5f838..acb89d914e79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getdomainownershipidentifier.go @@ -47,7 +47,6 @@ func (c ApiManagementServiceClient) GetDomainOwnershipIdentifier(ctx context.Con var model ApiManagementServiceGetDomainOwnershipIdentifierResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go index ecf0a465d0f6..7d2b5a93c5fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/method_getssotoken.go @@ -46,7 +46,6 @@ func (c ApiManagementServiceClient) GetSsoToken(ctx context.Context, id ServiceI var model ApiManagementServiceGetSsoTokenResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go index 5c1a11441c13..3c35274dd157 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apimanagementservice/version.go @@ -1,12 +1,10 @@ package apimanagementservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apimanagementservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apimanagementservice/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md index 192e76483d9b..7202cc961aba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation` Documentation -The `apioperation` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apioperation` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperation.OperationContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Delete(ctx, id, apioperation.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apioperation.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id, apioperation.DefaultListByApiOperationOptions())` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id, apioperation.DefaultListByApiOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperation.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperation.OperationUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/client.go index 5c9fa6d23e68..b9782eb451f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/client.go @@ -15,7 +15,7 @@ type ApiOperationClient struct { } func NewApiOperationClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiOperationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apioperation", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apioperation", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiOperationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go index 253d9153dbc3..4a39b31552de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go index ae47adf61a5f..1dc07215aac7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/id_operation.go @@ -46,7 +46,7 @@ func ParseOperationID(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseOperationIDInsensitively(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id OperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go index ee86a38b0bcc..66fb1d5996e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go index ee390d245b34..e4e9e6e90ee4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go index 7fed3585ab94..ff3a98889ea1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_get.go @@ -45,7 +45,6 @@ func (c ApiOperationClient) Get(ctx context.Context, id OperationId) (result Get var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go index df8d3b45502e..798fe0e75528 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_listbyapi.go @@ -42,6 +42,7 @@ func (o ListByApiOperationOptions) ToHeaders() *client.Headers { func (o ListByApiOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go index 005fc98f21a0..4f5130245ac9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input Op var model OperationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go index 86c8468c3234..1190c954462e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperation/version.go @@ -1,12 +1,10 @@ package apioperation -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apioperation/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apioperation/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md index ed57c7b8978e..9cc10b547f8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy` Documentation -The `apioperationpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apioperationpolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") payload := apioperationpolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Delete(ctx, id, apioperationpolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.Get(ctx, id, apioperationpolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationpolicy.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") // alternatively `client.ListByOperation(ctx, id)` can be used to do batched pagination items, err := client.ListByOperationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/client.go index 4c1ef4771152..c0dc541f2eda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/client.go @@ -15,7 +15,7 @@ type ApiOperationPolicyClient struct { } func NewApiOperationPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiOperationPolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apioperationpolicy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apioperationpolicy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiOperationPolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go index a9f5f2e9bd1d..97064c31a472 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/id_operation.go @@ -46,7 +46,7 @@ func ParseOperationID(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseOperationIDInsensitively(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id OperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go index 3437b481d777..398b6fbd9ed9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id Operati var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go index 1b77d06ed201..cd8893ce2f0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go index 53ce4e80d689..24446658831a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, optio var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go index 5c02ab0989d7..50ce69f4f87f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationpolicy/version.go @@ -1,12 +1,10 @@ package apioperationpolicy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apioperationpolicy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apioperationpolicy/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md index 6397d8556a69..38a8822e4c11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag` Documentation -The `apioperationtag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apioperationtag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue", "tagIdValue") +id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId", "tagId") read, err := client.TagAssignToOperation(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue", "tagIdValue") +id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId", "tagId") read, err := client.TagDetachFromOperation(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue", "tagIdValue") +id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId", "tagId") read, err := client.TagGetByOperation(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue", "tagIdValue") +id := apioperationtag.NewOperationTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId", "tagId") read, err := client.TagGetEntityStateByOperation(ctx, id) if err != nil { @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apioperationtag.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "operationIdValue") +id := apioperationtag.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "operationId") // alternatively `client.TagListByOperation(ctx, id, apioperationtag.DefaultTagListByOperationOperationOptions())` can be used to do batched pagination items, err := client.TagListByOperationComplete(ctx, id, apioperationtag.DefaultTagListByOperationOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go index 6f14f25474cb..977dc13c0f95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/client.go @@ -15,7 +15,7 @@ type ApiOperationTagClient struct { } func NewApiOperationTagClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiOperationTagClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apioperationtag", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apioperationtag", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiOperationTagClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go index efa4b494f535..dfb14848e600 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operation.go @@ -46,7 +46,7 @@ func ParseOperationID(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseOperationIDInsensitively(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id OperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go index 278b58eaf308..21ac24844df9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/id_operationtag.go @@ -48,7 +48,7 @@ func ParseOperationTagID(input string) (*OperationTagId, error) { } id := OperationTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseOperationTagIDInsensitively(input string) (*OperationTagId, error) { } id := OperationTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id OperationTagId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), resourceids.StaticSegment("staticTags", "tags", "tags"), - resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + resourceids.UserSpecifiedSegment("tagId", "tagId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go index ee4d3b0dbb06..003af5a68554 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_tagassigntooperation.go @@ -46,7 +46,6 @@ func (c ApiOperationTagClient) TagAssignToOperation(ctx context.Context, id Oper var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go index 7448f9ee27a9..cbdff13a0373 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taggetbyoperation.go @@ -45,7 +45,6 @@ func (c ApiOperationTagClient) TagGetByOperation(ctx context.Context, id Operati var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go index f68870a25872..13096fc07298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/method_taglistbyoperation.go @@ -41,6 +41,7 @@ func (o TagListByOperationOperationOptions) ToHeaders() *client.Headers { func (o TagListByOperationOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go index 852f6568d19b..360cc59d96eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apioperationtag/version.go @@ -1,12 +1,10 @@ package apioperationtag -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apioperationtag/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apioperationtag/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md index 445a6a5a03a4..18c161f3a3bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy` Documentation -The `apipolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apipolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") payload := apipolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Delete(ctx, id, apipolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.Get(ctx, id, apipolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apipolicy.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id)` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/client.go index 84c3dfec8c90..48a63aea96b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/client.go @@ -15,7 +15,7 @@ type ApiPolicyClient struct { } func NewApiPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiPolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apipolicy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apipolicy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiPolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go index 8423eae7bd75..d458bc9eb5e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go index eeaf614e85be..5a5f41a5a698 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiPolicyClient) CreateOrUpdate(ctx context.Context, id ApiId, input Pol var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go index ee63586a23e0..2e0bec42e465 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go index c62f27cb3314..215a0d6e9835 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ApiPolicyClient) Get(ctx context.Context, id ApiId, options GetOperation var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go index 41da5ae33633..aafd2b00d73e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apipolicy/version.go @@ -1,12 +1,10 @@ package apipolicy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apipolicy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apipolicy/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md index e76336017b17..c27538a49db9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease` Documentation -The `apirelease` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apirelease` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.Delete(ctx, id, apirelease.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apirelease.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByService(ctx, id, apirelease.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apirelease.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "releaseIdValue") +id := apirelease.NewReleaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "releaseId") payload := apirelease.ApiReleaseContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/client.go index 5ce0c50057f4..916d3cf987ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/client.go @@ -15,7 +15,7 @@ type ApiReleaseClient struct { } func NewApiReleaseClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiReleaseClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apirelease", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apirelease", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiReleaseClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go index 8cb60bea6b55..f9102f14e5df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go index 782521151d85..af8175ce4e0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/id_release.go @@ -46,7 +46,7 @@ func ParseReleaseID(input string) (*ReleaseId, error) { } id := ReleaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReleaseIDInsensitively(input string) (*ReleaseId, error) { } id := ReleaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReleaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticReleases", "releases", "releases"), - resourceids.UserSpecifiedSegment("releaseId", "releaseIdValue"), + resourceids.UserSpecifiedSegment("releaseId", "releaseId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go index 2b23b8d16a6d..78ca213b93f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiReleaseClient) CreateOrUpdate(ctx context.Context, id ReleaseId, inpu var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go index d7f285344652..ccae10babdb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go index 4f45a0505aaf..1c9d1797eb8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_get.go @@ -45,7 +45,6 @@ func (c ApiReleaseClient) Get(ctx context.Context, id ReleaseId) (result GetOper var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go index 509f7241d4f7..afff495b5957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go index 1e51ca66c453..ec17ee72daa5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiReleaseClient) Update(ctx context.Context, id ReleaseId, input ApiRel var model ApiReleaseContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go index c32ad9e24841..6440d622c097 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apirelease/version.go @@ -1,12 +1,10 @@ package apirelease -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apirelease/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apirelease/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md index b2a2be630c40..beb1c0020402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema` Documentation -The `apischema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apischema` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") payload := apischema.SchemaContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, apischema.DefaultCreat ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.Delete(ctx, id, apischema.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "schemaIdValue") +id := apischema.NewApiSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "schemaId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apischema.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByApi(ctx, id, apischema.DefaultListByApiOperationOptions())` can be used to do batched pagination items, err := client.ListByApiComplete(ctx, id, apischema.DefaultListByApiOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go index fb466515328c..feae3073bba2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/client.go @@ -15,7 +15,7 @@ type ApiSchemaClient struct { } func NewApiSchemaClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiSchemaClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apischema", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apischema", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiSchemaClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go index 725dc89049bc..87a16f9ab8c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go index af8be6866d8f..5b1dde21c96b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/id_apischema.go @@ -46,7 +46,7 @@ func ParseApiSchemaID(input string) (*ApiSchemaId, error) { } id := ApiSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseApiSchemaIDInsensitively(input string) (*ApiSchemaId, error) { } id := ApiSchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ApiSchemaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), - resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + resourceids.UserSpecifiedSegment("schemaId", "schemaId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go index e9339741550a..43f5ff046677 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go index 1e1272fa3896..cb2a09c563a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go index c0bd56818fa7..474b07289912 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_get.go @@ -45,7 +45,6 @@ func (c ApiSchemaClient) Get(ctx context.Context, id ApiSchemaId) (result GetOpe var model SchemaContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go index c3cb801dfce7..5cbe66a49a9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/method_listbyapi.go @@ -41,6 +41,7 @@ func (o ListByApiOperationOptions) ToHeaders() *client.Headers { func (o ListByApiOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go index e17a39dae1ab..8bc168ed2fc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apischema/version.go @@ -1,12 +1,10 @@ package apischema -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apischema/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apischema/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md index 45032ccb8964..6779d929933d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag` Documentation -The `apitag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apitag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagIdValue") +id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagId") read, err := client.TagAssignToApi(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagIdValue") +id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagId") read, err := client.TagDetachFromApi(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagIdValue") +id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagId") read, err := client.TagGetByApi(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagIdValue") +id := apitag.NewApiTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagId") read, err := client.TagGetEntityStateByApi(ctx, id) if err != nil { @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitag.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apitag.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.TagListByApi(ctx, id, apitag.DefaultTagListByApiOperationOptions())` can be used to do batched pagination items, err := client.TagListByApiComplete(ctx, id, apitag.DefaultTagListByApiOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go index 491411cb3467..d6fa22e93b2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/client.go @@ -15,7 +15,7 @@ type ApiTagClient struct { } func NewApiTagClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiTagClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apitag", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apitag", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiTagClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go index 584293d60e36..ab6e242739f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go index 13e9a7f8c961..3c7f59682604 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/id_apitag.go @@ -46,7 +46,7 @@ func ParseApiTagID(input string) (*ApiTagId, error) { } id := ApiTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseApiTagIDInsensitively(input string) (*ApiTagId, error) { } id := ApiTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ApiTagId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticTags", "tags", "tags"), - resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + resourceids.UserSpecifiedSegment("tagId", "tagId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go index daa3d8e3cbb4..e228f15e51c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_tagassigntoapi.go @@ -46,7 +46,6 @@ func (c ApiTagClient) TagAssignToApi(ctx context.Context, id ApiTagId) (result T var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go index 17951c4564ae..ce827a4d2948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taggetbyapi.go @@ -45,7 +45,6 @@ func (c ApiTagClient) TagGetByApi(ctx context.Context, id ApiTagId) (result TagG var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go index 5c2639c91e37..26018d60d4ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/method_taglistbyapi.go @@ -41,6 +41,7 @@ func (o TagListByApiOperationOptions) ToHeaders() *client.Headers { func (o TagListByApiOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go index 9635300489ed..12673a8d7915 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitag/version.go @@ -1,12 +1,10 @@ package apitag -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apitag/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apitag/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md index dfe875407723..1afa4b821f28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription` Documentation -The `apitagdescription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apitagdescription` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagDescriptionIdValue") +id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagDescriptionId") payload := apitagdescription.TagDescriptionCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagDescriptionIdValue") +id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagDescriptionId") read, err := client.Delete(ctx, id, apitagdescription.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagDescriptionIdValue") +id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagDescriptionId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue", "tagDescriptionIdValue") +id := apitagdescription.NewTagDescriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId", "tagDescriptionId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apitagdescription.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "apiIdValue") +id := apitagdescription.NewApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiId") // alternatively `client.ListByService(ctx, id, apitagdescription.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apitagdescription.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go index f3068aee44a4..6f6a4d3fac37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/client.go @@ -15,7 +15,7 @@ type ApiTagDescriptionClient struct { } func NewApiTagDescriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiTagDescriptionClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apitagdescription", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apitagdescription", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiTagDescriptionClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go index 6c8591fef9e1..2529f1bd7acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_api.go @@ -44,7 +44,7 @@ func ParseApiID(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiIDInsensitively(input string) (*ApiId, error) { } id := ApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go index 0e84945f8484..bebf7aef5e0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/id_tagdescription.go @@ -46,7 +46,7 @@ func ParseTagDescriptionID(input string) (*TagDescriptionId, error) { } id := TagDescriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseTagDescriptionIDInsensitively(input string) (*TagDescriptionId, error) } id := TagDescriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id TagDescriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), resourceids.StaticSegment("staticTagDescriptions", "tagDescriptions", "tagDescriptions"), - resourceids.UserSpecifiedSegment("tagDescriptionId", "tagDescriptionIdValue"), + resourceids.UserSpecifiedSegment("tagDescriptionId", "tagDescriptionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go index 11d74115f05d..2f2cf0b50a91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiTagDescriptionClient) CreateOrUpdate(ctx context.Context, id TagDescr var model TagDescriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go index 2ac6057d3390..aa5781c0d436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go index e350b63f26f9..6269b053999c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_get.go @@ -45,7 +45,6 @@ func (c ApiTagDescriptionClient) Get(ctx context.Context, id TagDescriptionId) ( var model TagDescriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go index 6a36cd97456e..ebcba919eefa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go index c722dd474b1f..c71655a45a00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apitagdescription/version.go @@ -1,12 +1,10 @@ package apitagdescription -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apitagdescription/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apitagdescription/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md index 67c5bcf07120..1f540bf71511 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset` Documentation -The `apiversionset` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `apiversionset` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") payload := apiversionset.ApiVersionSetContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := apiversionset.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, apiversionset.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, apiversionset.DefaultListByServiceOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "versionSetIdValue") +id := apiversionset.NewApiVersionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "versionSetId") payload := apiversionset.ApiVersionSetUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/client.go index ff0c4d18fb02..8cb546608a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/client.go @@ -15,7 +15,7 @@ type ApiVersionSetClient struct { } func NewApiVersionSetClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiVersionSetClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apiversionset", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apiversionset", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiVersionSetClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go index 6a1476b429c6..ae4296aa8764 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_apiversionset.go @@ -44,7 +44,7 @@ func ParseApiVersionSetID(input string) (*ApiVersionSetId, error) { } id := ApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiVersionSetIDInsensitively(input string) (*ApiVersionSetId, error) { } id := ApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiVersionSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), - resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go index fe44a488d707..966339efca62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go index 2d070fcbf910..3314930a6612 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ApiVersionSetClient) CreateOrUpdate(ctx context.Context, id ApiVersionSe var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go index 7b7c728908e3..6e0f1d21d9e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_get.go @@ -45,7 +45,6 @@ func (c ApiVersionSetClient) Get(ctx context.Context, id ApiVersionSetId) (resul var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go index 0f44e4d938d5..e3cf32ef2c15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go index 97fce9046f6e..b8070706ca3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ApiVersionSetClient) Update(ctx context.Context, id ApiVersionSetId, inp var model ApiVersionSetContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go index e2bee2fe2451..593253bee9d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionset/version.go @@ -1,12 +1,10 @@ package apiversionset -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apiversionset/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apiversionset/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go index e1665dd8077a..2186fe19f823 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/client.go @@ -15,7 +15,7 @@ type ApiVersionSetsClient struct { } func NewApiVersionSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiVersionSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apiversionsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apiversionsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiVersionSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go index ef4fd9b314bb..60b364111efc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/id_apiversionset.go @@ -44,7 +44,7 @@ func ParseApiVersionSetID(input string) (*ApiVersionSetId, error) { } id := ApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiVersionSetIDInsensitively(input string) (*ApiVersionSetId, error) { } id := ApiVersionSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiVersionSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticApiVersionSets", "apiVersionSets", "apiVersionSets"), - resourceids.UserSpecifiedSegment("versionSetId", "versionSetIdValue"), + resourceids.UserSpecifiedSegment("versionSetId", "versionSetId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go index 1d2948225c90..71c29c6a6d28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/method_apiversionsetdelete.go @@ -35,6 +35,7 @@ func (o ApiVersionSetDeleteOperationOptions) ToHeaders() *client.Headers { func (o ApiVersionSetDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go index 8d80596a2360..741fae17bcc9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/apiversionsets/version.go @@ -1,12 +1,10 @@ package apiversionsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apiversionsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apiversionsets/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md index 0f67bb049835..4288d6e3cef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver` Documentation -The `authorizationserver` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `authorizationserver` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") payload := authorizationserver.AuthorizationServerContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") read, err := client.Delete(ctx, id, authorizationserver.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationserver.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := authorizationserver.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, authorizationserver.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, authorizationserver.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "authorizationServerValue") +id := authorizationserver.NewAuthorizationServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "authsid") payload := authorizationserver.AuthorizationServerUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go index a234058adb11..1704ea21dd30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/client.go @@ -15,7 +15,7 @@ type AuthorizationServerClient struct { } func NewAuthorizationServerClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationServerClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "authorizationserver", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "authorizationserver", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AuthorizationServerClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go index d501746a8969..f01fa1c02ff0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_authorizationserver.go @@ -44,7 +44,7 @@ func ParseAuthorizationServerID(input string) (*AuthorizationServerId, error) { } id := AuthorizationServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationServerIDInsensitively(input string) (*AuthorizationServer } id := AuthorizationServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticAuthorizationServers", "authorizationServers", "authorizationServers"), - resourceids.UserSpecifiedSegment("authorizationServerName", "authorizationServerValue"), + resourceids.UserSpecifiedSegment("authorizationServerName", "authsid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go index 16870e5f2637..04783ef1d2a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go index ef58fe9a05f0..4e499b277638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c AuthorizationServerClient) CreateOrUpdate(ctx context.Context, id Author var model AuthorizationServerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go index a307aa17d3f3..2bb46f4501ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go index 8d4a74639816..54e8b811bca1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_get.go @@ -45,7 +45,6 @@ func (c AuthorizationServerClient) Get(ctx context.Context, id AuthorizationServ var model AuthorizationServerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go index ae4ad390656f..7c174cf86856 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go index 58b62cc36bf0..e4bcb668d703 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_listsecrets.go @@ -46,7 +46,6 @@ func (c AuthorizationServerClient) ListSecrets(ctx context.Context, id Authoriza var model AuthorizationServerSecretsContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go index 686f7550e4dc..f16ebce0af39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c AuthorizationServerClient) Update(ctx context.Context, id AuthorizationS var model AuthorizationServerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go index 96576d667e8f..fc84342d02f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/authorizationserver/version.go @@ -1,12 +1,10 @@ package authorizationserver -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/authorizationserver/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/authorizationserver/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md index 79ef0ce249cb..14e8129613e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend` Documentation -The `backend` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `backend` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue") +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") payload := backend.BackendContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue") +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") read, err := client.Delete(ctx, id, backend.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue") +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue") +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backend.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := backend.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, backend.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, backend.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "backendIdValue") +id := backend.NewBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "backendId") payload := backend.BackendUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go index 8cf9c601f150..0752289445bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/client.go @@ -15,7 +15,7 @@ type BackendClient struct { } func NewBackendClientWithBaseURI(sdkApi sdkEnv.Api) (*BackendClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backend", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backend", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackendClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go index d59958e9b683..a4f351f35728 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_backend.go @@ -44,7 +44,7 @@ func ParseBackendID(input string) (*BackendId, error) { } id := BackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackendIDInsensitively(input string) (*BackendId, error) { } id := BackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackendId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticBackends", "backends", "backends"), - resourceids.UserSpecifiedSegment("backendId", "backendIdValue"), + resourceids.UserSpecifiedSegment("backendId", "backendId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go index afe0eb62f7f1..6ff01ab86b42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go index 876a39e1fb9a..d957d53a6f14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c BackendClient) CreateOrUpdate(ctx context.Context, id BackendId, input B var model BackendContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go index f71fa94d8655..46366e437b1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go index cc3aa998b93f..77da1fa7415d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_get.go @@ -45,7 +45,6 @@ func (c BackendClient) Get(ctx context.Context, id BackendId) (result GetOperati var model BackendContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go index f8c5b6daf2a7..b0a6f007cc29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go index 3c102cf0e806..80258a36e8d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c BackendClient) Update(ctx context.Context, id BackendId, input BackendUp var model BackendContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go index a56922c3e2f7..cbf188b44124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/backend/version.go @@ -1,12 +1,10 @@ package backend -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backend/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backend/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md index 8736734cd549..1498bab2b030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache` Documentation -The `cache` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `cache` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "cacheIdValue") +id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "cacheId") payload := cache.CacheContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "cacheIdValue") +id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "cacheId") read, err := client.Delete(ctx, id, cache.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "cacheIdValue") +id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "cacheId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "cacheIdValue") +id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "cacheId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cache.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := cache.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, cache.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, cache.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "cacheIdValue") +id := cache.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "cacheId") payload := cache.CacheUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go index e0befe22fa37..ab451fc4ea5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/client.go @@ -15,7 +15,7 @@ type CacheClient struct { } func NewCacheClientWithBaseURI(sdkApi sdkEnv.Api) (*CacheClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cache", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cache", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CacheClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go index 8260234796a5..7e4178bc3a51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_cache.go @@ -44,7 +44,7 @@ func ParseCacheID(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCacheIDInsensitively(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CacheId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticCaches", "caches", "caches"), - resourceids.UserSpecifiedSegment("cacheId", "cacheIdValue"), + resourceids.UserSpecifiedSegment("cacheId", "cacheId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go index bf4f26d8b365..74314f12dfe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go index 26ef5edfcc72..197b76786bc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c CacheClient) CreateOrUpdate(ctx context.Context, id CacheId, input Cache var model CacheContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go index 511791374c6f..55b4280d97df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go index 10fd3d603eab..1bb437d248d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_get.go @@ -45,7 +45,6 @@ func (c CacheClient) Get(ctx context.Context, id CacheId) (result GetOperationRe var model CacheContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go index 291896206381..99ac16add798 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_listbyservice.go @@ -40,6 +40,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go index 9388cab550d0..f70e4710f733 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c CacheClient) Update(ctx context.Context, id CacheId, input CacheUpdatePa var model CacheContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go index 626c7e566939..42f2f4daa670 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/cache/version.go @@ -1,12 +1,10 @@ package cache -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cache/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cache/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md index 2aaa8e83a406..c0ec2dcec65b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate` Documentation -The `certificate` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `certificate` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "certificateIdValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") payload := certificate.CertificateCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "certificateIdValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") read, err := client.Delete(ctx, id, certificate.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "certificateIdValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "certificateIdValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := certificate.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, certificate.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, certificate.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "certificateIdValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateId") read, err := client.RefreshSecret(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go index 9c7a68853627..723362e2b0f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/client.go @@ -15,7 +15,7 @@ type CertificateClient struct { } func NewCertificateClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go index 8617e21ad2a3..b03343352969 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateId", "certificateIdValue"), + resourceids.UserSpecifiedSegment("certificateId", "certificateId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go index 75f9ac3b04bc..73182253e36e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go index 823d71d3e648..15e1df590a3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c CertificateClient) CreateOrUpdate(ctx context.Context, id CertificateId, var model CertificateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go index 6c0ded0942d8..85948d807647 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go index 884851fd83b1..e04e8cfae98f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_get.go @@ -45,7 +45,6 @@ func (c CertificateClient) Get(ctx context.Context, id CertificateId) (result Ge var model CertificateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go index 9f45a52fd7ce..63e1c8507b6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_listbyservice.go @@ -42,6 +42,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go index d764ec89d269..02667d79db12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/method_refreshsecret.go @@ -46,7 +46,6 @@ func (c CertificateClient) RefreshSecret(ctx context.Context, id CertificateId) var model CertificateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go index 0f6757ad4e41..2261f1caa520 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/certificate/version.go @@ -1,12 +1,10 @@ package certificate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificate/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md index 953671f04914..29ab20df4d08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings` Documentation -The `delegationsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `delegationsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := delegationsettings.PortalDelegationSettings{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := delegationsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := delegationsettings.PortalDelegationSettings{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go index 975a55a7a100..6d65fe2f5ec2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/client.go @@ -15,7 +15,7 @@ type DelegationSettingsClient struct { } func NewDelegationSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DelegationSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "delegationsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "delegationsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DelegationSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go index c3aca641d8f8..42e6034aa556 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go index 194af96a5921..d36a1f34df6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c DelegationSettingsClient) CreateOrUpdate(ctx context.Context, id Service var model PortalDelegationSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go index db02f9407db3..3df4abb7ec7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_get.go @@ -46,7 +46,6 @@ func (c DelegationSettingsClient) Get(ctx context.Context, id ServiceId) (result var model PortalDelegationSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go index 50ee5bed1bd2..e4b72cd79d64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_listsecrets.go @@ -46,7 +46,6 @@ func (c DelegationSettingsClient) ListSecrets(ctx context.Context, id ServiceId) var model PortalSettingValidationKeyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go index c010e8ee8658..9ef22bac0a1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/method_update.go @@ -35,6 +35,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go index bb1c18fcd2a1..9819eaf6dad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/delegationsettings/version.go @@ -1,12 +1,10 @@ package delegationsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/delegationsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/delegationsettings/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md index 40fe49735d4b..479f5750e14c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice` Documentation -The `deletedservice` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `deletedservice` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedServiceValue") +id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "location", "serviceName") read, err := client.GetByName(ctx, id) if err != nil { @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedServiceValue") +id := deletedservice.NewDeletedServiceID("12345678-1234-9876-4563-123456789012", "location", "serviceName") if err := client.PurgeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go index 7ce116a72599..273677148303 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/client.go @@ -15,7 +15,7 @@ type DeletedServiceClient struct { } func NewDeletedServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*DeletedServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deletedservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deletedservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeletedServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go index d4f9feb3f31e..263d09e32957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/id_deletedservice.go @@ -42,7 +42,7 @@ func ParseDeletedServiceID(input string) (*DeletedServiceId, error) { } id := DeletedServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedServiceIDInsensitively(input string) (*DeletedServiceId, error) } id := DeletedServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedServices", "deletedServices", "deletedServices"), - resourceids.UserSpecifiedSegment("deletedServiceName", "deletedServiceValue"), + resourceids.UserSpecifiedSegment("deletedServiceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go index f7fef3243995..3e180be780a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/method_getbyname.go @@ -45,7 +45,6 @@ func (c DeletedServiceClient) GetByName(ctx context.Context, id DeletedServiceId var model DeletedServiceContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go index c6774123f960..4f3b1de04619 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/deletedservice/version.go @@ -1,12 +1,10 @@ package deletedservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deletedservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deletedservice/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md index c061e9b79bdb..70b719a61f8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic` Documentation -The `diagnostic` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `diagnostic` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "diagnosticIdValue") +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") payload := diagnostic.DiagnosticContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "diagnosticIdValue") +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") read, err := client.Delete(ctx, id, diagnostic.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "diagnosticIdValue") +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "diagnosticIdValue") +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnostic.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := diagnostic.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, diagnostic.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, diagnostic.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "diagnosticIdValue") +id := diagnostic.NewDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "diagnosticId") payload := diagnostic.DiagnosticContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go index d7b4ed69319f..6b71958f5b66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/client.go @@ -15,7 +15,7 @@ type DiagnosticClient struct { } func NewDiagnosticClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diagnostic", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diagnostic", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiagnosticClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go index 890a40a3e9cf..efbf202e9391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_diagnostic.go @@ -44,7 +44,7 @@ func ParseDiagnosticID(input string) (*DiagnosticId, error) { } id := DiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDiagnosticIDInsensitively(input string) (*DiagnosticId, error) { } id := DiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DiagnosticId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), - resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticIdValue"), + resourceids.UserSpecifiedSegment("diagnosticId", "diagnosticId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go index ce1adfde3741..5063bf966724 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go index 63709e2900aa..18a4c536cb50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c DiagnosticClient) CreateOrUpdate(ctx context.Context, id DiagnosticId, i var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go index 4f5b2bc7d553..1e9acda8c145 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go index af2a7f7943ae..3ae72b09a0f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_get.go @@ -45,7 +45,6 @@ func (c DiagnosticClient) Get(ctx context.Context, id DiagnosticId) (result GetO var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go index 8f84fb8b8741..bf7e8ad966a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go index a98dfa6617c6..6e25bf0e1d75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c DiagnosticClient) Update(ctx context.Context, id DiagnosticId, input Dia var model DiagnosticContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go index c7aee44d8165..09667ca5cc3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/diagnostic/version.go @@ -1,12 +1,10 @@ package diagnostic -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diagnostic/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diagnostic/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md index feb8fcff8bc4..d9e0ae18fed9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates` Documentation -The `emailtemplates` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `emailtemplates` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "accountClosedDeveloper") +id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "accountClosedDeveloper") payload := emailtemplates.EmailTemplateUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "accountClosedDeveloper") +id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "accountClosedDeveloper") read, err := client.EmailTemplateDelete(ctx, id, emailtemplates.DefaultEmailTemplateDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "accountClosedDeveloper") +id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "accountClosedDeveloper") read, err := client.EmailTemplateGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "accountClosedDeveloper") +id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "accountClosedDeveloper") read, err := client.EmailTemplateGetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "accountClosedDeveloper") +id := emailtemplates.NewTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "accountClosedDeveloper") payload := emailtemplates.EmailTemplateUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go index 9f3bc8ed59b1..d38533bf55a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/client.go @@ -15,7 +15,7 @@ type EmailTemplatesClient struct { } func NewEmailTemplatesClientWithBaseURI(sdkApi sdkEnv.Api) (*EmailTemplatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "emailtemplates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "emailtemplates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EmailTemplatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go index b10f4a91dd15..94fa5ed38ca0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/id_template.go @@ -44,7 +44,7 @@ func ParseTemplateID(input string) (*TemplateId, error) { } id := TemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTemplateIDInsensitively(input string) (*TemplateId, error) { } id := TemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id TemplateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticTemplates", "templates", "templates"), resourceids.ConstantSegment("templateName", PossibleValuesForTemplateName(), "accountClosedDeveloper"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go index 8f48b83acfd9..7f48ae7cdbc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatecreateorupdate.go @@ -36,6 +36,7 @@ func (o EmailTemplateCreateOrUpdateOperationOptions) ToHeaders() *client.Headers func (o EmailTemplateCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c EmailTemplatesClient) EmailTemplateCreateOrUpdate(ctx context.Context, i var model EmailTemplateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go index 3bea1260006b..82ce5a372443 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplatedelete.go @@ -35,6 +35,7 @@ func (o EmailTemplateDeleteOperationOptions) ToHeaders() *client.Headers { func (o EmailTemplateDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go index b9686668bf3e..fcf8c3babdc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateget.go @@ -45,7 +45,6 @@ func (c EmailTemplatesClient) EmailTemplateGet(ctx context.Context, id TemplateI var model EmailTemplateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go index 6870b6a5cc85..c1ac2c80e3f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/method_emailtemplateupdate.go @@ -36,6 +36,7 @@ func (o EmailTemplateUpdateOperationOptions) ToHeaders() *client.Headers { func (o EmailTemplateUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c EmailTemplatesClient) EmailTemplateUpdate(ctx context.Context, id Templa var model EmailTemplateContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go index bb7eb8b1da02..8744c47ca3fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/emailtemplates/version.go @@ -1,12 +1,10 @@ package emailtemplates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/emailtemplates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/emailtemplates/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md index 12b47099205a..c059fe43360e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway` Documentation -The `gateway` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gateway` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") payload := gateway.GatewayContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.Delete(ctx, id, gateway.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := gateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, gateway.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gateway.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gateway.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") payload := gateway.GatewayContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go index 0d22b6f29bb9..4b9a12632465 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/client.go @@ -15,7 +15,7 @@ type GatewayClient struct { } func NewGatewayClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "gateway", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "gateway", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GatewayClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go index 350bafc55eb3..57d27e3b6a0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go index dbfd6735febd..fd8c6c812d64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go index d73cce623282..4116eea8b190 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GatewayClient) CreateOrUpdate(ctx context.Context, id GatewayId, input G var model GatewayContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go index a3e76d4da96d..cfd3d12845ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go index 3ddf01031fd7..24f881c912fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_get.go @@ -45,7 +45,6 @@ func (c GatewayClient) Get(ctx context.Context, id GatewayId) (result GetOperati var model GatewayContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go index 182f1a1be3b8..193ebcb3f471 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go index 2113086018c5..fa00c7b03456 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c GatewayClient) Update(ctx context.Context, id GatewayId, input GatewayCo var model GatewayContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go index 43535cf5fae5..b42c779dc7cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gateway/version.go @@ -1,12 +1,10 @@ package gateway -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/gateway/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/gateway/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md index 79ed4c5cff84..2ffa1a6d58c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi` Documentation -The `gatewayapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewayapi` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "apiIdValue") +id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "apiId") payload := gatewayapi.AssociationContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "apiIdValue") +id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "apiId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "apiIdValue") +id := gatewayapi.NewGatewayApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "apiId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayapi.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gatewayapi.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewayapi.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewayapi.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go index 6f88d7098fda..41d09ed34cdb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/client.go @@ -15,7 +15,7 @@ type GatewayApiClient struct { } func NewGatewayApiClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayApiClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "gatewayapi", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "gatewayapi", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GatewayApiClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go index b2a134eea2fd..d5d88789e90e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go index 1780b205bdec..6c241e845561 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/id_gatewayapi.go @@ -46,7 +46,7 @@ func ParseGatewayApiID(input string) (*GatewayApiId, error) { } id := GatewayApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGatewayApiIDInsensitively(input string) (*GatewayApiId, error) { } id := GatewayApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GatewayApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go index 5af86c5ab697..a17c2009dc7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_createorupdate.go @@ -50,7 +50,6 @@ func (c GatewayApiClient) CreateOrUpdate(ctx context.Context, id GatewayApiId, i var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go index 0babf1b2093a..38dc86de4e9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go index c3d7c8e7aa2e..c732bad09623 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayapi/version.go @@ -1,12 +1,10 @@ package gatewayapi -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/gatewayapi/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/gatewayapi/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md index 694d3336f35d..46dee513b4fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority` Documentation -The `gatewaycertificateauthority` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewaycertificateauthority` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "certificateIdValue") +id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "certificateId") payload := gatewaycertificateauthority.GatewayCertificateAuthorityContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "certificateIdValue") +id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "certificateId") read, err := client.Delete(ctx, id, gatewaycertificateauthority.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "certificateIdValue") +id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "certificateId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "certificateIdValue") +id := gatewaycertificateauthority.NewCertificateAuthorityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "certificateId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewaycertificateauthority.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gatewaycertificateauthority.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewaycertificateauthority.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewaycertificateauthority.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go index 82e3bc25dd68..e2177530edd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/client.go @@ -15,7 +15,7 @@ type GatewayCertificateAuthorityClient struct { } func NewGatewayCertificateAuthorityClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayCertificateAuthorityClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "gatewaycertificateauthority", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "gatewaycertificateauthority", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GatewayCertificateAuthorityClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go index 1d7f67848362..71b5c3eebc72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_certificateauthority.go @@ -46,7 +46,7 @@ func ParseCertificateAuthorityID(input string) (*CertificateAuthorityId, error) } id := CertificateAuthorityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCertificateAuthorityIDInsensitively(input string) (*CertificateAuthori } id := CertificateAuthorityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CertificateAuthorityId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), resourceids.StaticSegment("staticCertificateAuthorities", "certificateAuthorities", "certificateAuthorities"), - resourceids.UserSpecifiedSegment("certificateId", "certificateIdValue"), + resourceids.UserSpecifiedSegment("certificateId", "certificateId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go index d3a20376e396..55150d72702e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go index 421099fff399..70b2eddae89e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GatewayCertificateAuthorityClient) CreateOrUpdate(ctx context.Context, i var model GatewayCertificateAuthorityContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go index a6b9d901d6b8..677ee184d410 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go index 2a8a3c51cfd9..3e558c2cc6a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_get.go @@ -45,7 +45,6 @@ func (c GatewayCertificateAuthorityClient) Get(ctx context.Context, id Certifica var model GatewayCertificateAuthorityContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go index c1b242e9166c..93075c633f1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go index 097da870211d..a11df0436891 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewaycertificateauthority/version.go @@ -1,12 +1,10 @@ package gatewaycertificateauthority -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/gatewaycertificateauthority/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/gatewaycertificateauthority/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md index 4630be18a591..b62caaabf1bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration` Documentation -The `gatewayhostnameconfiguration` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `gatewayhostnameconfiguration` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue") +id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "hcId") payload := gatewayhostnameconfiguration.GatewayHostnameConfigurationContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue") +id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "hcId") read, err := client.Delete(ctx, id, gatewayhostnameconfiguration.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue") +id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "hcId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue", "hcIdValue") +id := gatewayhostnameconfiguration.NewHostnameConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId", "hcId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := gatewayhostnameconfiguration.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "gatewayIdValue") +id := gatewayhostnameconfiguration.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayId") // alternatively `client.ListByService(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, gatewayhostnameconfiguration.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go index caf1c71d205d..abf6519743b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/client.go @@ -15,7 +15,7 @@ type GatewayHostnameConfigurationClient struct { } func NewGatewayHostnameConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*GatewayHostnameConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "gatewayhostnameconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "gatewayhostnameconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GatewayHostnameConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go index 7864dddfacb8..c19448680f6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go index 510bff297ac1..25438b5a53c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/id_hostnameconfiguration.go @@ -46,7 +46,7 @@ func ParseHostnameConfigurationID(input string) (*HostnameConfigurationId, error } id := HostnameConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseHostnameConfigurationIDInsensitively(input string) (*HostnameConfigura } id := HostnameConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id HostnameConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), resourceids.StaticSegment("staticHostnameConfigurations", "hostnameConfigurations", "hostnameConfigurations"), - resourceids.UserSpecifiedSegment("hcId", "hcIdValue"), + resourceids.UserSpecifiedSegment("hcId", "hcId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go index 81fc99af1242..c47366added5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GatewayHostnameConfigurationClient) CreateOrUpdate(ctx context.Context, var model GatewayHostnameConfigurationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go index 0964c8fdc780..609e8369aceb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go index d04e4ef66d02..8a74f63cf02b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c GatewayHostnameConfigurationClient) Get(ctx context.Context, id Hostname var model GatewayHostnameConfigurationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go index 619bbf3fcd1f..fde20e31a6ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go index c5b6ebffa305..00b4ed260dad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/gatewayhostnameconfiguration/version.go @@ -1,12 +1,10 @@ package gatewayhostnameconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/gatewayhostnameconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/gatewayhostnameconfiguration/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md index ec143da102b0..cc011a33f285 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group` Documentation -The `group` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `group` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") payload := group.GroupCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.Delete(ctx, id, group.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := group.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, group.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, group.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := group.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") payload := group.GroupUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/client.go index 0301e35f4e8f..d2ad0ba440ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/client.go @@ -15,7 +15,7 @@ type GroupClient struct { } func NewGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "group", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "group", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go index 033b00db2ffb..65442d013665 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_group.go @@ -44,7 +44,7 @@ func ParseGroupID(input string) (*GroupId, error) { } id := GroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGroupIDInsensitively(input string) (*GroupId, error) { } id := GroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go index b997cba49d02..cfc0d91a7de5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go index e8b639dbe8b5..563de8537b14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GroupClient) CreateOrUpdate(ctx context.Context, id GroupId, input Group var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go index b7358fde5331..478299291560 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go index 71da80e44252..63a857ba29a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_get.go @@ -45,7 +45,6 @@ func (c GroupClient) Get(ctx context.Context, id GroupId) (result GetOperationRe var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go index 4f8da96ef4a3..e7c287794fbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go index 70066730bb14..cea5374d4181 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c GroupClient) Update(ctx context.Context, id GroupId, input GroupUpdatePa var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go index 3bd4c4e8b258..6268754d44bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/group/version.go @@ -1,12 +1,10 @@ package group -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/group/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/group/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md index 43308179ff3b..7c52f4da811c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser` Documentation -The `groupuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `groupuser` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue", "userIdValue") +id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId", "userId") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue", "userIdValue") +id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId", "userId") read, err := client.Create(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue", "userIdValue") +id := groupuser.NewGroupUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId", "userId") read, err := client.Delete(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := groupuser.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "groupIdValue") +id := groupuser.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "groupId") // alternatively `client.List(ctx, id, groupuser.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, groupuser.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go index 7a2d9304c738..0883ae96e68b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/client.go @@ -15,7 +15,7 @@ type GroupUserClient struct { } func NewGroupUserClientWithBaseURI(sdkApi sdkEnv.Api) (*GroupUserClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "groupuser", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "groupuser", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GroupUserClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go index 1cacd14ecf99..d374f4e3ed74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_group.go @@ -44,7 +44,7 @@ func ParseGroupID(input string) (*GroupId, error) { } id := GroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGroupIDInsensitively(input string) (*GroupId, error) { } id := GroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go index 57de3d320e8e..938bd1f8866d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/id_groupuser.go @@ -46,7 +46,7 @@ func ParseGroupUserID(input string) (*GroupUserId, error) { } id := GroupUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGroupUserIDInsensitively(input string) (*GroupUserId, error) { } id := GroupUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GroupUserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), resourceids.StaticSegment("staticUsers", "users", "users"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go index 6dc8112254d9..fd3d625df671 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_create.go @@ -46,7 +46,6 @@ func (c GroupUserClient) Create(ctx context.Context, id GroupUserId) (result Cre var model UserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go index b2f4d682063c..002cd3d1fbfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go index 786ee40b5a1d..670b84249cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/groupuser/version.go @@ -1,12 +1,10 @@ package groupuser -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/groupuser/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/groupuser/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md index 64c97f489c6a..7bd885917232 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider` Documentation -The `identityprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `identityprovider` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") payload := identityprovider.IdentityProviderCreateContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") read, err := client.Delete(ctx, id, identityprovider.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := identityprovider.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := identityprovider.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id)` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "aad") +id := identityprovider.NewIdentityProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "aad") payload := identityprovider.IdentityProviderUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go index ba2ed8bbee1b..f9a62f0de7c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/client.go @@ -15,7 +15,7 @@ type IdentityProviderClient struct { } func NewIdentityProviderClientWithBaseURI(sdkApi sdkEnv.Api) (*IdentityProviderClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "identityprovider", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "identityprovider", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IdentityProviderClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go index 3d474aaec02b..0d2f71f815cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_identityprovider.go @@ -44,7 +44,7 @@ func ParseIdentityProviderID(input string) (*IdentityProviderId, error) { } id := IdentityProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseIdentityProviderIDInsensitively(input string) (*IdentityProviderId, er } id := IdentityProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id IdentityProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticIdentityProviders", "identityProviders", "identityProviders"), resourceids.ConstantSegment("identityProviderName", PossibleValuesForIdentityProviderType(), "aad"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go index 8276034f3e79..34a109da523e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go index 834adf0fae9f..b42e0767573b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c IdentityProviderClient) CreateOrUpdate(ctx context.Context, id IdentityP var model IdentityProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go index 825d432de2be..eabfcbc6daa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go index a7550d92bb07..2328ee95ee7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_get.go @@ -45,7 +45,6 @@ func (c IdentityProviderClient) Get(ctx context.Context, id IdentityProviderId) var model IdentityProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go index 284d5e3aa2ba..0f370b89eafa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_listsecrets.go @@ -46,7 +46,6 @@ func (c IdentityProviderClient) ListSecrets(ctx context.Context, id IdentityProv var model ClientSecretContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go index ac8db539b332..92a7c2f88183 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c IdentityProviderClient) Update(ctx context.Context, id IdentityProviderI var model IdentityProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go index c27444a14dae..8db08fc6b424 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/identityprovider/version.go @@ -1,12 +1,10 @@ package identityprovider -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/identityprovider/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/identityprovider/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md index 12d55208b07c..ac414c468449 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger` Documentation -The `logger` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `logger` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "loggerIdValue") +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") payload := logger.LoggerContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "loggerIdValue") +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") read, err := client.Delete(ctx, id, logger.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "loggerIdValue") +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "loggerIdValue") +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := logger.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := logger.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, logger.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, logger.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "loggerIdValue") +id := logger.NewLoggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "loggerId") payload := logger.LoggerUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go index c7b58012a846..2ecf8e827204 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/client.go @@ -15,7 +15,7 @@ type LoggerClient struct { } func NewLoggerClientWithBaseURI(sdkApi sdkEnv.Api) (*LoggerClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "logger", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "logger", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LoggerClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go index ebf285cefcaa..0a20a5185879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_logger.go @@ -44,7 +44,7 @@ func ParseLoggerID(input string) (*LoggerId, error) { } id := LoggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLoggerIDInsensitively(input string) (*LoggerId, error) { } id := LoggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LoggerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticLoggers", "loggers", "loggers"), - resourceids.UserSpecifiedSegment("loggerId", "loggerIdValue"), + resourceids.UserSpecifiedSegment("loggerId", "loggerId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go index e5a5d44be9ea..f8754321eebb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go index b1a476b3cf91..3430cb9dd771 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c LoggerClient) CreateOrUpdate(ctx context.Context, id LoggerId, input Log var model LoggerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go index d1edc7304d61..3465b8ec8298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go index dd5216620ead..7a6f1ba10d61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_get.go @@ -45,7 +45,6 @@ func (c LoggerClient) Get(ctx context.Context, id LoggerId) (result GetOperation var model LoggerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go index 3765ffa1f125..d930656f2675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go index e7491dd03c29..669803305568 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c LoggerClient) Update(ctx context.Context, id LoggerId, input LoggerUpdat var model LoggerContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go index 408041bafe7d..ce5ef56abb34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/logger/version.go @@ -1,12 +1,10 @@ package logger -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/logger/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/logger/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md index 8052dc0d8934..001070078a03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue` Documentation -The `namedvalue` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `namedvalue` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") payload := namedvalue.NamedValueCreateContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, namedvalue.DefaultCrea ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.Delete(ctx, id, namedvalue.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := namedvalue.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, namedvalue.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, namedvalue.DefaultListByServiceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") read, err := client.ListValue(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") if err := client.RefreshSecretThenPoll(ctx, id); err != nil { // handle the error @@ -134,7 +134,7 @@ if err := client.RefreshSecretThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "namedValueIdValue") +id := namedvalue.NewNamedValueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "namedValueId") payload := namedvalue.NamedValueUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go index 9bc64e690ca9..043c376438d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/client.go @@ -15,7 +15,7 @@ type NamedValueClient struct { } func NewNamedValueClientWithBaseURI(sdkApi sdkEnv.Api) (*NamedValueClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namedvalue", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namedvalue", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamedValueClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go index 960d341eb81f..2fda80b77d40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_namedvalue.go @@ -44,7 +44,7 @@ func ParseNamedValueID(input string) (*NamedValueId, error) { } id := NamedValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNamedValueIDInsensitively(input string) (*NamedValueId, error) { } id := NamedValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NamedValueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticNamedValues", "namedValues", "namedValues"), - resourceids.UserSpecifiedSegment("namedValueId", "namedValueIdValue"), + resourceids.UserSpecifiedSegment("namedValueId", "namedValueId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go index 3e71ff3a6f08..8ac3d2478fc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go index 85ad5426efe9..2d71d51b1cca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go index f47f9ad5955e..d071bb811bfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go index b4f6fc019604..208dc6dcff41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_get.go @@ -45,7 +45,6 @@ func (c NamedValueClient) Get(ctx context.Context, id NamedValueId) (result GetO var model NamedValueContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go index c484c2362668..328935f3ddb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listbyservice.go @@ -42,6 +42,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go index 80e6212cce79..010f8359421a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_listvalue.go @@ -46,7 +46,6 @@ func (c NamedValueClient) ListValue(ctx context.Context, id NamedValueId) (resul var model NamedValueSecretContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go index 0bb9dff48119..a22327f3f7a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go index 3d6d7a943e78..efe25294c3d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/namedvalue/version.go @@ -1,12 +1,10 @@ package namedvalue -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namedvalue/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namedvalue/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md index 8c520fd24464..443c7d754609 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail` Documentation -The `notificationrecipientemail` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `notificationrecipientemail` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "recipientEmailValue") +id := notificationrecipientemail.NewRecipientEmailID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "email") read, err := client.Delete(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientemail.NewNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher") +id := notificationrecipientemail.NewNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher") // alternatively `client.ListByNotification(ctx, id)` can be used to do batched pagination items, err := client.ListByNotificationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/client.go index 9975fccb8502..f9007de8d12a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/client.go @@ -15,7 +15,7 @@ type NotificationRecipientEmailClient struct { } func NewNotificationRecipientEmailClientWithBaseURI(sdkApi sdkEnv.Api) (*NotificationRecipientEmailClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "notificationrecipientemail", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "notificationrecipientemail", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NotificationRecipientEmailClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go index 85bab8ef7522..465d67ae4b11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_notification.go @@ -44,7 +44,7 @@ func ParseNotificationID(input string) (*NotificationId, error) { } id := NotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNotificationIDInsensitively(input string) (*NotificationId, error) { } id := NotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id NotificationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go index ed228835ce6d..3601ab09acea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/id_recipientemail.go @@ -46,7 +46,7 @@ func ParseRecipientEmailID(input string) (*RecipientEmailId, error) { } id := RecipientEmailId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRecipientEmailIDInsensitively(input string) (*RecipientEmailId, error) } id := RecipientEmailId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,11 +135,11 @@ func (id RecipientEmailId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), resourceids.StaticSegment("staticRecipientEmails", "recipientEmails", "recipientEmails"), - resourceids.UserSpecifiedSegment("recipientEmailName", "recipientEmailValue"), + resourceids.UserSpecifiedSegment("recipientEmailName", "email"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go index c9ff8f4f049b..204db2f61d90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/method_createorupdate.go @@ -46,7 +46,6 @@ func (c NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Context, id var model RecipientEmailContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go index db66592fabb1..78632e4fae43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientemail/version.go @@ -1,12 +1,10 @@ package notificationrecipientemail -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/notificationrecipientemail/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/notificationrecipientemail/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md index 4a929ac0a403..50af88346932 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser` Documentation -The `notificationrecipientuser` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `notificationrecipientuser` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "userId") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "userId") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher", "userIdValue") +id := notificationrecipientuser.NewRecipientUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher", "userId") read, err := client.Delete(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := notificationrecipientuser.NewNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "AccountClosedPublisher") +id := notificationrecipientuser.NewNotificationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "AccountClosedPublisher") // alternatively `client.ListByNotification(ctx, id)` can be used to do batched pagination items, err := client.ListByNotificationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/client.go index 3049dccc74b0..28fb21100d55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/client.go @@ -15,7 +15,7 @@ type NotificationRecipientUserClient struct { } func NewNotificationRecipientUserClientWithBaseURI(sdkApi sdkEnv.Api) (*NotificationRecipientUserClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "notificationrecipientuser", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "notificationrecipientuser", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NotificationRecipientUserClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go index 525816f0e3bc..d1fc97975c68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_notification.go @@ -44,7 +44,7 @@ func ParseNotificationID(input string) (*NotificationId, error) { } id := NotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNotificationIDInsensitively(input string) (*NotificationId, error) { } id := NotificationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id NotificationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go index 1c6e88f7af0b..84a04f2cb4eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/id_recipientuser.go @@ -46,7 +46,7 @@ func ParseRecipientUserID(input string) (*RecipientUserId, error) { } id := RecipientUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRecipientUserIDInsensitively(input string) (*RecipientUserId, error) { } id := RecipientUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,11 +135,11 @@ func (id RecipientUserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticNotifications", "notifications", "notifications"), resourceids.ConstantSegment("notificationName", PossibleValuesForNotificationName(), "AccountClosedPublisher"), resourceids.StaticSegment("staticRecipientUsers", "recipientUsers", "recipientUsers"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go index 0736b330824d..8cdb56c55218 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/method_createorupdate.go @@ -46,7 +46,6 @@ func (c NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context, id var model RecipientUserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go index 58f6ab4a4751..960d2291ef1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/notificationrecipientuser/version.go @@ -1,12 +1,10 @@ package notificationrecipientuser -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/notificationrecipientuser/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/notificationrecipientuser/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md index 3e3b0f0de8d2..6e198507d4b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider` Documentation -The `openidconnectprovider` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `openidconnectprovider` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") payload := openidconnectprovider.OpenidConnectProviderContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") read, err := client.Delete(ctx, id, openidconnectprovider.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openidconnectprovider.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := openidconnectprovider.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, openidconnectprovider.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, openidconnectprovider.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "openidConnectProviderValue") +id := openidconnectprovider.NewOpenidConnectProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "opid") payload := openidconnectprovider.OpenidConnectProviderUpdateContract{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go index 6b2113dfc3d4..01917915c801 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/client.go @@ -15,7 +15,7 @@ type OpenidConnectProviderClient struct { } func NewOpenidConnectProviderClientWithBaseURI(sdkApi sdkEnv.Api) (*OpenidConnectProviderClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "openidconnectprovider", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "openidconnectprovider", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OpenidConnectProviderClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go index b1e20b393885..953e1cc90550 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_openidconnectprovider.go @@ -44,7 +44,7 @@ func ParseOpenidConnectProviderID(input string) (*OpenidConnectProviderId, error } id := OpenidConnectProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOpenidConnectProviderIDInsensitively(input string) (*OpenidConnectProv } id := OpenidConnectProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OpenidConnectProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticOpenidConnectProviders", "openidConnectProviders", "openidConnectProviders"), - resourceids.UserSpecifiedSegment("openidConnectProviderName", "openidConnectProviderValue"), + resourceids.UserSpecifiedSegment("openidConnectProviderName", "opid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go index 992d25958028..a56d404b1f6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go index ab5c53bdaa62..61c01cf6b963 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c OpenidConnectProviderClient) CreateOrUpdate(ctx context.Context, id Open var model OpenidConnectProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go index d434f5eff617..f254a016bd7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go index 642a146fa5f8..216dd2c005c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_get.go @@ -45,7 +45,6 @@ func (c OpenidConnectProviderClient) Get(ctx context.Context, id OpenidConnectPr var model OpenidConnectProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go index a4b2de8c3dca..5fad44984c93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go index 39b0cbb38573..99cf943206fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_listsecrets.go @@ -46,7 +46,6 @@ func (c OpenidConnectProviderClient) ListSecrets(ctx context.Context, id OpenidC var model ClientSecretContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go index fc095d745c7d..2f800589ad01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c OpenidConnectProviderClient) Update(ctx context.Context, id OpenidConnec var model OpenidConnectProviderContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go index 186262c4c638..bc4a0c03bcac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/openidconnectprovider/version.go @@ -1,12 +1,10 @@ package openidconnectprovider -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/openidconnectprovider/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/openidconnectprovider/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md index 1920cd0a6d7d..b35903b5b052 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy` Documentation -The `policy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `policy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := policy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Delete(ctx, id, policy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id, policy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policy.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id)` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go index 216d1f1ff33a..d95ac216bf67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/client.go @@ -15,7 +15,7 @@ type PolicyClient struct { } func NewPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "policy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "policy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go index 509f96c5a3f3..ac514423a968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go index 3bfe15197314..bc08c50ab8d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input Po var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go index 4b39d1a4a2d5..f3ab4b889c95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go index 5a9a428f5ec5..10e71f38f953 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperatio var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go index 4455d39bfa91..295a93e19976 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policy/version.go @@ -1,12 +1,10 @@ package policy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/policy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/policy/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md index 5aaf6a77d0bc..b73078f2d351 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment` Documentation -The `policyfragment` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `policyfragment` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "id") payload := policyfragment.PolicyFragmentContract{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, policyfragment.Default ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "id") read, err := client.Delete(ctx, id, policyfragment.DefaultDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "id") read, err := client.Get(ctx, id, policyfragment.DefaultGetOperationOptions()) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "id") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := policyfragment.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, policyfragment.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, policyfragment.DefaultListByServiceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "policyFragmentValue") +id := policyfragment.NewPolicyFragmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "id") // alternatively `client.ListReferences(ctx, id, policyfragment.DefaultListReferencesOperationOptions())` can be used to do batched pagination items, err := client.ListReferencesComplete(ctx, id, policyfragment.DefaultListReferencesOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go index 3dbe1d43bb76..d14dc4859918 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/client.go @@ -15,7 +15,7 @@ type PolicyFragmentClient struct { } func NewPolicyFragmentClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyFragmentClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "policyfragment", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "policyfragment", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PolicyFragmentClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go index 3737ed73101b..52c258c9e81f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_policyfragment.go @@ -44,7 +44,7 @@ func ParsePolicyFragmentID(input string) (*PolicyFragmentId, error) { } id := PolicyFragmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePolicyFragmentIDInsensitively(input string) (*PolicyFragmentId, error) } id := PolicyFragmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PolicyFragmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticPolicyFragments", "policyFragments", "policyFragments"), - resourceids.UserSpecifiedSegment("policyFragmentName", "policyFragmentValue"), + resourceids.UserSpecifiedSegment("policyFragmentName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go index e0ab31ef1207..7350808ee976 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go index 03cb7db852a2..6ebf334fa79b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go index 8a0d95204ce0..219af78163c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go index 3aa646fafddb..12ac1b4fbf31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, opti var model PolicyFragmentContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go index e9fcb07b8961..c6ab48e11acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listbyservice.go @@ -42,6 +42,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go index 37993c71c0d6..d513c06b276c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/method_listreferences.go @@ -40,6 +40,7 @@ func (o ListReferencesOperationOptions) ToHeaders() *client.Headers { func (o ListReferencesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go index 80d940bd87e9..54d49e91a399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/policyfragment/version.go @@ -1,12 +1,10 @@ package policyfragment -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/policyfragment/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/policyfragment/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md index 81ce8c2d03e2..789659867684 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product` Documentation -The `product` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `product` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := product.ProductContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Delete(ctx, id, product.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := product.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, product.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, product.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := product.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := product.ProductUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/client.go index 20069da6c204..787eaa28e4fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/client.go @@ -15,7 +15,7 @@ type ProductClient struct { } func NewProductClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "product", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "product", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProductClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go index 95f18115dceb..09b4e3daae5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_product.go @@ -44,7 +44,7 @@ func ParseProductID(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProductIDInsensitively(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go index bb0983ca2dff..e29cb7e2a90d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go index 2baf83fb5056..07bc7cd0e1c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ProductClient) CreateOrUpdate(ctx context.Context, id ProductId, input P var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go index afc7d184b70a..28d5b7bdd7f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go index b343c0f286cc..65af42031e84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_get.go @@ -45,7 +45,6 @@ func (c ProductClient) Get(ctx context.Context, id ProductId) (result GetOperati var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go index b1f50c8e42d3..9b47fa137095 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_listbyservice.go @@ -43,6 +43,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go index fc36ecd53535..a6be0dfec29b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ProductClient) Update(ctx context.Context, id ProductId, input ProductUp var model ProductContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go index dd6f288b59ce..a8c41b04abaf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/product/version.go @@ -1,12 +1,10 @@ package product -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/product/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/product/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md index 0f3db930a6b7..cf88a922e0ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi` Documentation -The `productapi` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `productapi` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "apiIdValue") +id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "apiId") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "apiIdValue") +id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "apiId") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "apiIdValue") +id := productapi.NewProductApiID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "apiId") read, err := client.Delete(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productapi.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productapi.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") // alternatively `client.ListByProduct(ctx, id, productapi.DefaultListByProductOperationOptions())` can be used to do batched pagination items, err := client.ListByProductComplete(ctx, id, productapi.DefaultListByProductOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go index 1e0b184ff579..edeb30a1f70c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/client.go @@ -15,7 +15,7 @@ type ProductApiClient struct { } func NewProductApiClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductApiClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "productapi", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "productapi", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProductApiClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go index 76244a5f127c..f7eece5e46e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_product.go @@ -44,7 +44,7 @@ func ParseProductID(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProductIDInsensitively(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go index ac92947ceafb..855f6dba3045 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/id_productapi.go @@ -46,7 +46,7 @@ func ParseProductApiID(input string) (*ProductApiId, error) { } id := ProductApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseProductApiIDInsensitively(input string) (*ProductApiId, error) { } id := ProductApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ProductApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), resourceids.StaticSegment("staticApis", "apis", "apis"), - resourceids.UserSpecifiedSegment("apiId", "apiIdValue"), + resourceids.UserSpecifiedSegment("apiId", "apiId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go index e27e2ed31a59..afa4d070d9d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_createorupdate.go @@ -46,7 +46,6 @@ func (c ProductApiClient) CreateOrUpdate(ctx context.Context, id ProductApiId) ( var model ApiContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go index c06016675dd7..4327b569ea69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/method_listbyproduct.go @@ -41,6 +41,7 @@ func (o ListByProductOperationOptions) ToHeaders() *client.Headers { func (o ListByProductOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go index 85dff7bdb52d..14b7c7c6cdc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productapi/version.go @@ -1,12 +1,10 @@ package productapi -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/productapi/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/productapi/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md index f86be84f8998..b18659d73776 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup` Documentation -The `productgroup` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `productgroup` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "groupIdValue") +id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "groupId") read, err := client.CheckEntityExists(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "groupIdValue") +id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "groupId") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "groupIdValue") +id := productgroup.NewProductGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "groupId") read, err := client.Delete(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productgroup.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productgroup.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") // alternatively `client.ListByProduct(ctx, id, productgroup.DefaultListByProductOperationOptions())` can be used to do batched pagination items, err := client.ListByProductComplete(ctx, id, productgroup.DefaultListByProductOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go index beb9159e3e37..2aa816ea14d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/client.go @@ -15,7 +15,7 @@ type ProductGroupClient struct { } func NewProductGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductGroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "productgroup", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "productgroup", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProductGroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go index df7d9abbfcda..597425a71af7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_product.go @@ -44,7 +44,7 @@ func ParseProductID(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProductIDInsensitively(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go index 7ede94a7c7f9..0b530eb6522c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/id_productgroup.go @@ -46,7 +46,7 @@ func ParseProductGroupID(input string) (*ProductGroupId, error) { } id := ProductGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseProductGroupIDInsensitively(input string) (*ProductGroupId, error) { } id := ProductGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ProductGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), resourceids.StaticSegment("staticGroups", "groups", "groups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go index 77cf8dbf10ee..a518c2d0404b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_createorupdate.go @@ -46,7 +46,6 @@ func (c ProductGroupClient) CreateOrUpdate(ctx context.Context, id ProductGroupI var model GroupContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go index 902f45c4f733..fbee2e7567d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/method_listbyproduct.go @@ -41,6 +41,7 @@ func (o ListByProductOperationOptions) ToHeaders() *client.Headers { func (o ListByProductOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go index 6851526672a9..5b8f7b93aba8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productgroup/version.go @@ -1,12 +1,10 @@ package productgroup -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/productgroup/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/productgroup/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md index cdedda4c3ef1..49146f6a2c17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy` Documentation -The `productpolicy` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `productpolicy` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") payload := productpolicy.PolicyContract{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Delete(ctx, id, productpolicy.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.Get(ctx, id, productpolicy.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := productpolicy.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") // alternatively `client.ListByProduct(ctx, id)` can be used to do batched pagination items, err := client.ListByProductComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/client.go index e6887574aaad..a4a1d0fa4746 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/client.go @@ -15,7 +15,7 @@ type ProductPolicyClient struct { } func NewProductPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductPolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "productpolicy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "productpolicy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProductPolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go index 1b80a823c261..221450ee3a50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/id_product.go @@ -44,7 +44,7 @@ func ParseProductID(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProductIDInsensitively(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go index 923d04859e14..ae0329209dcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ProductPolicyClient) CreateOrUpdate(ctx context.Context, id ProductId, i var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go index 36e74215a96f..5cf9ef830f42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go index b96d87150c2b..579a315dc9ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ProductPolicyClient) Get(ctx context.Context, id ProductId, options GetO var model PolicyContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go index f0f635d40fa2..945e48a03158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/productpolicy/version.go @@ -1,12 +1,10 @@ package productpolicy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/productpolicy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/productpolicy/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md index 0dda3891e262..59dcf2f6363f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag` Documentation -The `producttag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `producttag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "tagIdValue") +id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "tagId") read, err := client.TagAssignToProduct(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "tagIdValue") +id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "tagId") read, err := client.TagDetachFromProduct(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "tagIdValue") +id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "tagId") read, err := client.TagGetByProduct(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue", "tagIdValue") +id := producttag.NewProductTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId", "tagId") read, err := client.TagGetEntityStateByProduct(ctx, id) if err != nil { @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := producttag.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "productIdValue") +id := producttag.NewProductID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "productId") // alternatively `client.TagListByProduct(ctx, id, producttag.DefaultTagListByProductOperationOptions())` can be used to do batched pagination items, err := client.TagListByProductComplete(ctx, id, producttag.DefaultTagListByProductOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go index 720b81ec2d88..5602a7a654f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/client.go @@ -15,7 +15,7 @@ type ProductTagClient struct { } func NewProductTagClientWithBaseURI(sdkApi sdkEnv.Api) (*ProductTagClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "producttag", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "producttag", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProductTagClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go index b7000f83b74c..3e792c49bcd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_product.go @@ -44,7 +44,7 @@ func ParseProductID(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProductIDInsensitively(input string) (*ProductId, error) { } id := ProductId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProductId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go index d1f16bd16861..697a100e0c36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/id_producttag.go @@ -46,7 +46,7 @@ func ParseProductTagID(input string) (*ProductTagId, error) { } id := ProductTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseProductTagIDInsensitively(input string) (*ProductTagId, error) { } id := ProductTagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ProductTagId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProducts", "products", "products"), - resourceids.UserSpecifiedSegment("productId", "productIdValue"), + resourceids.UserSpecifiedSegment("productId", "productId"), resourceids.StaticSegment("staticTags", "tags", "tags"), - resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + resourceids.UserSpecifiedSegment("tagId", "tagId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go index 87bb16caf5ef..5cbd240711df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_tagassigntoproduct.go @@ -46,7 +46,6 @@ func (c ProductTagClient) TagAssignToProduct(ctx context.Context, id ProductTagI var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go index 1e5ed7413019..1742c0e97890 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taggetbyproduct.go @@ -45,7 +45,6 @@ func (c ProductTagClient) TagGetByProduct(ctx context.Context, id ProductTagId) var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go index 4e0721b94fcd..f55c45480aea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/method_taglistbyproduct.go @@ -41,6 +41,7 @@ func (o TagListByProductOperationOptions) ToHeaders() *client.Headers { func (o TagListByProductOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go index b970ed92f242..0c2b48b1f7e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/producttag/version.go @@ -1,12 +1,10 @@ package producttag -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/producttag/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/producttag/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md index e3c003e29725..6f3b64169933 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema` Documentation -The `schema` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `schema` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "schemaIdValue") +id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "schemaId") payload := schema.GlobalSchemaContract{ // ... @@ -41,7 +41,7 @@ if err := client.GlobalSchemaCreateOrUpdateThenPoll(ctx, id, payload, schema.Def ```go ctx := context.TODO() -id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "schemaIdValue") +id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "schemaId") read, err := client.GlobalSchemaDelete(ctx, id, schema.DefaultGlobalSchemaDeleteOperationOptions()) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "schemaIdValue") +id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "schemaId") read, err := client.GlobalSchemaGet(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "schemaIdValue") +id := schema.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "schemaId") read, err := client.GlobalSchemaGetEntityTag(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schema.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := schema.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.GlobalSchemaListByService(ctx, id, schema.DefaultGlobalSchemaListByServiceOperationOptions())` can be used to do batched pagination items, err := client.GlobalSchemaListByServiceComplete(ctx, id, schema.DefaultGlobalSchemaListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go index 3d872ecf7a10..dd9c100ba138 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/client.go @@ -15,7 +15,7 @@ type SchemaClient struct { } func NewSchemaClientWithBaseURI(sdkApi sdkEnv.Api) (*SchemaClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "schema", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "schema", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SchemaClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go index bb6238dd7677..addf512994b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_schema.go @@ -44,7 +44,7 @@ func ParseSchemaID(input string) (*SchemaId, error) { } id := SchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSchemaIDInsensitively(input string) (*SchemaId, error) { } id := SchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SchemaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), - resourceids.UserSpecifiedSegment("schemaId", "schemaIdValue"), + resourceids.UserSpecifiedSegment("schemaId", "schemaId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go index 11419aeb8358..49b4f04d6399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go index 4f0f7c321a1c..ef94d3f3273f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemacreateorupdate.go @@ -39,6 +39,7 @@ func (o GlobalSchemaCreateOrUpdateOperationOptions) ToHeaders() *client.Headers func (o GlobalSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go index 234fcfcb78f0..f170324bf05d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemadelete.go @@ -35,6 +35,7 @@ func (o GlobalSchemaDeleteOperationOptions) ToHeaders() *client.Headers { func (o GlobalSchemaDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go index d2ec4344b209..6118374682a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemaget.go @@ -45,7 +45,6 @@ func (c SchemaClient) GlobalSchemaGet(ctx context.Context, id SchemaId) (result var model GlobalSchemaContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go index 7797c6a6b8f3..f25edc948054 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/method_globalschemalistbyservice.go @@ -41,6 +41,7 @@ func (o GlobalSchemaListByServiceOperationOptions) ToHeaders() *client.Headers { func (o GlobalSchemaListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go index 57e9da5514de..7bd291c3e35d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/schema/version.go @@ -1,12 +1,10 @@ package schema -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/schema/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/schema/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md index 941f48319440..ab679263ad4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings` Documentation -The `signinsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `signinsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := signinsettings.PortalSigninSettings{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signinsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := signinsettings.PortalSigninSettings{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go index a21dfcdddd25..0426e9303e86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/client.go @@ -15,7 +15,7 @@ type SignInSettingsClient struct { } func NewSignInSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*SignInSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "signinsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "signinsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SignInSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go index fd18eb71e2fa..bbd2ffdf445b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go index 7354010fc895..6f35914bbe10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c SignInSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, var model PortalSigninSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go index 1de8b5e59633..35d80bf82b15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_get.go @@ -46,7 +46,6 @@ func (c SignInSettingsClient) Get(ctx context.Context, id ServiceId) (result Get var model PortalSigninSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go index 1c0af5a35085..499592b651b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/method_update.go @@ -35,6 +35,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go index 1fbb51790498..563790df412f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signinsettings/version.go @@ -1,12 +1,10 @@ package signinsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/signinsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/signinsettings/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md index 07fbd7362af5..61a326bfea0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings` Documentation -The `signupsettings` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `signupsettings` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := signupsettings.PortalSignupSettings{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := signupsettings.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := signupsettings.PortalSignupSettings{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go index 2d9452823e32..3a4f6ae33339 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/client.go @@ -15,7 +15,7 @@ type SignUpSettingsClient struct { } func NewSignUpSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*SignUpSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "signupsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "signupsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SignUpSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go index eeefe5b42b71..4a831ee0274f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go index 8d57367d2f52..371f04778407 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c SignUpSettingsClient) CreateOrUpdate(ctx context.Context, id ServiceId, var model PortalSignupSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go index e90626433301..03dc9774b357 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_get.go @@ -46,7 +46,6 @@ func (c SignUpSettingsClient) Get(ctx context.Context, id ServiceId) (result Get var model PortalSignupSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go index 8d8918d33247..c86348ae580e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/method_update.go @@ -35,6 +35,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go index fc08690bf0ce..10bc94f03ed9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/signupsettings/version.go @@ -1,12 +1,10 @@ package signupsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/signupsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/signupsettings/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md index 6c397fba7b56..2fee6a7fc047 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription` Documentation -The `subscription` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `subscription` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") payload := subscription.SubscriptionCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.Delete(ctx, id, subscription.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := subscription.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.List(ctx, id, subscription.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, subscription.DefaultListOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.RegeneratePrimaryKey(ctx, id) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") read, err := client.RegenerateSecondaryKey(ctx, id) if err != nil { @@ -158,7 +158,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "subscriptionValue") +id := subscription.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "sid") payload := subscription.SubscriptionUpdateParameters{ // ... @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscription.NewUserSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue", "subscriptionValue") +id := subscription.NewUserSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId", "sid") read, err := client.UserSubscriptionGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/client.go index 9885434f9ddf..b5f97131f6f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/client.go @@ -15,7 +15,7 @@ type SubscriptionClient struct { } func NewSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "subscription", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "subscription", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SubscriptionClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go index eae18b835239..38e290386004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go index 92e8dcc65f15..a0f82191a95f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_subscriptions2.go @@ -44,7 +44,7 @@ func ParseSubscriptions2ID(input string) (*Subscriptions2Id, error) { } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSubscriptions2IDInsensitively(input string) (*Subscriptions2Id, error) } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id Subscriptions2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "sid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go index 07412cdb651d..3a5d835af6a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/id_usersubscriptions2.go @@ -46,7 +46,7 @@ func ParseUserSubscriptions2ID(input string) (*UserSubscriptions2Id, error) { } id := UserSubscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseUserSubscriptions2IDInsensitively(input string) (*UserSubscriptions2Id } id := UserSubscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id UserSubscriptions2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticUsers", "users", "users"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "sid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go index 84f04d880d01..b8e289d53aef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_createorupdate.go @@ -38,6 +38,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -86,7 +87,6 @@ func (c SubscriptionClient) CreateOrUpdate(ctx context.Context, id Subscriptions var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go index e3c31885a752..365f71a2c630 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go index 9a57c676f8b6..0156f9f655a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_get.go @@ -45,7 +45,6 @@ func (c SubscriptionClient) Get(ctx context.Context, id Subscriptions2Id) (resul var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go index 2e9d96e04731..8b1e4d1455b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go index 579b90282a88..ce51c65282cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_listsecrets.go @@ -46,7 +46,6 @@ func (c SubscriptionClient) ListSecrets(ctx context.Context, id Subscriptions2Id var model SubscriptionKeysContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go index 635071e41ca8..04305d82d79b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_update.go @@ -38,6 +38,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -85,7 +86,6 @@ func (c SubscriptionClient) Update(ctx context.Context, id Subscriptions2Id, inp var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go index 4323e0a04c6c..9c22a5becddb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/method_usersubscriptionget.go @@ -45,7 +45,6 @@ func (c SubscriptionClient) UserSubscriptionGet(ctx context.Context, id UserSubs var model SubscriptionContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go index 4767e08d4b9e..fb6e92f2ce05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/subscription/version.go @@ -1,12 +1,10 @@ package subscription -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subscription/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subscription/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md index 02a7c8063c19..f725da684b7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag` Documentation -The `tag` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `tag` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue") +id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId") payload := tag.TagCreateUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue") +id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId") read, err := client.Delete(ctx, id, tag.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue") +id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue") +id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId") read, err := client.GetEntityState(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tag.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := tag.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, tag.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, tag.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "tagIdValue") +id := tag.NewTagID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "tagId") payload := tag.TagCreateUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/client.go index e97e5adc95e1..9450459e77c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/client.go @@ -15,7 +15,7 @@ type TagClient struct { } func NewTagClientWithBaseURI(sdkApi sdkEnv.Api) (*TagClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tag", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tag", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TagClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go index c2136f64b3e3..cc6c748c4780 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go index 568503a639c9..0671bacfa69f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/id_tag.go @@ -44,7 +44,7 @@ func ParseTagID(input string) (*TagId, error) { } id := TagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTagIDInsensitively(input string) (*TagId, error) { } id := TagId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TagId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticTags", "tags", "tags"), - resourceids.UserSpecifiedSegment("tagId", "tagIdValue"), + resourceids.UserSpecifiedSegment("tagId", "tagId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go index 9494659a7947..5839e98d0818 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c TagClient) CreateOrUpdate(ctx context.Context, id TagId, input TagCreate var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go index 83335d794bd7..ae058a002926 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go index 8395e2cb1b17..ebda46b567ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_get.go @@ -45,7 +45,6 @@ func (c TagClient) Get(ctx context.Context, id TagId) (result GetOperationRespon var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go index efb001aaa9c5..e7afb4202b12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_listbyservice.go @@ -42,6 +42,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go index 8ee0391b4d49..3aba0116fd3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c TagClient) Update(ctx context.Context, id TagId, input TagCreateUpdatePa var model TagContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go index 4963af1efd33..e188f9d3b748 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tag/version.go @@ -1,12 +1,10 @@ package tag -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tag/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tag/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md index f00d75f29001..3fbbcf1e039c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess` Documentation -The `tenantaccess` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `tenantaccess` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") payload := tenantaccess.AccessInformationCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := tenantaccess.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, tenantaccess.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, tenantaccess.DefaultListByServiceOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") read, err := client.RegeneratePrimaryKey(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") read, err := client.RegenerateSecondaryKey(ctx, id) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "access") +id := tenantaccess.NewAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "access") payload := tenantaccess.AccessInformationUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go index d36cd27765c2..131dd7222821 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/client.go @@ -15,7 +15,7 @@ type TenantAccessClient struct { } func NewTenantAccessClientWithBaseURI(sdkApi sdkEnv.Api) (*TenantAccessClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tenantaccess", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tenantaccess", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TenantAccessClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go index 927925f0366f..41d32e6769c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_access.go @@ -44,7 +44,7 @@ func ParseAccessID(input string) (*AccessId, error) { } id := AccessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessIDInsensitively(input string) (*AccessId, error) { } id := AccessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id AccessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticTenant", "tenant", "tenant"), resourceids.ConstantSegment("accessName", PossibleValuesForAccessIdName(), "access"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go index 6dbbad412637..745b4128b115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go index 73ced417651b..0cd71b7a599c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_create.go @@ -36,6 +36,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c TenantAccessClient) Create(ctx context.Context, id AccessId, input Acces var model AccessInformationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go index 882982635109..832e64d03c06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_get.go @@ -45,7 +45,6 @@ func (c TenantAccessClient) Get(ctx context.Context, id AccessId) (result GetOpe var model AccessInformationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go index 541de46f8915..6f51efcc9b28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listbyservice.go @@ -39,6 +39,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go index 237989384dee..12e385308911 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_listsecrets.go @@ -46,7 +46,6 @@ func (c TenantAccessClient) ListSecrets(ctx context.Context, id AccessId) (resul var model AccessInformationSecretsContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go index 73793de2965d..a01c3d4829c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c TenantAccessClient) Update(ctx context.Context, id AccessId, input Acces var model AccessInformationContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go index 2d944dfa3c58..39c2a8b01e24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/tenantaccess/version.go @@ -1,12 +1,10 @@ package tenantaccess -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tenantaccess/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tenantaccess/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md index ad422c016eb7..3f3f38a56cc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user` Documentation -The `user` SDK allows for interaction with the Azure Resource Manager Service `apimanagement` (API Version `2022-08-01`). +The `user` SDK allows for interaction with Azure Resource Manager `apimanagement` (API Version `2022-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") +id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId") payload := user.UserCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") +id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId") read, err := client.Delete(ctx, id, user.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") +id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") +id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId") read, err := client.GetEntityTag(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := user.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := user.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListByService(ctx, id, user.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, user.DefaultListByServiceOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue", "userIdValue") +id := user.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "userId") payload := user.UserUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/client.go index 3d1a0eb8bf35..7f755c17018b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/client.go @@ -15,7 +15,7 @@ type UserClient struct { } func NewUserClientWithBaseURI(sdkApi sdkEnv.Api) (*UserClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "user", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "user", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UserClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go index 4793d7dba1c7..074aad034db7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go index 46e79677949a..542a631e99f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/id_user.go @@ -44,7 +44,7 @@ func ParseUserID(input string) (*UserId, error) { } id := UserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUserIDInsensitively(input string) (*UserId, error) { } id := UserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApiManagement", "Microsoft.ApiManagement", "Microsoft.ApiManagement"), resourceids.StaticSegment("staticService", "service", "service"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticUsers", "users", "users"), - resourceids.UserSpecifiedSegment("userId", "userIdValue"), + resourceids.UserSpecifiedSegment("userId", "userId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go index b1cf998602da..3d85a55770ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_createorupdate.go @@ -37,6 +37,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c UserClient) CreateOrUpdate(ctx context.Context, id UserId, input UserCre var model UserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go index b5b2112ac40d..80b5cf93034b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_get.go index 1237761289c4..e7fc56ebb3ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_get.go @@ -45,7 +45,6 @@ func (c UserClient) Get(ctx context.Context, id UserId) (result GetOperationResp var model UserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go index e098057b2462..2fc7fb348997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_listbyservice.go @@ -42,6 +42,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go index 11353f91240c..d0628f53b8d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c UserClient) Update(ctx context.Context, id UserId, input UserUpdateParam var model UserContract result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go index 7a67a5894cd3..818040a3693c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/apimanagement/2022-08-01/user/version.go @@ -1,12 +1,10 @@ package user -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/user/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/user/2022-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md index 01c74d9151cc..abbb21625fa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores` Documentation -The `configurationstores` SDK allows for interaction with the Azure Resource Manager Service `appconfiguration` (API Version `2023-03-01`). +The `configurationstores` SDK allows for interaction with Azure Resource Manager `appconfiguration` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") payload := configurationstores.ConfigurationStore{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") // alternatively `client.ListKeys(ctx, id)` can be used to do batched pagination items, err := client.ListKeysComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") payload := configurationstores.RegenerateKeyParameters{ // ... @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := configurationstores.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") payload := configurationstores.ConfigurationStoreUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/client.go index 9451e19fc2ba..ff9e1adac899 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/client.go @@ -15,7 +15,7 @@ type ConfigurationStoresClient struct { } func NewConfigurationStoresClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationStoresClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationstores", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationstores", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationStoresClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/id_configurationstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/id_configurationstore.go index cce91cb31995..1f9979c2de14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/id_configurationstore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/id_configurationstore.go @@ -42,7 +42,7 @@ func ParseConfigurationStoreID(input string) (*ConfigurationStoreId, error) { } id := ConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConfigurationStoreIDInsensitively(input string) (*ConfigurationStoreId } id := ConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConfigurationStoreId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppConfiguration", "Microsoft.AppConfiguration", "Microsoft.AppConfiguration"), resourceids.StaticSegment("staticConfigurationStores", "configurationStores", "configurationStores"), - resourceids.UserSpecifiedSegment("configurationStoreName", "configurationStoreValue"), + resourceids.UserSpecifiedSegment("configurationStoreName", "configStoreName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_get.go index 58ef2346c30a..cb263277e418 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationStoresClient) Get(ctx context.Context, id ConfigurationStor var model ConfigurationStore result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_regeneratekey.go index f5d731b6036a..a8016707cde9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c ConfigurationStoresClient) RegenerateKey(ctx context.Context, id Configu var model ApiKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/version.go index 8e29fd322feb..8a4590baa9ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/configurationstores/version.go @@ -1,12 +1,10 @@ package configurationstores -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationstores/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationstores/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md index c15622387f12..f42b335db653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores` Documentation -The `deletedconfigurationstores` SDK allows for interaction with the Azure Resource Manager Service `appconfiguration` (API Version `2023-03-01`). +The `deletedconfigurationstores` SDK allows for interaction with Azure Resource Manager `appconfiguration` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedconfigurationstores.NewDeletedConfigurationStoreID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedConfigurationStoreValue") +id := deletedconfigurationstores.NewDeletedConfigurationStoreID("12345678-1234-9876-4563-123456789012", "location", "configStoreName") read, err := client.ConfigurationStoresGetDeleted(ctx, id) if err != nil { @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deletedconfigurationstores.NewDeletedConfigurationStoreID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedConfigurationStoreValue") +id := deletedconfigurationstores.NewDeletedConfigurationStoreID("12345678-1234-9876-4563-123456789012", "location", "configStoreName") if err := client.ConfigurationStoresPurgeDeletedThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/client.go index b7d48c73d7a9..8459076ea82b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/client.go @@ -15,7 +15,7 @@ type DeletedConfigurationStoresClient struct { } func NewDeletedConfigurationStoresClientWithBaseURI(sdkApi sdkEnv.Api) (*DeletedConfigurationStoresClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deletedconfigurationstores", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deletedconfigurationstores", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeletedConfigurationStoresClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/id_deletedconfigurationstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/id_deletedconfigurationstore.go index b28a5cb40acf..cac572bcb19d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/id_deletedconfigurationstore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/id_deletedconfigurationstore.go @@ -42,7 +42,7 @@ func ParseDeletedConfigurationStoreID(input string) (*DeletedConfigurationStoreI } id := DeletedConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedConfigurationStoreIDInsensitively(input string) (*DeletedConfig } id := DeletedConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedConfigurationStoreId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppConfiguration", "Microsoft.AppConfiguration", "Microsoft.AppConfiguration"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedConfigurationStores", "deletedConfigurationStores", "deletedConfigurationStores"), - resourceids.UserSpecifiedSegment("deletedConfigurationStoreName", "deletedConfigurationStoreValue"), + resourceids.UserSpecifiedSegment("deletedConfigurationStoreName", "configStoreName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoresgetdeleted.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoresgetdeleted.go index fe6410865a7f..d652067cfd9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoresgetdeleted.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/method_configurationstoresgetdeleted.go @@ -45,7 +45,6 @@ func (c DeletedConfigurationStoresClient) ConfigurationStoresGetDeleted(ctx cont var model DeletedConfigurationStore result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/version.go index bfaa6b428982..7361ac4f3a5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/deletedconfigurationstores/version.go @@ -1,12 +1,10 @@ package deletedconfigurationstores -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deletedconfigurationstores/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deletedconfigurationstores/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/README.md index b921a61290e0..26dfa44d98ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations` Documentation -The `operations` SDK allows for interaction with the Azure Resource Manager Service `appconfiguration` (API Version `2023-03-01`). +The `operations` SDK allows for interaction with Azure Resource Manager `appconfiguration` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := operations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := operations.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := operations.CheckNameAvailabilityParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/client.go index 304a17c8d483..5afee8af6f71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/client.go @@ -15,7 +15,7 @@ type OperationsClient struct { } func NewOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "operations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "operations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OperationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/id_location.go index c8404ebec58b..c8ec5121b157 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppConfiguration", "Microsoft.AppConfiguration", "Microsoft.AppConfiguration"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_checknameavailability.go index 50fc932303c8..c268f6759dee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c OperationsClient) CheckNameAvailability(ctx context.Context, id commonid var model NameAvailabilityStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_regionalchecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_regionalchecknameavailability.go index 67f2323d26ae..899ce52808e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_regionalchecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/method_regionalchecknameavailability.go @@ -50,7 +50,6 @@ func (c OperationsClient) RegionalCheckNameAvailability(ctx context.Context, id var model NameAvailabilityStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/version.go index 7f02904b82e4..b265a49a6da9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/operations/version.go @@ -1,12 +1,10 @@ package operations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/operations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/operations/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/README.md index 2e4d4d60eb24..c88d9c0724f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas` Documentation -The `replicas` SDK allows for interaction with the Azure Resource Manager Service `appconfiguration` (API Version `2023-03-01`). +The `replicas` SDK allows for interaction with Azure Resource Manager `appconfiguration` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "replicaValue") +id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName", "replicaName") payload := replicas.Replica{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "replicaValue") +id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName", "replicaName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue", "replicaValue") +id := replicas.NewReplicaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName", "replicaName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicas.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationStoreValue") +id := replicas.NewConfigurationStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configStoreName") // alternatively `client.ListByConfigurationStore(ctx, id)` can be used to do batched pagination items, err := client.ListByConfigurationStoreComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/client.go index d971742c1bdc..b494c8a0a7f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/client.go @@ -15,7 +15,7 @@ type ReplicasClient struct { } func NewReplicasClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicas", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicas", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go index f5957bcfb756..6adea53e9da7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_configurationstore.go @@ -42,7 +42,7 @@ func ParseConfigurationStoreID(input string) (*ConfigurationStoreId, error) { } id := ConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConfigurationStoreIDInsensitively(input string) (*ConfigurationStoreId } id := ConfigurationStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConfigurationStoreId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppConfiguration", "Microsoft.AppConfiguration", "Microsoft.AppConfiguration"), resourceids.StaticSegment("staticConfigurationStores", "configurationStores", "configurationStores"), - resourceids.UserSpecifiedSegment("configurationStoreName", "configurationStoreValue"), + resourceids.UserSpecifiedSegment("configurationStoreName", "configStoreName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go index 6bab03ca262d..908443a24d41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/id_replica.go @@ -44,7 +44,7 @@ func ParseReplicaID(input string) (*ReplicaId, error) { } id := ReplicaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicaIDInsensitively(input string) (*ReplicaId, error) { } id := ReplicaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppConfiguration", "Microsoft.AppConfiguration", "Microsoft.AppConfiguration"), resourceids.StaticSegment("staticConfigurationStores", "configurationStores", "configurationStores"), - resourceids.UserSpecifiedSegment("configurationStoreName", "configurationStoreValue"), + resourceids.UserSpecifiedSegment("configurationStoreName", "configStoreName"), resourceids.StaticSegment("staticReplicas", "replicas", "replicas"), - resourceids.UserSpecifiedSegment("replicaName", "replicaValue"), + resourceids.UserSpecifiedSegment("replicaName", "replicaName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/method_get.go index 8ff4aa993a56..5f3813c27fc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/method_get.go @@ -45,7 +45,6 @@ func (c ReplicasClient) Get(ctx context.Context, id ReplicaId) (result GetOperat var model Replica result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/version.go index 198b0d4d213b..e4abf61cac7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appconfiguration/2023-03-01/replicas/version.go @@ -1,12 +1,10 @@ package replicas -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicas/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicas/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/README.md index 01549daf64a8..72cddd1b5ea7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis` Documentation -The `analyticsitemsapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2015-05-01`). +The `analyticsitemsapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2015-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.AnalyticsItemsDelete(ctx, id, analyticsitemsapis.DefaultAnalyticsItemsDeleteOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.AnalyticsItemsGet(ctx, id, analyticsitemsapis.DefaultAnalyticsItemsGetOperationOptions()) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") read, err := client.AnalyticsItemsList(ctx, id, analyticsitemsapis.DefaultAnalyticsItemsListOperationOptions()) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") +id := analyticsitemsapis.NewProviderComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group") payload := analyticsitemsapis.ApplicationInsightsComponentAnalyticsItem{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/client.go index ec47b02ec433..b38c4b120642 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/client.go @@ -15,7 +15,7 @@ type AnalyticsItemsAPIsClient struct { } func NewAnalyticsItemsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*AnalyticsItemsAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "analyticsitemsapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "analyticsitemsapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AnalyticsItemsAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/id_providercomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/id_providercomponent.go index 53f665dee547..6bd23d6235dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/id_providercomponent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/id_providercomponent.go @@ -44,7 +44,7 @@ func ParseProviderComponentID(input string) (*ProviderComponentId, error) { } id := ProviderComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProviderComponentIDInsensitively(input string) (*ProviderComponentId, } id := ProviderComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,7 +121,7 @@ func (id ProviderComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), resourceids.ScopeSegment("scopePath", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go index 33481f530cdd..bd01d1256e1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsdelete.go @@ -34,6 +34,7 @@ func (o AnalyticsItemsDeleteOperationOptions) ToHeaders() *client.Headers { func (o AnalyticsItemsDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go index 85ea3ef457c1..7d65c2f17cf4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsget.go @@ -35,6 +35,7 @@ func (o AnalyticsItemsGetOperationOptions) ToHeaders() *client.Headers { func (o AnalyticsItemsGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsGet(ctx context.Context, id Prov var model ApplicationInsightsComponentAnalyticsItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go index b7714cc6de79..989ab300f727 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemslist.go @@ -36,6 +36,7 @@ func (o AnalyticsItemsListOperationOptions) ToHeaders() *client.Headers { func (o AnalyticsItemsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsList(ctx context.Context, id Pro var model []ApplicationInsightsComponentAnalyticsItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go index 27716237ac25..f718758bbee4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/method_analyticsitemsput.go @@ -34,6 +34,7 @@ func (o AnalyticsItemsPutOperationOptions) ToHeaders() *client.Headers { func (o AnalyticsItemsPutOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c AnalyticsItemsAPIsClient) AnalyticsItemsPut(ctx context.Context, id Prov var model ApplicationInsightsComponentAnalyticsItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/version.go index 0f318bbc6fd9..4c20c0e32901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/analyticsitemsapis/version.go @@ -1,12 +1,10 @@ package analyticsitemsapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/analyticsitemsapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/analyticsitemsapis/2015-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/README.md index 94b5fc6568db..c3d7204eba08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis` Documentation -The `componentapikeysapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2015-05-01`). +The `componentapikeysapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2015-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := componentapikeysapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentapikeysapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := componentapikeysapis.APIKeyRequest{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentapikeysapis.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "keyIdValue") +id := componentapikeysapis.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "keyId") read, err := client.APIKeysDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentapikeysapis.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "keyIdValue") +id := componentapikeysapis.NewApiKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "keyId") read, err := client.APIKeysGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentapikeysapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentapikeysapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.APIKeysList(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/client.go index d9a7ffe194f1..4f792acc73dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/client.go @@ -15,7 +15,7 @@ type ComponentApiKeysAPIsClient struct { } func NewComponentApiKeysAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentApiKeysAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "componentapikeysapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "componentapikeysapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ComponentApiKeysAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_apikey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_apikey.go index 080d5b4eb072..0cd0fe159197 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_apikey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_apikey.go @@ -44,7 +44,7 @@ func ParseApiKeyID(input string) (*ApiKeyId, error) { } id := ApiKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiKeyIDInsensitively(input string) (*ApiKeyId, error) { } id := ApiKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), resourceids.StaticSegment("staticApiKeys", "apiKeys", "apiKeys"), - resourceids.UserSpecifiedSegment("keyId", "keyIdValue"), + resourceids.UserSpecifiedSegment("keyId", "keyId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_component.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_component.go index 65fbcc69c4a0..7b98288b05a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_component.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/id_component.go @@ -42,7 +42,7 @@ func ParseComponentID(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseComponentIDInsensitively(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyscreate.go index 62719a7c6d2a..897bbfc520cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyscreate.go @@ -50,7 +50,6 @@ func (c ComponentApiKeysAPIsClient) APIKeysCreate(ctx context.Context, id Compon var model ApplicationInsightsComponentAPIKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysdelete.go index d54a5ccf80ed..526b90a20025 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysdelete.go @@ -45,7 +45,6 @@ func (c ComponentApiKeysAPIsClient) APIKeysDelete(ctx context.Context, id ApiKey var model ApplicationInsightsComponentAPIKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysget.go index 6a5b763060d7..c64ffae85e0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeysget.go @@ -45,7 +45,6 @@ func (c ComponentApiKeysAPIsClient) APIKeysGet(ctx context.Context, id ApiKeyId) var model ApplicationInsightsComponentAPIKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyslist.go index c71e39f7058e..7217a1531cda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/method_apikeyslist.go @@ -46,7 +46,6 @@ func (c ComponentApiKeysAPIsClient) APIKeysList(ctx context.Context, id Componen var model ApplicationInsightsComponentAPIKeyListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/version.go index fe56ab969ace..f9aad5c3b1c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentapikeysapis/version.go @@ -1,12 +1,10 @@ package componentapikeysapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/componentapikeysapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/componentapikeysapis/2015-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/README.md index 104de71da4af..96e562a3f99d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis` Documentation -The `componentfeaturesandpricingapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2015-05-01`). +The `componentfeaturesandpricingapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2015-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentAvailableFeaturesGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentCurrentBillingFeaturesGet(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := componentfeaturesandpricingapis.ApplicationInsightsComponentBillingFeatures{ // ... @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentFeatureCapabilitiesGet(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentfeaturesandpricingapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentQuotaStatusGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/client.go index 6f0db30a637c..68d4e276b785 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/client.go @@ -15,7 +15,7 @@ type ComponentFeaturesAndPricingAPIsClient struct { } func NewComponentFeaturesAndPricingAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentFeaturesAndPricingAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "componentfeaturesandpricingapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "componentfeaturesandpricingapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ComponentFeaturesAndPricingAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/id_component.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/id_component.go index 87b57695534f..ff9a6209681a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/id_component.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/id_component.go @@ -42,7 +42,7 @@ func ParseComponentID(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseComponentIDInsensitively(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentavailablefeaturesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentavailablefeaturesget.go index bd3b23e5848e..0cafb4f56e5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentavailablefeaturesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentavailablefeaturesget.go @@ -46,7 +46,6 @@ func (c ComponentFeaturesAndPricingAPIsClient) ComponentAvailableFeaturesGet(ctx var model ApplicationInsightsComponentAvailableFeatures result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesget.go index 853da03268c1..e73c29f40368 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesget.go @@ -46,7 +46,6 @@ func (c ComponentFeaturesAndPricingAPIsClient) ComponentCurrentBillingFeaturesGe var model ApplicationInsightsComponentBillingFeatures result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesupdate.go index c95c2c1bfc84..dad7b412a2bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentcurrentbillingfeaturesupdate.go @@ -50,7 +50,6 @@ func (c ComponentFeaturesAndPricingAPIsClient) ComponentCurrentBillingFeaturesUp var model ApplicationInsightsComponentBillingFeatures result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentfeaturecapabilitiesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentfeaturecapabilitiesget.go index ce2fbdfb3864..dd799712b10e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentfeaturecapabilitiesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentfeaturecapabilitiesget.go @@ -46,7 +46,6 @@ func (c ComponentFeaturesAndPricingAPIsClient) ComponentFeatureCapabilitiesGet(c var model ApplicationInsightsComponentFeatureCapabilities result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentquotastatusget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentquotastatusget.go index cb0b92f50a00..546cb4186e17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentquotastatusget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/method_componentquotastatusget.go @@ -46,7 +46,6 @@ func (c ComponentFeaturesAndPricingAPIsClient) ComponentQuotaStatusGet(ctx conte var model ApplicationInsightsComponentQuotaStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/version.go index 75a93f50b457..c006bc9a568d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentfeaturesandpricingapis/version.go @@ -1,12 +1,10 @@ package componentfeaturesandpricingapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/componentfeaturesandpricingapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/componentfeaturesandpricingapis/2015-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/README.md index cb31060c18d2..18965c159d2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis` Documentation -The `componentproactivedetectionapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2015-05-01`). +The `componentproactivedetectionapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2015-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "configurationIdValue") +id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configurationId") read, err := client.ProactiveDetectionConfigurationsGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentproactivedetectionapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentproactivedetectionapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ProactiveDetectionConfigurationsList(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "configurationIdValue") +id := componentproactivedetectionapis.NewProactiveDetectionConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configurationId") payload := componentproactivedetectionapis.ApplicationInsightsComponentProactiveDetectionConfiguration{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/client.go index 231679061b03..b86fec30856b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/client.go @@ -15,7 +15,7 @@ type ComponentProactiveDetectionAPIsClient struct { } func NewComponentProactiveDetectionAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentProactiveDetectionAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "componentproactivedetectionapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "componentproactivedetectionapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ComponentProactiveDetectionAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_component.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_component.go index e50388334eb1..01a335fe98e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_component.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_component.go @@ -42,7 +42,7 @@ func ParseComponentID(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseComponentIDInsensitively(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_proactivedetectionconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_proactivedetectionconfig.go index 9a43379da8bb..c82521135e74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_proactivedetectionconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/id_proactivedetectionconfig.go @@ -44,7 +44,7 @@ func ParseProactiveDetectionConfigID(input string) (*ProactiveDetectionConfigId, } id := ProactiveDetectionConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProactiveDetectionConfigIDInsensitively(input string) (*ProactiveDetec } id := ProactiveDetectionConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProactiveDetectionConfigId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), resourceids.StaticSegment("staticProactiveDetectionConfigs", "proactiveDetectionConfigs", "proactiveDetectionConfigs"), - resourceids.UserSpecifiedSegment("configurationId", "configurationIdValue"), + resourceids.UserSpecifiedSegment("configurationId", "configurationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsget.go index 68954d274515..6b25946de3b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsget.go @@ -45,7 +45,6 @@ func (c ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsG var model ApplicationInsightsComponentProactiveDetectionConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationslist.go index fc7540872409..83f0ff9e24e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationslist.go @@ -46,7 +46,6 @@ func (c ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsL var model []ApplicationInsightsComponentProactiveDetectionConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsupdate.go index 245415d073dd..299b25266464 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/method_proactivedetectionconfigurationsupdate.go @@ -49,7 +49,6 @@ func (c ComponentProactiveDetectionAPIsClient) ProactiveDetectionConfigurationsU var model ApplicationInsightsComponentProactiveDetectionConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/version.go index 01ef8a89c612..3d8211b3fb39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2015-05-01/componentproactivedetectionapis/version.go @@ -1,12 +1,10 @@ package componentproactivedetectionapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/componentproactivedetectionapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/componentproactivedetectionapis/2015-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md index 39f9fa5483cb..36d4d7202f5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis` Documentation -The `componentsapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2020-02-02`). +The `componentsapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2020-02-02`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := componentsapis.ApplicationInsightsComponent{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ComponentsGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue", "purgeIdValue") +id := componentsapis.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "purgeId") read, err := client.ComponentsGetPurgeStatus(ctx, id) if err != nil { @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := componentsapis.ComponentPurgeBody{ // ... @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := componentsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := componentsapis.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/client.go index 147a71cc0e12..2df65f4c67c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/client.go @@ -15,7 +15,7 @@ type ComponentsAPIsClient struct { } func NewComponentsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ComponentsAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "componentsapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "componentsapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ComponentsAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_component.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_component.go index 2c6949e91526..2f321369a107 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_component.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_component.go @@ -42,7 +42,7 @@ func ParseComponentID(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseComponentIDInsensitively(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_operation.go index 715c3a617673..f212ab95201c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_operation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/id_operation.go @@ -44,7 +44,7 @@ func ParseOperationID(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOperationIDInsensitively(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "resourceName"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("purgeId", "purgeIdValue"), + resourceids.UserSpecifiedSegment("purgeId", "purgeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentscreateorupdate.go index c440ffa3afae..17059088e57f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentscreateorupdate.go @@ -49,7 +49,6 @@ func (c ComponentsAPIsClient) ComponentsCreateOrUpdate(ctx context.Context, id C var model ApplicationInsightsComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsget.go index d69f612ab9fb..0ef6487a9f1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsget.go @@ -45,7 +45,6 @@ func (c ComponentsAPIsClient) ComponentsGet(ctx context.Context, id ComponentId) var model ApplicationInsightsComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsgetpurgestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsgetpurgestatus.go index cf00bc8ad406..10e10aa93df2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsgetpurgestatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsgetpurgestatus.go @@ -45,7 +45,6 @@ func (c ComponentsAPIsClient) ComponentsGetPurgeStatus(ctx context.Context, id O var model ComponentPurgeStatusResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentspurge.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentspurge.go index 084ef9a550bd..e25f69431efb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentspurge.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentspurge.go @@ -50,7 +50,6 @@ func (c ComponentsAPIsClient) ComponentsPurge(ctx context.Context, id ComponentI var model ComponentPurgeResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsupdatetags.go index b428a674d9bd..57ed36fced56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/method_componentsupdatetags.go @@ -49,7 +49,6 @@ func (c ComponentsAPIsClient) ComponentsUpdateTags(ctx context.Context, id Compo var model ApplicationInsightsComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/version.go index fa4e38cbec4a..30bd43036145 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-02-02/componentsapis/version.go @@ -1,12 +1,10 @@ package componentsapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-02-02" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/componentsapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/componentsapis/2020-02-02" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md index 77ba6f075fb9..e326989d7a9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis` Documentation -The `workbooktemplatesapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2020-11-20`). +The `workbooktemplatesapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2020-11-20`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookTemplateValue") +id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := workbooktemplatesapis.WorkbookTemplate{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookTemplateValue") +id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.WorkbookTemplatesDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookTemplateValue") +id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.WorkbookTemplatesGet(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookTemplateValue") +id := workbooktemplatesapis.NewWorkbookTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := workbooktemplatesapis.WorkbookTemplateUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/client.go index 9589a767cab9..3790f664047f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/client.go @@ -15,7 +15,7 @@ type WorkbookTemplatesAPIsClient struct { } func NewWorkbookTemplatesAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkbookTemplatesAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workbooktemplatesapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workbooktemplatesapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkbookTemplatesAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/id_workbooktemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/id_workbooktemplate.go index f2b42f2ce319..9e8fd1cfe65a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/id_workbooktemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/id_workbooktemplate.go @@ -42,7 +42,7 @@ func ParseWorkbookTemplateID(input string) (*WorkbookTemplateId, error) { } id := WorkbookTemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkbookTemplateIDInsensitively(input string) (*WorkbookTemplateId, er } id := WorkbookTemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkbookTemplateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticWorkbookTemplates", "workbookTemplates", "workbookTemplates"), - resourceids.UserSpecifiedSegment("workbookTemplateName", "workbookTemplateValue"), + resourceids.UserSpecifiedSegment("workbookTemplateName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatescreateorupdate.go index 5ab81c63dfb0..590471935df4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatescreateorupdate.go @@ -50,7 +50,6 @@ func (c WorkbookTemplatesAPIsClient) WorkbookTemplatesCreateOrUpdate(ctx context var model WorkbookTemplate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesget.go index 6ebb3801abac..181faa286601 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesget.go @@ -45,7 +45,6 @@ func (c WorkbookTemplatesAPIsClient) WorkbookTemplatesGet(ctx context.Context, i var model WorkbookTemplate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplateslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplateslistbyresourcegroup.go index cd4e19b60ce5..7cf6124cc8ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplateslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplateslistbyresourcegroup.go @@ -47,7 +47,6 @@ func (c WorkbookTemplatesAPIsClient) WorkbookTemplatesListByResourceGroup(ctx co var model WorkbookTemplatesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesupdate.go index 58502aeb137a..03fdebd0c770 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/method_workbooktemplatesupdate.go @@ -49,7 +49,6 @@ func (c WorkbookTemplatesAPIsClient) WorkbookTemplatesUpdate(ctx context.Context var model WorkbookTemplate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/version.go index abd25f3cdc9e..cdb2c9084498 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2020-11-20/workbooktemplatesapis/version.go @@ -1,12 +1,10 @@ package workbooktemplatesapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-11-20" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workbooktemplatesapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workbooktemplatesapis/2020-11-20" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md index 1a12dea582c8..c2cf1e1a3535 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis` Documentation -The `workbooksapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2022-04-01`). +The `workbooksapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue") +id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := workbooksapis.Workbook{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue") +id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.WorkbooksDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue") +id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.WorkbooksGet(ctx, id, workbooksapis.DefaultWorkbooksGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workbooksapis.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue", "revisionIdValue") +id := workbooksapis.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "revisionId") read, err := client.WorkbooksRevisionGet(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue") +id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.WorkbooksRevisionsList(ctx, id)` can be used to do batched pagination items, err := client.WorkbooksRevisionsListComplete(ctx, id) @@ -145,7 +145,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workbookValue") +id := workbooksapis.NewWorkbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := workbooksapis.WorkbookUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/client.go index 312471e7f5ca..e76d33ba61df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/client.go @@ -15,7 +15,7 @@ type WorkbooksAPIsClient struct { } func NewWorkbooksAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkbooksAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workbooksapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workbooksapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkbooksAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_revision.go index 05e8b8de480f..0e32ad507545 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_revision.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_revision.go @@ -44,7 +44,7 @@ func ParseRevisionID(input string) (*RevisionId, error) { } id := RevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRevisionIDInsensitively(input string) (*RevisionId, error) { } id := RevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RevisionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticWorkbooks", "workbooks", "workbooks"), - resourceids.UserSpecifiedSegment("workbookName", "workbookValue"), + resourceids.UserSpecifiedSegment("workbookName", "resourceName"), resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), - resourceids.UserSpecifiedSegment("revisionId", "revisionIdValue"), + resourceids.UserSpecifiedSegment("revisionId", "revisionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_workbook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_workbook.go index 3418ec706690..cea362268c29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_workbook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/id_workbook.go @@ -42,7 +42,7 @@ func ParseWorkbookID(input string) (*WorkbookId, error) { } id := WorkbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkbookIDInsensitively(input string) (*WorkbookId, error) { } id := WorkbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkbookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticWorkbooks", "workbooks", "workbooks"), - resourceids.UserSpecifiedSegment("workbookName", "workbookValue"), + resourceids.UserSpecifiedSegment("workbookName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go index a21aa98caafe..8e133c9cd7ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookscreateorupdate.go @@ -34,6 +34,7 @@ func (o WorkbooksCreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkbooksCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c WorkbooksAPIsClient) WorkbooksCreateOrUpdate(ctx context.Context, id Wor var model Workbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go index 3ae99a9ceb04..7f769b060651 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksget.go @@ -34,6 +34,7 @@ func (o WorkbooksGetOperationOptions) ToHeaders() *client.Headers { func (o WorkbooksGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c WorkbooksAPIsClient) WorkbooksGet(ctx context.Context, id WorkbookId, op var model Workbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go index e379fafe14a4..ba3a102fdde5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbyresourcegroup.go @@ -43,6 +43,7 @@ func (o WorkbooksListByResourceGroupOperationOptions) ToHeaders() *client.Header func (o WorkbooksListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go index 6dcbaff5444e..6b2604b5e0e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbookslistbysubscription.go @@ -42,6 +42,7 @@ func (o WorkbooksListBySubscriptionOperationOptions) ToHeaders() *client.Headers func (o WorkbooksListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionget.go index 726d7508074d..b2dd2d6d727d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksrevisionget.go @@ -45,7 +45,6 @@ func (c WorkbooksAPIsClient) WorkbooksRevisionGet(ctx context.Context, id Revisi var model Workbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go index 0fc742e12f7d..e3f0294a6de5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/method_workbooksupdate.go @@ -34,6 +34,7 @@ func (o WorkbooksUpdateOperationOptions) ToHeaders() *client.Headers { func (o WorkbooksUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c WorkbooksAPIsClient) WorkbooksUpdate(ctx context.Context, id WorkbookId, var model Workbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/version.go index 0a9c841b785e..12c4b3665a79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-04-01/workbooksapis/version.go @@ -1,12 +1,10 @@ package workbooksapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workbooksapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workbooksapis/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md index cec749062ad5..c82a730f50de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis` Documentation -The `webtestsapis` SDK allows for interaction with the Azure Resource Manager Service `applicationinsights` (API Version `2022-06-15`). +The `webtestsapis` SDK allows for interaction with Azure Resource Manager `applicationinsights` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestValue") +id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestName") payload := webtestsapis.WebTest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestValue") +id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestName") read, err := client.WebTestsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestValue") +id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestName") read, err := client.WebTestsGet(ctx, id) if err != nil { @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webtestsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentValue") +id := webtestsapis.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "componentName") // alternatively `client.WebTestsListByComponent(ctx, id)` can be used to do batched pagination items, err := client.WebTestsListByComponentComplete(ctx, id) @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestValue") +id := webtestsapis.NewWebTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webTestName") payload := webtestsapis.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/client.go index d02b81c051bc..f0e74ab14c6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/client.go @@ -15,7 +15,7 @@ type WebTestsAPIsClient struct { } func NewWebTestsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*WebTestsAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webtestsapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webtestsapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebTestsAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_component.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_component.go index 87377a21aefb..ef7aa1589eda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_component.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_component.go @@ -42,7 +42,7 @@ func ParseComponentID(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseComponentIDInsensitively(input string) (*ComponentId, error) { } id := ComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticComponents", "components", "components"), - resourceids.UserSpecifiedSegment("componentName", "componentValue"), + resourceids.UserSpecifiedSegment("componentName", "componentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_webtest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_webtest.go index a627914676fe..a0da0ada0fca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_webtest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/id_webtest.go @@ -42,7 +42,7 @@ func ParseWebTestID(input string) (*WebTestId, error) { } id := WebTestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWebTestIDInsensitively(input string) (*WebTestId, error) { } id := WebTestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WebTestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticWebTests", "webTests", "webTests"), - resourceids.UserSpecifiedSegment("webTestName", "webTestValue"), + resourceids.UserSpecifiedSegment("webTestName", "webTestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestscreateorupdate.go index 89b977e878cf..928e69fc7f4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestscreateorupdate.go @@ -49,7 +49,6 @@ func (c WebTestsAPIsClient) WebTestsCreateOrUpdate(ctx context.Context, id WebTe var model WebTest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsget.go index efcd6914f775..2dc18cada7f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsget.go @@ -45,7 +45,6 @@ func (c WebTestsAPIsClient) WebTestsGet(ctx context.Context, id WebTestId) (resu var model WebTest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsupdatetags.go index 5460e0281508..d18413eddf63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/method_webtestsupdatetags.go @@ -49,7 +49,6 @@ func (c WebTestsAPIsClient) WebTestsUpdateTags(ctx context.Context, id WebTestId var model WebTest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/version.go index 77e258893281..84eecba6528d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/applicationinsights/2022-06-15/webtestsapis/version.go @@ -1,12 +1,10 @@ package webtestsapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webtestsapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webtestsapis/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/README.md index 715d9554a723..66a56804ccd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform` Documentation -The `appplatform` SDK allows for interaction with the Azure Resource Manager Service `appplatform` (API Version `2024-01-01-preview`). +The `appplatform` SDK allows for interaction with Azure Resource Manager `appplatform` (API Version `2024-01-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue", "domainValue") +id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName", "domainName") payload := appplatform.ApiPortalCustomDomainResource{ // ... @@ -42,7 +42,7 @@ if err := client.ApiPortalCustomDomainsCreateOrUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue", "domainValue") +id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName", "domainName") if err := client.ApiPortalCustomDomainsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ApiPortalCustomDomainsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue", "domainValue") +id := appplatform.NewApiPortalDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName", "domainName") read, err := client.ApiPortalCustomDomainsGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue") +id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName") // alternatively `client.ApiPortalCustomDomainsList(ctx, id)` can be used to do batched pagination items, err := client.ApiPortalCustomDomainsListComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue") +id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName") payload := appplatform.ApiPortalResource{ // ... @@ -104,7 +104,7 @@ if err := client.ApiPortalsCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue") +id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName") if err := client.ApiPortalsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +116,7 @@ if err := client.ApiPortalsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue") +id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName") read, err := client.ApiPortalsGet(ctx, id) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ApiPortalsList(ctx, id)` can be used to do batched pagination items, err := client.ApiPortalsListComplete(ctx, id) @@ -149,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apiPortalValue") +id := appplatform.NewApiPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apiPortalName") payload := appplatform.CustomDomainValidatePayload{ // ... @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apmValue") +id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apmName") payload := appplatform.ApmResource{ // ... @@ -187,7 +187,7 @@ if err := client.ApmsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apmValue") +id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apmName") if err := client.ApmsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -199,7 +199,7 @@ if err := client.ApmsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apmValue") +id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apmName") read, err := client.ApmsGet(ctx, id) if err != nil { @@ -215,7 +215,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ApmsList(ctx, id)` can be used to do batched pagination items, err := client.ApmsListComplete(ctx, id) @@ -232,7 +232,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "apmValue") +id := appplatform.NewApmID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "apmName") read, err := client.ApmsListSecretKeys(ctx, id) if err != nil { @@ -248,7 +248,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue") +id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName") payload := appplatform.ApplicationAcceleratorResource{ // ... @@ -265,7 +265,7 @@ if err := client.ApplicationAcceleratorsCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue") +id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName") if err := client.ApplicationAcceleratorsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -277,7 +277,7 @@ if err := client.ApplicationAcceleratorsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue") +id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName") read, err := client.ApplicationAcceleratorsGet(ctx, id) if err != nil { @@ -293,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ApplicationAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationAcceleratorsListComplete(ctx, id) @@ -310,7 +310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationLiveViewValue") +id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationLiveViewName") payload := appplatform.ApplicationLiveViewResource{ // ... @@ -327,7 +327,7 @@ if err := client.ApplicationLiveViewsCreateOrUpdateThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationLiveViewValue") +id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationLiveViewName") if err := client.ApplicationLiveViewsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -339,7 +339,7 @@ if err := client.ApplicationLiveViewsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationLiveViewValue") +id := appplatform.NewApplicationLiveViewID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationLiveViewName") read, err := client.ApplicationLiveViewsGet(ctx, id) if err != nil { @@ -355,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ApplicationLiveViewsList(ctx, id)` can be used to do batched pagination items, err := client.ApplicationLiveViewsListComplete(ctx, id) @@ -372,7 +372,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") payload := appplatform.AppResource{ // ... @@ -389,7 +389,7 @@ if err := client.AppsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") if err := client.AppsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -401,7 +401,7 @@ if err := client.AppsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") read, err := client.AppsGet(ctx, id, appplatform.DefaultAppsGetOperationOptions()) if err != nil { @@ -417,7 +417,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") read, err := client.AppsGetResourceUploadUrl(ctx, id) if err != nil { @@ -433,7 +433,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.AppsList(ctx, id)` can be used to do batched pagination items, err := client.AppsListComplete(ctx, id) @@ -450,7 +450,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") payload := appplatform.ActiveDeploymentCollection{ // ... @@ -467,7 +467,7 @@ if err := client.AppsSetActiveDeploymentsThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") payload := appplatform.AppResource{ // ... @@ -484,7 +484,7 @@ if err := client.AppsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") payload := appplatform.CustomDomainValidatePayload{ // ... @@ -505,7 +505,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "bindingValue") +id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "bindingName") payload := appplatform.BindingResource{ // ... @@ -522,7 +522,7 @@ if err := client.BindingsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "bindingValue") +id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "bindingName") if err := client.BindingsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -534,7 +534,7 @@ if err := client.BindingsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "bindingValue") +id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "bindingName") read, err := client.BindingsGet(ctx, id) if err != nil { @@ -550,7 +550,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") // alternatively `client.BindingsList(ctx, id)` can be used to do batched pagination items, err := client.BindingsListComplete(ctx, id) @@ -567,7 +567,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "bindingValue") +id := appplatform.NewBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "bindingName") payload := appplatform.BindingResource{ // ... @@ -584,7 +584,7 @@ if err := client.BindingsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "agentPoolValue") +id := appplatform.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "agentPoolName") read, err := client.BuildServiceAgentPoolGet(ctx, id) if err != nil { @@ -600,7 +600,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") // alternatively `client.BuildServiceAgentPoolList(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceAgentPoolListComplete(ctx, id) @@ -617,7 +617,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "agentPoolValue") +id := appplatform.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "agentPoolName") payload := appplatform.BuildServiceAgentPoolResource{ // ... @@ -634,7 +634,7 @@ if err := client.BuildServiceAgentPoolUpdatePutThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue") +id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName") payload := appplatform.BuilderResource{ // ... @@ -651,7 +651,7 @@ if err := client.BuildServiceBuilderCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue") +id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName") if err := client.BuildServiceBuilderDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -663,7 +663,7 @@ if err := client.BuildServiceBuilderDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue") +id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName") read, err := client.BuildServiceBuilderGet(ctx, id) if err != nil { @@ -679,7 +679,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") // alternatively `client.BuildServiceBuilderList(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceBuilderListComplete(ctx, id) @@ -696,7 +696,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue") +id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName") read, err := client.BuildServiceBuilderListDeployments(ctx, id) if err != nil { @@ -712,7 +712,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") payload := appplatform.BuildService{ // ... @@ -729,7 +729,7 @@ if err := client.BuildServiceCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue") +id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName") payload := appplatform.Build{ // ... @@ -750,7 +750,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue") +id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName") if err := client.BuildServiceDeleteBuildThenPoll(ctx, id); err != nil { // handle the error @@ -762,7 +762,7 @@ if err := client.BuildServiceDeleteBuildThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue") +id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName") read, err := client.BuildServiceGetBuild(ctx, id) if err != nil { @@ -778,7 +778,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue", "resultValue") +id := appplatform.NewResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName", "buildResultName") read, err := client.BuildServiceGetBuildResult(ctx, id) if err != nil { @@ -794,7 +794,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue", "resultValue") +id := appplatform.NewResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName", "buildResultName") read, err := client.BuildServiceGetBuildResultLog(ctx, id) if err != nil { @@ -810,7 +810,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") read, err := client.BuildServiceGetBuildService(ctx, id) if err != nil { @@ -826,7 +826,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") read, err := client.BuildServiceGetResourceUploadUrl(ctx, id) if err != nil { @@ -842,7 +842,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSupportedBuildPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "supportedBuildPackValue") +id := appplatform.NewSupportedBuildPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildpackName") read, err := client.BuildServiceGetSupportedBuildpack(ctx, id) if err != nil { @@ -858,7 +858,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewSupportedStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "supportedStackValue") +id := appplatform.NewSupportedStackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "stackName") read, err := client.BuildServiceGetSupportedStack(ctx, id) if err != nil { @@ -874,7 +874,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "buildValue") +id := appplatform.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "buildName") // alternatively `client.BuildServiceListBuildResults(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildResultsComplete(ctx, id) @@ -891,7 +891,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.BuildServiceListBuildServices(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildServicesComplete(ctx, id) @@ -908,7 +908,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") // alternatively `client.BuildServiceListBuilds(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListBuildsComplete(ctx, id) @@ -925,7 +925,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") // alternatively `client.BuildServiceListSupportedBuildpacks(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListSupportedBuildpacksComplete(ctx, id) @@ -942,7 +942,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue") +id := appplatform.NewBuildServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName") // alternatively `client.BuildServiceListSupportedStacks(ctx, id)` can be used to do batched pagination items, err := client.BuildServiceListSupportedStacksComplete(ctx, id) @@ -959,7 +959,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue", "buildPackBindingValue") +id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName", "buildpackBindingName") payload := appplatform.BuildpackBindingResource{ // ... @@ -976,7 +976,7 @@ if err := client.BuildpackBindingCreateOrUpdateThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue", "buildPackBindingValue") +id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName", "buildpackBindingName") if err := client.BuildpackBindingDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -988,7 +988,7 @@ if err := client.BuildpackBindingDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue", "buildPackBindingValue") +id := appplatform.NewBuildPackBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName", "buildpackBindingName") read, err := client.BuildpackBindingGet(ctx, id) if err != nil { @@ -1004,7 +1004,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "buildServiceValue", "builderValue") +id := appplatform.NewBuilderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "buildServiceName", "builderName") // alternatively `client.BuildpackBindingList(ctx, id)` can be used to do batched pagination items, err := client.BuildpackBindingListComplete(ctx, id) @@ -1021,7 +1021,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.BuildpackBindingListForCluster(ctx, id)` can be used to do batched pagination items, err := client.BuildpackBindingListForClusterComplete(ctx, id) @@ -1038,7 +1038,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "certificateValue") +id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateName") payload := appplatform.CertificateResource{ // ... @@ -1055,7 +1055,7 @@ if err := client.CertificatesCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "certificateValue") +id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateName") if err := client.CertificatesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1067,7 +1067,7 @@ if err := client.CertificatesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "certificateValue") +id := appplatform.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "certificateName") read, err := client.CertificatesGet(ctx, id) if err != nil { @@ -1083,7 +1083,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -1100,7 +1100,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ConfigServersGet(ctx, id) if err != nil { @@ -1116,7 +1116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ConfigServerResource{ // ... @@ -1133,7 +1133,7 @@ if err := client.ConfigServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ConfigServerResource{ // ... @@ -1150,7 +1150,7 @@ if err := client.ConfigServersUpdatePutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ConfigServerSettings{ // ... @@ -1167,7 +1167,7 @@ if err := client.ConfigServersValidateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "configurationServiceValue") +id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "configurationServiceName") payload := appplatform.ConfigurationServiceResource{ // ... @@ -1184,7 +1184,7 @@ if err := client.ConfigurationServicesCreateOrUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "configurationServiceValue") +id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "configurationServiceName") if err := client.ConfigurationServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1196,7 +1196,7 @@ if err := client.ConfigurationServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "configurationServiceValue") +id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "configurationServiceName") read, err := client.ConfigurationServicesGet(ctx, id) if err != nil { @@ -1212,7 +1212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ConfigurationServicesList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationServicesListComplete(ctx, id) @@ -1229,7 +1229,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "configurationServiceValue") +id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "configurationServiceName") payload := appplatform.ConfigurationServiceSettings{ // ... @@ -1246,7 +1246,7 @@ if err := client.ConfigurationServicesValidateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "configurationServiceValue") +id := appplatform.NewConfigurationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "configurationServiceName") payload := appplatform.ConfigurationServiceResource{ // ... @@ -1263,7 +1263,7 @@ if err := client.ConfigurationServicesValidateResourceThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "containerRegistryValue") +id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "containerRegistryName") payload := appplatform.ContainerRegistryResource{ // ... @@ -1280,7 +1280,7 @@ if err := client.ContainerRegistriesCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "containerRegistryValue") +id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "containerRegistryName") if err := client.ContainerRegistriesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1292,7 +1292,7 @@ if err := client.ContainerRegistriesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "containerRegistryValue") +id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "containerRegistryName") read, err := client.ContainerRegistriesGet(ctx, id) if err != nil { @@ -1308,7 +1308,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ContainerRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ContainerRegistriesListComplete(ctx, id) @@ -1325,7 +1325,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "containerRegistryValue") +id := appplatform.NewContainerRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "containerRegistryName") payload := appplatform.ContainerRegistryProperties{ // ... @@ -1342,7 +1342,7 @@ if err := client.ContainerRegistriesValidateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "domainValue") +id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "domainName") payload := appplatform.CustomDomainResource{ // ... @@ -1359,7 +1359,7 @@ if err := client.CustomDomainsCreateOrUpdateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "domainValue") +id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "domainName") if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1371,7 +1371,7 @@ if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "domainValue") +id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "domainName") read, err := client.CustomDomainsGet(ctx, id) if err != nil { @@ -1387,7 +1387,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") // alternatively `client.CustomDomainsList(ctx, id)` can be used to do batched pagination items, err := client.CustomDomainsListComplete(ctx, id) @@ -1404,7 +1404,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "domainValue") +id := appplatform.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "domainName") payload := appplatform.CustomDomainResource{ // ... @@ -1421,7 +1421,7 @@ if err := client.CustomDomainsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "customizedAcceleratorValue") +id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "customizedAcceleratorName") payload := appplatform.CustomizedAcceleratorResource{ // ... @@ -1438,7 +1438,7 @@ if err := client.CustomizedAcceleratorsCreateOrUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "customizedAcceleratorValue") +id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "customizedAcceleratorName") if err := client.CustomizedAcceleratorsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1450,7 +1450,7 @@ if err := client.CustomizedAcceleratorsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "customizedAcceleratorValue") +id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "customizedAcceleratorName") read, err := client.CustomizedAcceleratorsGet(ctx, id) if err != nil { @@ -1466,7 +1466,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue") +id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName") // alternatively `client.CustomizedAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.CustomizedAcceleratorsListComplete(ctx, id) @@ -1483,7 +1483,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "customizedAcceleratorValue") +id := appplatform.NewCustomizedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "customizedAcceleratorName") payload := appplatform.CustomizedAcceleratorProperties{ // ... @@ -1500,7 +1500,7 @@ if err := client.CustomizedAcceleratorsValidateThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.DeploymentResource{ // ... @@ -1517,7 +1517,7 @@ if err := client.DeploymentsCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") if err := client.DeploymentsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1529,7 +1529,7 @@ if err := client.DeploymentsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") if err := client.DeploymentsDisableRemoteDebuggingThenPoll(ctx, id); err != nil { // handle the error @@ -1541,7 +1541,7 @@ if err := client.DeploymentsDisableRemoteDebuggingThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.RemoteDebuggingPayload{ // ... @@ -1558,7 +1558,7 @@ if err := client.DeploymentsEnableRemoteDebuggingThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.DiagnosticParameters{ // ... @@ -1575,7 +1575,7 @@ if err := client.DeploymentsGenerateHeapDumpThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.DiagnosticParameters{ // ... @@ -1592,7 +1592,7 @@ if err := client.DeploymentsGenerateThreadDumpThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") read, err := client.DeploymentsGet(ctx, id) if err != nil { @@ -1608,7 +1608,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") read, err := client.DeploymentsGetLogFileUrl(ctx, id) if err != nil { @@ -1624,7 +1624,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") read, err := client.DeploymentsGetRemoteDebuggingConfig(ctx, id) if err != nil { @@ -1640,7 +1640,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue") +id := appplatform.NewAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName") // alternatively `client.DeploymentsList(ctx, id, appplatform.DefaultDeploymentsListOperationOptions())` can be used to do batched pagination items, err := client.DeploymentsListComplete(ctx, id, appplatform.DefaultDeploymentsListOperationOptions()) @@ -1657,7 +1657,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.DeploymentsListForCluster(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions())` can be used to do batched pagination items, err := client.DeploymentsListForClusterComplete(ctx, id, appplatform.DefaultDeploymentsListForClusterOperationOptions()) @@ -1674,7 +1674,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") if err := client.DeploymentsRestartThenPoll(ctx, id); err != nil { // handle the error @@ -1686,7 +1686,7 @@ if err := client.DeploymentsRestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") if err := client.DeploymentsStartThenPoll(ctx, id); err != nil { // handle the error @@ -1698,7 +1698,7 @@ if err := client.DeploymentsStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.DiagnosticParameters{ // ... @@ -1715,7 +1715,7 @@ if err := client.DeploymentsStartJFRThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") if err := client.DeploymentsStopThenPoll(ctx, id); err != nil { // handle the error @@ -1727,7 +1727,7 @@ if err := client.DeploymentsStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "appValue", "deploymentValue") +id := appplatform.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "appName", "deploymentName") payload := appplatform.DeploymentResource{ // ... @@ -1744,7 +1744,7 @@ if err := client.DeploymentsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "devToolPortalValue") +id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "devToolPortalName") payload := appplatform.DevToolPortalResource{ // ... @@ -1761,7 +1761,7 @@ if err := client.DevToolPortalsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "devToolPortalValue") +id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "devToolPortalName") if err := client.DevToolPortalsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1773,7 +1773,7 @@ if err := client.DevToolPortalsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "devToolPortalValue") +id := appplatform.NewDevToolPortalID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "devToolPortalName") read, err := client.DevToolPortalsGet(ctx, id) if err != nil { @@ -1789,7 +1789,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.DevToolPortalsList(ctx, id)` can be used to do batched pagination items, err := client.DevToolPortalsListComplete(ctx, id) @@ -1806,7 +1806,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.EurekaServersGet(ctx, id) if err != nil { @@ -1822,7 +1822,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.EurekaServersList(ctx, id)` can be used to do batched pagination items, err := client.EurekaServersListComplete(ctx, id) @@ -1839,7 +1839,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.EurekaServerResource{ // ... @@ -1856,7 +1856,7 @@ if err := client.EurekaServersUpdatePatchThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.EurekaServerResource{ // ... @@ -1873,7 +1873,7 @@ if err := client.EurekaServersUpdatePutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "domainValue") +id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "domainName") payload := appplatform.GatewayCustomDomainResource{ // ... @@ -1890,7 +1890,7 @@ if err := client.GatewayCustomDomainsCreateOrUpdateThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "domainValue") +id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "domainName") if err := client.GatewayCustomDomainsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1902,7 +1902,7 @@ if err := client.GatewayCustomDomainsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "domainValue") +id := appplatform.NewGatewayDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "domainName") read, err := client.GatewayCustomDomainsGet(ctx, id) if err != nil { @@ -1918,7 +1918,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") // alternatively `client.GatewayCustomDomainsList(ctx, id)` can be used to do batched pagination items, err := client.GatewayCustomDomainsListComplete(ctx, id) @@ -1935,7 +1935,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "routeConfigValue") +id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "routeConfigName") payload := appplatform.GatewayRouteConfigResource{ // ... @@ -1952,7 +1952,7 @@ if err := client.GatewayRouteConfigsCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "routeConfigValue") +id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "routeConfigName") if err := client.GatewayRouteConfigsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1964,7 +1964,7 @@ if err := client.GatewayRouteConfigsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue", "routeConfigValue") +id := appplatform.NewRouteConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName", "routeConfigName") read, err := client.GatewayRouteConfigsGet(ctx, id) if err != nil { @@ -1980,7 +1980,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") // alternatively `client.GatewayRouteConfigsList(ctx, id)` can be used to do batched pagination items, err := client.GatewayRouteConfigsListComplete(ctx, id) @@ -1997,7 +1997,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") payload := appplatform.GatewayResource{ // ... @@ -2014,7 +2014,7 @@ if err := client.GatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") if err := client.GatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2026,7 +2026,7 @@ if err := client.GatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") read, err := client.GatewaysGet(ctx, id) if err != nil { @@ -2042,7 +2042,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.GatewaysList(ctx, id)` can be used to do batched pagination items, err := client.GatewaysListComplete(ctx, id) @@ -2059,7 +2059,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") read, err := client.GatewaysListEnvSecrets(ctx, id) if err != nil { @@ -2075,7 +2075,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") if err := client.GatewaysRestartThenPoll(ctx, id); err != nil { // handle the error @@ -2087,7 +2087,7 @@ if err := client.GatewaysRestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") payload := appplatform.SkuObject{ // ... @@ -2104,7 +2104,7 @@ if err := client.GatewaysUpdateCapacityThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "gatewayValue") +id := appplatform.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "gatewayName") payload := appplatform.CustomDomainValidatePayload{ // ... @@ -2125,7 +2125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.MonitoringSettingsGet(ctx, id) if err != nil { @@ -2141,7 +2141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.MonitoringSettingResource{ // ... @@ -2158,7 +2158,7 @@ if err := client.MonitoringSettingsUpdatePatchThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.MonitoringSettingResource{ // ... @@ -2175,7 +2175,7 @@ if err := client.MonitoringSettingsUpdatePutThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "predefinedAcceleratorValue") +id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "predefinedAcceleratorName") if err := client.PredefinedAcceleratorsDisableThenPoll(ctx, id); err != nil { // handle the error @@ -2187,7 +2187,7 @@ if err := client.PredefinedAcceleratorsDisableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "predefinedAcceleratorValue") +id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "predefinedAcceleratorName") if err := client.PredefinedAcceleratorsEnableThenPoll(ctx, id); err != nil { // handle the error @@ -2199,7 +2199,7 @@ if err := client.PredefinedAcceleratorsEnableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue", "predefinedAcceleratorValue") +id := appplatform.NewPredefinedAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName", "predefinedAcceleratorName") read, err := client.PredefinedAcceleratorsGet(ctx, id) if err != nil { @@ -2215,7 +2215,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "applicationAcceleratorValue") +id := appplatform.NewApplicationAcceleratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "applicationAcceleratorName") // alternatively `client.PredefinedAcceleratorsList(ctx, id)` can be used to do batched pagination items, err := client.PredefinedAcceleratorsListComplete(ctx, id) @@ -2248,7 +2248,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "serviceRegistryValue") +id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "serviceRegistryName") if err := client.ServiceRegistriesCreateOrUpdateThenPoll(ctx, id); err != nil { // handle the error @@ -2260,7 +2260,7 @@ if err := client.ServiceRegistriesCreateOrUpdateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "serviceRegistryValue") +id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "serviceRegistryName") if err := client.ServiceRegistriesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2272,7 +2272,7 @@ if err := client.ServiceRegistriesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "serviceRegistryValue") +id := appplatform.NewServiceRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "serviceRegistryName") read, err := client.ServiceRegistriesGet(ctx, id) if err != nil { @@ -2288,7 +2288,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ServiceRegistriesList(ctx, id)` can be used to do batched pagination items, err := client.ServiceRegistriesListComplete(ctx, id) @@ -2305,7 +2305,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := appplatform.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := appplatform.NameAvailabilityParameters{ // ... @@ -2326,7 +2326,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ServiceResource{ // ... @@ -2343,7 +2343,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2355,7 +2355,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ApmReference{ // ... @@ -2372,7 +2372,7 @@ if err := client.ServicesDisableApmGloballyThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ServicesDisableTestEndpoint(ctx, id) if err != nil { @@ -2388,7 +2388,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ApmReference{ // ... @@ -2405,7 +2405,7 @@ if err := client.ServicesEnableApmGloballyThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ServicesEnableTestEndpoint(ctx, id) if err != nil { @@ -2421,7 +2421,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { // handle the error @@ -2433,7 +2433,7 @@ if err := client.ServicesFlushVnetDnsSettingThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -2483,7 +2483,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ServicesListGloballyEnabledApms(ctx, id) if err != nil { @@ -2499,7 +2499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ServicesListSupportedApmTypes(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedApmTypesComplete(ctx, id) @@ -2516,7 +2516,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ServicesListSupportedServerVersions(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSupportedServerVersionsComplete(ctx, id) @@ -2533,7 +2533,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.ServicesListTestKeys(ctx, id) if err != nil { @@ -2549,7 +2549,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.RegenerateTestKeyRequestPayload{ // ... @@ -2570,7 +2570,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.ServicesStartThenPoll(ctx, id); err != nil { // handle the error @@ -2582,7 +2582,7 @@ if err := client.ServicesStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.ServicesStopThenPoll(ctx, id); err != nil { // handle the error @@ -2594,7 +2594,7 @@ if err := client.ServicesStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := appplatform.ServiceResource{ // ... @@ -2628,7 +2628,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "storageValue") +id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "storageName") payload := appplatform.StorageResource{ // ... @@ -2645,7 +2645,7 @@ if err := client.StoragesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "storageValue") +id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "storageName") if err := client.StoragesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -2657,7 +2657,7 @@ if err := client.StoragesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue", "storageValue") +id := appplatform.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "storageName") read, err := client.StoragesGet(ctx, id) if err != nil { @@ -2673,7 +2673,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "springValue") +id := commonids.NewSpringCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.StoragesList(ctx, id)` can be used to do batched pagination items, err := client.StoragesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/client.go index c09305ed3710..8165dad21d62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/client.go @@ -15,7 +15,7 @@ type AppPlatformClient struct { } func NewAppPlatformClientWithBaseURI(sdkApi sdkEnv.Api) (*AppPlatformClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appplatform", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "appplatform", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AppPlatformClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_agentpool.go index 8657bb20f0b9..ac30f519cef9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_agentpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_agentpool.go @@ -46,7 +46,7 @@ func ParseAgentPoolID(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseAgentPoolIDInsensitively(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id AgentPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), - resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolValue"), + resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportal.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportal.go index 077d4c0ff914..59e8fe755802 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportal.go @@ -44,7 +44,7 @@ func ParseApiPortalID(input string) (*ApiPortalId, error) { } id := ApiPortalId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApiPortalIDInsensitively(input string) (*ApiPortalId, error) { } id := ApiPortalId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApiPortalId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApiPortals", "apiPortals", "apiPortals"), - resourceids.UserSpecifiedSegment("apiPortalName", "apiPortalValue"), + resourceids.UserSpecifiedSegment("apiPortalName", "apiPortalName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportaldomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportaldomain.go index c527abe1118d..1509e75d9b57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportaldomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apiportaldomain.go @@ -46,7 +46,7 @@ func ParseApiPortalDomainID(input string) (*ApiPortalDomainId, error) { } id := ApiPortalDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseApiPortalDomainIDInsensitively(input string) (*ApiPortalDomainId, erro } id := ApiPortalDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ApiPortalDomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApiPortals", "apiPortals", "apiPortals"), - resourceids.UserSpecifiedSegment("apiPortalName", "apiPortalValue"), + resourceids.UserSpecifiedSegment("apiPortalName", "apiPortalName"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apm.go index 208aa38a0dd8..828a3e5aa480 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apm.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_apm.go @@ -44,7 +44,7 @@ func ParseApmID(input string) (*ApmId, error) { } id := ApmId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApmIDInsensitively(input string) (*ApmId, error) { } id := ApmId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApmId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApms", "apms", "apms"), - resourceids.UserSpecifiedSegment("apmName", "apmValue"), + resourceids.UserSpecifiedSegment("apmName", "apmName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_app.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_app.go index 13d7ea03e3e7..424003cb7424 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_app.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_app.go @@ -44,7 +44,7 @@ func ParseAppID(input string) (*AppId, error) { } id := AppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAppIDInsensitively(input string) (*AppId, error) { } id := AppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApps", "apps", "apps"), - resourceids.UserSpecifiedSegment("appName", "appValue"), + resourceids.UserSpecifiedSegment("appName", "appName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationaccelerator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationaccelerator.go index 941f56750868..8cc0e66c390a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationaccelerator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationaccelerator.go @@ -44,7 +44,7 @@ func ParseApplicationAcceleratorID(input string) (*ApplicationAcceleratorId, err } id := ApplicationAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationAcceleratorIDInsensitively(input string) (*ApplicationAccel } id := ApplicationAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationAcceleratorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApplicationAccelerators", "applicationAccelerators", "applicationAccelerators"), - resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorValue"), + resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationliveview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationliveview.go index 66c37ac2975c..a4719fd0a730 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationliveview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_applicationliveview.go @@ -44,7 +44,7 @@ func ParseApplicationLiveViewID(input string) (*ApplicationLiveViewId, error) { } id := ApplicationLiveViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationLiveViewIDInsensitively(input string) (*ApplicationLiveView } id := ApplicationLiveViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationLiveViewId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApplicationLiveViews", "applicationLiveViews", "applicationLiveViews"), - resourceids.UserSpecifiedSegment("applicationLiveViewName", "applicationLiveViewValue"), + resourceids.UserSpecifiedSegment("applicationLiveViewName", "applicationLiveViewName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_binding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_binding.go index cf5fa9d9c71b..74502f14a4db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_binding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_binding.go @@ -46,7 +46,7 @@ func ParseBindingID(input string) (*BindingId, error) { } id := BindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBindingIDInsensitively(input string) (*BindingId, error) { } id := BindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BindingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApps", "apps", "apps"), - resourceids.UserSpecifiedSegment("appName", "appValue"), + resourceids.UserSpecifiedSegment("appName", "appName"), resourceids.StaticSegment("staticBindings", "bindings", "bindings"), - resourceids.UserSpecifiedSegment("bindingName", "bindingValue"), + resourceids.UserSpecifiedSegment("bindingName", "bindingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_build.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_build.go index cacb0f627c0a..3882d0eee0b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_build.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_build.go @@ -46,7 +46,7 @@ func ParseBuildID(input string) (*BuildId, error) { } id := BuildId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBuildIDInsensitively(input string) (*BuildId, error) { } id := BuildId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BuildId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "buildName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_builder.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_builder.go index c12dfe308772..cc665d616e86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_builder.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_builder.go @@ -46,7 +46,7 @@ func ParseBuilderID(input string) (*BuilderId, error) { } id := BuilderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBuilderIDInsensitively(input string) (*BuilderId, error) { } id := BuilderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BuilderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticBuilders", "builders", "builders"), - resourceids.UserSpecifiedSegment("builderName", "builderValue"), + resourceids.UserSpecifiedSegment("builderName", "builderName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildpackbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildpackbinding.go index 35d763e15e10..c5af88810dab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildpackbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildpackbinding.go @@ -48,7 +48,7 @@ func ParseBuildPackBindingID(input string) (*BuildPackBindingId, error) { } id := BuildPackBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseBuildPackBindingIDInsensitively(input string) (*BuildPackBindingId, er } id := BuildPackBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id BuildPackBindingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticBuilders", "builders", "builders"), - resourceids.UserSpecifiedSegment("builderName", "builderValue"), + resourceids.UserSpecifiedSegment("builderName", "builderName"), resourceids.StaticSegment("staticBuildPackBindings", "buildPackBindings", "buildPackBindings"), - resourceids.UserSpecifiedSegment("buildPackBindingName", "buildPackBindingValue"), + resourceids.UserSpecifiedSegment("buildPackBindingName", "buildpackBindingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildservice.go index ca1f998143ea..201184323a4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_buildservice.go @@ -44,7 +44,7 @@ func ParseBuildServiceID(input string) (*BuildServiceId, error) { } id := BuildServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBuildServiceIDInsensitively(input string) (*BuildServiceId, error) { } id := BuildServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BuildServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_certificate.go index 30f1315f6b39..897a366b2ba8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_configurationservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_configurationservice.go index c9c6626d10c8..586fb8e6f8f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_configurationservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_configurationservice.go @@ -44,7 +44,7 @@ func ParseConfigurationServiceID(input string) (*ConfigurationServiceId, error) } id := ConfigurationServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationServiceIDInsensitively(input string) (*ConfigurationServi } id := ConfigurationServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticConfigurationServices", "configurationServices", "configurationServices"), - resourceids.UserSpecifiedSegment("configurationServiceName", "configurationServiceValue"), + resourceids.UserSpecifiedSegment("configurationServiceName", "configurationServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_containerregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_containerregistry.go index 538c54985461..7c5c589f65d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_containerregistry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_containerregistry.go @@ -44,7 +44,7 @@ func ParseContainerRegistryID(input string) (*ContainerRegistryId, error) { } id := ContainerRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseContainerRegistryIDInsensitively(input string) (*ContainerRegistryId, } id := ContainerRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ContainerRegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticContainerRegistries", "containerRegistries", "containerRegistries"), - resourceids.UserSpecifiedSegment("containerRegistryName", "containerRegistryValue"), + resourceids.UserSpecifiedSegment("containerRegistryName", "containerRegistryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_customizedaccelerator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_customizedaccelerator.go index 5e78cd284e3b..03cec1da9fa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_customizedaccelerator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_customizedaccelerator.go @@ -46,7 +46,7 @@ func ParseCustomizedAcceleratorID(input string) (*CustomizedAcceleratorId, error } id := CustomizedAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCustomizedAcceleratorIDInsensitively(input string) (*CustomizedAcceler } id := CustomizedAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CustomizedAcceleratorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApplicationAccelerators", "applicationAccelerators", "applicationAccelerators"), - resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorValue"), + resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorName"), resourceids.StaticSegment("staticCustomizedAccelerators", "customizedAccelerators", "customizedAccelerators"), - resourceids.UserSpecifiedSegment("customizedAcceleratorName", "customizedAcceleratorValue"), + resourceids.UserSpecifiedSegment("customizedAcceleratorName", "customizedAcceleratorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_deployment.go index 90d1ecacedfd..10c20e2ce4a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_deployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_deployment.go @@ -46,7 +46,7 @@ func ParseDeploymentID(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApps", "apps", "apps"), - resourceids.UserSpecifiedSegment("appName", "appValue"), + resourceids.UserSpecifiedSegment("appName", "appName"), resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), - resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + resourceids.UserSpecifiedSegment("deploymentName", "deploymentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_devtoolportal.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_devtoolportal.go index b6214d256178..b332c41eccce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_devtoolportal.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_devtoolportal.go @@ -44,7 +44,7 @@ func ParseDevToolPortalID(input string) (*DevToolPortalId, error) { } id := DevToolPortalId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDevToolPortalIDInsensitively(input string) (*DevToolPortalId, error) { } id := DevToolPortalId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DevToolPortalId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticDevToolPortals", "devToolPortals", "devToolPortals"), - resourceids.UserSpecifiedSegment("devToolPortalName", "devToolPortalValue"), + resourceids.UserSpecifiedSegment("devToolPortalName", "devToolPortalName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_domain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_domain.go index 51040d0f1a92..506a68321593 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_domain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_domain.go @@ -46,7 +46,7 @@ func ParseDomainID(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDomainIDInsensitively(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApps", "apps", "apps"), - resourceids.UserSpecifiedSegment("appName", "appValue"), + resourceids.UserSpecifiedSegment("appName", "appName"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gateway.go index b16062215f6a..120c1aeaf302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gatewaydomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gatewaydomain.go index c837a61f60d4..1bab10b411d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gatewaydomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_gatewaydomain.go @@ -46,7 +46,7 @@ func ParseGatewayDomainID(input string) (*GatewayDomainId, error) { } id := GatewayDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGatewayDomainIDInsensitively(input string) (*GatewayDomainId, error) { } id := GatewayDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GatewayDomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_location.go index 95cf5e0a899d..778d96b4dc0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_predefinedaccelerator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_predefinedaccelerator.go index 735e484e767a..3a2cde2d9d28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_predefinedaccelerator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_predefinedaccelerator.go @@ -46,7 +46,7 @@ func ParsePredefinedAcceleratorID(input string) (*PredefinedAcceleratorId, error } id := PredefinedAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePredefinedAcceleratorIDInsensitively(input string) (*PredefinedAcceler } id := PredefinedAcceleratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PredefinedAcceleratorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticApplicationAccelerators", "applicationAccelerators", "applicationAccelerators"), - resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorValue"), + resourceids.UserSpecifiedSegment("applicationAcceleratorName", "applicationAcceleratorName"), resourceids.StaticSegment("staticPredefinedAccelerators", "predefinedAccelerators", "predefinedAccelerators"), - resourceids.UserSpecifiedSegment("predefinedAcceleratorName", "predefinedAcceleratorValue"), + resourceids.UserSpecifiedSegment("predefinedAcceleratorName", "predefinedAcceleratorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_result.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_result.go index f39e58460202..dd899109a489 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_result.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_result.go @@ -48,7 +48,7 @@ func ParseResultID(input string) (*ResultId, error) { } id := ResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseResultIDInsensitively(input string) (*ResultId, error) { } id := ResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ResultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "buildName"), resourceids.StaticSegment("staticResults", "results", "results"), - resourceids.UserSpecifiedSegment("resultName", "resultValue"), + resourceids.UserSpecifiedSegment("resultName", "buildResultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_routeconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_routeconfig.go index 8918428a2ee5..f3b52f338817 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_routeconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_routeconfig.go @@ -46,7 +46,7 @@ func ParseRouteConfigID(input string) (*RouteConfigId, error) { } id := RouteConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRouteConfigIDInsensitively(input string) (*RouteConfigId, error) { } id := RouteConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RouteConfigId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), resourceids.StaticSegment("staticRouteConfigs", "routeConfigs", "routeConfigs"), - resourceids.UserSpecifiedSegment("routeConfigName", "routeConfigValue"), + resourceids.UserSpecifiedSegment("routeConfigName", "routeConfigName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_serviceregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_serviceregistry.go index 6d5aee9654a6..8700f597a7a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_serviceregistry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_serviceregistry.go @@ -44,7 +44,7 @@ func ParseServiceRegistryID(input string) (*ServiceRegistryId, error) { } id := ServiceRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServiceRegistryIDInsensitively(input string) (*ServiceRegistryId, erro } id := ServiceRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServiceRegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticServiceRegistries", "serviceRegistries", "serviceRegistries"), - resourceids.UserSpecifiedSegment("serviceRegistryName", "serviceRegistryValue"), + resourceids.UserSpecifiedSegment("serviceRegistryName", "serviceRegistryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_storage.go index ccbfc4c15c8d..004318e79f10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_storage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_storage.go @@ -44,7 +44,7 @@ func ParseStorageID(input string) (*StorageId, error) { } id := StorageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseStorageIDInsensitively(input string) (*StorageId, error) { } id := StorageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id StorageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticStorages", "storages", "storages"), - resourceids.UserSpecifiedSegment("storageName", "storageValue"), + resourceids.UserSpecifiedSegment("storageName", "storageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedbuildpack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedbuildpack.go index 4b908c8abb58..2611b6586806 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedbuildpack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedbuildpack.go @@ -46,7 +46,7 @@ func ParseSupportedBuildPackID(input string) (*SupportedBuildPackId, error) { } id := SupportedBuildPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSupportedBuildPackIDInsensitively(input string) (*SupportedBuildPackId } id := SupportedBuildPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SupportedBuildPackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticSupportedBuildPacks", "supportedBuildPacks", "supportedBuildPacks"), - resourceids.UserSpecifiedSegment("supportedBuildPackName", "supportedBuildPackValue"), + resourceids.UserSpecifiedSegment("supportedBuildPackName", "buildpackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedstack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedstack.go index 1329f39d8047..865195f9afa2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedstack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/id_supportedstack.go @@ -46,7 +46,7 @@ func ParseSupportedStackID(input string) (*SupportedStackId, error) { } id := SupportedStackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSupportedStackIDInsensitively(input string) (*SupportedStackId, error) } id := SupportedStackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SupportedStackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAppPlatform", "Microsoft.AppPlatform", "Microsoft.AppPlatform"), resourceids.StaticSegment("staticSpring", "spring", "spring"), - resourceids.UserSpecifiedSegment("springName", "springValue"), + resourceids.UserSpecifiedSegment("springName", "serviceName"), resourceids.StaticSegment("staticBuildServices", "buildServices", "buildServices"), - resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceValue"), + resourceids.UserSpecifiedSegment("buildServiceName", "buildServiceName"), resourceids.StaticSegment("staticSupportedStacks", "supportedStacks", "supportedStacks"), - resourceids.UserSpecifiedSegment("supportedStackName", "supportedStackValue"), + resourceids.UserSpecifiedSegment("supportedStackName", "stackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainsget.go index 31162b86c766..ee2bbd322c2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalcustomdomainsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ApiPortalCustomDomainsGet(ctx context.Context, id Api var model ApiPortalCustomDomainResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsget.go index 674cb161de0c..9dcaaa30ad86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ApiPortalsGet(ctx context.Context, id ApiPortalId) (r var model ApiPortalResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsvalidatedomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsvalidatedomain.go index 9baf66398c99..18b39e239aa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsvalidatedomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apiportalsvalidatedomain.go @@ -50,7 +50,6 @@ func (c AppPlatformClient) ApiPortalsValidateDomain(ctx context.Context, id ApiP var model CustomDomainValidateResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmsget.go index 0f0d937defca..f467f8eaaf3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ApmsGet(ctx context.Context, id ApmId) (result ApmsGe var model ApmResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslistsecretkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslistsecretkeys.go index 74cf12911d4e..5bd8219bd7af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslistsecretkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_apmslistsecretkeys.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) ApmsListSecretKeys(ctx context.Context, id ApmId) (re var model ApmSecretKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorsget.go index 809af6b1b2e1..4b328230326f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationacceleratorsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ApplicationAcceleratorsGet(ctx context.Context, id Ap var model ApplicationAcceleratorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewsget.go index 833ed7c87a8b..2830fd1fdba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_applicationliveviewsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ApplicationLiveViewsGet(ctx context.Context, id Appli var model ApplicationLiveViewResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go index 4a53dd22ea4c..3724e37ca47a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsget.go @@ -34,6 +34,7 @@ func (o AppsGetOperationOptions) ToHeaders() *client.Headers { func (o AppsGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c AppPlatformClient) AppsGet(ctx context.Context, id AppId, options AppsGe var model AppResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsgetresourceuploadurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsgetresourceuploadurl.go index 3893d74b4d01..6e1b2cd16500 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsgetresourceuploadurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsgetresourceuploadurl.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) AppsGetResourceUploadUrl(ctx context.Context, id AppI var model ResourceUploadDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsvalidatedomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsvalidatedomain.go index 012f55c15f3f..2e32bcfc2517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsvalidatedomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_appsvalidatedomain.go @@ -50,7 +50,6 @@ func (c AppPlatformClient) AppsValidateDomain(ctx context.Context, id AppId, inp var model CustomDomainValidateResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingsget.go index d2f0b1c572d6..fd7934dd4849 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_bindingsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BindingsGet(ctx context.Context, id BindingId) (resul var model BindingResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindingget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindingget.go index 46c526b6d26c..9cb2a5754d57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindingget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildpackbindingget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildpackBindingGet(ctx context.Context, id BuildPack var model BuildpackBindingResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoolget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoolget.go index 022f16023e8b..5c09fcc1136e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoolget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildserviceagentpoolget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceAgentPoolGet(ctx context.Context, id Agen var model BuildServiceAgentPoolResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderget.go index 6970226423e0..fc88a1423e7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceBuilderGet(ctx context.Context, id Builde var model BuilderResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlistdeployments.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlistdeployments.go index 3bb23d157831..28662e9243e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlistdeployments.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicebuilderlistdeployments.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) BuildServiceBuilderListDeployments(ctx context.Contex var model DeploymentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicecreateorupdatebuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicecreateorupdatebuild.go index 81c5ebabc623..c8b22694446b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicecreateorupdatebuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicecreateorupdatebuild.go @@ -50,7 +50,6 @@ func (c AppPlatformClient) BuildServiceCreateOrUpdateBuild(ctx context.Context, var model Build result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuild.go index 70c3079f9147..3c1248a1c361 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuild.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceGetBuild(ctx context.Context, id BuildId) var model Build result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresult.go index 2a378c0c67cc..d9cbe5b06af9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresult.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceGetBuildResult(ctx context.Context, id Re var model BuildResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresultlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresultlog.go index 465da5d9a2ab..f025aeac9494 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresultlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildresultlog.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) BuildServiceGetBuildResultLog(ctx context.Context, id var model BuildResultLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildservice.go index 97fd62680cb2..03017c3fdd82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetbuildservice.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceGetBuildService(ctx context.Context, id B var model BuildService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetresourceuploadurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetresourceuploadurl.go index c6ebe1d77af4..9708b701e436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetresourceuploadurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetresourceuploadurl.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) BuildServiceGetResourceUploadUrl(ctx context.Context, var model ResourceUploadDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedbuildpack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedbuildpack.go index 724fbad337ac..e1f390735d45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedbuildpack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedbuildpack.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceGetSupportedBuildpack(ctx context.Context var model SupportedBuildpackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedstack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedstack.go index 63d59a7779e4..6c8f254c7d1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedstack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_buildservicegetsupportedstack.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) BuildServiceGetSupportedStack(ctx context.Context, id var model SupportedStackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificatesget.go index f7bef5eb3764..402d3daf21fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_certificatesget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) CertificatesGet(ctx context.Context, id CertificateId var model CertificateResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configserversget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configserversget.go index 370c6ca9d474..9d926525ebba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configserversget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configserversget.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) ConfigServersGet(ctx context.Context, id commonids.Sp var model ConfigServerResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationservicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationservicesget.go index 73009c6355ee..6182cda68a02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationservicesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_configurationservicesget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ConfigurationServicesGet(ctx context.Context, id Conf var model ConfigurationServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistriesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistriesget.go index 0854da5f8aae..721f5cf55c97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistriesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_containerregistriesget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ContainerRegistriesGet(ctx context.Context, id Contai var model ContainerRegistryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainsget.go index 4ac146fcd801..5029cb05619e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customdomainsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) CustomDomainsGet(ctx context.Context, id DomainId) (r var model CustomDomainResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorsget.go index 93096eee0faf..7197ce868af4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_customizedacceleratorsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) CustomizedAcceleratorsGet(ctx context.Context, id Cus var model CustomizedAcceleratorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsget.go index 41f7475d8cce..cfbf6da94b66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) DeploymentsGet(ctx context.Context, id DeploymentId) var model DeploymentResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetlogfileurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetlogfileurl.go index a4771e38445d..674afbef641c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetlogfileurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetlogfileurl.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) DeploymentsGetLogFileUrl(ctx context.Context, id Depl var model LogFileUrlResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetremotedebuggingconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetremotedebuggingconfig.go index b319dd43fe6c..6a8077b27f18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetremotedebuggingconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentsgetremotedebuggingconfig.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) DeploymentsGetRemoteDebuggingConfig(ctx context.Conte var model RemoteDebugging result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go index 9f59eb8df5c2..c0f57dc7744f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslist.go @@ -40,6 +40,7 @@ func (o DeploymentsListOperationOptions) ToHeaders() *client.Headers { func (o DeploymentsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go index 2496ba5da3f1..9e8454491d55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_deploymentslistforcluster.go @@ -41,6 +41,7 @@ func (o DeploymentsListForClusterOperationOptions) ToHeaders() *client.Headers { func (o DeploymentsListForClusterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalsget.go index c3d25c11e378..6684c6d03324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_devtoolportalsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) DevToolPortalsGet(ctx context.Context, id DevToolPort var model DevToolPortalResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserversget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserversget.go index f18f93980c6d..18a319e61bb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserversget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_eurekaserversget.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) EurekaServersGet(ctx context.Context, id commonids.Sp var model EurekaServerResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainsget.go index e5ffc650511f..64454f48288b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaycustomdomainsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) GatewayCustomDomainsGet(ctx context.Context, id Gatew var model GatewayCustomDomainResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigsget.go index 961b30529c39..803763918498 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayrouteconfigsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) GatewayRouteConfigsGet(ctx context.Context, id RouteC var model GatewayRouteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysget.go index 30d694c4e51f..51ceea59d549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) GatewaysGet(ctx context.Context, id GatewayId) (resul var model GatewayResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslistenvsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslistenvsecrets.go index d7b9e50cd831..78b159baeab4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslistenvsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewayslistenvsecrets.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) GatewaysListEnvSecrets(ctx context.Context, id Gatewa var model map[string]string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysvalidatedomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysvalidatedomain.go index c1b00963a140..dbac66d1ce6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysvalidatedomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_gatewaysvalidatedomain.go @@ -50,7 +50,6 @@ func (c AppPlatformClient) GatewaysValidateDomain(ctx context.Context, id Gatewa var model CustomDomainValidateResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_monitoringsettingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_monitoringsettingsget.go index 71aa5c6c5a1f..0dcb42750cc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_monitoringsettingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_monitoringsettingsget.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) MonitoringSettingsGet(ctx context.Context, id commoni var model MonitoringSettingResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorsget.go index 2ed06cace039..91ada78ddf11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_predefinedacceleratorsget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) PredefinedAcceleratorsGet(ctx context.Context, id Pre var model PredefinedAcceleratorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_runtimeversionslistruntimeversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_runtimeversionslistruntimeversions.go index fe9f0c3f6898..81408df96f0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_runtimeversionslistruntimeversions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_runtimeversionslistruntimeversions.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) RuntimeVersionsListRuntimeVersions(ctx context.Contex var model AvailableRuntimeVersions result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistriesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistriesget.go index 60b90a94cea6..0259bd789c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistriesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceregistriesget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) ServiceRegistriesGet(ctx context.Context, id ServiceR var model ServiceRegistryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceschecknameavailability.go index aca0efe340d2..c43d41eefa6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceschecknameavailability.go @@ -50,7 +50,6 @@ func (c AppPlatformClient) ServicesCheckNameAvailability(ctx context.Context, id var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesenabletestendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesenabletestendpoint.go index 23adca57b750..1df588bc859a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesenabletestendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesenabletestendpoint.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) ServicesEnableTestEndpoint(ctx context.Context, id co var model TestKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesget.go index 31ccba1ca6e7..cc3d2a0cae2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesget.go @@ -46,7 +46,6 @@ func (c AppPlatformClient) ServicesGet(ctx context.Context, id commonids.SpringC var model ServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistgloballyenabledapms.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistgloballyenabledapms.go index 6dd339d44c92..262011227cf4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistgloballyenabledapms.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslistgloballyenabledapms.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) ServicesListGloballyEnabledApms(ctx context.Context, var model GloballyEnabledApms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslisttestkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslisttestkeys.go index 197dd28a1c8f..7ccfa6d9aa4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslisttestkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_serviceslisttestkeys.go @@ -47,7 +47,6 @@ func (c AppPlatformClient) ServicesListTestKeys(ctx context.Context, id commonid var model TestKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesregeneratetestkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesregeneratetestkey.go index 664a0e6a4ccf..f83c2cf2c590 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesregeneratetestkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_servicesregeneratetestkey.go @@ -51,7 +51,6 @@ func (c AppPlatformClient) ServicesRegenerateTestKey(ctx context.Context, id com var model TestKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storagesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storagesget.go index 6623c2f57ef0..8e3bc1508f9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storagesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/method_storagesget.go @@ -45,7 +45,6 @@ func (c AppPlatformClient) StoragesGet(ctx context.Context, id StorageId) (resul var model StorageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorauthsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorauthsetting.go index 9f035ed61a38..5f33dd8752ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorauthsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorauthsetting.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AcceleratorAuthSetting interface { + AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl } -// RawAcceleratorAuthSettingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AcceleratorAuthSetting = BaseAcceleratorAuthSettingImpl{} + +type BaseAcceleratorAuthSettingImpl struct { + AuthType string `json:"authType"` +} + +func (s BaseAcceleratorAuthSettingImpl) AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl { + return s +} + +var _ AcceleratorAuthSetting = RawAcceleratorAuthSettingImpl{} + +// RawAcceleratorAuthSettingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAcceleratorAuthSettingImpl struct { - Type string - Values map[string]interface{} + acceleratorAuthSetting BaseAcceleratorAuthSettingImpl + Type string + Values map[string]interface{} +} + +func (s RawAcceleratorAuthSettingImpl) AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl { + return s.acceleratorAuthSetting } -func unmarshalAcceleratorAuthSettingImplementation(input []byte) (AcceleratorAuthSetting, error) { +func UnmarshalAcceleratorAuthSettingImplementation(input []byte) (AcceleratorAuthSetting, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAcceleratorAuthSettingImplementation(input []byte) (AcceleratorAut return nil, fmt.Errorf("unmarshaling AcceleratorAuthSetting into map[string]interface: %+v", err) } - value, ok := temp["authType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["authType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BasicAuth") { @@ -60,10 +77,15 @@ func unmarshalAcceleratorAuthSettingImplementation(input []byte) (AcceleratorAut return out, nil } - out := RawAcceleratorAuthSettingImpl{ - Type: value, - Values: temp, + var parent BaseAcceleratorAuthSettingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAcceleratorAuthSettingImpl: %+v", err) } - return out, nil + + return RawAcceleratorAuthSettingImpl{ + acceleratorAuthSetting: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorbasicauthsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorbasicauthsetting.go index c26e9b760093..c8a4ac5dfdfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorbasicauthsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorbasicauthsetting.go @@ -16,6 +16,14 @@ type AcceleratorBasicAuthSetting struct { Username string `json:"username"` // Fields inherited from AcceleratorAuthSetting + + AuthType string `json:"authType"` +} + +func (s AcceleratorBasicAuthSetting) AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl { + return BaseAcceleratorAuthSettingImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = AcceleratorBasicAuthSetting{} @@ -29,9 +37,10 @@ func (s AcceleratorBasicAuthSetting) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AcceleratorBasicAuthSetting: %+v", err) } + decoded["authType"] = "BasicAuth" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorgitrepository.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorgitrepository.go index c53840798538..fa1136494a3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorgitrepository.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorgitrepository.go @@ -21,10 +21,16 @@ type AcceleratorGitRepository struct { var _ json.Unmarshaler = &AcceleratorGitRepository{} func (s *AcceleratorGitRepository) UnmarshalJSON(bytes []byte) error { - type alias AcceleratorGitRepository - var decoded alias + var decoded struct { + Branch *string `json:"branch,omitempty"` + Commit *string `json:"commit,omitempty"` + GitTag *string `json:"gitTag,omitempty"` + IntervalInSeconds *int64 `json:"intervalInSeconds,omitempty"` + SubPath *string `json:"subPath,omitempty"` + Url string `json:"url"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AcceleratorGitRepository: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Branch = decoded.Branch @@ -40,11 +46,12 @@ func (s *AcceleratorGitRepository) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["authSetting"]; ok { - impl, err := unmarshalAcceleratorAuthSettingImplementation(v) + impl, err := UnmarshalAcceleratorAuthSettingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'AuthSetting' for 'AcceleratorGitRepository': %+v", err) } s.AuthSetting = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorpublicsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorpublicsetting.go index 8f2526b39b90..ceddf807fd1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorpublicsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorpublicsetting.go @@ -14,6 +14,14 @@ type AcceleratorPublicSetting struct { CaCertResourceId *string `json:"caCertResourceId,omitempty"` // Fields inherited from AcceleratorAuthSetting + + AuthType string `json:"authType"` +} + +func (s AcceleratorPublicSetting) AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl { + return BaseAcceleratorAuthSettingImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = AcceleratorPublicSetting{} @@ -27,9 +35,10 @@ func (s AcceleratorPublicSetting) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AcceleratorPublicSetting: %+v", err) } + decoded["authType"] = "Public" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorsshsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorsshsetting.go index 257c4615505f..9206fb45e17a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorsshsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_acceleratorsshsetting.go @@ -16,6 +16,14 @@ type AcceleratorSshSetting struct { PrivateKey *string `json:"privateKey,omitempty"` // Fields inherited from AcceleratorAuthSetting + + AuthType string `json:"authType"` +} + +func (s AcceleratorSshSetting) AcceleratorAuthSetting() BaseAcceleratorAuthSettingImpl { + return BaseAcceleratorAuthSettingImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = AcceleratorSshSetting{} @@ -29,9 +37,10 @@ func (s AcceleratorSshSetting) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AcceleratorSshSetting: %+v", err) } + decoded["authType"] = "SSH" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_azurefilevolume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_azurefilevolume.go index 6111b3c03211..a8d1838313ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_azurefilevolume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_azurefilevolume.go @@ -14,10 +14,22 @@ type AzureFileVolume struct { ShareName *string `json:"shareName,omitempty"` // Fields inherited from CustomPersistentDiskProperties + EnableSubPath *bool `json:"enableSubPath,omitempty"` MountOptions *[]string `json:"mountOptions,omitempty"` MountPath string `json:"mountPath"` ReadOnly *bool `json:"readOnly,omitempty"` + Type Type `json:"type"` +} + +func (s AzureFileVolume) CustomPersistentDiskProperties() BaseCustomPersistentDiskPropertiesImpl { + return BaseCustomPersistentDiskPropertiesImpl{ + EnableSubPath: s.EnableSubPath, + MountOptions: s.MountOptions, + MountPath: s.MountPath, + ReadOnly: s.ReadOnly, + Type: s.Type, + } } var _ json.Marshaler = AzureFileVolume{} @@ -31,9 +43,10 @@ func (s AzureFileVolume) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileVolume: %+v", err) } + decoded["type"] = "AzureFileVolume" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_buildresultusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_buildresultusersourceinfo.go index 8591e1591863..c0221f1525b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_buildresultusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_buildresultusersourceinfo.go @@ -14,9 +14,18 @@ type BuildResultUserSourceInfo struct { BuildResultId *string `json:"buildResultId,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s BuildResultUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = BuildResultUserSourceInfo{} func (s BuildResultUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -28,9 +37,10 @@ func (s BuildResultUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BuildResultUserSourceInfo: %+v", err) } + decoded["type"] = "BuildResult" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateproperties.go index 804bcf829628..538de405fe91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateproperties.go @@ -10,18 +10,43 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CertificateProperties interface { + CertificateProperties() BaseCertificatePropertiesImpl } -// RawCertificatePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ CertificateProperties = BaseCertificatePropertiesImpl{} + +type BaseCertificatePropertiesImpl struct { + ActivateDate *string `json:"activateDate,omitempty"` + DnsNames *[]string `json:"dnsNames,omitempty"` + ExpirationDate *string `json:"expirationDate,omitempty"` + IssuedDate *string `json:"issuedDate,omitempty"` + Issuer *string `json:"issuer,omitempty"` + ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty"` + SubjectName *string `json:"subjectName,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + Type string `json:"type"` +} + +func (s BaseCertificatePropertiesImpl) CertificateProperties() BaseCertificatePropertiesImpl { + return s +} + +var _ CertificateProperties = RawCertificatePropertiesImpl{} + +// RawCertificatePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawCertificatePropertiesImpl struct { - Type string - Values map[string]interface{} + certificateProperties BaseCertificatePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawCertificatePropertiesImpl) CertificateProperties() BaseCertificatePropertiesImpl { + return s.certificateProperties } -func unmarshalCertificatePropertiesImplementation(input []byte) (CertificateProperties, error) { +func UnmarshalCertificatePropertiesImplementation(input []byte) (CertificateProperties, error) { if input == nil { return nil, nil } @@ -31,9 +56,9 @@ func unmarshalCertificatePropertiesImplementation(input []byte) (CertificateProp return nil, fmt.Errorf("unmarshaling CertificateProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ContentCertificate") { @@ -52,10 +77,15 @@ func unmarshalCertificatePropertiesImplementation(input []byte) (CertificateProp return out, nil } - out := RawCertificatePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseCertificatePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseCertificatePropertiesImpl: %+v", err) } - return out, nil + + return RawCertificatePropertiesImpl{ + certificateProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateresource.go index 440cbc2881f7..3b9d36c6965a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_certificateresource.go @@ -21,10 +21,14 @@ type CertificateResource struct { var _ json.Unmarshaler = &CertificateResource{} func (s *CertificateResource) UnmarshalJSON(bytes []byte) error { - type alias CertificateResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CertificateResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *CertificateResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalCertificatePropertiesImplementation(v) + impl, err := UnmarshalCertificatePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'CertificateResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_clusterresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_clusterresourceproperties.go index 2f5fcf95be55..5949acd98661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_clusterresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_clusterresourceproperties.go @@ -26,10 +26,21 @@ type ClusterResourceProperties struct { var _ json.Unmarshaler = &ClusterResourceProperties{} func (s *ClusterResourceProperties) UnmarshalJSON(bytes []byte) error { - type alias ClusterResourceProperties - var decoded alias + var decoded struct { + Fqdn *string `json:"fqdn,omitempty"` + InfraResourceGroup *string `json:"infraResourceGroup,omitempty"` + ManagedEnvironmentId *string `json:"managedEnvironmentId,omitempty"` + MarketplaceResource *MarketplaceResource `json:"marketplaceResource,omitempty"` + NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` + PowerState *PowerState `json:"powerState,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ServiceId *string `json:"serviceId,omitempty"` + Version *int64 `json:"version,omitempty"` + VnetAddons *ServiceVNetAddons `json:"vnetAddons,omitempty"` + ZoneRedundant *bool `json:"zoneRedundant,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ClusterResourceProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Fqdn = decoded.Fqdn @@ -50,11 +61,12 @@ func (s *ClusterResourceProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["maintenanceScheduleConfiguration"]; ok { - impl, err := unmarshalMaintenanceScheduleConfigurationImplementation(v) + impl, err := UnmarshalMaintenanceScheduleConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'MaintenanceScheduleConfiguration' for 'ClusterResourceProperties': %+v", err) } s.MaintenanceScheduleConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrybasiccredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrybasiccredentials.go index af8eb0534096..a5f9bcfb6a05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrybasiccredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrybasiccredentials.go @@ -16,6 +16,14 @@ type ContainerRegistryBasicCredentials struct { Username string `json:"username"` // Fields inherited from ContainerRegistryCredentials + + Type string `json:"type"` +} + +func (s ContainerRegistryBasicCredentials) ContainerRegistryCredentials() BaseContainerRegistryCredentialsImpl { + return BaseContainerRegistryCredentialsImpl{ + Type: s.Type, + } } var _ json.Marshaler = ContainerRegistryBasicCredentials{} @@ -29,9 +37,10 @@ func (s ContainerRegistryBasicCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ContainerRegistryBasicCredentials: %+v", err) } + decoded["type"] = "BasicAuth" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrycredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrycredentials.go index 84918f1d125d..37b21f4fbbe3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrycredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistrycredentials.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ContainerRegistryCredentials interface { + ContainerRegistryCredentials() BaseContainerRegistryCredentialsImpl } -// RawContainerRegistryCredentialsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ContainerRegistryCredentials = BaseContainerRegistryCredentialsImpl{} + +type BaseContainerRegistryCredentialsImpl struct { + Type string `json:"type"` +} + +func (s BaseContainerRegistryCredentialsImpl) ContainerRegistryCredentials() BaseContainerRegistryCredentialsImpl { + return s +} + +var _ ContainerRegistryCredentials = RawContainerRegistryCredentialsImpl{} + +// RawContainerRegistryCredentialsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawContainerRegistryCredentialsImpl struct { - Type string - Values map[string]interface{} + containerRegistryCredentials BaseContainerRegistryCredentialsImpl + Type string + Values map[string]interface{} +} + +func (s RawContainerRegistryCredentialsImpl) ContainerRegistryCredentials() BaseContainerRegistryCredentialsImpl { + return s.containerRegistryCredentials } -func unmarshalContainerRegistryCredentialsImplementation(input []byte) (ContainerRegistryCredentials, error) { +func UnmarshalContainerRegistryCredentialsImplementation(input []byte) (ContainerRegistryCredentials, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalContainerRegistryCredentialsImplementation(input []byte) (Containe return nil, fmt.Errorf("unmarshaling ContainerRegistryCredentials into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BasicAuth") { @@ -44,10 +61,15 @@ func unmarshalContainerRegistryCredentialsImplementation(input []byte) (Containe return out, nil } - out := RawContainerRegistryCredentialsImpl{ - Type: value, - Values: temp, + var parent BaseContainerRegistryCredentialsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseContainerRegistryCredentialsImpl: %+v", err) } - return out, nil + + return RawContainerRegistryCredentialsImpl{ + containerRegistryCredentials: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistryproperties.go index 4a1e18b8583d..e93d3f3155d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistryproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_containerregistryproperties.go @@ -16,10 +16,11 @@ type ContainerRegistryProperties struct { var _ json.Unmarshaler = &ContainerRegistryProperties{} func (s *ContainerRegistryProperties) UnmarshalJSON(bytes []byte) error { - type alias ContainerRegistryProperties - var decoded alias + var decoded struct { + ProvisioningState *ContainerRegistryProvisioningState `json:"provisioningState,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ContainerRegistryProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ProvisioningState = decoded.ProvisioningState @@ -30,11 +31,12 @@ func (s *ContainerRegistryProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalContainerRegistryCredentialsImplementation(v) + impl, err := UnmarshalContainerRegistryCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'ContainerRegistryProperties': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_contentcertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_contentcertificateproperties.go index d6f7a6110fd4..f6fb41bdbcdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_contentcertificateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_contentcertificateproperties.go @@ -14,6 +14,7 @@ type ContentCertificateProperties struct { Content *string `json:"content,omitempty"` // Fields inherited from CertificateProperties + ActivateDate *string `json:"activateDate,omitempty"` DnsNames *[]string `json:"dnsNames,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` @@ -22,6 +23,21 @@ type ContentCertificateProperties struct { ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty"` SubjectName *string `json:"subjectName,omitempty"` Thumbprint *string `json:"thumbprint,omitempty"` + Type string `json:"type"` +} + +func (s ContentCertificateProperties) CertificateProperties() BaseCertificatePropertiesImpl { + return BaseCertificatePropertiesImpl{ + ActivateDate: s.ActivateDate, + DnsNames: s.DnsNames, + ExpirationDate: s.ExpirationDate, + IssuedDate: s.IssuedDate, + Issuer: s.Issuer, + ProvisioningState: s.ProvisioningState, + SubjectName: s.SubjectName, + Thumbprint: s.Thumbprint, + Type: s.Type, + } } var _ json.Marshaler = ContentCertificateProperties{} @@ -35,9 +51,10 @@ func (s ContentCertificateProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ContentCertificateProperties: %+v", err) } + decoded["type"] = "ContentCertificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_customcontainerusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_customcontainerusersourceinfo.go index 8411b51a62ce..4140c24d62c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_customcontainerusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_customcontainerusersourceinfo.go @@ -14,9 +14,18 @@ type CustomContainerUserSourceInfo struct { CustomContainer *CustomContainer `json:"customContainer,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s CustomContainerUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = CustomContainerUserSourceInfo{} func (s CustomContainerUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -28,9 +37,10 @@ func (s CustomContainerUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CustomContainerUserSourceInfo: %+v", err) } + decoded["type"] = "Container" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskproperties.go index be9da2ff0536..fce77befdbcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskproperties.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CustomPersistentDiskProperties interface { + CustomPersistentDiskProperties() BaseCustomPersistentDiskPropertiesImpl } -// RawCustomPersistentDiskPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ CustomPersistentDiskProperties = BaseCustomPersistentDiskPropertiesImpl{} + +type BaseCustomPersistentDiskPropertiesImpl struct { + EnableSubPath *bool `json:"enableSubPath,omitempty"` + MountOptions *[]string `json:"mountOptions,omitempty"` + MountPath string `json:"mountPath"` + ReadOnly *bool `json:"readOnly,omitempty"` + Type Type `json:"type"` +} + +func (s BaseCustomPersistentDiskPropertiesImpl) CustomPersistentDiskProperties() BaseCustomPersistentDiskPropertiesImpl { + return s +} + +var _ CustomPersistentDiskProperties = RawCustomPersistentDiskPropertiesImpl{} + +// RawCustomPersistentDiskPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawCustomPersistentDiskPropertiesImpl struct { - Type string - Values map[string]interface{} + customPersistentDiskProperties BaseCustomPersistentDiskPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawCustomPersistentDiskPropertiesImpl) CustomPersistentDiskProperties() BaseCustomPersistentDiskPropertiesImpl { + return s.customPersistentDiskProperties } -func unmarshalCustomPersistentDiskPropertiesImplementation(input []byte) (CustomPersistentDiskProperties, error) { +func UnmarshalCustomPersistentDiskPropertiesImplementation(input []byte) (CustomPersistentDiskProperties, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalCustomPersistentDiskPropertiesImplementation(input []byte) (Custom return nil, fmt.Errorf("unmarshaling CustomPersistentDiskProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureFileVolume") { @@ -44,10 +65,15 @@ func unmarshalCustomPersistentDiskPropertiesImplementation(input []byte) (Custom return out, nil } - out := RawCustomPersistentDiskPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseCustomPersistentDiskPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseCustomPersistentDiskPropertiesImpl: %+v", err) } - return out, nil + + return RawCustomPersistentDiskPropertiesImpl{ + customPersistentDiskProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskresource.go index 7a111d5c2505..7dff858c779d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_custompersistentdiskresource.go @@ -16,10 +16,11 @@ type CustomPersistentDiskResource struct { var _ json.Unmarshaler = &CustomPersistentDiskResource{} func (s *CustomPersistentDiskResource) UnmarshalJSON(bytes []byte) error { - type alias CustomPersistentDiskResource - var decoded alias + var decoded struct { + StorageId string `json:"storageId"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CustomPersistentDiskResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.StorageId = decoded.StorageId @@ -30,11 +31,12 @@ func (s *CustomPersistentDiskResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customPersistentDiskProperties"]; ok { - impl, err := unmarshalCustomPersistentDiskPropertiesImplementation(v) + impl, err := UnmarshalCustomPersistentDiskPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomPersistentDiskProperties' for 'CustomPersistentDiskResource': %+v", err) } s.CustomPersistentDiskProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_deploymentresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_deploymentresourceproperties.go index 145d01978431..115bdf6fdc94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_deploymentresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_deploymentresourceproperties.go @@ -20,10 +20,15 @@ type DeploymentResourceProperties struct { var _ json.Unmarshaler = &DeploymentResourceProperties{} func (s *DeploymentResourceProperties) UnmarshalJSON(bytes []byte) error { - type alias DeploymentResourceProperties - var decoded alias + var decoded struct { + Active *bool `json:"active,omitempty"` + DeploymentSettings *DeploymentSettings `json:"deploymentSettings,omitempty"` + Instances *[]DeploymentInstance `json:"instances,omitempty"` + ProvisioningState *DeploymentResourceProvisioningState `json:"provisioningState,omitempty"` + Status *DeploymentResourceStatus `json:"status,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DeploymentResourceProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Active = decoded.Active @@ -38,11 +43,12 @@ func (s *DeploymentResourceProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["source"]; ok { - impl, err := unmarshalUserSourceInfoImplementation(v) + impl, err := UnmarshalUserSourceInfoImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Source' for 'DeploymentResourceProperties': %+v", err) } s.Source = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_execaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_execaction.go index 6a220bef9b94..45312ffa5dac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_execaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_execaction.go @@ -14,6 +14,14 @@ type ExecAction struct { Command *[]string `json:"command,omitempty"` // Fields inherited from ProbeAction + + Type ProbeActionType `json:"type"` +} + +func (s ExecAction) ProbeAction() BaseProbeActionImpl { + return BaseProbeActionImpl{ + Type: s.Type, + } } var _ json.Marshaler = ExecAction{} @@ -27,9 +35,10 @@ func (s ExecAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ExecAction: %+v", err) } + decoded["type"] = "ExecAction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperinstanceproperties.go index 49433c0a2560..9b03b60fb1b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperinstanceproperties.go @@ -15,6 +15,14 @@ type GatewayLocalResponseCachePerInstanceProperties struct { TimeToLive *string `json:"timeToLive,omitempty"` // Fields inherited from GatewayResponseCacheProperties + + ResponseCacheType string `json:"responseCacheType"` +} + +func (s GatewayLocalResponseCachePerInstanceProperties) GatewayResponseCacheProperties() BaseGatewayResponseCachePropertiesImpl { + return BaseGatewayResponseCachePropertiesImpl{ + ResponseCacheType: s.ResponseCacheType, + } } var _ json.Marshaler = GatewayLocalResponseCachePerInstanceProperties{} @@ -28,9 +36,10 @@ func (s GatewayLocalResponseCachePerInstanceProperties) MarshalJSON() ([]byte, e } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayLocalResponseCachePerInstanceProperties: %+v", err) } + decoded["responseCacheType"] = "LocalCachePerInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperrouteproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperrouteproperties.go index 4b82764dd33a..02a1e952dc14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperrouteproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewaylocalresponsecacheperrouteproperties.go @@ -15,6 +15,14 @@ type GatewayLocalResponseCachePerRouteProperties struct { TimeToLive *string `json:"timeToLive,omitempty"` // Fields inherited from GatewayResponseCacheProperties + + ResponseCacheType string `json:"responseCacheType"` +} + +func (s GatewayLocalResponseCachePerRouteProperties) GatewayResponseCacheProperties() BaseGatewayResponseCachePropertiesImpl { + return BaseGatewayResponseCachePropertiesImpl{ + ResponseCacheType: s.ResponseCacheType, + } } var _ json.Marshaler = GatewayLocalResponseCachePerRouteProperties{} @@ -28,9 +36,10 @@ func (s GatewayLocalResponseCachePerRouteProperties) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayLocalResponseCachePerRouteProperties: %+v", err) } + decoded["responseCacheType"] = "LocalCachePerRoute" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayproperties.go index 1632c452e6dd..029aa2ecbf2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayproperties.go @@ -30,10 +30,25 @@ type GatewayProperties struct { var _ json.Unmarshaler = &GatewayProperties{} func (s *GatewayProperties) UnmarshalJSON(bytes []byte) error { - type alias GatewayProperties - var decoded alias + var decoded struct { + AddonConfigs *map[string]interface{} `json:"addonConfigs,omitempty"` + ApiMetadataProperties *GatewayApiMetadataProperties `json:"apiMetadataProperties,omitempty"` + ApmTypes *[]ApmType `json:"apmTypes,omitempty"` + Apms *[]ApmReference `json:"apms,omitempty"` + ClientAuth *GatewayPropertiesClientAuth `json:"clientAuth,omitempty"` + CorsProperties *GatewayCorsProperties `json:"corsProperties,omitempty"` + EnvironmentVariables *GatewayPropertiesEnvironmentVariables `json:"environmentVariables,omitempty"` + HTTPSOnly *bool `json:"httpsOnly,omitempty"` + Instances *[]GatewayInstance `json:"instances,omitempty"` + OperatorProperties *GatewayOperatorProperties `json:"operatorProperties,omitempty"` + ProvisioningState *GatewayProvisioningState `json:"provisioningState,omitempty"` + Public *bool `json:"public,omitempty"` + ResourceRequests *GatewayResourceRequests `json:"resourceRequests,omitempty"` + SsoProperties *SsoProperties `json:"ssoProperties,omitempty"` + Url *string `json:"url,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into GatewayProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AddonConfigs = decoded.AddonConfigs @@ -58,11 +73,12 @@ func (s *GatewayProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["responseCacheProperties"]; ok { - impl, err := unmarshalGatewayResponseCachePropertiesImplementation(v) + impl, err := UnmarshalGatewayResponseCachePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ResponseCacheProperties' for 'GatewayProperties': %+v", err) } s.ResponseCacheProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayresponsecacheproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayresponsecacheproperties.go index 491cff612eb4..32b4c428f534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayresponsecacheproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_gatewayresponsecacheproperties.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type GatewayResponseCacheProperties interface { + GatewayResponseCacheProperties() BaseGatewayResponseCachePropertiesImpl } -// RawGatewayResponseCachePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ GatewayResponseCacheProperties = BaseGatewayResponseCachePropertiesImpl{} + +type BaseGatewayResponseCachePropertiesImpl struct { + ResponseCacheType string `json:"responseCacheType"` +} + +func (s BaseGatewayResponseCachePropertiesImpl) GatewayResponseCacheProperties() BaseGatewayResponseCachePropertiesImpl { + return s +} + +var _ GatewayResponseCacheProperties = RawGatewayResponseCachePropertiesImpl{} + +// RawGatewayResponseCachePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawGatewayResponseCachePropertiesImpl struct { - Type string - Values map[string]interface{} + gatewayResponseCacheProperties BaseGatewayResponseCachePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawGatewayResponseCachePropertiesImpl) GatewayResponseCacheProperties() BaseGatewayResponseCachePropertiesImpl { + return s.gatewayResponseCacheProperties } -func unmarshalGatewayResponseCachePropertiesImplementation(input []byte) (GatewayResponseCacheProperties, error) { +func UnmarshalGatewayResponseCachePropertiesImplementation(input []byte) (GatewayResponseCacheProperties, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalGatewayResponseCachePropertiesImplementation(input []byte) (Gatewa return nil, fmt.Errorf("unmarshaling GatewayResponseCacheProperties into map[string]interface: %+v", err) } - value, ok := temp["responseCacheType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["responseCacheType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "LocalCachePerInstance") { @@ -52,10 +69,15 @@ func unmarshalGatewayResponseCachePropertiesImplementation(input []byte) (Gatewa return out, nil } - out := RawGatewayResponseCachePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseGatewayResponseCachePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseGatewayResponseCachePropertiesImpl: %+v", err) } - return out, nil + + return RawGatewayResponseCachePropertiesImpl{ + gatewayResponseCacheProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_httpgetaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_httpgetaction.go index 702c4d0f29d7..becd9aadb388 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_httpgetaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_httpgetaction.go @@ -15,6 +15,14 @@ type HTTPGetAction struct { Scheme *HTTPSchemeType `json:"scheme,omitempty"` // Fields inherited from ProbeAction + + Type ProbeActionType `json:"type"` +} + +func (s HTTPGetAction) ProbeAction() BaseProbeActionImpl { + return BaseProbeActionImpl{ + Type: s.Type, + } } var _ json.Marshaler = HTTPGetAction{} @@ -28,9 +36,10 @@ func (s HTTPGetAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HTTPGetAction: %+v", err) } + decoded["type"] = "HTTPGetAction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_jaruploadedusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_jaruploadedusersourceinfo.go index 2047480ff519..8b8eb6627900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_jaruploadedusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_jaruploadedusersourceinfo.go @@ -16,9 +16,18 @@ type JarUploadedUserSourceInfo struct { RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s JarUploadedUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = JarUploadedUserSourceInfo{} func (s JarUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -30,9 +39,10 @@ func (s JarUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JarUploadedUserSourceInfo: %+v", err) } + decoded["type"] = "Jar" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_keyvaultcertificateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_keyvaultcertificateproperties.go index eb7b72af629d..22d986dece66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_keyvaultcertificateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_keyvaultcertificateproperties.go @@ -18,6 +18,7 @@ type KeyVaultCertificateProperties struct { VaultUri string `json:"vaultUri"` // Fields inherited from CertificateProperties + ActivateDate *string `json:"activateDate,omitempty"` DnsNames *[]string `json:"dnsNames,omitempty"` ExpirationDate *string `json:"expirationDate,omitempty"` @@ -26,6 +27,21 @@ type KeyVaultCertificateProperties struct { ProvisioningState *CertificateResourceProvisioningState `json:"provisioningState,omitempty"` SubjectName *string `json:"subjectName,omitempty"` Thumbprint *string `json:"thumbprint,omitempty"` + Type string `json:"type"` +} + +func (s KeyVaultCertificateProperties) CertificateProperties() BaseCertificatePropertiesImpl { + return BaseCertificatePropertiesImpl{ + ActivateDate: s.ActivateDate, + DnsNames: s.DnsNames, + ExpirationDate: s.ExpirationDate, + IssuedDate: s.IssuedDate, + Issuer: s.Issuer, + ProvisioningState: s.ProvisioningState, + SubjectName: s.SubjectName, + Thumbprint: s.Thumbprint, + Type: s.Type, + } } var _ json.Marshaler = KeyVaultCertificateProperties{} @@ -39,9 +55,10 @@ func (s KeyVaultCertificateProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KeyVaultCertificateProperties: %+v", err) } + decoded["type"] = "KeyVaultCertificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_maintenancescheduleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_maintenancescheduleconfiguration.go index 20d0e309f570..e412c94e8b0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_maintenancescheduleconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_maintenancescheduleconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type MaintenanceScheduleConfiguration interface { + MaintenanceScheduleConfiguration() BaseMaintenanceScheduleConfigurationImpl } -// RawMaintenanceScheduleConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ MaintenanceScheduleConfiguration = BaseMaintenanceScheduleConfigurationImpl{} + +type BaseMaintenanceScheduleConfigurationImpl struct { + Frequency Frequency `json:"frequency"` +} + +func (s BaseMaintenanceScheduleConfigurationImpl) MaintenanceScheduleConfiguration() BaseMaintenanceScheduleConfigurationImpl { + return s +} + +var _ MaintenanceScheduleConfiguration = RawMaintenanceScheduleConfigurationImpl{} + +// RawMaintenanceScheduleConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawMaintenanceScheduleConfigurationImpl struct { - Type string - Values map[string]interface{} + maintenanceScheduleConfiguration BaseMaintenanceScheduleConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawMaintenanceScheduleConfigurationImpl) MaintenanceScheduleConfiguration() BaseMaintenanceScheduleConfigurationImpl { + return s.maintenanceScheduleConfiguration } -func unmarshalMaintenanceScheduleConfigurationImplementation(input []byte) (MaintenanceScheduleConfiguration, error) { +func UnmarshalMaintenanceScheduleConfigurationImplementation(input []byte) (MaintenanceScheduleConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalMaintenanceScheduleConfigurationImplementation(input []byte) (Main return nil, fmt.Errorf("unmarshaling MaintenanceScheduleConfiguration into map[string]interface: %+v", err) } - value, ok := temp["frequency"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["frequency"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Weekly") { @@ -44,10 +61,15 @@ func unmarshalMaintenanceScheduleConfigurationImplementation(input []byte) (Main return out, nil } - out := RawMaintenanceScheduleConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseMaintenanceScheduleConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseMaintenanceScheduleConfigurationImpl: %+v", err) } - return out, nil + + return RawMaintenanceScheduleConfigurationImpl{ + maintenanceScheduleConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_netcorezipuploadedusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_netcorezipuploadedusersourceinfo.go index b09513197154..7c52088222a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_netcorezipuploadedusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_netcorezipuploadedusersourceinfo.go @@ -16,9 +16,18 @@ type NetCoreZipUploadedUserSourceInfo struct { RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s NetCoreZipUploadedUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = NetCoreZipUploadedUserSourceInfo{} func (s NetCoreZipUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -30,9 +39,10 @@ func (s NetCoreZipUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NetCoreZipUploadedUserSourceInfo: %+v", err) } + decoded["type"] = "NetCoreZip" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probe.go index c59cb8825f17..d21b9afd46c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probe.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probe.go @@ -21,10 +21,16 @@ type Probe struct { var _ json.Unmarshaler = &Probe{} func (s *Probe) UnmarshalJSON(bytes []byte) error { - type alias Probe - var decoded alias + var decoded struct { + DisableProbe bool `json:"disableProbe"` + FailureThreshold *int64 `json:"failureThreshold,omitempty"` + InitialDelaySeconds *int64 `json:"initialDelaySeconds,omitempty"` + PeriodSeconds *int64 `json:"periodSeconds,omitempty"` + SuccessThreshold *int64 `json:"successThreshold,omitempty"` + TimeoutSeconds *int64 `json:"timeoutSeconds,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Probe: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DisableProbe = decoded.DisableProbe @@ -40,11 +46,12 @@ func (s *Probe) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["probeAction"]; ok { - impl, err := unmarshalProbeActionImplementation(v) + impl, err := UnmarshalProbeActionImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProbeAction' for 'Probe': %+v", err) } s.ProbeAction = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probeaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probeaction.go index c6bb9d81bc24..8dd98c9d225a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probeaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_probeaction.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProbeAction interface { + ProbeAction() BaseProbeActionImpl } -// RawProbeActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProbeAction = BaseProbeActionImpl{} + +type BaseProbeActionImpl struct { + Type ProbeActionType `json:"type"` +} + +func (s BaseProbeActionImpl) ProbeAction() BaseProbeActionImpl { + return s +} + +var _ ProbeAction = RawProbeActionImpl{} + +// RawProbeActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProbeActionImpl struct { - Type string - Values map[string]interface{} + probeAction BaseProbeActionImpl + Type string + Values map[string]interface{} +} + +func (s RawProbeActionImpl) ProbeAction() BaseProbeActionImpl { + return s.probeAction } -func unmarshalProbeActionImplementation(input []byte) (ProbeAction, error) { +func UnmarshalProbeActionImplementation(input []byte) (ProbeAction, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalProbeActionImplementation(input []byte) (ProbeAction, error) { return nil, fmt.Errorf("unmarshaling ProbeAction into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ExecAction") { @@ -60,10 +77,15 @@ func unmarshalProbeActionImplementation(input []byte) (ProbeAction, error) { return out, nil } - out := RawProbeActionImpl{ - Type: value, - Values: temp, + var parent BaseProbeActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProbeActionImpl: %+v", err) } - return out, nil + + return RawProbeActionImpl{ + probeAction: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_sourceuploadedusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_sourceuploadedusersourceinfo.go index 62fe9835ba03..d2c37f2a640e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_sourceuploadedusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_sourceuploadedusersourceinfo.go @@ -16,9 +16,18 @@ type SourceUploadedUserSourceInfo struct { RuntimeVersion *string `json:"runtimeVersion,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s SourceUploadedUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = SourceUploadedUserSourceInfo{} func (s SourceUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -30,9 +39,10 @@ func (s SourceUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SourceUploadedUserSourceInfo: %+v", err) } + decoded["type"] = "Source" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageaccount.go index 3dc49e5a0745..6b25e6ecb185 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageaccount.go @@ -15,6 +15,14 @@ type StorageAccount struct { AccountName string `json:"accountName"` // Fields inherited from StorageProperties + + StorageType StorageType `json:"storageType"` +} + +func (s StorageAccount) StorageProperties() BaseStoragePropertiesImpl { + return BaseStoragePropertiesImpl{ + StorageType: s.StorageType, + } } var _ json.Marshaler = StorageAccount{} @@ -28,9 +36,10 @@ func (s StorageAccount) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StorageAccount: %+v", err) } + decoded["storageType"] = "StorageAccount" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageproperties.go index b73ed4d4d42d..eb6730a795a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageproperties.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type StorageProperties interface { + StorageProperties() BaseStoragePropertiesImpl } -// RawStoragePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ StorageProperties = BaseStoragePropertiesImpl{} + +type BaseStoragePropertiesImpl struct { + StorageType StorageType `json:"storageType"` +} + +func (s BaseStoragePropertiesImpl) StorageProperties() BaseStoragePropertiesImpl { + return s +} + +var _ StorageProperties = RawStoragePropertiesImpl{} + +// RawStoragePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawStoragePropertiesImpl struct { - Type string - Values map[string]interface{} + storageProperties BaseStoragePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawStoragePropertiesImpl) StorageProperties() BaseStoragePropertiesImpl { + return s.storageProperties } -func unmarshalStoragePropertiesImplementation(input []byte) (StorageProperties, error) { +func UnmarshalStoragePropertiesImplementation(input []byte) (StorageProperties, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalStoragePropertiesImplementation(input []byte) (StorageProperties, return nil, fmt.Errorf("unmarshaling StorageProperties into map[string]interface: %+v", err) } - value, ok := temp["storageType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["storageType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "StorageAccount") { @@ -44,10 +61,15 @@ func unmarshalStoragePropertiesImplementation(input []byte) (StorageProperties, return out, nil } - out := RawStoragePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseStoragePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseStoragePropertiesImpl: %+v", err) } - return out, nil + + return RawStoragePropertiesImpl{ + storageProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageresource.go index f09c491658e7..7e6eefb09331 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_storageresource.go @@ -21,10 +21,14 @@ type StorageResource struct { var _ json.Unmarshaler = &StorageResource{} func (s *StorageResource) UnmarshalJSON(bytes []byte) error { - type alias StorageResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into StorageResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *StorageResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalStoragePropertiesImplementation(v) + impl, err := UnmarshalStoragePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'StorageResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_tcpsocketaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_tcpsocketaction.go index a1edd6797d1a..286aa3a47745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_tcpsocketaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_tcpsocketaction.go @@ -13,6 +13,14 @@ var _ ProbeAction = TCPSocketAction{} type TCPSocketAction struct { // Fields inherited from ProbeAction + + Type ProbeActionType `json:"type"` +} + +func (s TCPSocketAction) ProbeAction() BaseProbeActionImpl { + return BaseProbeActionImpl{ + Type: s.Type, + } } var _ json.Marshaler = TCPSocketAction{} @@ -26,9 +34,10 @@ func (s TCPSocketAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling TCPSocketAction: %+v", err) } + decoded["type"] = "TCPSocketAction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_usersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_usersourceinfo.go index d1ac05963f50..bef5f481416d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_usersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_usersourceinfo.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type UserSourceInfo interface { + UserSourceInfo() BaseUserSourceInfoImpl } -// RawUserSourceInfoImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ UserSourceInfo = BaseUserSourceInfoImpl{} + +type BaseUserSourceInfoImpl struct { + Type string `json:"type"` + Version *string `json:"version,omitempty"` +} + +func (s BaseUserSourceInfoImpl) UserSourceInfo() BaseUserSourceInfoImpl { + return s +} + +var _ UserSourceInfo = RawUserSourceInfoImpl{} + +// RawUserSourceInfoImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawUserSourceInfoImpl struct { - Type string - Values map[string]interface{} + userSourceInfo BaseUserSourceInfoImpl + Type string + Values map[string]interface{} +} + +func (s RawUserSourceInfoImpl) UserSourceInfo() BaseUserSourceInfoImpl { + return s.userSourceInfo } -func unmarshalUserSourceInfoImplementation(input []byte) (UserSourceInfo, error) { +func UnmarshalUserSourceInfoImplementation(input []byte) (UserSourceInfo, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalUserSourceInfoImplementation(input []byte) (UserSourceInfo, error) return nil, fmt.Errorf("unmarshaling UserSourceInfo into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BuildResult") { @@ -84,10 +102,15 @@ func unmarshalUserSourceInfoImplementation(input []byte) (UserSourceInfo, error) return out, nil } - out := RawUserSourceInfoImpl{ - Type: value, - Values: temp, + var parent BaseUserSourceInfoImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseUserSourceInfoImpl: %+v", err) } - return out, nil + + return RawUserSourceInfoImpl{ + userSourceInfo: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_waruploadedusersourceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_waruploadedusersourceinfo.go index cb19ff5cef50..34b188ecaa2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_waruploadedusersourceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_waruploadedusersourceinfo.go @@ -17,9 +17,18 @@ type WarUploadedUserSourceInfo struct { ServerVersion *string `json:"serverVersion,omitempty"` // Fields inherited from UserSourceInfo + + Type string `json:"type"` Version *string `json:"version,omitempty"` } +func (s WarUploadedUserSourceInfo) UserSourceInfo() BaseUserSourceInfoImpl { + return BaseUserSourceInfoImpl{ + Type: s.Type, + Version: s.Version, + } +} + var _ json.Marshaler = WarUploadedUserSourceInfo{} func (s WarUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { @@ -31,9 +40,10 @@ func (s WarUploadedUserSourceInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WarUploadedUserSourceInfo: %+v", err) } + decoded["type"] = "War" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_weeklymaintenancescheduleconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_weeklymaintenancescheduleconfiguration.go index db1a4c4c91e9..c97bbab6f60a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_weeklymaintenancescheduleconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/model_weeklymaintenancescheduleconfiguration.go @@ -16,6 +16,14 @@ type WeeklyMaintenanceScheduleConfiguration struct { Hour int64 `json:"hour"` // Fields inherited from MaintenanceScheduleConfiguration + + Frequency Frequency `json:"frequency"` +} + +func (s WeeklyMaintenanceScheduleConfiguration) MaintenanceScheduleConfiguration() BaseMaintenanceScheduleConfigurationImpl { + return BaseMaintenanceScheduleConfigurationImpl{ + Frequency: s.Frequency, + } } var _ json.Marshaler = WeeklyMaintenanceScheduleConfiguration{} @@ -29,9 +37,10 @@ func (s WeeklyMaintenanceScheduleConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WeeklyMaintenanceScheduleConfiguration: %+v", err) } + decoded["frequency"] = "Weekly" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/version.go index 4a2e7d5c56a4..dfcdaf5565c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/appplatform/2024-01-01-preview/appplatform/version.go @@ -1,12 +1,10 @@ package appplatform -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/appplatform/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/appplatform/2024-01-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/README.md index 91c89c458568..27bdb6f2273b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders` Documentation -The `attestationproviders` SDK allows for interaction with the Azure Resource Manager Service `attestation` (API Version `2020-10-01`). +The `attestationproviders` SDK allows for interaction with Azure Resource Manager `attestation` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue") +id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerName") payload := attestationproviders.AttestationServiceCreationParams{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue") +id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue") +id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := attestationproviders.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.GetDefaultByLocation(ctx, id) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "attestationProviderValue") +id := attestationproviders.NewAttestationProvidersID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerName") payload := attestationproviders.AttestationServicePatchParams{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/client.go index 7ad200a9901f..39e132c625d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/client.go @@ -15,7 +15,7 @@ type AttestationProvidersClient struct { } func NewAttestationProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*AttestationProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "attestationproviders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "attestationproviders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AttestationProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_attestationproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_attestationproviders.go index d5fef484a5cb..603966f841cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_attestationproviders.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_attestationproviders.go @@ -42,7 +42,7 @@ func ParseAttestationProvidersID(input string) (*AttestationProvidersId, error) } id := AttestationProvidersId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAttestationProvidersIDInsensitively(input string) (*AttestationProvide } id := AttestationProvidersId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AttestationProvidersId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAttestation", "Microsoft.Attestation", "Microsoft.Attestation"), resourceids.StaticSegment("staticAttestationProviders", "attestationProviders", "attestationProviders"), - resourceids.UserSpecifiedSegment("attestationProviderName", "attestationProviderValue"), + resourceids.UserSpecifiedSegment("attestationProviderName", "providerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_location.go index 4bf31d9a2a5a..fea362716508 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAttestation", "Microsoft.Attestation", "Microsoft.Attestation"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_create.go index 565396aa8af4..d7468dd4d0c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_create.go @@ -50,7 +50,6 @@ func (c AttestationProvidersClient) Create(ctx context.Context, id AttestationPr var model AttestationProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_get.go index 8a57bf6306d5..c485713adf8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_get.go @@ -45,7 +45,6 @@ func (c AttestationProvidersClient) Get(ctx context.Context, id AttestationProvi var model AttestationProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_getdefaultbylocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_getdefaultbylocation.go index 180e1ad88eee..162c21cc0025 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_getdefaultbylocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_getdefaultbylocation.go @@ -46,7 +46,6 @@ func (c AttestationProvidersClient) GetDefaultByLocation(ctx context.Context, id var model AttestationProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_list.go index a734a94e79b7..b81d21855bb4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_list.go @@ -47,7 +47,6 @@ func (c AttestationProvidersClient) List(ctx context.Context, id commonids.Subsc var model AttestationProviderListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listbyresourcegroup.go index 59e76223e5f0..6e52c18f1f0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c AttestationProvidersClient) ListByResourceGroup(ctx context.Context, id var model AttestationProviderListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listdefault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listdefault.go index c51c64207c27..e023752efa27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listdefault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_listdefault.go @@ -47,7 +47,6 @@ func (c AttestationProvidersClient) ListDefault(ctx context.Context, id commonid var model AttestationProviderListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_update.go index 6d973afe7a14..131faedb6bc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/method_update.go @@ -49,7 +49,6 @@ func (c AttestationProvidersClient) Update(ctx context.Context, id AttestationPr var model AttestationProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/version.go index f317f810f5e0..c32ad4723e60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/attestation/2020-10-01/attestationproviders/version.go @@ -1,12 +1,10 @@ package attestationproviders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/attestationproviders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/attestationproviders/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md index 11c514256295..fb415b1036a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances` Documentation -The `roleassignmentscheduleinstances` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleassignmentscheduleinstances` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleassignmentscheduleinstances.NewScopedRoleAssignmentScheduleInstanceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleInstanceValue") +id := roleassignmentscheduleinstances.NewScopedRoleAssignmentScheduleInstanceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleInstanceName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/client.go index f0cc3a4f2069..b29d22124e68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/client.go @@ -15,7 +15,7 @@ type RoleAssignmentScheduleInstancesClient struct { } func NewRoleAssignmentScheduleInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleAssignmentScheduleInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleassignmentscheduleinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleassignmentscheduleinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleAssignmentScheduleInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/id_scopedroleassignmentscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/id_scopedroleassignmentscheduleinstance.go index 6721f364e9fb..0f156200e306 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/id_scopedroleassignmentscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/id_scopedroleassignmentscheduleinstance.go @@ -40,7 +40,7 @@ func ParseScopedRoleAssignmentScheduleInstanceID(input string) (*ScopedRoleAssig } id := ScopedRoleAssignmentScheduleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleAssignmentScheduleInstanceIDInsensitively(input string) (*Sc } id := ScopedRoleAssignmentScheduleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleAssignmentScheduleInstanceId) Segments() []resourceids.Segmen resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleAssignmentScheduleInstances", "roleAssignmentScheduleInstances", "roleAssignmentScheduleInstances"), - resourceids.UserSpecifiedSegment("roleAssignmentScheduleInstanceName", "roleAssignmentScheduleInstanceValue"), + resourceids.UserSpecifiedSegment("roleAssignmentScheduleInstanceName", "roleAssignmentScheduleInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_get.go index 568d2f6f8c41..ebb76fc53ff4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_get.go @@ -45,7 +45,6 @@ func (c RoleAssignmentScheduleInstancesClient) Get(ctx context.Context, id Scope var model RoleAssignmentScheduleInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go index 9ff5c3b4064b..16a8a0d8db5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/version.go index a1d8e02a60a3..d12c7e6c1770 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentscheduleinstances/version.go @@ -1,12 +1,10 @@ package roleassignmentscheduleinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleassignmentscheduleinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleassignmentscheduleinstances/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md index 238258782cf5..7f11f89c19a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests` Documentation -The `roleassignmentschedulerequests` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleassignmentschedulerequests` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestValue") +id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestName") read, err := client.Cancel(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestValue") +id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestName") payload := roleassignmentschedulerequests.RoleAssignmentScheduleRequest{ // ... @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestValue") +id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestName") read, err := client.Get(ctx, id) if err != nil { @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestValue") +id := roleassignmentschedulerequests.NewScopedRoleAssignmentScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleRequestName") payload := roleassignmentschedulerequests.RoleAssignmentScheduleRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/client.go index d140fd1ee58e..22431f67472d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/client.go @@ -15,7 +15,7 @@ type RoleAssignmentScheduleRequestsClient struct { } func NewRoleAssignmentScheduleRequestsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleAssignmentScheduleRequestsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleassignmentschedulerequests", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleassignmentschedulerequests", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleAssignmentScheduleRequestsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/id_scopedroleassignmentschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/id_scopedroleassignmentschedulerequest.go index a174a7c1be6e..a7e8c2190180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/id_scopedroleassignmentschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/id_scopedroleassignmentschedulerequest.go @@ -40,7 +40,7 @@ func ParseScopedRoleAssignmentScheduleRequestID(input string) (*ScopedRoleAssign } id := ScopedRoleAssignmentScheduleRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleAssignmentScheduleRequestIDInsensitively(input string) (*Sco } id := ScopedRoleAssignmentScheduleRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleAssignmentScheduleRequestId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleAssignmentScheduleRequests", "roleAssignmentScheduleRequests", "roleAssignmentScheduleRequests"), - resourceids.UserSpecifiedSegment("roleAssignmentScheduleRequestName", "roleAssignmentScheduleRequestValue"), + resourceids.UserSpecifiedSegment("roleAssignmentScheduleRequestName", "roleAssignmentScheduleRequestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_create.go index eb8d0fc489a5..36a80025020a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_create.go @@ -49,7 +49,6 @@ func (c RoleAssignmentScheduleRequestsClient) Create(ctx context.Context, id Sco var model RoleAssignmentScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_get.go index 0c967a06ea5c..5f12fc127ccf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_get.go @@ -45,7 +45,6 @@ func (c RoleAssignmentScheduleRequestsClient) Get(ctx context.Context, id Scoped var model RoleAssignmentScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go index ba8dd657ddcd..e16143e82962 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_validate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_validate.go index 0a929f2ac432..bae64418a17c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_validate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/method_validate.go @@ -50,7 +50,6 @@ func (c RoleAssignmentScheduleRequestsClient) Validate(ctx context.Context, id S var model RoleAssignmentScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/version.go index 8e35f84dff3c..b25f32d1e45a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedulerequests/version.go @@ -1,12 +1,10 @@ package roleassignmentschedulerequests -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleassignmentschedulerequests/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleassignmentschedulerequests/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md index 5b1cf9040288..c8643bc7aeda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules` Documentation -The `roleassignmentschedules` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleassignmentschedules` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleassignmentschedules.NewScopedRoleAssignmentScheduleID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleValue") +id := roleassignmentschedules.NewScopedRoleAssignmentScheduleID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentScheduleName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/client.go index d341ea01477e..3d6812b4837a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/client.go @@ -15,7 +15,7 @@ type RoleAssignmentSchedulesClient struct { } func NewRoleAssignmentSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleAssignmentSchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleassignmentschedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleassignmentschedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleAssignmentSchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/id_scopedroleassignmentschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/id_scopedroleassignmentschedule.go index 7ff4a3614938..b3980cd9c653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/id_scopedroleassignmentschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/id_scopedroleassignmentschedule.go @@ -40,7 +40,7 @@ func ParseScopedRoleAssignmentScheduleID(input string) (*ScopedRoleAssignmentSch } id := ScopedRoleAssignmentScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleAssignmentScheduleIDInsensitively(input string) (*ScopedRole } id := ScopedRoleAssignmentScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleAssignmentScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleAssignmentSchedules", "roleAssignmentSchedules", "roleAssignmentSchedules"), - resourceids.UserSpecifiedSegment("roleAssignmentScheduleName", "roleAssignmentScheduleValue"), + resourceids.UserSpecifiedSegment("roleAssignmentScheduleName", "roleAssignmentScheduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_get.go index db27d7b3048c..60b0002dc115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_get.go @@ -45,7 +45,6 @@ func (c RoleAssignmentSchedulesClient) Get(ctx context.Context, id ScopedRoleAss var model RoleAssignmentSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go index 5b7304bcd569..39e3b346f7c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/version.go index 701d5043b86c..f083c47063af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleassignmentschedules/version.go @@ -1,12 +1,10 @@ package roleassignmentschedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleassignmentschedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleassignmentschedules/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md index 9709ec1d8eca..01c6d300c22c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances` Documentation -The `roleeligibilityscheduleinstances` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleeligibilityscheduleinstances` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleeligibilityscheduleinstances.NewScopedRoleEligibilityScheduleInstanceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleInstanceValue") +id := roleeligibilityscheduleinstances.NewScopedRoleEligibilityScheduleInstanceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleInstanceName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/client.go index 04232dfdb6e2..03eacd383e59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/client.go @@ -15,7 +15,7 @@ type RoleEligibilityScheduleInstancesClient struct { } func NewRoleEligibilityScheduleInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleEligibilityScheduleInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleeligibilityscheduleinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleeligibilityscheduleinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleEligibilityScheduleInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/id_scopedroleeligibilityscheduleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/id_scopedroleeligibilityscheduleinstance.go index f937e80d17a1..b78ff758d23c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/id_scopedroleeligibilityscheduleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/id_scopedroleeligibilityscheduleinstance.go @@ -40,7 +40,7 @@ func ParseScopedRoleEligibilityScheduleInstanceID(input string) (*ScopedRoleElig } id := ScopedRoleEligibilityScheduleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleEligibilityScheduleInstanceIDInsensitively(input string) (*S } id := ScopedRoleEligibilityScheduleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleEligibilityScheduleInstanceId) Segments() []resourceids.Segme resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleEligibilityScheduleInstances", "roleEligibilityScheduleInstances", "roleEligibilityScheduleInstances"), - resourceids.UserSpecifiedSegment("roleEligibilityScheduleInstanceName", "roleEligibilityScheduleInstanceValue"), + resourceids.UserSpecifiedSegment("roleEligibilityScheduleInstanceName", "roleEligibilityScheduleInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_get.go index 72daf9af9a5e..71530895021c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_get.go @@ -45,7 +45,6 @@ func (c RoleEligibilityScheduleInstancesClient) Get(ctx context.Context, id Scop var model RoleEligibilityScheduleInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go index 691e3f3d16b1..a96d65e64b70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/version.go index 823959882850..fbce60cf0225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityscheduleinstances/version.go @@ -1,12 +1,10 @@ package roleeligibilityscheduleinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleeligibilityscheduleinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleeligibilityscheduleinstances/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md index cc79d4ca7ce9..e3ba8fc1aefe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests` Documentation -The `roleeligibilityschedulerequests` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleeligibilityschedulerequests` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestValue") +id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestName") read, err := client.Cancel(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestValue") +id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestName") payload := roleeligibilityschedulerequests.RoleEligibilityScheduleRequest{ // ... @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestValue") +id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestName") read, err := client.Get(ctx, id) if err != nil { @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestValue") +id := roleeligibilityschedulerequests.NewScopedRoleEligibilityScheduleRequestID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleRequestName") payload := roleeligibilityschedulerequests.RoleEligibilityScheduleRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/client.go index 8be9435f26ed..6a7ca7f0ee1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/client.go @@ -15,7 +15,7 @@ type RoleEligibilityScheduleRequestsClient struct { } func NewRoleEligibilityScheduleRequestsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleEligibilityScheduleRequestsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleeligibilityschedulerequests", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleeligibilityschedulerequests", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleEligibilityScheduleRequestsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/id_scopedroleeligibilityschedulerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/id_scopedroleeligibilityschedulerequest.go index 125277804874..2bc28da3b6d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/id_scopedroleeligibilityschedulerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/id_scopedroleeligibilityschedulerequest.go @@ -40,7 +40,7 @@ func ParseScopedRoleEligibilityScheduleRequestID(input string) (*ScopedRoleEligi } id := ScopedRoleEligibilityScheduleRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleEligibilityScheduleRequestIDInsensitively(input string) (*Sc } id := ScopedRoleEligibilityScheduleRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleEligibilityScheduleRequestId) Segments() []resourceids.Segmen resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleEligibilityScheduleRequests", "roleEligibilityScheduleRequests", "roleEligibilityScheduleRequests"), - resourceids.UserSpecifiedSegment("roleEligibilityScheduleRequestName", "roleEligibilityScheduleRequestValue"), + resourceids.UserSpecifiedSegment("roleEligibilityScheduleRequestName", "roleEligibilityScheduleRequestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_create.go index 135ba6106351..3758ab293551 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_create.go @@ -49,7 +49,6 @@ func (c RoleEligibilityScheduleRequestsClient) Create(ctx context.Context, id Sc var model RoleEligibilityScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_get.go index e68fcac2e6c2..6df388a0914c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_get.go @@ -45,7 +45,6 @@ func (c RoleEligibilityScheduleRequestsClient) Get(ctx context.Context, id Scope var model RoleEligibilityScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go index 10fab072a35a..bd3dd00a7da3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_validate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_validate.go index e54ba4e2dda8..eb464fbbcbde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_validate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/method_validate.go @@ -50,7 +50,6 @@ func (c RoleEligibilityScheduleRequestsClient) Validate(ctx context.Context, id var model RoleEligibilityScheduleRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/version.go index a2d6500368c6..e5c9cf6d29c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedulerequests/version.go @@ -1,12 +1,10 @@ package roleeligibilityschedulerequests -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleeligibilityschedulerequests/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleeligibilityschedulerequests/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md index cfa586977d82..48f23ec3b05d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules` Documentation -The `roleeligibilityschedules` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `roleeligibilityschedules` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleeligibilityschedules.NewScopedRoleEligibilityScheduleID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleValue") +id := roleeligibilityschedules.NewScopedRoleEligibilityScheduleID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleEligibilityScheduleName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/client.go index 435d81c050db..4adcfe427310 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/client.go @@ -15,7 +15,7 @@ type RoleEligibilitySchedulesClient struct { } func NewRoleEligibilitySchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleEligibilitySchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleeligibilityschedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleeligibilityschedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleEligibilitySchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/id_scopedroleeligibilityschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/id_scopedroleeligibilityschedule.go index a25602f77756..9f2d62f2fb1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/id_scopedroleeligibilityschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/id_scopedroleeligibilityschedule.go @@ -40,7 +40,7 @@ func ParseScopedRoleEligibilityScheduleID(input string) (*ScopedRoleEligibilityS } id := ScopedRoleEligibilityScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleEligibilityScheduleIDInsensitively(input string) (*ScopedRol } id := ScopedRoleEligibilityScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleEligibilityScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleEligibilitySchedules", "roleEligibilitySchedules", "roleEligibilitySchedules"), - resourceids.UserSpecifiedSegment("roleEligibilityScheduleName", "roleEligibilityScheduleValue"), + resourceids.UserSpecifiedSegment("roleEligibilityScheduleName", "roleEligibilityScheduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_get.go index 2a5632f66911..febfc33aebed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_get.go @@ -45,7 +45,6 @@ func (c RoleEligibilitySchedulesClient) Get(ctx context.Context, id ScopedRoleEl var model RoleEligibilitySchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go index 75d9d08ed730..12379f9bcba1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/version.go index 6c2bb9ce3616..f95189b24a64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/roleeligibilityschedules/version.go @@ -1,12 +1,10 @@ package roleeligibilityschedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleeligibilityschedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleeligibilityschedules/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md index 1727ff6c07ac..4268bb4a7f7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies` Documentation -The `rolemanagementpolicies` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `rolemanagementpolicies` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyValue") +id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyName") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyValue") +id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyName") read, err := client.Get(ctx, id) if err != nil { @@ -74,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyValue") +id := rolemanagementpolicies.NewScopedRoleManagementPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyName") payload := rolemanagementpolicies.RoleManagementPolicy{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/client.go index 89e8d75169ce..24cbefa3b08b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/client.go @@ -15,7 +15,7 @@ type RoleManagementPoliciesClient struct { } func NewRoleManagementPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleManagementPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "rolemanagementpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "rolemanagementpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleManagementPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/id_scopedrolemanagementpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/id_scopedrolemanagementpolicy.go index dc31cd1db978..89fe694f9c4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/id_scopedrolemanagementpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/id_scopedrolemanagementpolicy.go @@ -40,7 +40,7 @@ func ParseScopedRoleManagementPolicyID(input string) (*ScopedRoleManagementPolic } id := ScopedRoleManagementPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleManagementPolicyIDInsensitively(input string) (*ScopedRoleMa } id := ScopedRoleManagementPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleManagementPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleManagementPolicies", "roleManagementPolicies", "roleManagementPolicies"), - resourceids.UserSpecifiedSegment("roleManagementPolicyName", "roleManagementPolicyValue"), + resourceids.UserSpecifiedSegment("roleManagementPolicyName", "roleManagementPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_get.go index ea14ce67cea3..f420f796bb15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_get.go @@ -45,7 +45,6 @@ func (c RoleManagementPoliciesClient) Get(ctx context.Context, id ScopedRoleMana var model RoleManagementPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go index 57c4f0a394a1..423352aacd85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_listforscope.go @@ -40,6 +40,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_update.go index fbc5442aac46..bdccbae38eee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/method_update.go @@ -49,7 +49,6 @@ func (c RoleManagementPoliciesClient) Update(ctx context.Context, id ScopedRoleM var model RoleManagementPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyproperties.go index 310d9b0cf682..ce2fe3ab5685 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyproperties.go @@ -38,10 +38,17 @@ func (o *RoleManagementPolicyProperties) SetLastModifiedDateTimeAsTime(input tim var _ json.Unmarshaler = &RoleManagementPolicyProperties{} func (s *RoleManagementPolicyProperties) UnmarshalJSON(bytes []byte) error { - type alias RoleManagementPolicyProperties - var decoded alias + var decoded struct { + Description *string `json:"description,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + IsOrganizationDefault *bool `json:"isOrganizationDefault,omitempty"` + LastModifiedBy *Principal `json:"lastModifiedBy,omitempty"` + LastModifiedDateTime *string `json:"lastModifiedDateTime,omitempty"` + PolicyProperties *PolicyProperties `json:"policyProperties,omitempty"` + Scope *string `json:"scope,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RoleManagementPolicyProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Description = decoded.Description @@ -65,7 +72,7 @@ func (s *RoleManagementPolicyProperties) UnmarshalJSON(bytes []byte) error { output := make([]RoleManagementPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalRoleManagementPolicyRuleImplementation(val) + impl, err := UnmarshalRoleManagementPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'EffectiveRules' for 'RoleManagementPolicyProperties': %+v", i, err) } @@ -82,7 +89,7 @@ func (s *RoleManagementPolicyProperties) UnmarshalJSON(bytes []byte) error { output := make([]RoleManagementPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalRoleManagementPolicyRuleImplementation(val) + impl, err := UnmarshalRoleManagementPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Rules' for 'RoleManagementPolicyProperties': %+v", i, err) } @@ -90,5 +97,6 @@ func (s *RoleManagementPolicyProperties) UnmarshalJSON(bytes []byte) error { } s.Rules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyrule.go index d89224dc5fa9..573273dc89b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/model_rolemanagementpolicyrule.go @@ -9,18 +9,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RoleManagementPolicyRule interface { + RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl } -// RawRoleManagementPolicyRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RoleManagementPolicyRule = BaseRoleManagementPolicyRuleImpl{} + +type BaseRoleManagementPolicyRuleImpl struct { + Id *string `json:"id,omitempty"` + RuleType RoleManagementPolicyRuleType `json:"ruleType"` + Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"` +} + +func (s BaseRoleManagementPolicyRuleImpl) RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl { + return s +} + +var _ RoleManagementPolicyRule = RawRoleManagementPolicyRuleImpl{} + +// RawRoleManagementPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRoleManagementPolicyRuleImpl struct { - Type string - Values map[string]interface{} + roleManagementPolicyRule BaseRoleManagementPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawRoleManagementPolicyRuleImpl) RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl { + return s.roleManagementPolicyRule } -func unmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManagementPolicyRule, error) { +func UnmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManagementPolicyRule, error) { if input == nil { return nil, nil } @@ -30,15 +49,20 @@ func unmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManageme return nil, fmt.Errorf("unmarshaling RoleManagementPolicyRule into map[string]interface: %+v", err) } - value, ok := temp["ruleType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) } - out := RawRoleManagementPolicyRuleImpl{ - Type: value, - Values: temp, + var parent BaseRoleManagementPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRoleManagementPolicyRuleImpl: %+v", err) } - return out, nil + + return RawRoleManagementPolicyRuleImpl{ + roleManagementPolicyRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/version.go index cbd840f2fced..c12dfda121c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicies/version.go @@ -1,12 +1,10 @@ package rolemanagementpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/rolemanagementpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/rolemanagementpolicies/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md index 07508baf38e2..48fec1cc8915 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments` Documentation -The `rolemanagementpolicyassignments` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2020-10-01`). +The `rolemanagementpolicyassignments` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentValue") +id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentName") payload := rolemanagementpolicyassignments.RoleManagementPolicyAssignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentValue") +id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentValue") +id := rolemanagementpolicyassignments.NewScopedRoleManagementPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleManagementPolicyAssignmentName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/client.go index c2d42940c831..0474bcd924a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/client.go @@ -15,7 +15,7 @@ type RoleManagementPolicyAssignmentsClient struct { } func NewRoleManagementPolicyAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleManagementPolicyAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "rolemanagementpolicyassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "rolemanagementpolicyassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleManagementPolicyAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/id_scopedrolemanagementpolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/id_scopedrolemanagementpolicyassignment.go index aab2b229ecc9..934e75932f1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/id_scopedrolemanagementpolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/id_scopedrolemanagementpolicyassignment.go @@ -40,7 +40,7 @@ func ParseScopedRoleManagementPolicyAssignmentID(input string) (*ScopedRoleManag } id := ScopedRoleManagementPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleManagementPolicyAssignmentIDInsensitively(input string) (*Sc } id := ScopedRoleManagementPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleManagementPolicyAssignmentId) Segments() []resourceids.Segmen resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleManagementPolicyAssignments", "roleManagementPolicyAssignments", "roleManagementPolicyAssignments"), - resourceids.UserSpecifiedSegment("roleManagementPolicyAssignmentName", "roleManagementPolicyAssignmentValue"), + resourceids.UserSpecifiedSegment("roleManagementPolicyAssignmentName", "roleManagementPolicyAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_create.go index fdb037e7b97b..130d192d2c48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_create.go @@ -49,7 +49,6 @@ func (c RoleManagementPolicyAssignmentsClient) Create(ctx context.Context, id Sc var model RoleManagementPolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_get.go index bba35f1b903e..930cb5dac03c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/method_get.go @@ -45,7 +45,6 @@ func (c RoleManagementPolicyAssignmentsClient) Get(ctx context.Context, id Scope var model RoleManagementPolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyassignmentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyassignmentproperties.go index a4a156831b0e..2b415a0cd8f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyassignmentproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyassignmentproperties.go @@ -19,10 +19,14 @@ type RoleManagementPolicyAssignmentProperties struct { var _ json.Unmarshaler = &RoleManagementPolicyAssignmentProperties{} func (s *RoleManagementPolicyAssignmentProperties) UnmarshalJSON(bytes []byte) error { - type alias RoleManagementPolicyAssignmentProperties - var decoded alias + var decoded struct { + PolicyAssignmentProperties *PolicyAssignmentProperties `json:"policyAssignmentProperties,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + RoleDefinitionId *string `json:"roleDefinitionId,omitempty"` + Scope *string `json:"scope,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RoleManagementPolicyAssignmentProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.PolicyAssignmentProperties = decoded.PolicyAssignmentProperties @@ -43,7 +47,7 @@ func (s *RoleManagementPolicyAssignmentProperties) UnmarshalJSON(bytes []byte) e output := make([]RoleManagementPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalRoleManagementPolicyRuleImplementation(val) + impl, err := UnmarshalRoleManagementPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'EffectiveRules' for 'RoleManagementPolicyAssignmentProperties': %+v", i, err) } @@ -51,5 +55,6 @@ func (s *RoleManagementPolicyAssignmentProperties) UnmarshalJSON(bytes []byte) e } s.EffectiveRules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyrule.go index ab772e8c79a3..69d5d4b120b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/model_rolemanagementpolicyrule.go @@ -9,18 +9,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RoleManagementPolicyRule interface { + RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl } -// RawRoleManagementPolicyRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RoleManagementPolicyRule = BaseRoleManagementPolicyRuleImpl{} + +type BaseRoleManagementPolicyRuleImpl struct { + Id *string `json:"id,omitempty"` + RuleType RoleManagementPolicyRuleType `json:"ruleType"` + Target *RoleManagementPolicyRuleTarget `json:"target,omitempty"` +} + +func (s BaseRoleManagementPolicyRuleImpl) RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl { + return s +} + +var _ RoleManagementPolicyRule = RawRoleManagementPolicyRuleImpl{} + +// RawRoleManagementPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRoleManagementPolicyRuleImpl struct { - Type string - Values map[string]interface{} + roleManagementPolicyRule BaseRoleManagementPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawRoleManagementPolicyRuleImpl) RoleManagementPolicyRule() BaseRoleManagementPolicyRuleImpl { + return s.roleManagementPolicyRule } -func unmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManagementPolicyRule, error) { +func UnmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManagementPolicyRule, error) { if input == nil { return nil, nil } @@ -30,15 +49,20 @@ func unmarshalRoleManagementPolicyRuleImplementation(input []byte) (RoleManageme return nil, fmt.Errorf("unmarshaling RoleManagementPolicyRule into map[string]interface: %+v", err) } - value, ok := temp["ruleType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) } - out := RawRoleManagementPolicyRuleImpl{ - Type: value, - Values: temp, + var parent BaseRoleManagementPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRoleManagementPolicyRuleImpl: %+v", err) } - return out, nil + + return RawRoleManagementPolicyRuleImpl{ + roleManagementPolicyRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/version.go index cb84f796c24b..ef2870a17bae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2020-10-01/rolemanagementpolicyassignments/version.go @@ -1,12 +1,10 @@ package rolemanagementpolicyassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/rolemanagementpolicyassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/rolemanagementpolicyassignments/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/README.md index a1f9f4cc5644..959388178da4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments` Documentation -The `roleassignments` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2022-04-01`). +The `roleassignments` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentValue") +id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentName") payload := roleassignments.RoleAssignmentCreateParameters{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentValue") +id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentName") read, err := client.Delete(ctx, id, roleassignments.DefaultDeleteOperationOptions()) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentValue") +id := roleassignments.NewScopedRoleAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleAssignmentName") read, err := client.Get(ctx, id, roleassignments.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/client.go index 8e072e686a44..c16e05d193e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/client.go @@ -15,7 +15,7 @@ type RoleAssignmentsClient struct { } func NewRoleAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roleassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roleassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/id_scopedroleassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/id_scopedroleassignment.go index 465ef7d9e926..fdfcb939ffcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/id_scopedroleassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/id_scopedroleassignment.go @@ -40,7 +40,7 @@ func ParseScopedRoleAssignmentID(input string) (*ScopedRoleAssignmentId, error) } id := ScopedRoleAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleAssignmentIDInsensitively(input string) (*ScopedRoleAssignme } id := ScopedRoleAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleAssignments", "roleAssignments", "roleAssignments"), - resourceids.UserSpecifiedSegment("roleAssignmentName", "roleAssignmentValue"), + resourceids.UserSpecifiedSegment("roleAssignmentName", "roleAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_create.go index c0933b30f89a..e5e7ce1d25b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_create.go @@ -50,7 +50,6 @@ func (c RoleAssignmentsClient) Create(ctx context.Context, id ScopedRoleAssignme var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_createbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_createbyid.go index 693f29bb25a0..28c1de6aa817 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_createbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_createbyid.go @@ -51,7 +51,6 @@ func (c RoleAssignmentsClient) CreateById(ctx context.Context, id commonids.Scop var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go index 4ccb4526b170..8ab07a328725 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_delete.go @@ -34,6 +34,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c RoleAssignmentsClient) Delete(ctx context.Context, id ScopedRoleAssignme var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go index 35efbe1b2aaf..d678ee645bd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_deletebyid.go @@ -35,6 +35,7 @@ func (o DeleteByIdOperationOptions) ToHeaders() *client.Headers { func (o DeleteByIdOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -76,7 +77,6 @@ func (c RoleAssignmentsClient) DeleteById(ctx context.Context, id commonids.Scop var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_get.go index b1466232002b..db9d0f6d9870 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RoleAssignmentsClient) Get(ctx context.Context, id ScopedRoleAssignmentI var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go index d272928f5e58..a90cb4f6b054 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_getbyid.go @@ -35,6 +35,7 @@ func (o GetByIdOperationOptions) ToHeaders() *client.Headers { func (o GetByIdOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c RoleAssignmentsClient) GetById(ctx context.Context, id commonids.ScopeId var model RoleAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go index 434ec7e9375b..bfc1a107e595 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresource.go @@ -41,6 +41,7 @@ func (o ListForResourceOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go index bb681d059384..8670cc41b492 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforresourcegroup.go @@ -41,6 +41,7 @@ func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go index 35a751a02012..0eee5eaead4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforscope.go @@ -41,6 +41,7 @@ func (o ListForScopeOperationOptions) ToHeaders() *client.Headers { func (o ListForScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go index 4c4e6d2aa954..03c4ba0e2a9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/method_listforsubscription.go @@ -41,6 +41,7 @@ func (o ListForSubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListForSubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/version.go index 685241b33c01..0567df82d486 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roleassignments/version.go @@ -1,12 +1,10 @@ package roleassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roleassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roleassignments/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/README.md index de878df96ec2..553c11fa1789 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions` Documentation -The `roledefinitions` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2022-04-01`). +The `roledefinitions` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") payload := roledefinitions.RoleDefinition{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/client.go index b4b1a6f36991..6d2ae83dcd26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/client.go @@ -15,7 +15,7 @@ type RoleDefinitionsClient struct { } func NewRoleDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roledefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roledefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/id_scopedroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/id_scopedroledefinition.go index 76b9d2239c8b..153992cad326 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/id_scopedroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/id_scopedroledefinition.go @@ -40,7 +40,7 @@ func ParseScopedRoleDefinitionID(input string) (*ScopedRoleDefinitionId, error) } id := ScopedRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleDefinitionIDInsensitively(input string) (*ScopedRoleDefiniti } id := ScopedRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleDefinitions", "roleDefinitions", "roleDefinitions"), - resourceids.UserSpecifiedSegment("roleDefinitionId", "roleDefinitionIdValue"), + resourceids.UserSpecifiedSegment("roleDefinitionId", "roleDefinitionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_createorupdate.go index 9359124cd5ba..094b32007d66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_createorupdate.go @@ -49,7 +49,6 @@ func (c RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, id ScopedRole var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_delete.go index e8ad33d6d34a..f13e639a9e7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_delete.go @@ -46,7 +46,6 @@ func (c RoleDefinitionsClient) Delete(ctx context.Context, id ScopedRoleDefiniti var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_get.go index 09cfc518d147..38e1a0d4073b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_get.go @@ -45,7 +45,6 @@ func (c RoleDefinitionsClient) Get(ctx context.Context, id ScopedRoleDefinitionI var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go index 65fcfd2cd2ae..5aaba1e87a84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/version.go index 46a58c1faa60..69db46565c9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-04-01/roledefinitions/version.go @@ -1,12 +1,10 @@ package roledefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roledefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roledefinitions/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md index 78baf074c64e..83ff1d7e9432 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions` Documentation -The `roledefinitions` SDK allows for interaction with the Azure Resource Manager Service `authorization` (API Version `2022-05-01-preview`). +The `roledefinitions` SDK allows for interaction with Azure Resource Manager `authorization` (API Version `2022-05-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") payload := roledefinitions.RoleDefinition{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionIdValue") +id := roledefinitions.NewScopedRoleDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "roleDefinitionId") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/client.go index b4b1a6f36991..6d2ae83dcd26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/client.go @@ -15,7 +15,7 @@ type RoleDefinitionsClient struct { } func NewRoleDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RoleDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roledefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roledefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoleDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/id_scopedroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/id_scopedroledefinition.go index 76b9d2239c8b..153992cad326 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/id_scopedroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/id_scopedroledefinition.go @@ -40,7 +40,7 @@ func ParseScopedRoleDefinitionID(input string) (*ScopedRoleDefinitionId, error) } id := ScopedRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRoleDefinitionIDInsensitively(input string) (*ScopedRoleDefiniti } id := ScopedRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRoleDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticRoleDefinitions", "roleDefinitions", "roleDefinitions"), - resourceids.UserSpecifiedSegment("roleDefinitionId", "roleDefinitionIdValue"), + resourceids.UserSpecifiedSegment("roleDefinitionId", "roleDefinitionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_createorupdate.go index 9359124cd5ba..094b32007d66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_createorupdate.go @@ -49,7 +49,6 @@ func (c RoleDefinitionsClient) CreateOrUpdate(ctx context.Context, id ScopedRole var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_delete.go index e8ad33d6d34a..f13e639a9e7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_delete.go @@ -46,7 +46,6 @@ func (c RoleDefinitionsClient) Delete(ctx context.Context, id ScopedRoleDefiniti var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_get.go index 09cfc518d147..38e1a0d4073b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_get.go @@ -45,7 +45,6 @@ func (c RoleDefinitionsClient) Get(ctx context.Context, id ScopedRoleDefinitionI var model RoleDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go index 65fcfd2cd2ae..5aaba1e87a84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/version.go index e5d77c5278e2..aae680f19d7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/authorization/2022-05-01-preview/roledefinitions/version.go @@ -1,12 +1,10 @@ package roledefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roledefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roledefinitions/2022-05-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md index 57a737436b6f..f8c5a4c5d7de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments` Documentation -The `configurationprofileassignments` SDK allows for interaction with the Azure Resource Manager Service `automanage` (API Version `2022-05-04`). +The `configurationprofileassignments` SDK allows for interaction with Azure Resource Manager `automanage` (API Version `2022-05-04`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue") +id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "configurationProfileAssignmentName") payload := configurationprofileassignments.ConfigurationProfileAssignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue") +id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "configurationProfileAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "configurationProfileAssignmentValue") +id := configurationprofileassignments.NewVirtualMachineProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "configurationProfileAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := configurationprofileassignments.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ListByClusterName(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := configurationprofileassignments.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.ListByMachineName(ctx, id) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofileassignments.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := configurationprofileassignments.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.ListByVirtualMachines(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/client.go index 0e6e853b4998..38317de278bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/client.go @@ -15,7 +15,7 @@ type ConfigurationProfileAssignmentsClient struct { } func NewConfigurationProfileAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfileAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationprofileassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationprofileassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationProfileAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_cluster.go index 584373ee988f..264c0d0ad549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_machine.go index 591bac3b621e..7631d62af83d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachine.go index deff0021d954..376a6145ea85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachine.go @@ -42,7 +42,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachineproviders2configurationprofileassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachineproviders2configurationprofileassignment.go index 2d6f1f7a0267..f38fc8ba928a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachineproviders2configurationprofileassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/id_virtualmachineproviders2configurationprofileassignment.go @@ -44,7 +44,7 @@ func ParseVirtualMachineProviders2ConfigurationProfileAssignmentID(input string) } id := VirtualMachineProviders2ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineProviders2ConfigurationProfileAssignmentIDInsensitively( } id := VirtualMachineProviders2ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id VirtualMachineProviders2ConfigurationProfileAssignmentId) Segments() [] resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutoManage", "Microsoft.AutoManage", "Microsoft.AutoManage"), resourceids.StaticSegment("staticConfigurationProfileAssignments", "configurationProfileAssignments", "configurationProfileAssignments"), - resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_createorupdate.go index fda44e6b25d0..11b171aa8cfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationProfileAssignmentsClient) CreateOrUpdate(ctx context.Contex var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_get.go index b7538ad1abd1..ff5b77cb3d24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationProfileAssignmentsClient) Get(ctx context.Context, id Virtu var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_list.go index 1c6db9894d30..d336963336b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_list.go @@ -47,7 +47,6 @@ func (c ConfigurationProfileAssignmentsClient) List(ctx context.Context, id comm var model ConfigurationProfileAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyclustername.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyclustername.go index 70a7fc03acb0..6dc4e0f7af9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyclustername.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyclustername.go @@ -46,7 +46,6 @@ func (c ConfigurationProfileAssignmentsClient) ListByClusterName(ctx context.Con var model ConfigurationProfileAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbymachinename.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbymachinename.go index 226705aedd30..f4c4522301d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbymachinename.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbymachinename.go @@ -46,7 +46,6 @@ func (c ConfigurationProfileAssignmentsClient) ListByMachineName(ctx context.Con var model ConfigurationProfileAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbysubscription.go index a168d78cfa64..4d6171f4b7db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c ConfigurationProfileAssignmentsClient) ListBySubscription(ctx context.Co var model ConfigurationProfileAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyvirtualmachines.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyvirtualmachines.go index 0a74a46d786c..ce23beece1d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyvirtualmachines.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/method_listbyvirtualmachines.go @@ -46,7 +46,6 @@ func (c ConfigurationProfileAssignmentsClient) ListByVirtualMachines(ctx context var model ConfigurationProfileAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/version.go index 14baa07ec1bb..1be551905853 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofileassignments/version.go @@ -1,12 +1,10 @@ package configurationprofileassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-04" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationprofileassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationprofileassignments/2022-05-04" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/README.md index 1d4a67c77dee..7af7f9b629ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments` Documentation -The `configurationprofilehciassignments` SDK allows for interaction with the Azure Resource Manager Service `automanage` (API Version `2022-05-04`). +The `configurationprofilehciassignments` SDK allows for interaction with Azure Resource Manager `automanage` (API Version `2022-05-04`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "configurationProfileAssignmentValue") +id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationProfileAssignmentName") payload := configurationprofilehciassignments.ConfigurationProfileAssignment{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "configurationProfileAssignmentValue") +id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationProfileAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "configurationProfileAssignmentValue") +id := configurationprofilehciassignments.NewConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationProfileAssignmentName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/client.go index 62568e2a8ec6..efcf5ce98a15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/client.go @@ -15,7 +15,7 @@ type ConfigurationProfileHCIAssignmentsClient struct { } func NewConfigurationProfileHCIAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfileHCIAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationprofilehciassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationprofilehciassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationProfileHCIAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/id_configurationprofileassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/id_configurationprofileassignment.go index ef9cc1b9c7f8..8b6e88f0f281 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/id_configurationprofileassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/id_configurationprofileassignment.go @@ -44,7 +44,7 @@ func ParseConfigurationProfileAssignmentID(input string) (*ConfigurationProfileA } id := ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationProfileAssignmentIDInsensitively(input string) (*Configur } id := ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id ConfigurationProfileAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutoManage", "Microsoft.AutoManage", "Microsoft.AutoManage"), resourceids.StaticSegment("staticConfigurationProfileAssignments", "configurationProfileAssignments", "configurationProfileAssignments"), - resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_createorupdate.go index 7a9b29e3edfd..fe529dff7c29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationProfileHCIAssignmentsClient) CreateOrUpdate(ctx context.Con var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_get.go index f131bc74e9d2..7eeba1e5e1d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationProfileHCIAssignmentsClient) Get(ctx context.Context, id Co var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/version.go index 8a1a7159b2f1..5408660bdccb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehciassignments/version.go @@ -1,12 +1,10 @@ package configurationprofilehciassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-04" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationprofilehciassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationprofilehciassignments/2022-05-04" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/README.md index a49e03121a3c..3594c67967fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments` Documentation -The `configurationprofilehcrpassignments` SDK allows for interaction with the Azure Resource Manager Service `automanage` (API Version `2022-05-04`). +The `configurationprofilehcrpassignments` SDK allows for interaction with Azure Resource Manager `automanage` (API Version `2022-05-04`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "configurationProfileAssignmentValue") +id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "configurationProfileAssignmentName") payload := configurationprofilehcrpassignments.ConfigurationProfileAssignment{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "configurationProfileAssignmentValue") +id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "configurationProfileAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "configurationProfileAssignmentValue") +id := configurationprofilehcrpassignments.NewProviders2ConfigurationProfileAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "configurationProfileAssignmentName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/client.go index 0a5d40e481f5..9a3b49064a36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/client.go @@ -15,7 +15,7 @@ type ConfigurationProfileHCRPAssignmentsClient struct { } func NewConfigurationProfileHCRPAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfileHCRPAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationprofilehcrpassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationprofilehcrpassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationProfileHCRPAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/id_providers2configurationprofileassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/id_providers2configurationprofileassignment.go index 967f2fd7f0c0..30a0fcfeba3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/id_providers2configurationprofileassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/id_providers2configurationprofileassignment.go @@ -44,7 +44,7 @@ func ParseProviders2ConfigurationProfileAssignmentID(input string) (*Providers2C } id := Providers2ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProviders2ConfigurationProfileAssignmentIDInsensitively(input string) } id := Providers2ConfigurationProfileAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id Providers2ConfigurationProfileAssignmentId) Segments() []resourceids.Se resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutoManage", "Microsoft.AutoManage", "Microsoft.AutoManage"), resourceids.StaticSegment("staticConfigurationProfileAssignments", "configurationProfileAssignments", "configurationProfileAssignments"), - resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationProfileAssignmentName", "configurationProfileAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_createorupdate.go index 0fe8c07735ca..e492ad6b272f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationProfileHCRPAssignmentsClient) CreateOrUpdate(ctx context.Co var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_get.go index 3a1ed7746314..b85e67011864 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationProfileHCRPAssignmentsClient) Get(ctx context.Context, id P var model ConfigurationProfileAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/version.go index 3a70074ba4cd..116ade4755d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofilehcrpassignments/version.go @@ -1,12 +1,10 @@ package configurationprofilehcrpassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-04" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationprofilehcrpassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationprofilehcrpassignments/2022-05-04" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/README.md index 3e16422c48b3..3bb28976d284 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles` Documentation -The `configurationprofiles` SDK allows for interaction with the Azure Resource Manager Service `automanage` (API Version `2022-05-04`). +The `configurationprofiles` SDK allows for interaction with Azure Resource Manager `automanage` (API Version `2022-05-04`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue") +id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileName") payload := configurationprofiles.ConfigurationProfile{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue") +id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue") +id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileName") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileValue") +id := configurationprofiles.NewConfigurationProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationProfileName") payload := configurationprofiles.ConfigurationProfileUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/client.go index 302ca0fe6651..54304c90b267 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/client.go @@ -15,7 +15,7 @@ type ConfigurationProfilesClient struct { } func NewConfigurationProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationProfilesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationprofiles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationprofiles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationProfilesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/id_configurationprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/id_configurationprofile.go index 35a827ad990f..78ff20715e4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/id_configurationprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/id_configurationprofile.go @@ -42,7 +42,7 @@ func ParseConfigurationProfileID(input string) (*ConfigurationProfileId, error) } id := ConfigurationProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConfigurationProfileIDInsensitively(input string) (*ConfigurationProfi } id := ConfigurationProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConfigurationProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutoManage", "Microsoft.AutoManage", "Microsoft.AutoManage"), resourceids.StaticSegment("staticConfigurationProfiles", "configurationProfiles", "configurationProfiles"), - resourceids.UserSpecifiedSegment("configurationProfileName", "configurationProfileValue"), + resourceids.UserSpecifiedSegment("configurationProfileName", "configurationProfileName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_createorupdate.go index 6d3efd72bdb9..0e7fa248c51f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationProfilesClient) CreateOrUpdate(ctx context.Context, id Conf var model ConfigurationProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_get.go index 922411dd2874..f0a5ec5988bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationProfilesClient) Get(ctx context.Context, id ConfigurationPr var model ConfigurationProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbyresourcegroup.go index 3b3cae7d2e82..de9bdb97b03b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ConfigurationProfilesClient) ListByResourceGroup(ctx context.Context, id var model ConfigurationProfileList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbysubscription.go index 7d2b10d767c3..bd65f66f743c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c ConfigurationProfilesClient) ListBySubscription(ctx context.Context, id var model ConfigurationProfileList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_update.go index 3370c247a249..0b341cd6f645 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/method_update.go @@ -49,7 +49,6 @@ func (c ConfigurationProfilesClient) Update(ctx context.Context, id Configuratio var model ConfigurationProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/version.go index f930c4dbd52f..fabb740d79ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automanage/2022-05-04/configurationprofiles/version.go @@ -1,12 +1,10 @@ package configurationprofiles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-04" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationprofiles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationprofiles/2022-05-04" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/README.md index d23f175636d4..40f34d705b75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook` Documentation -The `webhook` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2015-10-31`). +The `webhook` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2015-10-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "webHookValue") +id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "webhookName") payload := webhook.WebhookCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "webHookValue") +id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "webhookName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := webhook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.GenerateUri(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "webHookValue") +id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "webhookName") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := webhook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, webhook.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, webhook.DefaultListByAutomationAccountOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "webHookValue") +id := webhook.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "webhookName") payload := webhook.WebhookUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/client.go index 493635b94309..1ab051ecf3c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/client.go @@ -15,7 +15,7 @@ type WebhookClient struct { } func NewWebhookClientWithBaseURI(sdkApi sdkEnv.Api) (*WebhookClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webhook", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webhook", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebhookClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_automationaccount.go index 2b008a1f699b..6c3d633dd2d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_webhook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_webhook.go index 47c49582c49c..c8370faa10d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_webhook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/id_webhook.go @@ -44,7 +44,7 @@ func ParseWebHookID(input string) (*WebHookId, error) { } id := WebHookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWebHookIDInsensitively(input string) (*WebHookId, error) { } id := WebHookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WebHookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticWebHooks", "webHooks", "webHooks"), - resourceids.UserSpecifiedSegment("webHookName", "webHookValue"), + resourceids.UserSpecifiedSegment("webHookName", "webhookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_createorupdate.go index b2103a36e306..db0ff5c37431 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WebhookClient) CreateOrUpdate(ctx context.Context, id WebHookId, input W var model Webhook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_generateuri.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_generateuri.go index 03023556ad15..7985b5e44840 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_generateuri.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_generateuri.go @@ -46,7 +46,6 @@ func (c WebhookClient) GenerateUri(ctx context.Context, id AutomationAccountId) var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_get.go index bf8d86470973..741732ff21c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_get.go @@ -45,7 +45,6 @@ func (c WebhookClient) Get(ctx context.Context, id WebHookId) (result GetOperati var model Webhook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go index 9dee8752f421..c247dd4c5653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_update.go index 6b0fbacf5654..8a166a8e7ccc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/method_update.go @@ -49,7 +49,6 @@ func (c WebhookClient) Update(ctx context.Context, id WebHookId, input WebhookUp var model Webhook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/version.go index 99754ef48574..b05ac572be2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2015-10-31/webhook/version.go @@ -1,12 +1,10 @@ package webhook -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-10-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webhook/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webhook/2015-10-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/README.md index a0d7a2fe6a70..1e4be33ccd91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation` Documentation -The `agentregistrationinformation` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2019-06-01`). +The `agentregistrationinformation` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2019-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agentregistrationinformation.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := agentregistrationinformation.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentregistrationinformation.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := agentregistrationinformation.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := agentregistrationinformation.AgentRegistrationRegenerateKeyParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/client.go index c13906095ef6..a90dc569c805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/client.go @@ -15,7 +15,7 @@ type AgentRegistrationInformationClient struct { } func NewAgentRegistrationInformationClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentRegistrationInformationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agentregistrationinformation", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agentregistrationinformation", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgentRegistrationInformationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/id_automationaccount.go index 5ec36ff38454..f62b5c4a6b52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_get.go index 95539ac551eb..d385b7e7d614 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_get.go @@ -46,7 +46,6 @@ func (c AgentRegistrationInformationClient) Get(ctx context.Context, id Automati var model AgentRegistration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_regeneratekey.go index 261eb28919fd..4f4e5f628753 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c AgentRegistrationInformationClient) RegenerateKey(ctx context.Context, i var model AgentRegistration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/version.go index 5e92d277d13b..1ff92a063e71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/agentregistrationinformation/version.go @@ -1,12 +1,10 @@ package agentregistrationinformation -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agentregistrationinformation/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agentregistrationinformation/2019-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/README.md index 094acce76519..4557a597d92f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration` Documentation -The `softwareupdateconfiguration` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2019-06-01`). +The `softwareupdateconfiguration` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2019-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationValue") +id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "softwareUpdateConfigurationName") payload := softwareupdateconfiguration.SoftwareUpdateConfiguration{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationValue") +id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "softwareUpdateConfigurationName") read, err := client.Delete(ctx, id, softwareupdateconfiguration.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationValue") +id := softwareupdateconfiguration.NewSoftwareUpdateConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "softwareUpdateConfigurationName") read, err := client.GetByName(ctx, id, softwareupdateconfiguration.DefaultGetByNameOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := softwareupdateconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := softwareupdateconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.List(ctx, id, softwareupdateconfiguration.DefaultListOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/client.go index f0d7fb8ab0f3..91c73535f1fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/client.go @@ -15,7 +15,7 @@ type SoftwareUpdateConfigurationClient struct { } func NewSoftwareUpdateConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*SoftwareUpdateConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "softwareupdateconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "softwareupdateconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SoftwareUpdateConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_automationaccount.go index 4ae9c5972bbe..eece249121bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_softwareupdateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_softwareupdateconfiguration.go index 1155705d2080..36a97aee0a80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_softwareupdateconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/id_softwareupdateconfiguration.go @@ -44,7 +44,7 @@ func ParseSoftwareUpdateConfigurationID(input string) (*SoftwareUpdateConfigurat } id := SoftwareUpdateConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSoftwareUpdateConfigurationIDInsensitively(input string) (*SoftwareUpd } id := SoftwareUpdateConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SoftwareUpdateConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSoftwareUpdateConfigurations", "softwareUpdateConfigurations", "softwareUpdateConfigurations"), - resourceids.UserSpecifiedSegment("softwareUpdateConfigurationName", "softwareUpdateConfigurationValue"), + resourceids.UserSpecifiedSegment("softwareUpdateConfigurationName", "softwareUpdateConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go index 2f9856ab171d..78411ece1517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_create.go @@ -36,6 +36,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c SoftwareUpdateConfigurationClient) Create(ctx context.Context, id Softwa var model SoftwareUpdateConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go index e7ff65532b7b..cef2425a060d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go index a99bd7c50878..19324adfbf0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_getbyname.go @@ -36,6 +36,7 @@ func (o GetByNameOperationOptions) ToHeaders() *client.Headers { func (o GetByNameOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SoftwareUpdateConfigurationClient) GetByName(ctx context.Context, id Sof var model SoftwareUpdateConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go index 1313ffaad9f3..97755fdebed2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/method_list.go @@ -37,6 +37,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -77,7 +78,6 @@ func (c SoftwareUpdateConfigurationClient) List(ctx context.Context, id Automati var model SoftwareUpdateConfigurationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/version.go index da57c1a9f2e4..a2ac51bb58f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2019-06-01/softwareupdateconfiguration/version.go @@ -1,12 +1,10 @@ package softwareupdateconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/softwareupdateconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/softwareupdateconfiguration/2019-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/README.md index b9fb0ee129cf..2300bb708c14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher` Documentation -The `watcher` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2020-01-13-preview`). +The `watcher` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2020-01-13-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") payload := watcher.Watcher{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watcher.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := watcher.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, watcher.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, watcher.DefaultListByAutomationAccountOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") read, err := client.Start(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") read, err := client.Stop(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "watcherValue") +id := watcher.NewWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "watcherName") payload := watcher.WatcherUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/client.go index 410df5cc6de8..97956dd3b499 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/client.go @@ -15,7 +15,7 @@ type WatcherClient struct { } func NewWatcherClientWithBaseURI(sdkApi sdkEnv.Api) (*WatcherClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "watcher", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "watcher", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WatcherClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_automationaccount.go index 5bb6a32656c8..385fd8b7cc36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_watcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_watcher.go index 5ee526661d57..7294d974c876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_watcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/id_watcher.go @@ -44,7 +44,7 @@ func ParseWatcherID(input string) (*WatcherId, error) { } id := WatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWatcherIDInsensitively(input string) (*WatcherId, error) { } id := WatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticWatchers", "watchers", "watchers"), - resourceids.UserSpecifiedSegment("watcherName", "watcherValue"), + resourceids.UserSpecifiedSegment("watcherName", "watcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_createorupdate.go index de1bd15ae0f5..80fb2527d8f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WatcherClient) CreateOrUpdate(ctx context.Context, id WatcherId, input W var model Watcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_get.go index 399e6b731f9b..5578b8b19385 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_get.go @@ -45,7 +45,6 @@ func (c WatcherClient) Get(ctx context.Context, id WatcherId) (result GetOperati var model Watcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go index b0f573fbe516..dad46ab1f354 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_update.go index baa7b92a1f45..02103fa5b5bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/method_update.go @@ -49,7 +49,6 @@ func (c WatcherClient) Update(ctx context.Context, id WatcherId, input WatcherUp var model Watcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/version.go index d6946cea7626..57b746339186 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2020-01-13-preview/watcher/version.go @@ -1,12 +1,10 @@ package watcher -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-01-13-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/watcher/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/watcher/2020-01-13-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/README.md index 2636966ab092..5b614bc28b80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount` Documentation -The `automationaccount` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2022-08-08`). +The `automationaccount` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2022-08-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := automationaccount.AutomationAccountCreateOrUpdateParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := automationaccount.AutomationAccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/client.go index 6343afe1975a..b59c37837972 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/client.go @@ -15,7 +15,7 @@ type AutomationAccountClient struct { } func NewAutomationAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*AutomationAccountClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "automationaccount", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "automationaccount", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AutomationAccountClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/id_automationaccount.go index 4c9ae7a643e6..95f8a5ecfc97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_createorupdate.go index ac9cf1649c08..4f8234791c6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AutomationAccountClient) CreateOrUpdate(ctx context.Context, id Automati var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_get.go index 1f43de0d06f0..c0b72f52db2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_get.go @@ -45,7 +45,6 @@ func (c AutomationAccountClient) Get(ctx context.Context, id AutomationAccountId var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_update.go index dd915f53bc49..b3a0baa7d28c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/method_update.go @@ -49,7 +49,6 @@ func (c AutomationAccountClient) Update(ctx context.Context, id AutomationAccoun var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/version.go index d78444fc9041..2597ecd888e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2022-08-08/automationaccount/version.go @@ -1,12 +1,10 @@ package automationaccount -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/automationaccount/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/automationaccount/2022-08-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/README.md index 2d80db887062..61447235f2da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity` Documentation -The `activity` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `activity` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := activity.NewActivityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue", "activityValue") +id := activity.NewActivityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName", "activityName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := activity.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue") +id := activity.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") // alternatively `client.ListByModule(ctx, id)` can be used to do batched pagination items, err := client.ListByModuleComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/client.go index 0142d55ea1f2..7e366361ec15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/client.go @@ -15,7 +15,7 @@ type ActivityClient struct { } func NewActivityClientWithBaseURI(sdkApi sdkEnv.Api) (*ActivityClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "activity", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "activity", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ActivityClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_activity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_activity.go index 87b1df1f7632..14ed2cf38426 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_activity.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_activity.go @@ -46,7 +46,7 @@ func ParseActivityID(input string) (*ActivityId, error) { } id := ActivityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseActivityIDInsensitively(input string) (*ActivityId, error) { } id := ActivityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ActivityId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "moduleName"), resourceids.StaticSegment("staticActivities", "activities", "activities"), - resourceids.UserSpecifiedSegment("activityName", "activityValue"), + resourceids.UserSpecifiedSegment("activityName", "activityName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_module.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_module.go index 2c22f0316ae8..e4b909db9366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_module.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/id_module.go @@ -44,7 +44,7 @@ func ParseModuleID(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseModuleIDInsensitively(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "moduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/method_get.go index d91dc4e2e436..c212d18aab09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/method_get.go @@ -45,7 +45,6 @@ func (c ActivityClient) Get(ctx context.Context, id ActivityId) (result GetOpera var model Activity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/version.go index 4ca248b2d2c7..8e597a00ab72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/activity/version.go @@ -1,12 +1,10 @@ package activity -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/activity/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/activity/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/README.md index 484b7024bd19..bf318e933c08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount` Documentation -The `automationaccount` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `automationaccount` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := automationaccount.AutomationAccountCreateOrUpdateParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := automationaccount.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := automationaccount.AutomationAccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/client.go index 6343afe1975a..b59c37837972 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/client.go @@ -15,7 +15,7 @@ type AutomationAccountClient struct { } func NewAutomationAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*AutomationAccountClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "automationaccount", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "automationaccount", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AutomationAccountClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/id_automationaccount.go index 4c9ae7a643e6..95f8a5ecfc97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_createorupdate.go index ac9cf1649c08..4f8234791c6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AutomationAccountClient) CreateOrUpdate(ctx context.Context, id Automati var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_get.go index 1f43de0d06f0..c0b72f52db2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_get.go @@ -45,7 +45,6 @@ func (c AutomationAccountClient) Get(ctx context.Context, id AutomationAccountId var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_update.go index dd915f53bc49..b3a0baa7d28c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/method_update.go @@ -49,7 +49,6 @@ func (c AutomationAccountClient) Update(ctx context.Context, id AutomationAccoun var model AutomationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/version.go index 38823f62978f..a141c54024f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/automationaccount/version.go @@ -1,12 +1,10 @@ package automationaccount -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/automationaccount/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/automationaccount/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/README.md index 464d6699b017..4d4bd9ac9312 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate` Documentation -The `certificate` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `certificate` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "certificateName") payload := certificate.CertificateCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "certificateName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "certificateName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := certificate.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "certificateName") payload := certificate.CertificateUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/client.go index 9c7a68853627..723362e2b0f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/client.go @@ -15,7 +15,7 @@ type CertificateClient struct { } func NewCertificateClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_automationaccount.go index 29c8860dc294..659adf90f89b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_certificate.go index 6ab72756d103..5dafe2de684d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_createorupdate.go index 0b944c57e506..1e5de85afb24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_createorupdate.go @@ -50,7 +50,6 @@ func (c CertificateClient) CreateOrUpdate(ctx context.Context, id CertificateId, var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_get.go index 171381cc2394..297ae687e219 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_get.go @@ -45,7 +45,6 @@ func (c CertificateClient) Get(ctx context.Context, id CertificateId) (result Ge var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_update.go index 6fbe2d4a340a..b4c51d673ad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/method_update.go @@ -49,7 +49,6 @@ func (c CertificateClient) Update(ctx context.Context, id CertificateId, input C var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/version.go index 480fdf6c0ac5..1419590e8d61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/certificate/version.go @@ -1,12 +1,10 @@ package certificate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificate/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/README.md index 81c09ad8e316..3fd60cd72870 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection` Documentation -The `connection` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `connection` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionValue") +id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionName") payload := connection.ConnectionCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionValue") +id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionValue") +id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connection.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := connection.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionValue") +id := connection.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionName") payload := connection.ConnectionUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/client.go index 3f066e2e6539..0c3f5a2848bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/client.go @@ -15,7 +15,7 @@ type ConnectionClient struct { } func NewConnectionClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connection", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connection", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectionClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_automationaccount.go index ec1aaa6092fe..a0fe9a126f10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_connection.go index 6ec1093cd2b7..9f1cacba12c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_connection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/id_connection.go @@ -44,7 +44,7 @@ func ParseConnectionID(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionValue"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_createorupdate.go index b1f0dd9e309e..b6f6f47e4621 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConnectionClient) CreateOrUpdate(ctx context.Context, id ConnectionId, i var model Connection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_get.go index 16d9f30e8c81..602490999ff3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_get.go @@ -45,7 +45,6 @@ func (c ConnectionClient) Get(ctx context.Context, id ConnectionId) (result GetO var model Connection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_update.go index 1c57761fbc1d..11dff660df69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/method_update.go @@ -49,7 +49,6 @@ func (c ConnectionClient) Update(ctx context.Context, id ConnectionId, input Con var model Connection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/version.go index ef201c5acf75..5c9b173f54bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connection/version.go @@ -1,12 +1,10 @@ package connection -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connection/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connection/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/README.md index 3d92fbf25960..5596f5b1e896 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype` Documentation -The `connectiontype` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `connectiontype` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionTypeValue") +id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionTypeName") payload := connectiontype.ConnectionTypeCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionTypeValue") +id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionTypeName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "connectionTypeValue") +id := connectiontype.NewConnectionTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "connectionTypeName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectiontype.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := connectiontype.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/client.go index c5cc541fae37..bd83ae0611aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/client.go @@ -15,7 +15,7 @@ type ConnectionTypeClient struct { } func NewConnectionTypeClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionTypeClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectiontype", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectiontype", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectionTypeClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_automationaccount.go index 3f9b9b3fc082..08353c1a0e99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_connectiontype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_connectiontype.go index 6fb2d1c07b24..2bde722165a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_connectiontype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/id_connectiontype.go @@ -44,7 +44,7 @@ func ParseConnectionTypeID(input string) (*ConnectionTypeId, error) { } id := ConnectionTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectionTypeIDInsensitively(input string) (*ConnectionTypeId, error) } id := ConnectionTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectionTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticConnectionTypes", "connectionTypes", "connectionTypes"), - resourceids.UserSpecifiedSegment("connectionTypeName", "connectionTypeValue"), + resourceids.UserSpecifiedSegment("connectionTypeName", "connectionTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_createorupdate.go index 9733a9a7c132..b54821806693 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_createorupdate.go @@ -49,7 +49,6 @@ func (c ConnectionTypeClient) CreateOrUpdate(ctx context.Context, id ConnectionT var model ConnectionType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_get.go index 54be67f62262..f4bc697608ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/method_get.go @@ -45,7 +45,6 @@ func (c ConnectionTypeClient) Get(ctx context.Context, id ConnectionTypeId) (res var model ConnectionType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/version.go index f9c50bf569ca..f23544859149 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/connectiontype/version.go @@ -1,12 +1,10 @@ package connectiontype -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectiontype/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectiontype/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/README.md index 261f50f56aef..7f17077a6d2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential` Documentation -The `credential` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `credential` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "credentialValue") +id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "credentialName") payload := credential.CredentialCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "credentialValue") +id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "credentialName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "credentialValue") +id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "credentialName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credential.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := credential.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "credentialValue") +id := credential.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "credentialName") payload := credential.CredentialUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/client.go index 2e36e15446be..52f1e66c3174 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/client.go @@ -15,7 +15,7 @@ type CredentialClient struct { } func NewCredentialClientWithBaseURI(sdkApi sdkEnv.Api) (*CredentialClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "credential", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "credential", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CredentialClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_automationaccount.go index 173accecf18a..71864d52106d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_credential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_credential.go index 7e4319efe94c..368320a6ef35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_credential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/id_credential.go @@ -44,7 +44,7 @@ func ParseCredentialID(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCredentialIDInsensitively(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CredentialId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticCredentials", "credentials", "credentials"), - resourceids.UserSpecifiedSegment("credentialName", "credentialValue"), + resourceids.UserSpecifiedSegment("credentialName", "credentialName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_createorupdate.go index 046ed79f9918..2c5f73f9dfeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_createorupdate.go @@ -50,7 +50,6 @@ func (c CredentialClient) CreateOrUpdate(ctx context.Context, id CredentialId, i var model Credential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_get.go index f9008350a371..225e47cfe422 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_get.go @@ -45,7 +45,6 @@ func (c CredentialClient) Get(ctx context.Context, id CredentialId) (result GetO var model Credential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_update.go index bb2022825d53..da04941cd119 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/method_update.go @@ -49,7 +49,6 @@ func (c CredentialClient) Update(ctx context.Context, id CredentialId, input Cre var model Credential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/version.go index 871a8966fa78..75f7ef3903ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/credential/version.go @@ -1,12 +1,10 @@ package credential -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/credential/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/credential/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/README.md index 4589e9c03ff8..6f0b856b840f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration` Documentation -The `dscconfiguration` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `dscconfiguration` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "configurationValue") +id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "configurationName") payload := dscconfiguration.DscConfigurationCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "configurationValue") +id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "configurationName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "configurationValue") +id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "configurationValue") +id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "configurationName") read, err := client.GetContent(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := dscconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, dscconfiguration.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, dscconfiguration.DefaultListByAutomationAccountOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "configurationValue") +id := dscconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "configurationName") payload := dscconfiguration.DscConfigurationUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/client.go index 33d7d66ff2ec..b0bf9421d658 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/client.go @@ -15,7 +15,7 @@ type DscConfigurationClient struct { } func NewDscConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DscConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dscconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dscconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DscConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_automationaccount.go index a9b7ac7041d4..fb30b604911b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_configuration.go index 0cb80dea3e2d..22bc2cea14e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_createorupdate.go index 5096a6df27c0..9fcc3d6a75b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DscConfigurationClient) CreateOrUpdate(ctx context.Context, id Configura var model DscConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_get.go index 0ec24024e260..e53beeed6173 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c DscConfigurationClient) Get(ctx context.Context, id ConfigurationId) (re var model DscConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_getcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_getcontent.go index 34c430ed62fa..74269aa1a64e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_getcontent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_getcontent.go @@ -46,7 +46,6 @@ func (c DscConfigurationClient) GetContent(ctx context.Context, id Configuration var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go index 8a4b09db2662..19cb7180e57e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_listbyautomationaccount.go @@ -42,6 +42,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_update.go index 89ed13be39f0..c842ef5f4b36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/method_update.go @@ -49,7 +49,6 @@ func (c DscConfigurationClient) Update(ctx context.Context, id ConfigurationId, var model DscConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/version.go index 446a41ac7818..4413eefcbe9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscconfiguration/version.go @@ -1,12 +1,10 @@ package dscconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dscconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dscconfiguration/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/README.md index d08656a78571..c4cc12683d54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration` Documentation -The `dscnodeconfiguration` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `dscnodeconfiguration` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "nodeConfigurationValue") +id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName") payload := dscnodeconfiguration.DscNodeConfigurationCreateOrUpdateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "nodeConfigurationValue") +id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName") read, err := client.Delete(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "nodeConfigurationValue") +id := dscnodeconfiguration.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "nodeConfigurationName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dscnodeconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := dscnodeconfiguration.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, dscnodeconfiguration.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, dscnodeconfiguration.DefaultListByAutomationAccountOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/client.go index 60e2159464d6..d9d09f3a59d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/client.go @@ -15,7 +15,7 @@ type DscNodeConfigurationClient struct { } func NewDscNodeConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DscNodeConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dscnodeconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dscnodeconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DscNodeConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_automationaccount.go index 2857bb759efa..58214d778e33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_nodeconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_nodeconfiguration.go index 55f9ef787e57..d5e5da37de7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_nodeconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/id_nodeconfiguration.go @@ -44,7 +44,7 @@ func ParseNodeConfigurationID(input string) (*NodeConfigurationId, error) { } id := NodeConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNodeConfigurationIDInsensitively(input string) (*NodeConfigurationId, } id := NodeConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NodeConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticNodeConfigurations", "nodeConfigurations", "nodeConfigurations"), - resourceids.UserSpecifiedSegment("nodeConfigurationName", "nodeConfigurationValue"), + resourceids.UserSpecifiedSegment("nodeConfigurationName", "nodeConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_get.go index 3971e32ad954..09e5cef4f75f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c DscNodeConfigurationClient) Get(ctx context.Context, id NodeConfiguratio var model DscNodeConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go index 707c87a2ebcb..cd9762499e3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/method_listbyautomationaccount.go @@ -42,6 +42,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/version.go index 92d51046fc57..be796b1a6d02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/dscnodeconfiguration/version.go @@ -1,12 +1,10 @@ package dscnodeconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dscnodeconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dscnodeconfiguration/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/README.md index eec27bf2dd14..49b00f43300d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker` Documentation -The `hybridrunbookworker` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `hybridrunbookworker` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue") +id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName", "hybridRunbookWorkerId") payload := hybridrunbookworker.HybridRunbookWorkerCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue") +id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName", "hybridRunbookWorkerId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue") +id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName", "hybridRunbookWorkerId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworker.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue") +id := hybridrunbookworker.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName") // alternatively `client.ListByHybridRunbookWorkerGroup(ctx, id, hybridrunbookworker.DefaultListByHybridRunbookWorkerGroupOperationOptions())` can be used to do batched pagination items, err := client.ListByHybridRunbookWorkerGroupComplete(ctx, id, hybridrunbookworker.DefaultListByHybridRunbookWorkerGroupOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue", "hybridRunbookWorkerIdValue") +id := hybridrunbookworker.NewHybridRunbookWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName", "hybridRunbookWorkerId") payload := hybridrunbookworker.HybridRunbookWorkerMoveParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/client.go index ff1996db3d78..db47418435b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/client.go @@ -15,7 +15,7 @@ type HybridRunbookWorkerClient struct { } func NewHybridRunbookWorkerClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridRunbookWorkerClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hybridrunbookworker", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hybridrunbookworker", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HybridRunbookWorkerClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworker.go index aed59dbb642a..9cb1a681eeba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworker.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworker.go @@ -46,7 +46,7 @@ func ParseHybridRunbookWorkerID(input string) (*HybridRunbookWorkerId, error) { } id := HybridRunbookWorkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseHybridRunbookWorkerIDInsensitively(input string) (*HybridRunbookWorker } id := HybridRunbookWorkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id HybridRunbookWorkerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticHybridRunbookWorkerGroups", "hybridRunbookWorkerGroups", "hybridRunbookWorkerGroups"), - resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupValue"), + resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupName"), resourceids.StaticSegment("staticHybridRunbookWorkers", "hybridRunbookWorkers", "hybridRunbookWorkers"), - resourceids.UserSpecifiedSegment("hybridRunbookWorkerId", "hybridRunbookWorkerIdValue"), + resourceids.UserSpecifiedSegment("hybridRunbookWorkerId", "hybridRunbookWorkerId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworkergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworkergroup.go index a5175098bc7d..d03d8af9c48c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworkergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/id_hybridrunbookworkergroup.go @@ -44,7 +44,7 @@ func ParseHybridRunbookWorkerGroupID(input string) (*HybridRunbookWorkerGroupId, } id := HybridRunbookWorkerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHybridRunbookWorkerGroupIDInsensitively(input string) (*HybridRunbookW } id := HybridRunbookWorkerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HybridRunbookWorkerGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticHybridRunbookWorkerGroups", "hybridRunbookWorkerGroups", "hybridRunbookWorkerGroups"), - resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupValue"), + resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_create.go index 822b711b23a0..b115ec66d5d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_create.go @@ -50,7 +50,6 @@ func (c HybridRunbookWorkerClient) Create(ctx context.Context, id HybridRunbookW var model HybridRunbookWorker result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_get.go index fa75f9769d4d..68d91089f3bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_get.go @@ -45,7 +45,6 @@ func (c HybridRunbookWorkerClient) Get(ctx context.Context, id HybridRunbookWork var model HybridRunbookWorker result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go index 3b13c74775bc..a7430c3925ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/method_listbyhybridrunbookworkergroup.go @@ -39,6 +39,7 @@ func (o ListByHybridRunbookWorkerGroupOperationOptions) ToHeaders() *client.Head func (o ListByHybridRunbookWorkerGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/version.go index 023858e621c9..7f8e933c9a30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworker/version.go @@ -1,12 +1,10 @@ package hybridrunbookworker -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hybridrunbookworker/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hybridrunbookworker/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/README.md index 4269b9147c2a..f4aabe6b59f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup` Documentation -The `hybridrunbookworkergroup` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `hybridrunbookworkergroup` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue") +id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName") payload := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue") +id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue") +id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridrunbookworkergroup.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := hybridrunbookworkergroup.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, hybridrunbookworkergroup.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, hybridrunbookworkergroup.DefaultListByAutomationAccountOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "hybridRunbookWorkerGroupValue") +id := hybridrunbookworkergroup.NewHybridRunbookWorkerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "hybridRunbookWorkerGroupName") payload := hybridrunbookworkergroup.HybridRunbookWorkerGroupCreateOrUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/client.go index f5ebfd7b744f..f84337b229db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/client.go @@ -15,7 +15,7 @@ type HybridRunbookWorkerGroupClient struct { } func NewHybridRunbookWorkerGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridRunbookWorkerGroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hybridrunbookworkergroup", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hybridrunbookworkergroup", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HybridRunbookWorkerGroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_automationaccount.go index 4691bac93419..f4bcb0b68173 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_hybridrunbookworkergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_hybridrunbookworkergroup.go index d73dae7dadcc..cc1394df0b84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_hybridrunbookworkergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/id_hybridrunbookworkergroup.go @@ -44,7 +44,7 @@ func ParseHybridRunbookWorkerGroupID(input string) (*HybridRunbookWorkerGroupId, } id := HybridRunbookWorkerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHybridRunbookWorkerGroupIDInsensitively(input string) (*HybridRunbookW } id := HybridRunbookWorkerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HybridRunbookWorkerGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticHybridRunbookWorkerGroups", "hybridRunbookWorkerGroups", "hybridRunbookWorkerGroups"), - resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupValue"), + resourceids.UserSpecifiedSegment("hybridRunbookWorkerGroupName", "hybridRunbookWorkerGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_create.go index c07fc22ea1fa..3412d58df6ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_create.go @@ -50,7 +50,6 @@ func (c HybridRunbookWorkerGroupClient) Create(ctx context.Context, id HybridRun var model HybridRunbookWorkerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_get.go index 4b828073e8e4..f65f19d4bb80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_get.go @@ -45,7 +45,6 @@ func (c HybridRunbookWorkerGroupClient) Get(ctx context.Context, id HybridRunboo var model HybridRunbookWorkerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go index 347df8f2b274..bd8a57d333c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_update.go index 237b923dae3b..cb58eab5762d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/method_update.go @@ -49,7 +49,6 @@ func (c HybridRunbookWorkerGroupClient) Update(ctx context.Context, id HybridRun var model HybridRunbookWorkerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/version.go index 91db42a74eb7..832c0e734e3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/hybridrunbookworkergroup/version.go @@ -1,12 +1,10 @@ package hybridrunbookworkergroup -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hybridrunbookworkergroup/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hybridrunbookworkergroup/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/README.md index 82cf3429f2d9..3bfb36edcb8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job` Documentation -The `job` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `job` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") payload := job.JobCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.Get(ctx, id, job.DefaultGetOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.GetOutput(ctx, id, job.DefaultGetOutputOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.GetRunbookContent(ctx, id, job.DefaultGetRunbookContentOperationOptions()) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := job.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, job.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, job.DefaultListByAutomationAccountOperationOptions()) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.Resume(ctx, id, job.DefaultResumeOperationOptions()) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.Stop(ctx, id, job.DefaultStopOperationOptions()) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := job.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") read, err := client.Suspend(ctx, id, job.DefaultSuspendOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/client.go index 4736df084cf2..7539b61a6871 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/client.go @@ -15,7 +15,7 @@ type JobClient struct { } func NewJobClientWithBaseURI(sdkApi sdkEnv.Api) (*JobClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "job", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "job", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_automationaccount.go index a03de714fcf7..d998c13ae1c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_job.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_job.go index d9ee96305cfc..1d10fbd915ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_job.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/id_job.go @@ -44,7 +44,7 @@ func ParseJobID(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseJobIDInsensitively(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id JobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_create.go index 20181d88e2ef..157bfbc18115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_create.go @@ -36,6 +36,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c JobClient) Create(ctx context.Context, id JobId, input JobCreateParamete var model Job result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_get.go index 70b2a88ce703..f8444387c477 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c JobClient) Get(ctx context.Context, id JobId, options GetOperationOption var model Job result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getoutput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getoutput.go index c5e0edacdb06..1255914f3ea2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getoutput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getoutput.go @@ -36,6 +36,7 @@ func (o GetOutputOperationOptions) ToHeaders() *client.Headers { func (o GetOutputOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c JobClient) GetOutput(ctx context.Context, id JobId, options GetOutputOpe var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go index a7a244d98590..bf20b3af24a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_getrunbookcontent.go @@ -36,6 +36,7 @@ func (o GetRunbookContentOperationOptions) ToHeaders() *client.Headers { func (o GetRunbookContentOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c JobClient) GetRunbookContent(ctx context.Context, id JobId, options GetR var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go index 504bd8612219..df1c74e6a312 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_listbyautomationaccount.go @@ -42,6 +42,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_resume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_resume.go index c707c2a9c743..d5080a44a1bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_resume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_resume.go @@ -35,6 +35,7 @@ func (o ResumeOperationOptions) ToHeaders() *client.Headers { func (o ResumeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_stop.go index d2864853dffb..91d406b28f90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_stop.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_stop.go @@ -35,6 +35,7 @@ func (o StopOperationOptions) ToHeaders() *client.Headers { func (o StopOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_suspend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_suspend.go index bc8f428afbb3..533d6922f83c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_suspend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/method_suspend.go @@ -35,6 +35,7 @@ func (o SuspendOperationOptions) ToHeaders() *client.Headers { func (o SuspendOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/version.go index 5aa0f3df95d3..7b87150b15eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/job/version.go @@ -1,12 +1,10 @@ package job -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/job/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/job/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/README.md index 8a9a9344a3f5..56c3cd102ebb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule` Documentation -The `jobschedule` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `jobschedule` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobScheduleIdValue") +id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobScheduleId") payload := jobschedule.JobScheduleCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobScheduleIdValue") +id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobScheduleId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobScheduleIdValue") +id := jobschedule.NewJobScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobScheduleId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobschedule.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := jobschedule.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, jobschedule.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, jobschedule.DefaultListByAutomationAccountOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/client.go index 4c9fb976839f..18a0e89bd371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/client.go @@ -15,7 +15,7 @@ type JobScheduleClient struct { } func NewJobScheduleClientWithBaseURI(sdkApi sdkEnv.Api) (*JobScheduleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobschedule", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobschedule", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobScheduleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_automationaccount.go index 330e6504743b..f3553a894fe7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_jobschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_jobschedule.go index 9276d099eb32..5c3966541eea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_jobschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/id_jobschedule.go @@ -44,7 +44,7 @@ func ParseJobScheduleID(input string) (*JobScheduleId, error) { } id := JobScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseJobScheduleIDInsensitively(input string) (*JobScheduleId, error) { } id := JobScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id JobScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticJobSchedules", "jobSchedules", "jobSchedules"), - resourceids.UserSpecifiedSegment("jobScheduleId", "jobScheduleIdValue"), + resourceids.UserSpecifiedSegment("jobScheduleId", "jobScheduleId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_create.go index 038319358248..676325e8c02b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_create.go @@ -49,7 +49,6 @@ func (c JobScheduleClient) Create(ctx context.Context, id JobScheduleId, input J var model JobSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_get.go index 0721b83e4be6..913490c81750 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_get.go @@ -45,7 +45,6 @@ func (c JobScheduleClient) Get(ctx context.Context, id JobScheduleId) (result Ge var model JobSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go index 6b5c6412a831..74ee8cd52b46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/version.go index 00235dc94c8b..c84726cf5313 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobschedule/version.go @@ -1,12 +1,10 @@ package jobschedule -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobschedule/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobschedule/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/README.md index b244ef71b042..e4c113dbab8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream` Documentation -The `jobstream` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `jobstream` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobstream.NewStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue", "jobStreamIdValue") +id := jobstream.NewStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName", "jobStreamId") read, err := client.Get(ctx, id, jobstream.DefaultGetOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobstream.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "jobValue") +id := jobstream.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "jobName") // alternatively `client.ListByJob(ctx, id, jobstream.DefaultListByJobOperationOptions())` can be used to do batched pagination items, err := client.ListByJobComplete(ctx, id, jobstream.DefaultListByJobOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/client.go index 880cfb481130..8711950a051f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/client.go @@ -15,7 +15,7 @@ type JobStreamClient struct { } func NewJobStreamClientWithBaseURI(sdkApi sdkEnv.Api) (*JobStreamClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobstream", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobstream", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobStreamClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_job.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_job.go index d37d4f381ddd..1f5fafcb0ef0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_job.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_job.go @@ -44,7 +44,7 @@ func ParseJobID(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseJobIDInsensitively(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id JobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_stream.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_stream.go index cc03ad44f411..480d9f76142d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_stream.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/id_stream.go @@ -46,7 +46,7 @@ func ParseStreamID(input string) (*StreamId, error) { } id := StreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseStreamIDInsensitively(input string) (*StreamId, error) { } id := StreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id StreamId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), resourceids.StaticSegment("staticStreams", "streams", "streams"), - resourceids.UserSpecifiedSegment("jobStreamId", "jobStreamIdValue"), + resourceids.UserSpecifiedSegment("jobStreamId", "jobStreamId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_get.go index 500505c3b4fd..3682e1236de8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c JobStreamClient) Get(ctx context.Context, id StreamId, options GetOperat var model JobStream result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go index 4d6eee1cc84e..80cd095c7ca5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/method_listbyjob.go @@ -42,6 +42,7 @@ func (o ListByJobOperationOptions) ToHeaders() *client.Headers { func (o ListByJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/version.go index 119636d85ce6..969a2b86995e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/jobstream/version.go @@ -1,12 +1,10 @@ package jobstream -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobstream/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobstream/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/README.md index a489500c58d3..354768b94779 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace` Documentation -The `linkedworkspace` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `linkedworkspace` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := linkedworkspace.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := linkedworkspace.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/client.go index 265eab060514..ce26bf57e1c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/client.go @@ -15,7 +15,7 @@ type LinkedWorkspaceClient struct { } func NewLinkedWorkspaceClientWithBaseURI(sdkApi sdkEnv.Api) (*LinkedWorkspaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "linkedworkspace", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "linkedworkspace", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LinkedWorkspaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/id_automationaccount.go index 33e45a35f320..f4512d4e5cb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/method_get.go index 7ea3ca17eafd..7019324f5a3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/method_get.go @@ -46,7 +46,6 @@ func (c LinkedWorkspaceClient) Get(ctx context.Context, id AutomationAccountId) var model LinkedWorkspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/version.go index 219c69970d6a..38c1e0e14963 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/linkedworkspace/version.go @@ -1,12 +1,10 @@ package linkedworkspace -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/linkedworkspace/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/linkedworkspace/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/README.md index 353c9c962deb..ab4e5b979968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys` Documentation -The `listkeys` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `listkeys` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := listkeys.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := listkeys.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.KeysListByAutomationAccount(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/client.go index ae0d6b6f1b97..2c8aa63a7db0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/client.go @@ -15,7 +15,7 @@ type ListKeysClient struct { } func NewListKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*ListKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "listkeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "listkeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ListKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/id_automationaccount.go index daa81dd7bf6f..1ee31de9ae55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/method_keyslistbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/method_keyslistbyautomationaccount.go index fd5035588451..acd80c5773f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/method_keyslistbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/method_keyslistbyautomationaccount.go @@ -46,7 +46,6 @@ func (c ListKeysClient) KeysListByAutomationAccount(ctx context.Context, id Auto var model KeyListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/version.go index 0e4fe52302d1..7e5198f2e19f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/listkeys/version.go @@ -1,12 +1,10 @@ package listkeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/listkeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/listkeys/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/README.md index 2e808be97445..08bb34a41f23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module` Documentation -The `module` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `module` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue") +id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") payload := module.ModuleCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue") +id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue") +id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := module.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "powerShell72ModuleValue") +id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") payload := module.ModuleCreateOrUpdateParameters{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "powerShell72ModuleValue") +id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") read, err := client.PowerShell72ModuleDelete(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "powerShell72ModuleValue") +id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") read, err := client.PowerShell72ModuleGet(ctx, id) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := module.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.PowerShell72ModuleListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.PowerShell72ModuleListByAutomationAccountComplete(ctx, id) @@ -164,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "powerShell72ModuleValue") +id := module.NewPowerShell72ModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") payload := module.ModuleUpdateParameters{ // ... @@ -185,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue") +id := module.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName") payload := module.ModuleUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/client.go index b187a9525a79..88bab05b01de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/client.go @@ -15,7 +15,7 @@ type ModuleClient struct { } func NewModuleClientWithBaseURI(sdkApi sdkEnv.Api) (*ModuleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "module", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "module", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ModuleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_automationaccount.go index d884ddf6d143..73a3e4cf3c97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_module.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_module.go index d43369de67b9..14cbb20ae48d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_module.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_module.go @@ -44,7 +44,7 @@ func ParseModuleID(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseModuleIDInsensitively(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "moduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_powershell72module.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_powershell72module.go index accac259a0cf..fb57f3af4ee1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_powershell72module.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/id_powershell72module.go @@ -44,7 +44,7 @@ func ParsePowerShell72ModuleID(input string) (*PowerShell72ModuleId, error) { } id := PowerShell72ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePowerShell72ModuleIDInsensitively(input string) (*PowerShell72ModuleId } id := PowerShell72ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PowerShell72ModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticPowerShell72Modules", "powerShell72Modules", "powerShell72Modules"), - resourceids.UserSpecifiedSegment("powerShell72ModuleName", "powerShell72ModuleValue"), + resourceids.UserSpecifiedSegment("powerShell72ModuleName", "moduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_createorupdate.go index 8f2b497f448f..009eca3b71ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ModuleClient) CreateOrUpdate(ctx context.Context, id ModuleId, input Mod var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_get.go index dda1e7d6fe3b..f1bb9268515b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_get.go @@ -45,7 +45,6 @@ func (c ModuleClient) Get(ctx context.Context, id ModuleId) (result GetOperation var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72modulecreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72modulecreateorupdate.go index 9f980bd45ee2..9919ed54a4d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72modulecreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72modulecreateorupdate.go @@ -50,7 +50,6 @@ func (c ModuleClient) PowerShell72ModuleCreateOrUpdate(ctx context.Context, id P var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleget.go index f11cc7540232..2b80c8fc0d68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleget.go @@ -45,7 +45,6 @@ func (c ModuleClient) PowerShell72ModuleGet(ctx context.Context, id PowerShell72 var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleupdate.go index d4d568010eb8..eae6eb0ed663 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_powershell72moduleupdate.go @@ -49,7 +49,6 @@ func (c ModuleClient) PowerShell72ModuleUpdate(ctx context.Context, id PowerShel var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_update.go index 7ea24e33455a..b8d0e37337ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/method_update.go @@ -49,7 +49,6 @@ func (c ModuleClient) Update(ctx context.Context, id ModuleId, input ModuleUpdat var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/version.go index 63ab15dc6eb8..40df4dfab4dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/module/version.go @@ -1,12 +1,10 @@ package module -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/module/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/module/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/README.md index 7b3ba4c19fe9..a156b0db1540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes` Documentation -The `objectdatatypes` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `objectdatatypes` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := objectdatatypes.NewModuleObjectDataTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue", "objectDataTypeValue") +id := objectdatatypes.NewModuleObjectDataTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName", "typeName") read, err := client.ListFieldsByModuleAndType(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := objectdatatypes.NewObjectDataTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "objectDataTypeValue") +id := objectdatatypes.NewObjectDataTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "typeName") read, err := client.ListFieldsByType(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/client.go index 7d8a79e54081..790cc0cc5b4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/client.go @@ -15,7 +15,7 @@ type ObjectDataTypesClient struct { } func NewObjectDataTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*ObjectDataTypesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "objectdatatypes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "objectdatatypes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ObjectDataTypesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_moduleobjectdatatype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_moduleobjectdatatype.go index b47304ed896e..e02c0c14cae9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_moduleobjectdatatype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_moduleobjectdatatype.go @@ -46,7 +46,7 @@ func ParseModuleObjectDataTypeID(input string) (*ModuleObjectDataTypeId, error) } id := ModuleObjectDataTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseModuleObjectDataTypeIDInsensitively(input string) (*ModuleObjectDataTy } id := ModuleObjectDataTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ModuleObjectDataTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "moduleName"), resourceids.StaticSegment("staticObjectDataTypes", "objectDataTypes", "objectDataTypes"), - resourceids.UserSpecifiedSegment("objectDataTypeName", "objectDataTypeValue"), + resourceids.UserSpecifiedSegment("objectDataTypeName", "typeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_objectdatatype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_objectdatatype.go index e4bc22891bf8..f8217a2592bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_objectdatatype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/id_objectdatatype.go @@ -44,7 +44,7 @@ func ParseObjectDataTypeID(input string) (*ObjectDataTypeId, error) { } id := ObjectDataTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseObjectDataTypeIDInsensitively(input string) (*ObjectDataTypeId, error) } id := ObjectDataTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ObjectDataTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticObjectDataTypes", "objectDataTypes", "objectDataTypes"), - resourceids.UserSpecifiedSegment("objectDataTypeName", "objectDataTypeValue"), + resourceids.UserSpecifiedSegment("objectDataTypeName", "typeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbymoduleandtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbymoduleandtype.go index 101a08ad9d6c..be62b5231931 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbymoduleandtype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbymoduleandtype.go @@ -46,7 +46,6 @@ func (c ObjectDataTypesClient) ListFieldsByModuleAndType(ctx context.Context, id var model TypeFieldListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbytype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbytype.go index f42dd1234dd2..7d47bc2e64fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbytype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/method_listfieldsbytype.go @@ -46,7 +46,6 @@ func (c ObjectDataTypesClient) ListFieldsByType(ctx context.Context, id ObjectDa var model TypeFieldListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/version.go index ae3d82546143..ad7c1f7b8d41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/objectdatatypes/version.go @@ -1,12 +1,10 @@ package objectdatatypes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/objectdatatypes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/objectdatatypes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/README.md index b464aff63f5c..255d8d075803 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations` Documentation -The `operations` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `operations` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := operations.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := operations.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") payload := operations.GraphicalRunbookContent{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/client.go index 304a17c8d483..5afee8af6f71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/client.go @@ -15,7 +15,7 @@ type OperationsClient struct { } func NewOperationsClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "operations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "operations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OperationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/id_automationaccount.go index 8e99f7e0ab18..56e099b65b9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/method_convertgraphrunbookcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/method_convertgraphrunbookcontent.go index 760cd5ee7a65..e2d7faf8597b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/method_convertgraphrunbookcontent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/method_convertgraphrunbookcontent.go @@ -50,7 +50,6 @@ func (c OperationsClient) ConvertGraphRunbookContent(ctx context.Context, id Aut var model GraphicalRunbookContent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/version.go index 05014bb09eba..9da559493a6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/operations/version.go @@ -1,12 +1,10 @@ package operations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/operations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/operations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/README.md index 32d9d53f55ff..fcbe3bbb0bf0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package` Documentation -The `python2package` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `python2package` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python2PackageValue") +id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") payload := python2package.PythonPackageCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python2PackageValue") +id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python2PackageValue") +id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := python2package.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := python2package.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python2PackageValue") +id := python2package.NewPython2PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") payload := python2package.PythonPackageUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/client.go index d152b292bb45..a605d8db5fa6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/client.go @@ -15,7 +15,7 @@ type Python2PackageClient struct { } func NewPython2PackageClientWithBaseURI(sdkApi sdkEnv.Api) (*Python2PackageClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "python2package", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "python2package", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating Python2PackageClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_automationaccount.go index b295de3890d5..bf33c1ddfb42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_python2package.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_python2package.go index 0e739894a079..c2fcc16218b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_python2package.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/id_python2package.go @@ -44,7 +44,7 @@ func ParsePython2PackageID(input string) (*Python2PackageId, error) { } id := Python2PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePython2PackageIDInsensitively(input string) (*Python2PackageId, error) } id := Python2PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id Python2PackageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticPython2Packages", "python2Packages", "python2Packages"), - resourceids.UserSpecifiedSegment("python2PackageName", "python2PackageValue"), + resourceids.UserSpecifiedSegment("python2PackageName", "packageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_createorupdate.go index ab495e73043c..be4b6be8e065 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_createorupdate.go @@ -50,7 +50,6 @@ func (c Python2PackageClient) CreateOrUpdate(ctx context.Context, id Python2Pack var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_get.go index 988270c3e38e..8baec2126f48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_get.go @@ -45,7 +45,6 @@ func (c Python2PackageClient) Get(ctx context.Context, id Python2PackageId) (res var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_update.go index 7bb58cb19360..9b6e028b3144 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/method_update.go @@ -49,7 +49,6 @@ func (c Python2PackageClient) Update(ctx context.Context, id Python2PackageId, i var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/version.go index a7b7bb221ba5..b385f6e80060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python2package/version.go @@ -1,12 +1,10 @@ package python2package -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/python2package/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/python2package/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/README.md index df645e1ae317..2d4692d0a7cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package` Documentation -The `python3package` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `python3package` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python3PackageValue") +id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") payload := python3package.PythonPackageCreateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python3PackageValue") +id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") read, err := client.Delete(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python3PackageValue") +id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := python3package.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := python3package.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "python3PackageValue") +id := python3package.NewPython3PackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "packageName") payload := python3package.PythonPackageUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/client.go index e65813a98ad0..100617519b99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/client.go @@ -15,7 +15,7 @@ type Python3PackageClient struct { } func NewPython3PackageClientWithBaseURI(sdkApi sdkEnv.Api) (*Python3PackageClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "python3package", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "python3package", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating Python3PackageClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_automationaccount.go index 42e9f9dc9688..c16153c7bcc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_python3package.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_python3package.go index 39b2adf9d8c3..1ba8eadd6ee4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_python3package.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/id_python3package.go @@ -44,7 +44,7 @@ func ParsePython3PackageID(input string) (*Python3PackageId, error) { } id := Python3PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePython3PackageIDInsensitively(input string) (*Python3PackageId, error) } id := Python3PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id Python3PackageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticPython3Packages", "python3Packages", "python3Packages"), - resourceids.UserSpecifiedSegment("python3PackageName", "python3PackageValue"), + resourceids.UserSpecifiedSegment("python3PackageName", "packageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_get.go index 6c561deb5b8b..c73858165e8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_get.go @@ -45,7 +45,6 @@ func (c Python3PackageClient) Get(ctx context.Context, id Python3PackageId) (res var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_update.go index 2fadccb33d09..5fff180bd903 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/method_update.go @@ -49,7 +49,6 @@ func (c Python3PackageClient) Update(ctx context.Context, id Python3PackageId, i var model Module result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/version.go index 6011fca3cf29..122305472628 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/python3package/version.go @@ -1,12 +1,10 @@ package python3package -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/python3package/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/python3package/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/README.md index ebb115fb1ff0..85916eda759e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook` Documentation -The `runbook` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `runbook` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") payload := runbook.RunbookCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.GetContent(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := runbook.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") if err := client.PublishThenPoll(ctx, id); err != nil { // handle the error @@ -122,7 +122,7 @@ if err := client.PublishThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbook.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") payload := runbook.RunbookUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/client.go index 2b6168ac712c..e0597053d0d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/client.go @@ -15,7 +15,7 @@ type RunbookClient struct { } func NewRunbookClientWithBaseURI(sdkApi sdkEnv.Api) (*RunbookClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "runbook", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "runbook", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RunbookClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_automationaccount.go index a72f7d3463e5..8942ee63c589 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_runbook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_runbook.go index 85e8f4a15a91..42600bf0b600 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_runbook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/id_runbook.go @@ -44,7 +44,7 @@ func ParseRunbookID(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunbookIDInsensitively(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunbookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticRunbooks", "runbooks", "runbooks"), - resourceids.UserSpecifiedSegment("runbookName", "runbookValue"), + resourceids.UserSpecifiedSegment("runbookName", "runbookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_createorupdate.go index 2169e0eabfc0..8ce38f6e9826 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_createorupdate.go @@ -50,7 +50,6 @@ func (c RunbookClient) CreateOrUpdate(ctx context.Context, id RunbookId, input R var model Runbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_get.go index 309ca3bfd4f1..a0b0086a5d0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_get.go @@ -45,7 +45,6 @@ func (c RunbookClient) Get(ctx context.Context, id RunbookId) (result GetOperati var model Runbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_getcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_getcontent.go index 78b9ba4841cc..e1dcb513c9e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_getcontent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_getcontent.go @@ -46,7 +46,6 @@ func (c RunbookClient) GetContent(ctx context.Context, id RunbookId) (result Get var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_update.go index b2c590b4d704..44756d6f29f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/method_update.go @@ -49,7 +49,6 @@ func (c RunbookClient) Update(ctx context.Context, id RunbookId, input RunbookUp var model Runbook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/version.go index 9cf009a07e6f..6f2cd977823d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbook/version.go @@ -1,12 +1,10 @@ package runbook -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/runbook/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/runbook/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/README.md index be8baf44c443..7d4aa1846be9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft` Documentation -The `runbookdraft` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `runbookdraft` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.GetContent(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") var payload []byte if err := client.ReplaceContentThenPoll(ctx, id, payload); err != nil { @@ -69,7 +69,7 @@ if err := client.ReplaceContentThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := runbookdraft.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.UndoEdit(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/client.go index 1a93df24d0c0..2332c2f5a230 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/client.go @@ -15,7 +15,7 @@ type RunbookDraftClient struct { } func NewRunbookDraftClientWithBaseURI(sdkApi sdkEnv.Api) (*RunbookDraftClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "runbookdraft", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "runbookdraft", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RunbookDraftClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/id_runbook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/id_runbook.go index 82900236b6d8..6bb97fcc4a33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/id_runbook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/id_runbook.go @@ -44,7 +44,7 @@ func ParseRunbookID(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunbookIDInsensitively(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunbookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticRunbooks", "runbooks", "runbooks"), - resourceids.UserSpecifiedSegment("runbookName", "runbookValue"), + resourceids.UserSpecifiedSegment("runbookName", "runbookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_get.go index 82d15501607a..2dd023893818 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_get.go @@ -46,7 +46,6 @@ func (c RunbookDraftClient) Get(ctx context.Context, id RunbookId) (result GetOp var model RunbookDraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_getcontent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_getcontent.go index 32bf43a0c329..7c95b5cace98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_getcontent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_getcontent.go @@ -46,7 +46,6 @@ func (c RunbookDraftClient) GetContent(ctx context.Context, id RunbookId) (resul var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_undoedit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_undoedit.go index f0c743b1e79d..be90ea440720 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_undoedit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/method_undoedit.go @@ -46,7 +46,6 @@ func (c RunbookDraftClient) UndoEdit(ctx context.Context, id RunbookId) (result var model RunbookDraftUndoEditResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/version.go index 51c77349db07..dd4e682332a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/runbookdraft/version.go @@ -1,12 +1,10 @@ package runbookdraft -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/runbookdraft/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/runbookdraft/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/README.md index 125dbe4b6a30..1386dfdddda4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule` Documentation -The `schedule` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `schedule` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "scheduleValue") +id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "scheduleName") payload := schedule.ScheduleCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "scheduleValue") +id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "scheduleName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "scheduleValue") +id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "scheduleName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedule.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := schedule.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "scheduleValue") +id := schedule.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "scheduleName") payload := schedule.ScheduleUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/client.go index 14f19f2e2d63..5f8bfedb0438 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/client.go @@ -15,7 +15,7 @@ type ScheduleClient struct { } func NewScheduleClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "schedule", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "schedule", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScheduleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_automationaccount.go index 1758b466257e..7a0733ace27e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_schedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_schedule.go index 944ad0227b21..ec8dd28d9f90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_schedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/id_schedule.go @@ -44,7 +44,7 @@ func ParseScheduleID(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScheduleIDInsensitively(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSchedules", "schedules", "schedules"), - resourceids.UserSpecifiedSegment("scheduleName", "scheduleValue"), + resourceids.UserSpecifiedSegment("scheduleName", "scheduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_createorupdate.go index 4263ac8b9f42..901aa1f4c948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ScheduleClient) CreateOrUpdate(ctx context.Context, id ScheduleId, input var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_get.go index 1e138129113d..69fe190af245 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_get.go @@ -45,7 +45,6 @@ func (c ScheduleClient) Get(ctx context.Context, id ScheduleId) (result GetOpera var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_update.go index c84276093aea..fbfab6d11447 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/method_update.go @@ -49,7 +49,6 @@ func (c ScheduleClient) Update(ctx context.Context, id ScheduleId, input Schedul var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/version.go index 1f03ef4652e4..ffa5cb3e8591 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/schedule/version.go @@ -1,12 +1,10 @@ package schedule -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/schedule/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/schedule/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/README.md index 651a98ab5f5d..757dcfaebb18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun` Documentation -The `softwareupdateconfigurationmachinerun` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `softwareupdateconfigurationmachinerun` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := softwareupdateconfigurationmachinerun.NewSoftwareUpdateConfigurationMachineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationMachineRunIdValue") +id := softwareupdateconfigurationmachinerun.NewSoftwareUpdateConfigurationMachineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "softwareUpdateConfigurationMachineRunId") read, err := client.GetById(ctx, id, softwareupdateconfigurationmachinerun.DefaultGetByIdOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := softwareupdateconfigurationmachinerun.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := softwareupdateconfigurationmachinerun.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.List(ctx, id, softwareupdateconfigurationmachinerun.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, softwareupdateconfigurationmachinerun.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/client.go index fd31306b48dd..dc26e75ebf5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/client.go @@ -15,7 +15,7 @@ type SoftwareUpdateConfigurationMachineRunClient struct { } func NewSoftwareUpdateConfigurationMachineRunClientWithBaseURI(sdkApi sdkEnv.Api) (*SoftwareUpdateConfigurationMachineRunClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "softwareupdateconfigurationmachinerun", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "softwareupdateconfigurationmachinerun", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SoftwareUpdateConfigurationMachineRunClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_automationaccount.go index 9ffcdb66cc06..6b22cc3b9fe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_softwareupdateconfigurationmachinerun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_softwareupdateconfigurationmachinerun.go index 89171d686d71..8d9e7917f47b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_softwareupdateconfigurationmachinerun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/id_softwareupdateconfigurationmachinerun.go @@ -44,7 +44,7 @@ func ParseSoftwareUpdateConfigurationMachineRunID(input string) (*SoftwareUpdate } id := SoftwareUpdateConfigurationMachineRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSoftwareUpdateConfigurationMachineRunIDInsensitively(input string) (*S } id := SoftwareUpdateConfigurationMachineRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SoftwareUpdateConfigurationMachineRunId) Segments() []resourceids.Segme resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSoftwareUpdateConfigurationMachineRuns", "softwareUpdateConfigurationMachineRuns", "softwareUpdateConfigurationMachineRuns"), - resourceids.UserSpecifiedSegment("softwareUpdateConfigurationMachineRunId", "softwareUpdateConfigurationMachineRunIdValue"), + resourceids.UserSpecifiedSegment("softwareUpdateConfigurationMachineRunId", "softwareUpdateConfigurationMachineRunId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go index 23b807e3e05b..449eb4379bc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_getbyid.go @@ -36,6 +36,7 @@ func (o GetByIdOperationOptions) ToHeaders() *client.Headers { func (o GetByIdOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SoftwareUpdateConfigurationMachineRunClient) GetById(ctx context.Context var model SoftwareUpdateConfigurationMachineRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go index 6f047c54ccc8..bbd0f4ec9085 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/method_list.go @@ -44,6 +44,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/version.go index f051fda4e64d..9b346375dc97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationmachinerun/version.go @@ -1,12 +1,10 @@ package softwareupdateconfigurationmachinerun -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/softwareupdateconfigurationmachinerun/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/softwareupdateconfigurationmachinerun/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/README.md index fdfbce7a2e58..081e431287d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun` Documentation -The `softwareupdateconfigurationrun` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `softwareupdateconfigurationrun` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := softwareupdateconfigurationrun.NewSoftwareUpdateConfigurationRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "softwareUpdateConfigurationRunIdValue") +id := softwareupdateconfigurationrun.NewSoftwareUpdateConfigurationRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "softwareUpdateConfigurationRunId") read, err := client.GetById(ctx, id, softwareupdateconfigurationrun.DefaultGetByIdOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := softwareupdateconfigurationrun.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := softwareupdateconfigurationrun.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.List(ctx, id, softwareupdateconfigurationrun.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, softwareupdateconfigurationrun.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/client.go index aa86f6dacdfa..360338f920d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/client.go @@ -15,7 +15,7 @@ type SoftwareUpdateConfigurationRunClient struct { } func NewSoftwareUpdateConfigurationRunClientWithBaseURI(sdkApi sdkEnv.Api) (*SoftwareUpdateConfigurationRunClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "softwareupdateconfigurationrun", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "softwareupdateconfigurationrun", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SoftwareUpdateConfigurationRunClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_automationaccount.go index 2c81cf2164d0..cf13cea9b62b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_softwareupdateconfigurationrun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_softwareupdateconfigurationrun.go index e903396f63dc..8a947845901c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_softwareupdateconfigurationrun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/id_softwareupdateconfigurationrun.go @@ -44,7 +44,7 @@ func ParseSoftwareUpdateConfigurationRunID(input string) (*SoftwareUpdateConfigu } id := SoftwareUpdateConfigurationRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSoftwareUpdateConfigurationRunIDInsensitively(input string) (*Software } id := SoftwareUpdateConfigurationRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SoftwareUpdateConfigurationRunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSoftwareUpdateConfigurationRuns", "softwareUpdateConfigurationRuns", "softwareUpdateConfigurationRuns"), - resourceids.UserSpecifiedSegment("softwareUpdateConfigurationRunId", "softwareUpdateConfigurationRunIdValue"), + resourceids.UserSpecifiedSegment("softwareUpdateConfigurationRunId", "softwareUpdateConfigurationRunId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go index c4c6b07ca886..1985085c30e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_getbyid.go @@ -36,6 +36,7 @@ func (o GetByIdOperationOptions) ToHeaders() *client.Headers { func (o GetByIdOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SoftwareUpdateConfigurationRunClient) GetById(ctx context.Context, id So var model SoftwareUpdateConfigurationRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go index f6503cdb378f..b8dcc77ca857 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/method_list.go @@ -44,6 +44,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/version.go index fc9e6f769273..28d6dba51676 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/softwareupdateconfigurationrun/version.go @@ -1,12 +1,10 @@ package softwareupdateconfigurationrun -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/softwareupdateconfigurationrun/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/softwareupdateconfigurationrun/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/README.md index 8c666dfc4f11..fa97d4cb92a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol` Documentation -The `sourcecontrol` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `sourcecontrol` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue") +id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName") payload := sourcecontrol.SourceControlCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue") +id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue") +id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrol.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := sourcecontrol.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id, sourcecontrol.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, sourcecontrol.DefaultListByAutomationAccountOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue") +id := sourcecontrol.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName") payload := sourcecontrol.SourceControlUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/client.go index 5cc59fbc8dcf..cf7d6d4d95c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/client.go @@ -15,7 +15,7 @@ type SourceControlClient struct { } func NewSourceControlClientWithBaseURI(sdkApi sdkEnv.Api) (*SourceControlClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sourcecontrol", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sourcecontrol", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SourceControlClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_automationaccount.go index 80fde88426ad..1a120799b74d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_sourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_sourcecontrol.go index 1a333c90b2e2..2f99bfe687cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_sourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/id_sourcecontrol.go @@ -44,7 +44,7 @@ func ParseSourceControlID(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSourceControlIDInsensitively(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SourceControlId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_createorupdate.go index cd75063d7220..470c526d5124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SourceControlClient) CreateOrUpdate(ctx context.Context, id SourceContro var model SourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_get.go index db32fdf50362..435c74f2193a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_get.go @@ -45,7 +45,6 @@ func (c SourceControlClient) Get(ctx context.Context, id SourceControlId) (resul var model SourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go index 9457e6a81fe1..5872a01f8b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_update.go index f00032bbff7b..e4265560f5ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/method_update.go @@ -49,7 +49,6 @@ func (c SourceControlClient) Update(ctx context.Context, id SourceControlId, inp var model SourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/version.go index f56817ffedf6..3bf49ac2df26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrol/version.go @@ -1,12 +1,10 @@ package sourcecontrol -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sourcecontrol/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sourcecontrol/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/README.md index 082d9fdea67b..b857dc6d8e16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob` Documentation -The `sourcecontrolsyncjob` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `sourcecontrolsyncjob` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sourcecontrolsyncjob.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue", "sourceControlSyncJobIdValue") +id := sourcecontrolsyncjob.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName", "sourceControlSyncJobId") payload := sourcecontrolsyncjob.SourceControlSyncJobCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolsyncjob.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue", "sourceControlSyncJobIdValue") +id := sourcecontrolsyncjob.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName", "sourceControlSyncJobId") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolsyncjob.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue") +id := sourcecontrolsyncjob.NewSourceControlID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName") // alternatively `client.ListByAutomationAccount(ctx, id, sourcecontrolsyncjob.DefaultListByAutomationAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id, sourcecontrolsyncjob.DefaultListByAutomationAccountOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/client.go index 380f8581c8fe..f17a5fe03f62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/client.go @@ -15,7 +15,7 @@ type SourceControlSyncJobClient struct { } func NewSourceControlSyncJobClientWithBaseURI(sdkApi sdkEnv.Api) (*SourceControlSyncJobClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sourcecontrolsyncjob", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sourcecontrolsyncjob", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SourceControlSyncJobClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrol.go index 45a497aaac6d..445498f80910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrol.go @@ -44,7 +44,7 @@ func ParseSourceControlID(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSourceControlIDInsensitively(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SourceControlId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrolsyncjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrolsyncjob.go index c15f95859d0c..c66582a49fb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrolsyncjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/id_sourcecontrolsyncjob.go @@ -46,7 +46,7 @@ func ParseSourceControlSyncJobID(input string) (*SourceControlSyncJobId, error) } id := SourceControlSyncJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSourceControlSyncJobIDInsensitively(input string) (*SourceControlSyncJ } id := SourceControlSyncJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SourceControlSyncJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlName"), resourceids.StaticSegment("staticSourceControlSyncJobs", "sourceControlSyncJobs", "sourceControlSyncJobs"), - resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobIdValue"), + resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_create.go index 07efd1019473..afaa631c092a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_create.go @@ -49,7 +49,6 @@ func (c SourceControlSyncJobClient) Create(ctx context.Context, id SourceControl var model SourceControlSyncJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_get.go index 5cb3e1e56f92..f0a7ca3d15ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_get.go @@ -45,7 +45,6 @@ func (c SourceControlSyncJobClient) Get(ctx context.Context, id SourceControlSyn var model SourceControlSyncJobById result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go index 84bcd7a480db..1a4ea3263451 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/method_listbyautomationaccount.go @@ -39,6 +39,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/version.go index c9d339529dd8..754d09c8cfe8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjob/version.go @@ -1,12 +1,10 @@ package sourcecontrolsyncjob -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sourcecontrolsyncjob/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sourcecontrolsyncjob/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/README.md index b4e9f54e461c..516f6ffbb5dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams` Documentation -The `sourcecontrolsyncjobstreams` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `sourcecontrolsyncjobstreams` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sourcecontrolsyncjobstreams.NewSourceControlSyncJobStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue", "sourceControlSyncJobIdValue", "streamIdValue") +id := sourcecontrolsyncjobstreams.NewSourceControlSyncJobStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName", "sourceControlSyncJobId", "streamId") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sourcecontrolsyncjobstreams.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "sourceControlValue", "sourceControlSyncJobIdValue") +id := sourcecontrolsyncjobstreams.NewSourceControlSyncJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "sourceControlName", "sourceControlSyncJobId") // alternatively `client.ListBySyncJob(ctx, id, sourcecontrolsyncjobstreams.DefaultListBySyncJobOperationOptions())` can be used to do batched pagination items, err := client.ListBySyncJobComplete(ctx, id, sourcecontrolsyncjobstreams.DefaultListBySyncJobOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/client.go index 4e689c48c4f0..0be682fcf30a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/client.go @@ -15,7 +15,7 @@ type SourceControlSyncJobStreamsClient struct { } func NewSourceControlSyncJobStreamsClientWithBaseURI(sdkApi sdkEnv.Api) (*SourceControlSyncJobStreamsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sourcecontrolsyncjobstreams", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sourcecontrolsyncjobstreams", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SourceControlSyncJobStreamsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjob.go index 210de5d23e85..38385b43c1c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjob.go @@ -46,7 +46,7 @@ func ParseSourceControlSyncJobID(input string) (*SourceControlSyncJobId, error) } id := SourceControlSyncJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSourceControlSyncJobIDInsensitively(input string) (*SourceControlSyncJ } id := SourceControlSyncJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SourceControlSyncJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlName"), resourceids.StaticSegment("staticSourceControlSyncJobs", "sourceControlSyncJobs", "sourceControlSyncJobs"), - resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobIdValue"), + resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjobstream.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjobstream.go index a1d8a1ca9674..66b36c9f1339 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjobstream.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/id_sourcecontrolsyncjobstream.go @@ -48,7 +48,7 @@ func ParseSourceControlSyncJobStreamID(input string) (*SourceControlSyncJobStrea } id := SourceControlSyncJobStreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSourceControlSyncJobStreamIDInsensitively(input string) (*SourceContro } id := SourceControlSyncJobStreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SourceControlSyncJobStreamId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlName"), resourceids.StaticSegment("staticSourceControlSyncJobs", "sourceControlSyncJobs", "sourceControlSyncJobs"), - resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobIdValue"), + resourceids.UserSpecifiedSegment("sourceControlSyncJobId", "sourceControlSyncJobId"), resourceids.StaticSegment("staticStreams", "streams", "streams"), - resourceids.UserSpecifiedSegment("streamId", "streamIdValue"), + resourceids.UserSpecifiedSegment("streamId", "streamId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_get.go index 867cf4899fc9..02a68185a645 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_get.go @@ -45,7 +45,6 @@ func (c SourceControlSyncJobStreamsClient) Get(ctx context.Context, id SourceCon var model SourceControlSyncJobStreamById result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go index fe82bd504e49..11bad046f503 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/method_listbysyncjob.go @@ -39,6 +39,7 @@ func (o ListBySyncJobOperationOptions) ToHeaders() *client.Headers { func (o ListBySyncJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/version.go index bd317121c1f4..fccca83ea9d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/sourcecontrolsyncjobstreams/version.go @@ -1,12 +1,10 @@ package sourcecontrolsyncjobstreams -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sourcecontrolsyncjobstreams/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sourcecontrolsyncjobstreams/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/README.md index 2d6d7ade492c..fd9583a5beb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics` Documentation -The `statistics` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `statistics` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := statistics.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := statistics.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.ListByAutomationAccount(ctx, id, statistics.DefaultListByAutomationAccountOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/client.go index a7a2c1754acc..cd61fc0df630 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/client.go @@ -15,7 +15,7 @@ type StatisticsClient struct { } func NewStatisticsClientWithBaseURI(sdkApi sdkEnv.Api) (*StatisticsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "statistics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "statistics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StatisticsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/id_automationaccount.go index 3d92424afe1d..09cc21345ac6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go index bcf9f2ef0667..5c9df0d5e05c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/method_listbyautomationaccount.go @@ -34,6 +34,7 @@ func (o ListByAutomationAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAutomationAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c StatisticsClient) ListByAutomationAccount(ctx context.Context, id Automa var model StatisticsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/version.go index 6ea733ff732a..aed04be58c90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/statistics/version.go @@ -1,12 +1,10 @@ package statistics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/statistics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/statistics/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/README.md index d531e95f210e..96b025eda2e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob` Documentation -The `testjob` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `testjob` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") payload := testjob.TestJobCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Resume(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Stop(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjob.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") read, err := client.Suspend(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/client.go index 948c5b62e0b0..42bf971c6be8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/client.go @@ -15,7 +15,7 @@ type TestJobClient struct { } func NewTestJobClientWithBaseURI(sdkApi sdkEnv.Api) (*TestJobClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "testjob", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "testjob", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TestJobClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/id_runbook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/id_runbook.go index f8a57f87058b..5fce4220f2c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/id_runbook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/id_runbook.go @@ -44,7 +44,7 @@ func ParseRunbookID(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunbookIDInsensitively(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunbookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticRunbooks", "runbooks", "runbooks"), - resourceids.UserSpecifiedSegment("runbookName", "runbookValue"), + resourceids.UserSpecifiedSegment("runbookName", "runbookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_create.go index 7beb9fc0ab02..7e6ae18000f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_create.go @@ -50,7 +50,6 @@ func (c TestJobClient) Create(ctx context.Context, id RunbookId, input TestJobCr var model TestJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_get.go index be79f45aad28..911a70d9f037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/method_get.go @@ -46,7 +46,6 @@ func (c TestJobClient) Get(ctx context.Context, id RunbookId) (result GetOperati var model TestJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/version.go index 2352095e7de7..8495f4c87015 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjob/version.go @@ -1,12 +1,10 @@ package testjob -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/testjob/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/testjob/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/README.md index 9b93730bbca1..eecdf52dd8a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream` Documentation -The `testjobstream` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `testjobstream` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := testjobstream.NewTestJobStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue", "jobStreamIdValue") +id := testjobstream.NewTestJobStreamID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName", "jobStreamId") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testjobstream.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "runbookValue") +id := testjobstream.NewRunbookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "runbookName") // alternatively `client.ListByTestJob(ctx, id, testjobstream.DefaultListByTestJobOperationOptions())` can be used to do batched pagination items, err := client.ListByTestJobComplete(ctx, id, testjobstream.DefaultListByTestJobOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/client.go index b14681e53c29..7e656f450c0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/client.go @@ -15,7 +15,7 @@ type TestJobStreamClient struct { } func NewTestJobStreamClientWithBaseURI(sdkApi sdkEnv.Api) (*TestJobStreamClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "testjobstream", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "testjobstream", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TestJobStreamClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_runbook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_runbook.go index 319f52ebaad1..744831845995 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_runbook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_runbook.go @@ -44,7 +44,7 @@ func ParseRunbookID(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunbookIDInsensitively(input string) (*RunbookId, error) { } id := RunbookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunbookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticRunbooks", "runbooks", "runbooks"), - resourceids.UserSpecifiedSegment("runbookName", "runbookValue"), + resourceids.UserSpecifiedSegment("runbookName", "runbookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_testjobstream.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_testjobstream.go index 0ebc73ded873..65c9155ce8bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_testjobstream.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/id_testjobstream.go @@ -46,7 +46,7 @@ func ParseTestJobStreamID(input string) (*TestJobStreamId, error) { } id := TestJobStreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseTestJobStreamIDInsensitively(input string) (*TestJobStreamId, error) { } id := TestJobStreamId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,13 +127,13 @@ func (id TestJobStreamId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticRunbooks", "runbooks", "runbooks"), - resourceids.UserSpecifiedSegment("runbookName", "runbookValue"), + resourceids.UserSpecifiedSegment("runbookName", "runbookName"), resourceids.StaticSegment("staticDraft", "draft", "draft"), resourceids.StaticSegment("staticTestJob", "testJob", "testJob"), resourceids.StaticSegment("staticStreams", "streams", "streams"), - resourceids.UserSpecifiedSegment("jobStreamId", "jobStreamIdValue"), + resourceids.UserSpecifiedSegment("jobStreamId", "jobStreamId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_get.go index b94e2e9b62ad..78292836ec2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_get.go @@ -45,7 +45,6 @@ func (c TestJobStreamClient) Get(ctx context.Context, id TestJobStreamId) (resul var model JobStream result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go index 0c69bca09213..4898fc0bab91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/method_listbytestjob.go @@ -39,6 +39,7 @@ func (o ListByTestJobOperationOptions) ToHeaders() *client.Headers { func (o ListByTestJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/version.go index 3638681e8c73..28c9004c0f9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/testjobstream/version.go @@ -1,12 +1,10 @@ package testjobstream -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/testjobstream/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/testjobstream/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/README.md index 291bb29dc702..accbc64e3dc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields` Documentation -The `typefields` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `typefields` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := typefields.NewTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "moduleValue", "typeValue") +id := typefields.NewTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "moduleName", "typeName") read, err := client.FieldsListByType(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/client.go index e235fbc854fa..d29294487561 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/client.go @@ -15,7 +15,7 @@ type TypeFieldsClient struct { } func NewTypeFieldsClientWithBaseURI(sdkApi sdkEnv.Api) (*TypeFieldsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "typefields", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "typefields", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TypeFieldsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/id_type.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/id_type.go index 834ea978a072..243f65105756 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/id_type.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/id_type.go @@ -46,7 +46,7 @@ func ParseTypeID(input string) (*TypeId, error) { } id := TypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseTypeIDInsensitively(input string) (*TypeId, error) { } id := TypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id TypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "moduleName"), resourceids.StaticSegment("staticTypes", "types", "types"), - resourceids.UserSpecifiedSegment("typeName", "typeValue"), + resourceids.UserSpecifiedSegment("typeName", "typeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/method_fieldslistbytype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/method_fieldslistbytype.go index 03945e9f5009..18ca75f1933f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/method_fieldslistbytype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/method_fieldslistbytype.go @@ -46,7 +46,6 @@ func (c TypeFieldsClient) FieldsListByType(ctx context.Context, id TypeId) (resu var model TypeFieldListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/version.go index 65db7c57f19b..3d5247b08896 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/typefields/version.go @@ -1,12 +1,10 @@ package typefields -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/typefields/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/typefields/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/README.md index cac7c5ed56ac..dbe2943da4b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages` Documentation -The `usages` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `usages` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usages.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := usages.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") read, err := client.ListByAutomationAccount(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/client.go index 772d6a5be35b..5b6ce18413b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/client.go @@ -15,7 +15,7 @@ type UsagesClient struct { } func NewUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*UsagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "usages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "usages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UsagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/id_automationaccount.go index 62a05730e85e..b8000523a871 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/method_listbyautomationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/method_listbyautomationaccount.go index 2917c5adf420..73713c19bdc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/method_listbyautomationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/method_listbyautomationaccount.go @@ -46,7 +46,6 @@ func (c UsagesClient) ListByAutomationAccount(ctx context.Context, id Automation var model UsageListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/version.go index 6715f1676b01..1f75d534194e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/usages/version.go @@ -1,12 +1,10 @@ package usages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/usages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/usages/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/README.md index 1e63d41c3ddd..8244f4b8f210 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable` Documentation -The `variable` SDK allows for interaction with the Azure Resource Manager Service `automation` (API Version `2023-11-01`). +The `variable` SDK allows for interaction with Azure Resource Manager `automation` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "variableValue") +id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "variableName") payload := variable.VariableCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "variableValue") +id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "variableName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "variableValue") +id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "variableName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := variable.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue") +id := variable.NewAutomationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName") // alternatively `client.ListByAutomationAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAutomationAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountValue", "variableValue") +id := variable.NewVariableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationAccountName", "variableName") payload := variable.VariableUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/client.go index b52efe661a6a..8e293b273f06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/client.go @@ -15,7 +15,7 @@ type VariableClient struct { } func NewVariableClientWithBaseURI(sdkApi sdkEnv.Api) (*VariableClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "variable", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "variable", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VariableClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_automationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_automationaccount.go index 635e56dfae81..b1520d992874 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_automationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_automationaccount.go @@ -42,7 +42,7 @@ func ParseAutomationAccountID(input string) (*AutomationAccountId, error) { } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationAccountIDInsensitively(input string) (*AutomationAccountId, } id := AutomationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_variable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_variable.go index aab429f68a45..646502bc8e86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_variable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/id_variable.go @@ -44,7 +44,7 @@ func ParseVariableID(input string) (*VariableId, error) { } id := VariableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVariableIDInsensitively(input string) (*VariableId, error) { } id := VariableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VariableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAutomation", "Microsoft.Automation", "Microsoft.Automation"), resourceids.StaticSegment("staticAutomationAccounts", "automationAccounts", "automationAccounts"), - resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountValue"), + resourceids.UserSpecifiedSegment("automationAccountName", "automationAccountName"), resourceids.StaticSegment("staticVariables", "variables", "variables"), - resourceids.UserSpecifiedSegment("variableName", "variableValue"), + resourceids.UserSpecifiedSegment("variableName", "variableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_createorupdate.go index 7f1d31eeacc0..35a90d4c131d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_createorupdate.go @@ -50,7 +50,6 @@ func (c VariableClient) CreateOrUpdate(ctx context.Context, id VariableId, input var model Variable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_get.go index a84e304f5a07..6d865e8141f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_get.go @@ -45,7 +45,6 @@ func (c VariableClient) Get(ctx context.Context, id VariableId) (result GetOpera var model Variable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_update.go index cba7dfa356a7..d63d977348b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/method_update.go @@ -49,7 +49,6 @@ func (c VariableClient) Update(ctx context.Context, id VariableId, input Variabl var model Variable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/version.go index 4efa745f5f64..9631fa7458d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/automation/2023-11-01/variable/version.go @@ -1,12 +1,10 @@ package variable -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/variable/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/variable/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/README.md index 81c771c68d10..889ea2dd444f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings` Documentation -The `diagnosticsettings` SDK allows for interaction with the Azure Resource Manager Service `azureactivedirectory` (API Version `2017-04-01`). +The `diagnosticsettings` SDK allows for interaction with Azure Resource Manager `azureactivedirectory` (API Version `2017-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diagnosticsettings.NewDiagnosticSettingID("diagnosticSettingValue") +id := diagnosticsettings.NewDiagnosticSettingID("name") payload := diagnosticsettings.DiagnosticSettingsResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettings.NewDiagnosticSettingID("diagnosticSettingValue") +id := diagnosticsettings.NewDiagnosticSettingID("name") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettings.NewDiagnosticSettingID("diagnosticSettingValue") +id := diagnosticsettings.NewDiagnosticSettingID("name") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/client.go index 336818ef9293..6e01407ed2a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/client.go @@ -15,7 +15,7 @@ type DiagnosticSettingsClient struct { } func NewDiagnosticSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diagnosticsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diagnosticsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiagnosticSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/id_diagnosticsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/id_diagnosticsetting.go index 2e6cfeea6e8f..72abbb4e42fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/id_diagnosticsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/id_diagnosticsetting.go @@ -38,7 +38,7 @@ func ParseDiagnosticSettingID(input string) (*DiagnosticSettingId, error) { } id := DiagnosticSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseDiagnosticSettingIDInsensitively(input string) (*DiagnosticSettingId, } id := DiagnosticSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id DiagnosticSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAADIAM", "Microsoft.AADIAM", "Microsoft.AADIAM"), resourceids.StaticSegment("staticDiagnosticSettings", "diagnosticSettings", "diagnosticSettings"), - resourceids.UserSpecifiedSegment("diagnosticSettingName", "diagnosticSettingValue"), + resourceids.UserSpecifiedSegment("diagnosticSettingName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_createorupdate.go index c1679729acab..90162fed3b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_createorupdate.go @@ -49,7 +49,6 @@ func (c DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, id Diagnos var model DiagnosticSettingsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_get.go index 533a2f94cfa6..8420a59586d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_get.go @@ -45,7 +45,6 @@ func (c DiagnosticSettingsClient) Get(ctx context.Context, id DiagnosticSettingI var model DiagnosticSettingsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_list.go index 5e6f6bcc8bb3..5841a895b6da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/method_list.go @@ -45,7 +45,6 @@ func (c DiagnosticSettingsClient) List(ctx context.Context) (result ListOperatio var model DiagnosticSettingsResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/version.go index 8033859284a1..5b21ae907364 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azureactivedirectory/2017-04-01/diagnosticsettings/version.go @@ -1,12 +1,10 @@ package diagnosticsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diagnosticsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diagnosticsettings/2017-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/README.md index 7617660eed21..e2834fe58a9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings` Documentation -The `arcsettings` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `arcsettings` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") payload := arcsettings.ArcSetting{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") if err := client.ArcSettingsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.ArcSettingsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") read, err := client.ArcSettingsGet(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := arcsettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := arcsettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ArcSettingsListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ArcSettingsListByClusterComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") payload := arcsettings.ArcSettingsPatch{ // ... @@ -111,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") read, err := client.ConsentAndInstallDefaultExtensions(ctx, id) if err != nil { @@ -127,7 +127,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") if err := client.CreateIdentityThenPoll(ctx, id); err != nil { // handle the error @@ -139,7 +139,7 @@ if err := client.CreateIdentityThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") read, err := client.GeneratePassword(ctx, id) if err != nil { @@ -155,7 +155,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := arcsettings.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") if err := client.InitializeDisableProcessThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/client.go index bf76b03a6dac..6c5c6a2cc4a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/client.go @@ -15,7 +15,7 @@ type ArcSettingsClient struct { } func NewArcSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ArcSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "arcsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "arcsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ArcSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_arcsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_arcsetting.go index 1d17d3a2b542..70f6e8759128 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_arcsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_arcsetting.go @@ -44,7 +44,7 @@ func ParseArcSettingID(input string) (*ArcSettingId, error) { } id := ArcSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseArcSettingIDInsensitively(input string) (*ArcSettingId, error) { } id := ArcSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ArcSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticArcSettings", "arcSettings", "arcSettings"), - resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingValue"), + resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_cluster.go index efec5d31747a..714e4d969778 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingscreate.go index e23e135a7a49..b278666eb20d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingscreate.go @@ -49,7 +49,6 @@ func (c ArcSettingsClient) ArcSettingsCreate(ctx context.Context, id ArcSettingI var model ArcSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsget.go index da38efd7c841..73f605738ba9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsget.go @@ -45,7 +45,6 @@ func (c ArcSettingsClient) ArcSettingsGet(ctx context.Context, id ArcSettingId) var model ArcSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsupdate.go index 6b942fa5f054..962b74d6131f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_arcsettingsupdate.go @@ -49,7 +49,6 @@ func (c ArcSettingsClient) ArcSettingsUpdate(ctx context.Context, id ArcSettingI var model ArcSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_consentandinstalldefaultextensions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_consentandinstalldefaultextensions.go index 59282809851d..1c7515c6c702 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_consentandinstalldefaultextensions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_consentandinstalldefaultextensions.go @@ -46,7 +46,6 @@ func (c ArcSettingsClient) ConsentAndInstallDefaultExtensions(ctx context.Contex var model ArcSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_generatepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_generatepassword.go index 4f9aaacb077f..a4181f72edcf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_generatepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/method_generatepassword.go @@ -46,7 +46,6 @@ func (c ArcSettingsClient) GeneratePassword(ctx context.Context, id ArcSettingId var model PasswordCredential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/version.go index 9beef03c72da..7271cfda5b7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/arcsettings/version.go @@ -1,12 +1,10 @@ package arcsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/arcsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/arcsettings/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/README.md index 15c55389a757..0cc10b9f7c70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster` Documentation -The `cluster` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `cluster` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.CreateIdentityThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CreateIdentityThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := cluster.SoftwareAssuranceChangeRequest{ // ... @@ -53,7 +53,7 @@ if err := client.ExtendSoftwareAssuranceBenefitThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := cluster.UploadCertificateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/client.go index 2a0e60ffb2b5..dfc40b753940 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/client.go @@ -15,7 +15,7 @@ type ClusterClient struct { } func NewClusterClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cluster", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cluster", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClusterClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/id_cluster.go index d9ee18cbcc49..8503188a4345 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/version.go index baf9842b576a..a6bfa5b1a5d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/cluster/version.go @@ -1,12 +1,10 @@ package cluster -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cluster/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cluster/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/README.md index 555f64c16bda..96a14655769d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `clusters` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.Cluster{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/id_cluster.go index a930aa56ef5d..37199dd83dd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_create.go index 337ea36a2156..3df539fb0372 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_create.go @@ -49,7 +49,6 @@ func (c ClustersClient) Create(ctx context.Context, id ClusterId, input Cluster) var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_get.go index 73c53aa936be..8265f74e8631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_get.go @@ -45,7 +45,6 @@ func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperat var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_update.go index 80edce4b64fb..dd74e53131c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/method_update.go @@ -49,7 +49,6 @@ func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ClusterP var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/version.go index 47ca5369a104..a3f777c67c72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/README.md index cb2ccac393f4..dcbf01868f62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings` Documentation -The `deploymentsettings` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `deploymentsettings` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "deploymentSettingValue") +id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "deploymentSettingsName") payload := deploymentsettings.DeploymentSetting{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "deploymentSettingValue") +id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "deploymentSettingsName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "deploymentSettingValue") +id := deploymentsettings.NewDeploymentSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "deploymentSettingsName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentsettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := deploymentsettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByClusters(ctx, id)` can be used to do batched pagination items, err := client.ListByClustersComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/client.go index 2d7721728046..71e6453b3d1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/client.go @@ -15,7 +15,7 @@ type DeploymentSettingsClient struct { } func NewDeploymentSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DeploymentSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deploymentsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deploymentsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeploymentSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_cluster.go index f580320c6be0..5538559b8463 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_deploymentsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_deploymentsetting.go index bc33385e35a9..af72974c6528 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_deploymentsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/id_deploymentsetting.go @@ -44,7 +44,7 @@ func ParseDeploymentSettingID(input string) (*DeploymentSettingId, error) { } id := DeploymentSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeploymentSettingIDInsensitively(input string) (*DeploymentSettingId, } id := DeploymentSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeploymentSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticDeploymentSettings", "deploymentSettings", "deploymentSettings"), - resourceids.UserSpecifiedSegment("deploymentSettingName", "deploymentSettingValue"), + resourceids.UserSpecifiedSegment("deploymentSettingName", "deploymentSettingsName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_get.go index c87af231c1b1..a6d892ad7eb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/method_get.go @@ -45,7 +45,6 @@ func (c DeploymentSettingsClient) Get(ctx context.Context, id DeploymentSettingI var model DeploymentSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/version.go index 0056879142c6..6f9211ba29d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/deploymentsettings/version.go @@ -1,12 +1,10 @@ package deploymentsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deploymentsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deploymentsettings/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/README.md index c3e90ddfb9da..fc85f6331520 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices` Documentation -The `edgedevices` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `edgedevices` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceValue") +id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceName") payload := edgedevices.EdgeDevice{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceValue") +id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceValue") +id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceValue") +id := edgedevices.NewScopedEdgeDeviceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "edgeDeviceName") payload := edgedevices.ValidateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/client.go index 629b201ceec6..551ebff0b031 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/client.go @@ -15,7 +15,7 @@ type EdgeDevicesClient struct { } func NewEdgeDevicesClientWithBaseURI(sdkApi sdkEnv.Api) (*EdgeDevicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "edgedevices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "edgedevices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EdgeDevicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/id_scopededgedevice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/id_scopededgedevice.go index 9ba7d872398f..83b3ac922ca0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/id_scopededgedevice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/id_scopededgedevice.go @@ -40,7 +40,7 @@ func ParseScopedEdgeDeviceID(input string) (*ScopedEdgeDeviceId, error) { } id := ScopedEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedEdgeDeviceIDInsensitively(input string) (*ScopedEdgeDeviceId, er } id := ScopedEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedEdgeDeviceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticEdgeDevices", "edgeDevices", "edgeDevices"), - resourceids.UserSpecifiedSegment("edgeDeviceName", "edgeDeviceValue"), + resourceids.UserSpecifiedSegment("edgeDeviceName", "edgeDeviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/method_get.go index b689f330ce3b..7bff5bc08691 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/method_get.go @@ -45,7 +45,6 @@ func (c EdgeDevicesClient) Get(ctx context.Context, id ScopedEdgeDeviceId) (resu var model EdgeDevice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/version.go index df48529894b2..383d93727360 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/edgedevices/version.go @@ -1,12 +1,10 @@ package edgedevices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/edgedevices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/edgedevices/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/README.md index 5734efdd9feb..235a30b03739 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions` Documentation -The `extensions` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `extensions` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName", "extensionName") payload := extensions.Extension{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName", "extensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName", "extensionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue") +id := extensions.NewArcSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName") // alternatively `client.ListByArcSetting(ctx, id)` can be used to do batched pagination items, err := client.ListByArcSettingComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName", "extensionName") payload := extensions.ExtensionPatch{ // ... @@ -103,7 +103,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "arcSettingValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "arcSettingName", "extensionName") payload := extensions.ExtensionUpgradeParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/client.go index 44725ac0e846..682e82667080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/client.go @@ -15,7 +15,7 @@ type ExtensionsClient struct { } func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "extensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "extensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_arcsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_arcsetting.go index 2a1f9ffc60c1..b7b626d35b84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_arcsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_arcsetting.go @@ -44,7 +44,7 @@ func ParseArcSettingID(input string) (*ArcSettingId, error) { } id := ArcSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseArcSettingIDInsensitively(input string) (*ArcSettingId, error) { } id := ArcSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ArcSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticArcSettings", "arcSettings", "arcSettings"), - resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingValue"), + resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_extension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_extension.go index b4cafce315f1..02cf56d154a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_extension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/id_extension.go @@ -46,7 +46,7 @@ func ParseExtensionID(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseExtensionIDInsensitively(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticArcSettings", "arcSettings", "arcSettings"), - resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingValue"), + resourceids.UserSpecifiedSegment("arcSettingName", "arcSettingName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "extensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/method_get.go index 2555add1944c..de33d799aaf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/method_get.go @@ -45,7 +45,6 @@ func (c ExtensionsClient) Get(ctx context.Context, id ExtensionId) (result GetOp var model Extension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/version.go index c4565a5f03e1..d4b86e3f091e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/extensions/version.go @@ -1,12 +1,10 @@ package extensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/extensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/extensions/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/README.md index 75c18c4857e6..d17d2d3c184d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages` Documentation -The `galleryimages` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `galleryimages` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageName") payload := galleryimages.GalleryImages{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryImageName") payload := galleryimages.GalleryImagesUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/client.go index 59b9c848dbd0..cebddc1c307f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/client.go @@ -15,7 +15,7 @@ type GalleryImagesClient struct { } func NewGalleryImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleryimages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleryimages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleryImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/id_galleryimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/id_galleryimage.go index 46d8f90b280a..fc9908ab73b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/id_galleryimage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/id_galleryimage.go @@ -42,7 +42,7 @@ func ParseGalleryImageID(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseGalleryImageIDInsensitively(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id GalleryImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticGalleryImages", "galleryImages", "galleryImages"), - resourceids.UserSpecifiedSegment("galleryImageName", "galleryImageValue"), + resourceids.UserSpecifiedSegment("galleryImageName", "galleryImageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/method_get.go index 213453f768ad..8981c9b4debf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/method_get.go @@ -45,7 +45,6 @@ func (c GalleryImagesClient) Get(ctx context.Context, id GalleryImageId) (result var model GalleryImages result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/version.go index 68cdc92a92c6..cce6603ab3a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/galleryimages/version.go @@ -1,12 +1,10 @@ package galleryimages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleryimages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleryimages/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/README.md index 0ac889e90639..9829fa95bcf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents` Documentation -The `guestagents` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `guestagents` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/client.go index 8b3899fa940f..8bafe6eb1b97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/client.go @@ -15,7 +15,7 @@ type GuestAgentsClient struct { } func NewGuestAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestAgentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "guestagents", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "guestagents", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GuestAgentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/method_guestagentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/method_guestagentget.go index 0e039b2086d2..a9445244c59d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/method_guestagentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/method_guestagentget.go @@ -47,7 +47,6 @@ func (c GuestAgentsClient) GuestAgentGet(ctx context.Context, id commonids.Scope var model GuestAgent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/version.go index da58ff4d4a25..3934151490bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/guestagents/version.go @@ -1,12 +1,10 @@ package guestagents -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/guestagents/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/guestagents/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/README.md index 542581e7866b..f5b7ae6c42b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata` Documentation -The `hybrididentitymetadata` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `hybrididentitymetadata` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/client.go index 597657e59012..94125d9df112 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/client.go @@ -15,7 +15,7 @@ type HybridIdentityMetadataClient struct { } func NewHybridIdentityMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridIdentityMetadataClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hybrididentitymetadata", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hybrididentitymetadata", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HybridIdentityMetadataClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_get.go index 759c20ac51bb..1235a4bf1207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/method_get.go @@ -47,7 +47,6 @@ func (c HybridIdentityMetadataClient) Get(ctx context.Context, id commonids.Scop var model HybridIdentityMetadata result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/version.go index 360a74868692..741f3761d473 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/hybrididentitymetadata/version.go @@ -1,12 +1,10 @@ package hybrididentitymetadata -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hybrididentitymetadata/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hybrididentitymetadata/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/README.md index cca883d4aa99..b19a67d2f2d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks` Documentation -The `logicalnetworks` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `logicalnetworks` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkValue") +id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkName") payload := logicalnetworks.LogicalNetworks{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkValue") +id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkValue") +id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkValue") +id := logicalnetworks.NewLogicalNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "logicalNetworkName") payload := logicalnetworks.LogicalNetworksUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/client.go index 1ab7fafbcfe5..e6c996b155c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/client.go @@ -15,7 +15,7 @@ type LogicalNetworksClient struct { } func NewLogicalNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*LogicalNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "logicalnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "logicalnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LogicalNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/id_logicalnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/id_logicalnetwork.go index 8de178f8122c..c0f41db87b71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/id_logicalnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/id_logicalnetwork.go @@ -42,7 +42,7 @@ func ParseLogicalNetworkID(input string) (*LogicalNetworkId, error) { } id := LogicalNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLogicalNetworkIDInsensitively(input string) (*LogicalNetworkId, error) } id := LogicalNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LogicalNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticLogicalNetworks", "logicalNetworks", "logicalNetworks"), - resourceids.UserSpecifiedSegment("logicalNetworkName", "logicalNetworkValue"), + resourceids.UserSpecifiedSegment("logicalNetworkName", "logicalNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_get.go index 8e6d89f1c643..9c0fbe42fc38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/method_get.go @@ -45,7 +45,6 @@ func (c LogicalNetworksClient) Get(ctx context.Context, id LogicalNetworkId) (re var model LogicalNetworks result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/version.go index 1c08c37e8b69..33c6dfa68549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/logicalnetworks/version.go @@ -1,12 +1,10 @@ package logicalnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/logicalnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/logicalnetworks/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/README.md index aae54a9a6576..68ce4c83c359 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages` Documentation -The `marketplacegalleryimages` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `marketplacegalleryimages` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue") +id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageName") payload := marketplacegalleryimages.MarketplaceGalleryImages{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue") +id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue") +id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageValue") +id := marketplacegalleryimages.NewMarketplaceGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "marketplaceGalleryImageName") payload := marketplacegalleryimages.MarketplaceGalleryImagesUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/client.go index d999cf677f8a..84f918ca46b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/client.go @@ -15,7 +15,7 @@ type MarketplaceGalleryImagesClient struct { } func NewMarketplaceGalleryImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*MarketplaceGalleryImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "marketplacegalleryimages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "marketplacegalleryimages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MarketplaceGalleryImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/id_marketplacegalleryimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/id_marketplacegalleryimage.go index e8d23f4ad491..85e7edf42581 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/id_marketplacegalleryimage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/id_marketplacegalleryimage.go @@ -42,7 +42,7 @@ func ParseMarketplaceGalleryImageID(input string) (*MarketplaceGalleryImageId, e } id := MarketplaceGalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMarketplaceGalleryImageIDInsensitively(input string) (*MarketplaceGall } id := MarketplaceGalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MarketplaceGalleryImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticMarketplaceGalleryImages", "marketplaceGalleryImages", "marketplaceGalleryImages"), - resourceids.UserSpecifiedSegment("marketplaceGalleryImageName", "marketplaceGalleryImageValue"), + resourceids.UserSpecifiedSegment("marketplaceGalleryImageName", "marketplaceGalleryImageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_get.go index 9398502879e1..473ec9523a12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/method_get.go @@ -45,7 +45,6 @@ func (c MarketplaceGalleryImagesClient) Get(ctx context.Context, id MarketplaceG var model MarketplaceGalleryImages result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/version.go index fe2ba6955581..947646781466 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/marketplacegalleryimages/version.go @@ -1,12 +1,10 @@ package marketplacegalleryimages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/marketplacegalleryimages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/marketplacegalleryimages/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/README.md index 7990f55f84f1..6d79021a2970 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces` Documentation -The `networkinterfaces` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.NetworkInterfaces{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := networkinterfaces.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.NetworkInterfacesUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/client.go index cd098aeccdf9..1edd1a6838a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/client.go @@ -15,7 +15,7 @@ type NetworkInterfacesClient struct { } func NewNetworkInterfacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkInterfacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkinterfaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkinterfaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkInterfacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/id_networkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/id_networkinterface.go index d29ee8040c98..60760b6e18e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/id_networkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/id_networkinterface.go @@ -42,7 +42,7 @@ func ParseNetworkInterfaceID(input string) (*NetworkInterfaceId, error) { } id := NetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkInterfaceIDInsensitively(input string) (*NetworkInterfaceId, er } id := NetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkInterfaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceValue"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_get.go index 33da90ee600e..c9d791fd3120 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/method_get.go @@ -45,7 +45,6 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id NetworkInterfaceId) var model NetworkInterfaces result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/version.go index 82d52844172f..632f9b73d850 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/networkinterfaces/version.go @@ -1,12 +1,10 @@ package networkinterfaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkinterfaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkinterfaces/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/README.md index dbdc1822f8b4..61b929be63fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers` Documentation -The `offers` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `offers` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := offers.NewOfferID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue", "offerValue") +id := offers.NewOfferID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "publisherName", "offerName") read, err := client.Get(ctx, id, offers.DefaultGetOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := offers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := offers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id, offers.DefaultListByClusterOperationOptions())` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id, offers.DefaultListByClusterOperationOptions()) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := offers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue") +id := offers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "publisherName") // alternatively `client.ListByPublisher(ctx, id, offers.DefaultListByPublisherOperationOptions())` can be used to do batched pagination items, err := client.ListByPublisherComplete(ctx, id, offers.DefaultListByPublisherOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/client.go index 77b5dddcd7bb..a9704928d40e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/client.go @@ -15,7 +15,7 @@ type OffersClient struct { } func NewOffersClientWithBaseURI(sdkApi sdkEnv.Api) (*OffersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "offers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "offers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OffersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_cluster.go index d14118c29876..f4e32d87211b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_offer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_offer.go index 1d00693f32b4..0bb670d2c127 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_offer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_offer.go @@ -46,7 +46,7 @@ func ParseOfferID(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseOfferIDInsensitively(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id OfferId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_publisher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_publisher.go index e42b6673518b..5ed9f5831970 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_publisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/id_publisher.go @@ -44,7 +44,7 @@ func ParsePublisherID(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePublisherIDInsensitively(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PublisherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_get.go index 47730661e352..d5a4f0ee8fa3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c OffersClient) Get(ctx context.Context, id OfferId, options GetOperationO var model Offer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go index 00376abec4eb..1eedc7537c2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbycluster.go @@ -39,6 +39,7 @@ func (o ListByClusterOperationOptions) ToHeaders() *client.Headers { func (o ListByClusterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go index 8f4f58cf7126..af8228a9eaa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/method_listbypublisher.go @@ -39,6 +39,7 @@ func (o ListByPublisherOperationOptions) ToHeaders() *client.Headers { func (o ListByPublisherOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/version.go index 15e8641cec4e..6c383e6703c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/offers/version.go @@ -1,12 +1,10 @@ package offers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/offers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/offers/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/README.md index ef69004503a1..556fe7b362a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers` Documentation -The `publishers` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `publishers` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publishers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue") +id := publishers.NewPublisherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "publisherName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publishers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := publishers.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/client.go index ea59faa9c8e2..bb2a0107a983 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/client.go @@ -15,7 +15,7 @@ type PublishersClient struct { } func NewPublishersClientWithBaseURI(sdkApi sdkEnv.Api) (*PublishersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publishers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publishers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublishersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_cluster.go index 3a7fff3ea9d3..0a9945397bcf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_publisher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_publisher.go index d8b7a773e809..1f933045aadb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_publisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/id_publisher.go @@ -44,7 +44,7 @@ func ParsePublisherID(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePublisherIDInsensitively(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PublisherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/method_get.go index 850e3f895f2b..e9e46afeb43e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/method_get.go @@ -45,7 +45,6 @@ func (c PublishersClient) Get(ctx context.Context, id PublisherId) (result GetOp var model Publisher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/version.go index 5283ce6cbca9..dc6a8087a9bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/publishers/version.go @@ -1,12 +1,10 @@ package publishers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publishers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publishers/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/README.md index 0b4c4e241c2e..7172b5b4fbd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings` Documentation -The `securitysettings` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `securitysettings` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "securitySettingValue") +id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "securitySettingsName") payload := securitysettings.SecuritySetting{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "securitySettingValue") +id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "securitySettingsName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "securitySettingValue") +id := securitysettings.NewSecuritySettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "securitySettingsName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securitysettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := securitysettings.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByClusters(ctx, id)` can be used to do batched pagination items, err := client.ListByClustersComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/client.go index eaa888ea0b65..d2ecf812038e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/client.go @@ -15,7 +15,7 @@ type SecuritySettingsClient struct { } func NewSecuritySettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecuritySettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "securitysettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "securitysettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SecuritySettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_cluster.go index 0dc221054e90..d8646dc357a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_securitysetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_securitysetting.go index 4dc2e33489d1..464522511cc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_securitysetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/id_securitysetting.go @@ -44,7 +44,7 @@ func ParseSecuritySettingID(input string) (*SecuritySettingId, error) { } id := SecuritySettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSecuritySettingIDInsensitively(input string) (*SecuritySettingId, erro } id := SecuritySettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SecuritySettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticSecuritySettings", "securitySettings", "securitySettings"), - resourceids.UserSpecifiedSegment("securitySettingName", "securitySettingValue"), + resourceids.UserSpecifiedSegment("securitySettingName", "securitySettingsName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/method_get.go index a58fd7930544..7d2af22d48c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/method_get.go @@ -45,7 +45,6 @@ func (c SecuritySettingsClient) Get(ctx context.Context, id SecuritySettingId) ( var model SecuritySetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/version.go index e98ba0c6deff..db1ceed941bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/securitysettings/version.go @@ -1,12 +1,10 @@ package securitysettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/securitysettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/securitysettings/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/README.md index fb2dd4be3168..f7baabed2984 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses` Documentation -The `skuses` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `skuses` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := skuses.NewSkuID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue", "offerValue", "skuValue") +id := skuses.NewSkuID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "publisherName", "offerName", "skuName") read, err := client.SkusGet(ctx, id, skuses.DefaultSkusGetOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := skuses.NewOfferID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "publisherValue", "offerValue") +id := skuses.NewOfferID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "publisherName", "offerName") // alternatively `client.SkusListByOffer(ctx, id, skuses.DefaultSkusListByOfferOperationOptions())` can be used to do batched pagination items, err := client.SkusListByOfferComplete(ctx, id, skuses.DefaultSkusListByOfferOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/client.go index 85bd1abeccf3..b92f0d17d7ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/client.go @@ -15,7 +15,7 @@ type SkusesClient struct { } func NewSkusesClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "skuses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "skuses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SkusesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_offer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_offer.go index 2c3a4c1b840f..848d767eb4b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_offer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_offer.go @@ -46,7 +46,7 @@ func ParseOfferID(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseOfferIDInsensitively(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id OfferId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_sku.go index d4e78d7c5589..9cfa92913b24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_sku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/id_sku.go @@ -48,7 +48,7 @@ func ParseSkuID(input string) (*SkuId, error) { } id := SkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSkuIDInsensitively(input string) (*SkuId, error) { } id := SkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SkuId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offerName"), resourceids.StaticSegment("staticSkus", "skus", "skus"), - resourceids.UserSpecifiedSegment("skuName", "skuValue"), + resourceids.UserSpecifiedSegment("skuName", "skuName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go index f33f165fcc36..0880299a1428 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skusget.go @@ -34,6 +34,7 @@ func (o SkusGetOperationOptions) ToHeaders() *client.Headers { func (o SkusGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SkusesClient) SkusGet(ctx context.Context, id SkuId, options SkusGetOper var model Sku result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go index 58d1602bf964..59509430fb13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/method_skuslistbyoffer.go @@ -39,6 +39,7 @@ func (o SkusListByOfferOperationOptions) ToHeaders() *client.Headers { func (o SkusListByOfferOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/version.go index 671aa464d7a4..407e914c8a03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/skuses/version.go @@ -1,12 +1,10 @@ package skuses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/skuses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/skuses/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/README.md index f12b31444129..6d5fc120a97b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers` Documentation -The `storagecontainers` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `storagecontainers` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerValue") +id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerName") payload := storagecontainers.StorageContainers{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerValue") +id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerValue") +id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerValue") +id := storagecontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageContainerName") payload := storagecontainers.StorageContainersUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/client.go index db251da0046c..c84157bbd8ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/client.go @@ -15,7 +15,7 @@ type StorageContainersClient struct { } func NewStorageContainersClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageContainersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storagecontainers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storagecontainers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageContainersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/id_storagecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/id_storagecontainer.go index 0600ddd1b9ab..ef0ed6bea527 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/id_storagecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/id_storagecontainer.go @@ -42,7 +42,7 @@ func ParseStorageContainerID(input string) (*StorageContainerId, error) { } id := StorageContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageContainerIDInsensitively(input string) (*StorageContainerId, er } id := StorageContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticStorageContainers", "storageContainers", "storageContainers"), - resourceids.UserSpecifiedSegment("storageContainerName", "storageContainerValue"), + resourceids.UserSpecifiedSegment("storageContainerName", "storageContainerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_get.go index 3ead82b221ba..764936b047f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/method_get.go @@ -45,7 +45,6 @@ func (c StorageContainersClient) Get(ctx context.Context, id StorageContainerId) var model StorageContainers result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/version.go index 35add40d4710..2ba1cdbe233a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/storagecontainers/version.go @@ -1,12 +1,10 @@ package storagecontainers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storagecontainers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storagecontainers/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/README.md index ab0f47905407..6c9f00e7e668 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns` Documentation -The `updateruns` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `updateruns` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName", "updateRunName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName", "updateRunName") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updateruns.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue") +id := updateruns.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +69,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName", "updateRunName") payload := updateruns.UpdateRun{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/client.go index a5becca3c6b3..e25bd8527887 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/client.go @@ -15,7 +15,7 @@ type UpdateRunsClient struct { } func NewUpdateRunsClientWithBaseURI(sdkApi sdkEnv.Api) (*UpdateRunsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "updateruns", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "updateruns", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UpdateRunsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_update.go index f8744304b63e..455632c0c253 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_update.go @@ -44,7 +44,7 @@ func ParseUpdateID(input string) (*UpdateId, error) { } id := UpdateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateIDInsensitively(input string) (*UpdateId, error) { } id := UpdateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticUpdates", "updates", "updates"), - resourceids.UserSpecifiedSegment("updateName", "updateValue"), + resourceids.UserSpecifiedSegment("updateName", "updateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_updaterun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_updaterun.go index 14b2180425f5..3fd6ca474efd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_updaterun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/id_updaterun.go @@ -46,7 +46,7 @@ func ParseUpdateRunID(input string) (*UpdateRunId, error) { } id := UpdateRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseUpdateRunIDInsensitively(input string) (*UpdateRunId, error) { } id := UpdateRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id UpdateRunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticUpdates", "updates", "updates"), - resourceids.UserSpecifiedSegment("updateName", "updateValue"), + resourceids.UserSpecifiedSegment("updateName", "updateName"), resourceids.StaticSegment("staticUpdateRuns", "updateRuns", "updateRuns"), - resourceids.UserSpecifiedSegment("updateRunName", "updateRunValue"), + resourceids.UserSpecifiedSegment("updateRunName", "updateRunName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_get.go index 674bbb589e9f..499bee735f82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_get.go @@ -45,7 +45,6 @@ func (c UpdateRunsClient) Get(ctx context.Context, id UpdateRunId) (result GetOp var model UpdateRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_put.go index 58f21298c0f9..205bfa13171f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/method_put.go @@ -49,7 +49,6 @@ func (c UpdateRunsClient) Put(ctx context.Context, id UpdateRunId, input UpdateR var model UpdateRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/version.go index a4ea5ab3baf8..bc58a5496a00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updateruns/version.go @@ -1,12 +1,10 @@ package updateruns -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/updateruns/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/updateruns/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/README.md index 87cf76fa1d03..bbe064fd8f1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates` Documentation -The `updates` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `updates` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue") +id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue") +id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updates.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := updates.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +69,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue") +id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName") if err := client.PostThenPoll(ctx, id); err != nil { // handle the error @@ -81,7 +81,7 @@ if err := client.PostThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue") +id := updates.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "updateName") payload := updates.Update{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/client.go index f8438b80656c..969ceb5be5b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/client.go @@ -15,7 +15,7 @@ type UpdatesClient struct { } func NewUpdatesClientWithBaseURI(sdkApi sdkEnv.Api) (*UpdatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "updates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "updates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UpdatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_cluster.go index 1b34e01fffc6..ead21400bd86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_update.go index 1588a8a86ff1..8a639b97363f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/id_update.go @@ -44,7 +44,7 @@ func ParseUpdateID(input string) (*UpdateId, error) { } id := UpdateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateIDInsensitively(input string) (*UpdateId, error) { } id := UpdateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticUpdates", "updates", "updates"), - resourceids.UserSpecifiedSegment("updateName", "updateValue"), + resourceids.UserSpecifiedSegment("updateName", "updateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_get.go index 7608d9b1fdd1..cb5f8ef73975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_get.go @@ -45,7 +45,6 @@ func (c UpdatesClient) Get(ctx context.Context, id UpdateId) (result GetOperatio var model Update result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_put.go index 1da3ed2ae543..135bf382fd82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/method_put.go @@ -49,7 +49,6 @@ func (c UpdatesClient) Put(ctx context.Context, id UpdateId, input Update) (resu var model Update result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/version.go index c20c9326dd65..d676b96752fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updates/version.go @@ -1,12 +1,10 @@ package updates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/updates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/updates/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/README.md index 55a9be0c7e35..05227c65f770 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries` Documentation -The `updatesummaries` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `updatesummaries` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +69,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := updatesummaries.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := updatesummaries.UpdateSummaries{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/client.go index 869223878e11..7922f5b88197 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/client.go @@ -15,7 +15,7 @@ type UpdateSummariesClient struct { } func NewUpdateSummariesClientWithBaseURI(sdkApi sdkEnv.Api) (*UpdateSummariesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "updatesummaries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "updatesummaries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UpdateSummariesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/id_cluster.go index 42e4632b7b8e..79b7bf45aa06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_get.go index 874fcd2d8318..df0060072204 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_get.go @@ -46,7 +46,6 @@ func (c UpdateSummariesClient) Get(ctx context.Context, id ClusterId) (result Ge var model UpdateSummaries result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_put.go index a8b151c8e571..5e31d6b3692a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/method_put.go @@ -50,7 +50,6 @@ func (c UpdateSummariesClient) Put(ctx context.Context, id ClusterId, input Upda var model UpdateSummaries result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/version.go index c771197bf1d0..cf029a80c074 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/updatesummaries/version.go @@ -1,12 +1,10 @@ package updatesummaries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/updatesummaries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/updatesummaries/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/README.md index 103485fd08f5..ba0bb8a6786f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks` Documentation -The `virtualharddisks` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `virtualharddisks` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskValue") +id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskName") payload := virtualharddisks.VirtualHardDisks{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskValue") +id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskValue") +id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskValue") +id := virtualharddisks.NewVirtualHardDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHardDiskName") payload := virtualharddisks.VirtualHardDisksUpdateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/client.go index 337d4efa6595..0223b9522957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/client.go @@ -15,7 +15,7 @@ type VirtualHardDisksClient struct { } func NewVirtualHardDisksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualHardDisksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualharddisks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualharddisks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualHardDisksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/id_virtualharddisk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/id_virtualharddisk.go index 7f18540e4536..20ba20372068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/id_virtualharddisk.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/id_virtualharddisk.go @@ -42,7 +42,7 @@ func ParseVirtualHardDiskID(input string) (*VirtualHardDiskId, error) { } id := VirtualHardDiskId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualHardDiskIDInsensitively(input string) (*VirtualHardDiskId, erro } id := VirtualHardDiskId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualHardDiskId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAzureStackHCI", "Microsoft.AzureStackHCI", "Microsoft.AzureStackHCI"), resourceids.StaticSegment("staticVirtualHardDisks", "virtualHardDisks", "virtualHardDisks"), - resourceids.UserSpecifiedSegment("virtualHardDiskName", "virtualHardDiskValue"), + resourceids.UserSpecifiedSegment("virtualHardDiskName", "virtualHardDiskName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_get.go index 7917d287d9bf..df2381171e23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/method_get.go @@ -45,7 +45,6 @@ func (c VirtualHardDisksClient) Get(ctx context.Context, id VirtualHardDiskId) ( var model VirtualHardDisks result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/version.go index 833f8432f8ba..3f3ffecc1688 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualharddisks/version.go @@ -1,12 +1,10 @@ package virtualharddisks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualharddisks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualharddisks/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/README.md index 1368193d4559..3d1d694644e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances` Documentation -The `virtualmachineinstances` SDK allows for interaction with the Azure Resource Manager Service `azurestackhci` (API Version `2024-01-01`). +The `virtualmachineinstances` SDK allows for interaction with Azure Resource Manager `azurestackhci` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/client.go index e40ddc4adf55..18d28a8f0090 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/client.go @@ -15,7 +15,7 @@ type VirtualMachineInstancesClient struct { } func NewVirtualMachineInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachineinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachineinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_get.go index 083f0bcc7a1b..145d52cc16f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/method_get.go @@ -47,7 +47,6 @@ func (c VirtualMachineInstancesClient) Get(ctx context.Context, id commonids.Sco var model VirtualMachineInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/version.go index 6fb9ac01a312..803709db371d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2024-01-01/virtualmachineinstances/version.go @@ -1,12 +1,10 @@ package virtualmachineinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachineinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachineinstances/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md index cc1e3b9f30ff..f96bfc45a7b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application` Documentation -The `application` SDK allows for interaction with the Azure Resource Manager Service `batch` (API Version `2023-05-01`). +The `application` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "applicationName") payload := application.Application{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "applicationName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "applicationName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := application.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.List(ctx, id, application.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, application.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "applicationName") payload := application.Application{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go index c87320630e03..552cea9994d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/client.go @@ -15,7 +15,7 @@ type ApplicationClient struct { } func NewApplicationClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "application", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "application", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go index dd993e4eaf58..cb94f45793bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_application.go @@ -44,7 +44,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "applicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go index 24f79b208679..308b45d462b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/id_batchaccount.go @@ -42,7 +42,7 @@ func ParseBatchAccountID(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBatchAccountIDInsensitively(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BatchAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go index 969b8c3f01e4..f82824b74a24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_create.go @@ -49,7 +49,6 @@ func (c ApplicationClient) Create(ctx context.Context, id ApplicationId, input A var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go index 4098c587ba51..288a250a4108 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationClient) Get(ctx context.Context, id ApplicationId) (result Ge var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go index ea47d96f0978..c17155dc1711 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go index f70ac75de337..d3d06a031c2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/method_update.go @@ -49,7 +49,6 @@ func (c ApplicationClient) Update(ctx context.Context, id ApplicationId, input A var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go index 8304f68f902e..ec185dc0e64c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/application/version.go @@ -1,12 +1,10 @@ package application -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/application/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/application/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md index 44d1e2c9071f..9376cdbe077e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount` Documentation -The `batchaccount` SDK allows for interaction with the Azure Resource Manager Service `batch` (API Version `2023-05-01`). +The `batchaccount` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := batchaccount.BatchAccountCreateParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.GetKeys(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -137,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := batchaccount.BatchAccountRegenerateKeyParameters{ // ... @@ -158,7 +158,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SynchronizeAutoStorageKeys(ctx, id) if err != nil { @@ -174,7 +174,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := batchaccount.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := batchaccount.BatchAccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go index 607b46b26037..2779ef55d044 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/client.go @@ -15,7 +15,7 @@ type BatchAccountClient struct { } func NewBatchAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*BatchAccountClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "batchaccount", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "batchaccount", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BatchAccountClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go index 0b75e0ac7018..3aed35346308 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/id_batchaccount.go @@ -42,7 +42,7 @@ func ParseBatchAccountID(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBatchAccountIDInsensitively(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BatchAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go index 6dc844ee91a1..5a247338315b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_get.go @@ -45,7 +45,6 @@ func (c BatchAccountClient) Get(ctx context.Context, id BatchAccountId) (result var model BatchAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go index 70dd5c8da377..6ceeb11ddf0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_getkeys.go @@ -46,7 +46,6 @@ func (c BatchAccountClient) GetKeys(ctx context.Context, id BatchAccountId) (res var model BatchAccountKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go index 6c8bd2c4f6c3..385f7216999a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c BatchAccountClient) RegenerateKey(ctx context.Context, id BatchAccountId var model BatchAccountKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go index 8776d09247a6..8a68a40f9033 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/method_update.go @@ -49,7 +49,6 @@ func (c BatchAccountClient) Update(ctx context.Context, id BatchAccountId, input var model BatchAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go index 46d3d73d5fdc..a5d6d1e9391b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/batchaccount/version.go @@ -1,12 +1,10 @@ package batchaccount -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/batchaccount/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/batchaccount/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md index c4aa5a0fb205..f0d52e29e734 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate` Documentation -The `certificate` SDK allows for interaction with the Azure Resource Manager Service `batch` (API Version `2023-05-01`). +The `certificate` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "certificateName") read, err := client.CancelDeletion(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "certificateName") payload := certificate.CertificateCreateOrUpdateParameters{ // ... @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "certificateName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -73,7 +73,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "certificateName") read, err := client.Get(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificate.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := certificate.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.ListByBatchAccount(ctx, id, certificate.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByBatchAccountComplete(ctx, id, certificate.DefaultListByBatchAccountOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "certificateValue") +id := certificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "certificateName") payload := certificate.CertificateCreateOrUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go index 9c7a68853627..723362e2b0f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/client.go @@ -15,7 +15,7 @@ type CertificateClient struct { } func NewCertificateClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go index bbce3f7cae7c..2408b63af1fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_batchaccount.go @@ -42,7 +42,7 @@ func ParseBatchAccountID(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBatchAccountIDInsensitively(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BatchAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go index 62d54b7e2606..4e57e868efef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go index 2e4dcf0a15b4..4c70006b21d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_canceldeletion.go @@ -46,7 +46,6 @@ func (c CertificateClient) CancelDeletion(ctx context.Context, id CertificateId) var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go index bbbc2c0757c3..b9da50418010 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_create.go @@ -40,6 +40,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c CertificateClient) Create(ctx context.Context, id CertificateId, input C var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go index 171381cc2394..297ae687e219 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_get.go @@ -45,7 +45,6 @@ func (c CertificateClient) Get(ctx context.Context, id CertificateId) (result Ge var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go index 287d5fc9781c..9095d225ecc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_listbybatchaccount.go @@ -41,6 +41,7 @@ func (o ListByBatchAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByBatchAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go index 1977e470b49e..d46adfe7c60e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c CertificateClient) Update(ctx context.Context, id CertificateId, input C var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go index 5acc612f9231..cf2ef3e86517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/certificate/version.go @@ -1,12 +1,10 @@ package certificate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificate/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md index 4ec138b302c8..f7bea2ed7df3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool` Documentation -The `pool` SDK allows for interaction with the Azure Resource Manager Service `batch` (API Version `2023-05-01`). +The `pool` SDK allows for interaction with Azure Resource Manager `batch` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") payload := pool.Pool{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") read, err := client.DisableAutoScale(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") read, err := client.Get(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pool.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue") +id := pool.NewBatchAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.ListByBatchAccount(ctx, id, pool.DefaultListByBatchAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByBatchAccountComplete(ctx, id, pool.DefaultListByBatchAccountOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") read, err := client.StopResize(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "batchAccountValue", "poolValue") +id := pool.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") payload := pool.Pool{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go index dd32c3c502cd..54e29c9a688b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/client.go @@ -15,7 +15,7 @@ type PoolClient struct { } func NewPoolClientWithBaseURI(sdkApi sdkEnv.Api) (*PoolClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "pool", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "pool", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PoolClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go index a291c268aa6c..3cf0013a05d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_batchaccount.go @@ -42,7 +42,7 @@ func ParseBatchAccountID(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBatchAccountIDInsensitively(input string) (*BatchAccountId, error) { } id := BatchAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BatchAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go index 9f34d744780a..d9b835e81796 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/id_pool.go @@ -44,7 +44,7 @@ func ParsePoolID(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePoolIDInsensitively(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBatch", "Microsoft.Batch", "Microsoft.Batch"), resourceids.StaticSegment("staticBatchAccounts", "batchAccounts", "batchAccounts"), - resourceids.UserSpecifiedSegment("batchAccountName", "batchAccountValue"), + resourceids.UserSpecifiedSegment("batchAccountName", "accountName"), resourceids.StaticSegment("staticPools", "pools", "pools"), - resourceids.UserSpecifiedSegment("poolName", "poolValue"), + resourceids.UserSpecifiedSegment("poolName", "poolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go index 8c732d52df0d..fd4569559b15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_create.go @@ -40,6 +40,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c PoolClient) Create(ctx context.Context, id PoolId, input Pool, options C var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go index 25e7ab319142..326b54840982 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_disableautoscale.go @@ -46,7 +46,6 @@ func (c PoolClient) DisableAutoScale(ctx context.Context, id PoolId) (result Dis var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go index 65c9fd44f9e0..08f23dd5e389 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_get.go @@ -45,7 +45,6 @@ func (c PoolClient) Get(ctx context.Context, id PoolId) (result GetOperationResp var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go index a3590d663af8..230109ca49cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_listbybatchaccount.go @@ -41,6 +41,7 @@ func (o ListByBatchAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByBatchAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go index 766ec843a7ff..e968c2a58ee2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_stopresize.go @@ -46,7 +46,6 @@ func (c PoolClient) StopResize(ctx context.Context, id PoolId) (result StopResiz var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go index fbbb607783ee..1bd909d87e9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c PoolClient) Update(ctx context.Context, id PoolId, input Pool, options U var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go index acbf41d40de9..343057716e5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/batch/2023-05-01/pool/version.go @@ -1,12 +1,10 @@ package pool -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/pool/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/pool/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/README.md index 2ccf24c9d010..a173d6475350 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment` Documentation -The `assignment` SDK allows for interaction with the Azure Resource Manager Service `blueprints` (API Version `2018-11-01-preview`). +The `assignment` SDK allows for interaction with Azure Resource Manager `blueprints` (API Version `2018-11-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintAssignmentValue") +id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "assignmentName") payload := assignment.Assignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintAssignmentValue") +id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "assignmentName") read, err := client.Delete(ctx, id, assignment.DefaultDeleteOperationOptions()) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintAssignmentValue") +id := assignment.NewScopedBlueprintAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "assignmentName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/client.go index d9abe14fd60b..8047a7b4ada7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/client.go @@ -15,7 +15,7 @@ type AssignmentClient struct { } func NewAssignmentClientWithBaseURI(sdkApi sdkEnv.Api) (*AssignmentClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "assignment", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "assignment", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AssignmentClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/id_scopedblueprintassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/id_scopedblueprintassignment.go index 1d7a3636eabb..101af80aa2e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/id_scopedblueprintassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/id_scopedblueprintassignment.go @@ -40,7 +40,7 @@ func ParseScopedBlueprintAssignmentID(input string) (*ScopedBlueprintAssignmentI } id := ScopedBlueprintAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedBlueprintAssignmentIDInsensitively(input string) (*ScopedBluepri } id := ScopedBlueprintAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedBlueprintAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBlueprint", "Microsoft.Blueprint", "Microsoft.Blueprint"), resourceids.StaticSegment("staticBlueprintAssignments", "blueprintAssignments", "blueprintAssignments"), - resourceids.UserSpecifiedSegment("blueprintAssignmentName", "blueprintAssignmentValue"), + resourceids.UserSpecifiedSegment("blueprintAssignmentName", "assignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_createorupdate.go index 147a97b5bb52..6736293a98f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_createorupdate.go @@ -49,7 +49,6 @@ func (c AssignmentClient) CreateOrUpdate(ctx context.Context, id ScopedBlueprint var model Assignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go index a69eea0ead21..4e084a607a08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_delete.go @@ -34,6 +34,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c AssignmentClient) Delete(ctx context.Context, id ScopedBlueprintAssignme var model Assignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_get.go index 22bae0a7d947..ed3ed8839f00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/method_get.go @@ -45,7 +45,6 @@ func (c AssignmentClient) Get(ctx context.Context, id ScopedBlueprintAssignmentI var model Assignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/version.go index 5dc87d1f8d48..17b35c6058a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/assignment/version.go @@ -1,12 +1,10 @@ package assignment -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-11-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/assignment/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/assignment/2018-11-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md index fddf9ac11d11..99b47ee2acbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint` Documentation -The `blueprint` SDK allows for interaction with the Azure Resource Manager Service `blueprints` (API Version `2018-11-01-preview`). +The `blueprint` SDK allows for interaction with Azure Resource Manager `blueprints` (API Version `2018-11-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue") +id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName") payload := blueprint.Blueprint{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue") +id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue") +id := blueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/client.go index 31ca50690398..45edc9e9d740 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/client.go @@ -15,7 +15,7 @@ type BlueprintClient struct { } func NewBlueprintClientWithBaseURI(sdkApi sdkEnv.Api) (*BlueprintClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "blueprint", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "blueprint", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BlueprintClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/id_scopedblueprint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/id_scopedblueprint.go index 04b6539a0a8f..52c5a70b0b8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/id_scopedblueprint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/id_scopedblueprint.go @@ -40,7 +40,7 @@ func ParseScopedBlueprintID(input string) (*ScopedBlueprintId, error) { } id := ScopedBlueprintId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedBlueprintIDInsensitively(input string) (*ScopedBlueprintId, erro } id := ScopedBlueprintId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedBlueprintId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBlueprint", "Microsoft.Blueprint", "Microsoft.Blueprint"), resourceids.StaticSegment("staticBlueprints", "blueprints", "blueprints"), - resourceids.UserSpecifiedSegment("blueprintName", "blueprintValue"), + resourceids.UserSpecifiedSegment("blueprintName", "blueprintName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_createorupdate.go index 976a540c99bb..1487572e164e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_createorupdate.go @@ -49,7 +49,6 @@ func (c BlueprintClient) CreateOrUpdate(ctx context.Context, id ScopedBlueprintI var model Blueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_delete.go index bfef43c85f55..dcec83ed9451 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_delete.go @@ -46,7 +46,6 @@ func (c BlueprintClient) Delete(ctx context.Context, id ScopedBlueprintId) (resu var model Blueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_get.go index fbc44a1ac930..42bae100aed6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/method_get.go @@ -45,7 +45,6 @@ func (c BlueprintClient) Get(ctx context.Context, id ScopedBlueprintId) (result var model Blueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/version.go index 4269eda99a4f..a265d4728910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/blueprint/version.go @@ -1,12 +1,10 @@ package blueprint -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-11-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/blueprint/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/blueprint/2018-11-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/README.md index cb259051988a..1855c5fdd8c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint` Documentation -The `publishedblueprint` SDK allows for interaction with the Azure Resource Manager Service `blueprints` (API Version `2018-11-01-preview`). +The `publishedblueprint` SDK allows for interaction with Azure Resource Manager `blueprints` (API Version `2018-11-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue") +id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName", "versionId") payload := publishedblueprint.PublishedBlueprint{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue") +id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName", "versionId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue", "versionIdValue") +id := publishedblueprint.NewScopedVersionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName", "versionId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := publishedblueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintValue") +id := publishedblueprint.NewScopedBlueprintID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "blueprintName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/client.go index 828f84761977..b5b69bfa301e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/client.go @@ -15,7 +15,7 @@ type PublishedBlueprintClient struct { } func NewPublishedBlueprintClientWithBaseURI(sdkApi sdkEnv.Api) (*PublishedBlueprintClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publishedblueprint", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publishedblueprint", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublishedBlueprintClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedblueprint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedblueprint.go index 872e5abd7c36..0e34ce2093b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedblueprint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedblueprint.go @@ -40,7 +40,7 @@ func ParseScopedBlueprintID(input string) (*ScopedBlueprintId, error) { } id := ScopedBlueprintId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedBlueprintIDInsensitively(input string) (*ScopedBlueprintId, erro } id := ScopedBlueprintId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedBlueprintId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBlueprint", "Microsoft.Blueprint", "Microsoft.Blueprint"), resourceids.StaticSegment("staticBlueprints", "blueprints", "blueprints"), - resourceids.UserSpecifiedSegment("blueprintName", "blueprintValue"), + resourceids.UserSpecifiedSegment("blueprintName", "blueprintName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedversion.go index d54712730dee..0ec05641f354 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/id_scopedversion.go @@ -42,7 +42,7 @@ func ParseScopedVersionID(input string) (*ScopedVersionId, error) { } id := ScopedVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScopedVersionIDInsensitively(input string) (*ScopedVersionId, error) { } id := ScopedVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -112,9 +112,9 @@ func (id ScopedVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBlueprint", "Microsoft.Blueprint", "Microsoft.Blueprint"), resourceids.StaticSegment("staticBlueprints", "blueprints", "blueprints"), - resourceids.UserSpecifiedSegment("blueprintName", "blueprintValue"), + resourceids.UserSpecifiedSegment("blueprintName", "blueprintName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionId", "versionIdValue"), + resourceids.UserSpecifiedSegment("versionId", "versionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_create.go index 7cb14b43a726..5ec07e483a1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_create.go @@ -49,7 +49,6 @@ func (c PublishedBlueprintClient) Create(ctx context.Context, id ScopedVersionId var model PublishedBlueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_delete.go index ea115fc57347..381f4b4069ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_delete.go @@ -46,7 +46,6 @@ func (c PublishedBlueprintClient) Delete(ctx context.Context, id ScopedVersionId var model PublishedBlueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_get.go index bef6f7da00ec..69c6ad4ab380 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/method_get.go @@ -45,7 +45,6 @@ func (c PublishedBlueprintClient) Get(ctx context.Context, id ScopedVersionId) ( var model PublishedBlueprint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/version.go index 6dadf657fe0f..4a32a65274ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/blueprints/2018-11-01-preview/publishedblueprint/version.go @@ -1,12 +1,10 @@ package publishedblueprint -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-11-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publishedblueprint/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publishedblueprint/2018-11-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/README.md index ab43392801d0..f216106564d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel` Documentation -The `channel` SDK allows for interaction with the Azure Resource Manager Service `botservice` (API Version `2022-09-15`). +The `channel` SDK allows for interaction with Azure Resource Manager `botservice` (API Version `2022-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") payload := channel.BotChannel{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") payload := channel.SiteInfo{ // ... @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName") read, err := client.EmailCreateSignInUrl(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") read, err := client.Get(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue") +id := commonids.NewBotServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) @@ -132,7 +132,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") read, err := client.ListWithKeys(ctx, id) if err != nil { @@ -148,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceValue", "AcsChatChannel") +id := commonids.NewBotServiceChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botServiceName", "AcsChatChannel") payload := channel.BotChannel{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/client.go index 701a4a1c8b6d..199761579e78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/client.go @@ -15,7 +15,7 @@ type ChannelClient struct { } func NewChannelClientWithBaseURI(sdkApi sdkEnv.Api) (*ChannelClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "channel", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "channel", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ChannelClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_create.go index f92eb1e674d8..ec54be66bc86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_create.go @@ -51,7 +51,6 @@ func (c ChannelClient) Create(ctx context.Context, id commonids.BotServiceChanne var model BotChannel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_directlineregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_directlineregeneratekeys.go index 135352a2175f..a9e78e004391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_directlineregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_directlineregeneratekeys.go @@ -51,7 +51,6 @@ func (c ChannelClient) DirectLineRegenerateKeys(ctx context.Context, id commonid var model BotChannel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_emailcreatesigninurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_emailcreatesigninurl.go index f5c886cb2d78..5c7bfa1d088f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_emailcreatesigninurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_emailcreatesigninurl.go @@ -47,7 +47,6 @@ func (c ChannelClient) EmailCreateSignInUrl(ctx context.Context, id commonids.Bo var model CreateEmailSignInUrlResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_get.go index af9810cc436a..9c18a2ef102f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_get.go @@ -46,7 +46,6 @@ func (c ChannelClient) Get(ctx context.Context, id commonids.BotServiceChannelId var model BotChannel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_listwithkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_listwithkeys.go index ad1204216045..e4cc2e2fd6d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_listwithkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_listwithkeys.go @@ -47,7 +47,6 @@ func (c ChannelClient) ListWithKeys(ctx context.Context, id commonids.BotService var model ListChannelWithKeysResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_update.go index ae454587ef78..6e971870b67e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/method_update.go @@ -51,7 +51,6 @@ func (c ChannelClient) Update(ctx context.Context, id commonids.BotServiceChanne var model BotChannel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_acschatchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_acschatchannel.go index e5b245bd5c32..8343a4e8c0ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_acschatchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_acschatchannel.go @@ -13,11 +13,22 @@ var _ Channel = AcsChatChannel{} type AcsChatChannel struct { // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s AcsChatChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = AcsChatChannel{} func (s AcsChatChannel) MarshalJSON() ([]byte, error) { @@ -29,9 +40,10 @@ func (s AcsChatChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AcsChatChannel: %+v", err) } + decoded["channelName"] = "AcsChatChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_alexachannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_alexachannel.go index 826c5d709b41..11865c541d9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_alexachannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_alexachannel.go @@ -14,11 +14,22 @@ type AlexaChannel struct { Properties *AlexaChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s AlexaChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = AlexaChannel{} func (s AlexaChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s AlexaChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AlexaChannel: %+v", err) } + decoded["channelName"] = "AlexaChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_botchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_botchannel.go index 8764e733009d..51ae1a00a2bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_botchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_botchannel.go @@ -26,10 +26,19 @@ type BotChannel struct { var _ json.Unmarshaler = &BotChannel{} func (s *BotChannel) UnmarshalJSON(bytes []byte) error { - type alias BotChannel - var decoded alias + var decoded struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *Kind `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into BotChannel: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Etag = decoded.Etag @@ -48,11 +57,12 @@ func (s *BotChannel) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalChannelImplementation(v) + impl, err := UnmarshalChannelImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'BotChannel': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_channel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_channel.go index ea5ac715527c..551a18bf5f9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_channel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_channel.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Channel interface { + Channel() BaseChannelImpl } -// RawChannelImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Channel = BaseChannelImpl{} + +type BaseChannelImpl struct { + ChannelName string `json:"channelName"` + Etag *string `json:"etag,omitempty"` + Location *string `json:"location,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` +} + +func (s BaseChannelImpl) Channel() BaseChannelImpl { + return s +} + +var _ Channel = RawChannelImpl{} + +// RawChannelImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawChannelImpl struct { - Type string - Values map[string]interface{} + channel BaseChannelImpl + Type string + Values map[string]interface{} +} + +func (s RawChannelImpl) Channel() BaseChannelImpl { + return s.channel } -func unmarshalChannelImplementation(input []byte) (Channel, error) { +func UnmarshalChannelImplementation(input []byte) (Channel, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalChannelImplementation(input []byte) (Channel, error) { return nil, fmt.Errorf("unmarshaling Channel into map[string]interface: %+v", err) } - value, ok := temp["channelName"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["channelName"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AcsChatChannel") { @@ -188,10 +208,15 @@ func unmarshalChannelImplementation(input []byte) (Channel, error) { return out, nil } - out := RawChannelImpl{ - Type: value, - Values: temp, + var parent BaseChannelImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseChannelImpl: %+v", err) } - return out, nil + + return RawChannelImpl{ + channel: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinechannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinechannel.go index 1e314cb126ee..27e307e015f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinechannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinechannel.go @@ -14,11 +14,22 @@ type DirectLineChannel struct { Properties *DirectLineChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s DirectLineChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = DirectLineChannel{} func (s DirectLineChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s DirectLineChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DirectLineChannel: %+v", err) } + decoded["channelName"] = "DirectLineChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinespeechchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinespeechchannel.go index 00973b4d03da..137708c856de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinespeechchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_directlinespeechchannel.go @@ -14,11 +14,22 @@ type DirectLineSpeechChannel struct { Properties *DirectLineSpeechChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s DirectLineSpeechChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = DirectLineSpeechChannel{} func (s DirectLineSpeechChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s DirectLineSpeechChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DirectLineSpeechChannel: %+v", err) } + decoded["channelName"] = "DirectLineSpeechChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_emailchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_emailchannel.go index 752873bf8d5e..4f9375e35b2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_emailchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_emailchannel.go @@ -14,11 +14,22 @@ type EmailChannel struct { Properties *EmailChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s EmailChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = EmailChannel{} func (s EmailChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s EmailChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EmailChannel: %+v", err) } + decoded["channelName"] = "EmailChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_facebookchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_facebookchannel.go index c0ac48bfcadc..42ba6f22f684 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_facebookchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_facebookchannel.go @@ -14,11 +14,22 @@ type FacebookChannel struct { Properties *FacebookChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s FacebookChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = FacebookChannel{} func (s FacebookChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s FacebookChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FacebookChannel: %+v", err) } + decoded["channelName"] = "FacebookChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_kikchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_kikchannel.go index e376c30b4d64..06f59c5cbb58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_kikchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_kikchannel.go @@ -14,11 +14,22 @@ type KikChannel struct { Properties *KikChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s KikChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = KikChannel{} func (s KikChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s KikChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KikChannel: %+v", err) } + decoded["channelName"] = "KikChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_linechannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_linechannel.go index 07c63c2d8252..fd38ae80c97b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_linechannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_linechannel.go @@ -14,11 +14,22 @@ type LineChannel struct { Properties *LineChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s LineChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = LineChannel{} func (s LineChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s LineChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LineChannel: %+v", err) } + decoded["channelName"] = "LineChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_listchannelwithkeysresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_listchannelwithkeysresponse.go index b6361bfbe87b..0f379e1ac8ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_listchannelwithkeysresponse.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_listchannelwithkeysresponse.go @@ -31,10 +31,23 @@ type ListChannelWithKeysResponse struct { var _ json.Unmarshaler = &ListChannelWithKeysResponse{} func (s *ListChannelWithKeysResponse) UnmarshalJSON(bytes []byte) error { - type alias ListChannelWithKeysResponse - var decoded alias + var decoded struct { + ChangedTime *string `json:"changedTime,omitempty"` + EntityTag *string `json:"entityTag,omitempty"` + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind *Kind `json:"kind,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + Setting *ChannelSettings `json:"setting,omitempty"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ListChannelWithKeysResponse: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ChangedTime = decoded.ChangedTime @@ -57,7 +70,7 @@ func (s *ListChannelWithKeysResponse) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalChannelImplementation(v) + impl, err := UnmarshalChannelImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ListChannelWithKeysResponse': %+v", err) } @@ -65,11 +78,12 @@ func (s *ListChannelWithKeysResponse) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["resource"]; ok { - impl, err := unmarshalChannelImplementation(v) + impl, err := UnmarshalChannelImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Resource' for 'ListChannelWithKeysResponse': %+v", err) } s.Resource = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_m365extensions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_m365extensions.go index 4d2516e0e5fc..9db11578d91f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_m365extensions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_m365extensions.go @@ -13,11 +13,22 @@ var _ Channel = M365Extensions{} type M365Extensions struct { // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s M365Extensions) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = M365Extensions{} func (s M365Extensions) MarshalJSON() ([]byte, error) { @@ -29,9 +40,10 @@ func (s M365Extensions) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling M365Extensions: %+v", err) } + decoded["channelName"] = "M365Extensions" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_msteamschannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_msteamschannel.go index b4db62b5c4e2..4cf0e9d8701a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_msteamschannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_msteamschannel.go @@ -14,11 +14,22 @@ type MsTeamsChannel struct { Properties *MsTeamsChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s MsTeamsChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = MsTeamsChannel{} func (s MsTeamsChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s MsTeamsChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MsTeamsChannel: %+v", err) } + decoded["channelName"] = "MsTeamsChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_omnichannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_omnichannel.go index a9be4c567feb..28a08a931ac0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_omnichannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_omnichannel.go @@ -13,11 +13,22 @@ var _ Channel = Omnichannel{} type Omnichannel struct { // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s Omnichannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = Omnichannel{} func (s Omnichannel) MarshalJSON() ([]byte, error) { @@ -29,9 +40,10 @@ func (s Omnichannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Omnichannel: %+v", err) } + decoded["channelName"] = "Omnichannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_outlookchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_outlookchannel.go index a728f9f7fb69..a6f3c1dbe068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_outlookchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_outlookchannel.go @@ -13,11 +13,22 @@ var _ Channel = OutlookChannel{} type OutlookChannel struct { // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s OutlookChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = OutlookChannel{} func (s OutlookChannel) MarshalJSON() ([]byte, error) { @@ -29,9 +40,10 @@ func (s OutlookChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling OutlookChannel: %+v", err) } + decoded["channelName"] = "OutlookChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_searchassistant.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_searchassistant.go index fe4ffe451ffd..f4f69e4b9bfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_searchassistant.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_searchassistant.go @@ -13,11 +13,22 @@ var _ Channel = SearchAssistant{} type SearchAssistant struct { // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s SearchAssistant) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = SearchAssistant{} func (s SearchAssistant) MarshalJSON() ([]byte, error) { @@ -29,9 +40,10 @@ func (s SearchAssistant) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SearchAssistant: %+v", err) } + decoded["channelName"] = "SearchAssistant" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_skypechannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_skypechannel.go index 2068c22c2952..8fb7bded933e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_skypechannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_skypechannel.go @@ -14,11 +14,22 @@ type SkypeChannel struct { Properties *SkypeChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s SkypeChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = SkypeChannel{} func (s SkypeChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s SkypeChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SkypeChannel: %+v", err) } + decoded["channelName"] = "SkypeChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_slackchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_slackchannel.go index 09841770a7db..08c0309558ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_slackchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_slackchannel.go @@ -14,11 +14,22 @@ type SlackChannel struct { Properties *SlackChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s SlackChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = SlackChannel{} func (s SlackChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s SlackChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SlackChannel: %+v", err) } + decoded["channelName"] = "SlackChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_smschannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_smschannel.go index 94323e141d32..7bb3a04ebe06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_smschannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_smschannel.go @@ -14,11 +14,22 @@ type SmsChannel struct { Properties *SmsChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s SmsChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = SmsChannel{} func (s SmsChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s SmsChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SmsChannel: %+v", err) } + decoded["channelName"] = "SmsChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telegramchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telegramchannel.go index 716bae275a3e..5763949acd15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telegramchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telegramchannel.go @@ -14,11 +14,22 @@ type TelegramChannel struct { Properties *TelegramChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s TelegramChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = TelegramChannel{} func (s TelegramChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s TelegramChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling TelegramChannel: %+v", err) } + decoded["channelName"] = "TelegramChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telephonychannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telephonychannel.go index 73f48a01685c..d31f590d4c2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telephonychannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_telephonychannel.go @@ -14,11 +14,22 @@ type TelephonyChannel struct { Properties *TelephonyChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s TelephonyChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = TelephonyChannel{} func (s TelephonyChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s TelephonyChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling TelephonyChannel: %+v", err) } + decoded["channelName"] = "TelephonyChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_webchatchannel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_webchatchannel.go index 38a968de3152..441e21e40171 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_webchatchannel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/model_webchatchannel.go @@ -14,11 +14,22 @@ type WebChatChannel struct { Properties *WebChatChannelProperties `json:"properties,omitempty"` // Fields inherited from Channel + + ChannelName string `json:"channelName"` Etag *string `json:"etag,omitempty"` Location *string `json:"location,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } +func (s WebChatChannel) Channel() BaseChannelImpl { + return BaseChannelImpl{ + ChannelName: s.ChannelName, + Etag: s.Etag, + Location: s.Location, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = WebChatChannel{} func (s WebChatChannel) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s WebChatChannel) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WebChatChannel: %+v", err) } + decoded["channelName"] = "WebChatChannel" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/version.go index e57afa51cb6f..5c7d0e227d02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/botservice/2022-09-15/channel/version.go @@ -1,12 +1,10 @@ package channel -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/channel/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/channel/2022-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/README.md index 3503b8b0c41b..462db5e6fe4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities` Documentation -The `capabilities` SDK allows for interaction with the Azure Resource Manager Service `chaosstudio` (API Version `2023-11-01`). +The `capabilities` SDK allows for interaction with Azure Resource Manager `chaosstudio` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capabilities.NewCapabilityTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "targetTypeValue", "capabilityTypeValue") +id := capabilities.NewCapabilityTypeID("12345678-1234-9876-4563-123456789012", "locationName", "targetTypeName", "capabilityTypeName") read, err := client.CapabilityTypesGet(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName", "capabilityName") payload := capabilities.Capability{ // ... @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName", "capabilityName") read, err := client.Delete(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue", "capabilityValue") +id := commonids.NewChaosStudioCapabilityID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName", "capabilityName") read, err := client.Get(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName") // alternatively `client.List(ctx, id, capabilities.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, capabilities.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/client.go index a2e1031ed388..bd95e4c5f262 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/client.go @@ -15,7 +15,7 @@ type CapabilitiesClient struct { } func NewCapabilitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*CapabilitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capabilities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capabilities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapabilitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/id_capabilitytype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/id_capabilitytype.go index 9f4c9074969e..42fdd47934ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/id_capabilitytype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/id_capabilitytype.go @@ -44,7 +44,7 @@ func ParseCapabilityTypeID(input string) (*CapabilityTypeId, error) { } id := CapabilityTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCapabilityTypeIDInsensitively(input string) (*CapabilityTypeId, error) } id := CapabilityTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,11 +119,11 @@ func (id CapabilityTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), resourceids.StaticSegment("staticTargetTypes", "targetTypes", "targetTypes"), - resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeValue"), + resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeName"), resourceids.StaticSegment("staticCapabilityTypes", "capabilityTypes", "capabilityTypes"), - resourceids.UserSpecifiedSegment("capabilityTypeName", "capabilityTypeValue"), + resourceids.UserSpecifiedSegment("capabilityTypeName", "capabilityTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_capabilitytypesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_capabilitytypesget.go index 6b25107514ca..19e56004192c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_capabilitytypesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_capabilitytypesget.go @@ -45,7 +45,6 @@ func (c CapabilitiesClient) CapabilityTypesGet(ctx context.Context, id Capabilit var model CapabilityType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_createorupdate.go index 00ffa4a57a84..91210ca9147a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_createorupdate.go @@ -50,7 +50,6 @@ func (c CapabilitiesClient) CreateOrUpdate(ctx context.Context, id commonids.Cha var model Capability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_get.go index 1a3631bef9d7..9f55b872c49e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_get.go @@ -46,7 +46,6 @@ func (c CapabilitiesClient) Get(ctx context.Context, id commonids.ChaosStudioCap var model Capability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go index d724ac454758..35f2a115b901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/version.go index a945a12b9ca0..1f7b4ab8185a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilities/version.go @@ -1,12 +1,10 @@ package capabilities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capabilities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capabilities/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/README.md index f9ee5cc9fa32..afceeea7f4f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes` Documentation -The `capabilitytypes` SDK allows for interaction with the Azure Resource Manager Service `chaosstudio` (API Version `2023-11-01`). +The `capabilitytypes` SDK allows for interaction with Azure Resource Manager `chaosstudio` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capabilitytypes.NewTargetTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "targetTypeValue") +id := capabilitytypes.NewTargetTypeID("12345678-1234-9876-4563-123456789012", "locationName", "targetTypeName") // alternatively `client.List(ctx, id, capabilitytypes.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, capabilitytypes.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/client.go index 3dc8b841e5d3..bd5a19a00d96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/client.go @@ -15,7 +15,7 @@ type CapabilityTypesClient struct { } func NewCapabilityTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*CapabilityTypesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capabilitytypes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capabilitytypes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapabilityTypesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/id_targettype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/id_targettype.go index 3a4bcf5410ce..7ab36da09157 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/id_targettype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/id_targettype.go @@ -42,7 +42,7 @@ func ParseTargetTypeID(input string) (*TargetTypeId, error) { } id := TargetTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTargetTypeIDInsensitively(input string) (*TargetTypeId, error) { } id := TargetTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id TargetTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), resourceids.StaticSegment("staticTargetTypes", "targetTypes", "targetTypes"), - resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeValue"), + resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go index 925560e0b505..dbfd5c6e5dad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/version.go index 68366274a35d..26a25576b00b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/capabilitytypes/version.go @@ -1,12 +1,10 @@ package capabilitytypes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capabilitytypes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capabilitytypes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/README.md index 46efe93e253f..1c928caf1fb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments` Documentation -The `experiments` SDK allows for interaction with the Azure Resource Manager Service `chaosstudio` (API Version `2023-11-01`). +The `experiments` SDK allows for interaction with Azure Resource Manager `chaosstudio` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") if err := client.CancelThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.CancelThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") payload := experiments.Experiment{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := experiments.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue", "executionIdValue") +id := experiments.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName", "executionId") read, err := client.ExecutionDetails(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") read, err := client.Get(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := experiments.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue", "executionIdValue") +id := experiments.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName", "executionId") read, err := client.GetExecution(ctx, id) if err != nil { @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") // alternatively `client.ListAllExecutions(ctx, id)` can be used to do batched pagination items, err := client.ListAllExecutionsComplete(ctx, id) @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -177,7 +177,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentValue") +id := experiments.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName") payload := experiments.ExperimentUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/client.go index d2642af9418d..87587479e4ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/client.go @@ -15,7 +15,7 @@ type ExperimentsClient struct { } func NewExperimentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExperimentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "experiments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "experiments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExperimentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_execution.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_execution.go index d0ff64a9d1a3..bd161d275694 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_execution.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_execution.go @@ -44,7 +44,7 @@ func ParseExecutionID(input string) (*ExecutionId, error) { } id := ExecutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExecutionIDInsensitively(input string) (*ExecutionId, error) { } id := ExecutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExecutionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticExperiments", "experiments", "experiments"), - resourceids.UserSpecifiedSegment("experimentName", "experimentValue"), + resourceids.UserSpecifiedSegment("experimentName", "experimentName"), resourceids.StaticSegment("staticExecutions", "executions", "executions"), - resourceids.UserSpecifiedSegment("executionId", "executionIdValue"), + resourceids.UserSpecifiedSegment("executionId", "executionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_experiment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_experiment.go index 087913b115c9..58166ffc38f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_experiment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/id_experiment.go @@ -42,7 +42,7 @@ func ParseExperimentID(input string) (*ExperimentId, error) { } id := ExperimentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExperimentIDInsensitively(input string) (*ExperimentId, error) { } id := ExperimentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExperimentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticExperiments", "experiments", "experiments"), - resourceids.UserSpecifiedSegment("experimentName", "experimentValue"), + resourceids.UserSpecifiedSegment("experimentName", "experimentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_executiondetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_executiondetails.go index 114fae591012..8d0252ba5c02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_executiondetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_executiondetails.go @@ -46,7 +46,6 @@ func (c ExperimentsClient) ExecutionDetails(ctx context.Context, id ExecutionId) var model ExperimentExecutionDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_get.go index 92e7fb7c52ae..2fc4e315f413 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_get.go @@ -45,7 +45,6 @@ func (c ExperimentsClient) Get(ctx context.Context, id ExperimentId) (result Get var model Experiment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_getexecution.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_getexecution.go index a561c8e5d5c7..9c4da4698cf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_getexecution.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_getexecution.go @@ -45,7 +45,6 @@ func (c ExperimentsClient) GetExecution(ctx context.Context, id ExecutionId) (re var model ExperimentExecution result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go index bf3e84085b1d..b88f1e79fee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go index f5a05c93f16c..a67cd0e199d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/method_listall.go @@ -41,6 +41,7 @@ func (o ListAllOperationOptions) ToHeaders() *client.Headers { func (o ListAllOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_action.go index 1a02c7cd9e43..a95a5ec36faf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_action.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_action.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Action interface { + Action() BaseActionImpl } -// RawActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Action = BaseActionImpl{} + +type BaseActionImpl struct { + Name string `json:"name"` + Type string `json:"type"` +} + +func (s BaseActionImpl) Action() BaseActionImpl { + return s +} + +var _ Action = RawActionImpl{} + +// RawActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawActionImpl struct { + action BaseActionImpl Type string Values map[string]interface{} } -func unmarshalActionImplementation(input []byte) (Action, error) { +func (s RawActionImpl) Action() BaseActionImpl { + return s.action +} + +func UnmarshalActionImplementation(input []byte) (Action, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return nil, fmt.Errorf("unmarshaling Action into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "continuous") { @@ -60,10 +78,15 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return out, nil } - out := RawActionImpl{ + var parent BaseActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseActionImpl: %+v", err) + } + + return RawActionImpl{ + action: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_branch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_branch.go index fca191b3c5b1..818d65269047 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_branch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_branch.go @@ -16,10 +16,11 @@ type Branch struct { var _ json.Unmarshaler = &Branch{} func (s *Branch) UnmarshalJSON(bytes []byte) error { - type alias Branch - var decoded alias + var decoded struct { + Name string `json:"name"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Branch: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Name = decoded.Name @@ -37,7 +38,7 @@ func (s *Branch) UnmarshalJSON(bytes []byte) error { output := make([]Action, 0) for i, val := range listTemp { - impl, err := unmarshalActionImplementation(val) + impl, err := UnmarshalActionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Actions' for 'Branch': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *Branch) UnmarshalJSON(bytes []byte) error { } s.Actions = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_continuousaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_continuousaction.go index f323d393ea01..6743ed7a43da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_continuousaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_continuousaction.go @@ -16,7 +16,16 @@ type ContinuousAction struct { SelectorId string `json:"selectorId"` // Fields inherited from Action + Name string `json:"name"` + Type string `json:"type"` +} + +func (s ContinuousAction) Action() BaseActionImpl { + return BaseActionImpl{ + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ContinuousAction{} @@ -30,9 +39,10 @@ func (s ContinuousAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ContinuousAction: %+v", err) } + decoded["type"] = "continuous" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_delayaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_delayaction.go index 59420382b385..e726e420bbba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_delayaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_delayaction.go @@ -14,7 +14,16 @@ type DelayAction struct { Duration string `json:"duration"` // Fields inherited from Action + Name string `json:"name"` + Type string `json:"type"` +} + +func (s DelayAction) Action() BaseActionImpl { + return BaseActionImpl{ + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = DelayAction{} @@ -28,9 +37,10 @@ func (s DelayAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DelayAction: %+v", err) } + decoded["type"] = "delay" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_discreteaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_discreteaction.go index 7df537a2a573..168af449ac82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_discreteaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_discreteaction.go @@ -15,7 +15,16 @@ type DiscreteAction struct { SelectorId string `json:"selectorId"` // Fields inherited from Action + Name string `json:"name"` + Type string `json:"type"` +} + +func (s DiscreteAction) Action() BaseActionImpl { + return BaseActionImpl{ + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = DiscreteAction{} @@ -29,9 +38,10 @@ func (s DiscreteAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DiscreteAction: %+v", err) } + decoded["type"] = "discrete" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_experimentproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_experimentproperties.go index 1ff5f530efb5..bc334e3c3080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_experimentproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_experimentproperties.go @@ -17,10 +17,12 @@ type ExperimentProperties struct { var _ json.Unmarshaler = &ExperimentProperties{} func (s *ExperimentProperties) UnmarshalJSON(bytes []byte) error { - type alias ExperimentProperties - var decoded alias + var decoded struct { + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Steps []Step `json:"steps"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ExperimentProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ProvisioningState = decoded.ProvisioningState @@ -39,7 +41,7 @@ func (s *ExperimentProperties) UnmarshalJSON(bytes []byte) error { output := make([]Selector, 0) for i, val := range listTemp { - impl, err := unmarshalSelectorImplementation(val) + impl, err := UnmarshalSelectorImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Selectors' for 'ExperimentProperties': %+v", i, err) } @@ -47,5 +49,6 @@ func (s *ExperimentProperties) UnmarshalJSON(bytes []byte) error { } s.Selectors = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_filter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_filter.go index 2ad944f2346d..d5b4b5ff309f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_filter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_filter.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Filter interface { + Filter() BaseFilterImpl } -// RawFilterImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Filter = BaseFilterImpl{} + +type BaseFilterImpl struct { + Type FilterType `json:"type"` +} + +func (s BaseFilterImpl) Filter() BaseFilterImpl { + return s +} + +var _ Filter = RawFilterImpl{} + +// RawFilterImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFilterImpl struct { + filter BaseFilterImpl Type string Values map[string]interface{} } -func unmarshalFilterImplementation(input []byte) (Filter, error) { +func (s RawFilterImpl) Filter() BaseFilterImpl { + return s.filter +} + +func UnmarshalFilterImplementation(input []byte) (Filter, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFilterImplementation(input []byte) (Filter, error) { return nil, fmt.Errorf("unmarshaling Filter into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Simple") { @@ -44,10 +61,15 @@ func unmarshalFilterImplementation(input []byte) (Filter, error) { return out, nil } - out := RawFilterImpl{ + var parent BaseFilterImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFilterImpl: %+v", err) + } + + return RawFilterImpl{ + filter: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_listselector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_listselector.go index e55a65ae39c5..8125a4308534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_listselector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_listselector.go @@ -14,8 +14,18 @@ type ListSelector struct { Targets []TargetReference `json:"targets"` // Fields inherited from Selector - Filter Filter `json:"filter"` - Id string `json:"id"` + + Filter Filter `json:"filter"` + Id string `json:"id"` + Type SelectorType `json:"type"` +} + +func (s ListSelector) Selector() BaseSelectorImpl { + return BaseSelectorImpl{ + Filter: s.Filter, + Id: s.Id, + Type: s.Type, + } } var _ json.Marshaler = ListSelector{} @@ -29,9 +39,10 @@ func (s ListSelector) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ListSelector: %+v", err) } + decoded["type"] = "List" encoded, err = json.Marshal(decoded) @@ -45,14 +56,18 @@ func (s ListSelector) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ListSelector{} func (s *ListSelector) UnmarshalJSON(bytes []byte) error { - type alias ListSelector - var decoded alias + var decoded struct { + Targets []TargetReference `json:"targets"` + Id string `json:"id"` + Type SelectorType `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ListSelector: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.Id = decoded.Id s.Targets = decoded.Targets + s.Id = decoded.Id + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -60,11 +75,12 @@ func (s *ListSelector) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["filter"]; ok { - impl, err := unmarshalFilterImplementation(v) + impl, err := UnmarshalFilterImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Filter' for 'ListSelector': %+v", err) } s.Filter = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_queryselector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_queryselector.go index 32d8ce0331b0..dd223f1ad138 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_queryselector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_queryselector.go @@ -15,8 +15,18 @@ type QuerySelector struct { SubscriptionIds []string `json:"subscriptionIds"` // Fields inherited from Selector - Filter Filter `json:"filter"` - Id string `json:"id"` + + Filter Filter `json:"filter"` + Id string `json:"id"` + Type SelectorType `json:"type"` +} + +func (s QuerySelector) Selector() BaseSelectorImpl { + return BaseSelectorImpl{ + Filter: s.Filter, + Id: s.Id, + Type: s.Type, + } } var _ json.Marshaler = QuerySelector{} @@ -30,9 +40,10 @@ func (s QuerySelector) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling QuerySelector: %+v", err) } + decoded["type"] = "Query" encoded, err = json.Marshal(decoded) @@ -46,15 +57,20 @@ func (s QuerySelector) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &QuerySelector{} func (s *QuerySelector) UnmarshalJSON(bytes []byte) error { - type alias QuerySelector - var decoded alias + var decoded struct { + QueryString string `json:"queryString"` + SubscriptionIds []string `json:"subscriptionIds"` + Id string `json:"id"` + Type SelectorType `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into QuerySelector: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.Id = decoded.Id s.QueryString = decoded.QueryString s.SubscriptionIds = decoded.SubscriptionIds + s.Id = decoded.Id + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -62,11 +78,12 @@ func (s *QuerySelector) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["filter"]; ok { - impl, err := unmarshalFilterImplementation(v) + impl, err := UnmarshalFilterImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Filter' for 'QuerySelector': %+v", err) } s.Filter = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_selector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_selector.go index 03f67eca8330..5e24973ba96e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_selector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_selector.go @@ -10,18 +10,67 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Selector interface { + Selector() BaseSelectorImpl } -// RawSelectorImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Selector = BaseSelectorImpl{} + +type BaseSelectorImpl struct { + Filter Filter `json:"filter"` + Id string `json:"id"` + Type SelectorType `json:"type"` +} + +func (s BaseSelectorImpl) Selector() BaseSelectorImpl { + return s +} + +var _ Selector = RawSelectorImpl{} + +// RawSelectorImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSelectorImpl struct { - Type string - Values map[string]interface{} + selector BaseSelectorImpl + Type string + Values map[string]interface{} +} + +func (s RawSelectorImpl) Selector() BaseSelectorImpl { + return s.selector +} + +var _ json.Unmarshaler = &BaseSelectorImpl{} + +func (s *BaseSelectorImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Id string `json:"id"` + Type SelectorType `json:"type"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Id = decoded.Id + s.Type = decoded.Type + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseSelectorImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["filter"]; ok { + impl, err := UnmarshalFilterImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Filter' for 'BaseSelectorImpl': %+v", err) + } + s.Filter = impl + } + + return nil } -func unmarshalSelectorImplementation(input []byte) (Selector, error) { +func UnmarshalSelectorImplementation(input []byte) (Selector, error) { if input == nil { return nil, nil } @@ -31,9 +80,9 @@ func unmarshalSelectorImplementation(input []byte) (Selector, error) { return nil, fmt.Errorf("unmarshaling Selector into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "List") { @@ -52,10 +101,15 @@ func unmarshalSelectorImplementation(input []byte) (Selector, error) { return out, nil } - out := RawSelectorImpl{ - Type: value, - Values: temp, + var parent BaseSelectorImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSelectorImpl: %+v", err) } - return out, nil + + return RawSelectorImpl{ + selector: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_simplefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_simplefilter.go index f8de91d5e03a..c020a84c2007 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_simplefilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/model_simplefilter.go @@ -14,6 +14,14 @@ type SimpleFilter struct { Parameters *SimpleFilterParameters `json:"parameters,omitempty"` // Fields inherited from Filter + + Type FilterType `json:"type"` +} + +func (s SimpleFilter) Filter() BaseFilterImpl { + return BaseFilterImpl{ + Type: s.Type, + } } var _ json.Marshaler = SimpleFilter{} @@ -27,9 +35,10 @@ func (s SimpleFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SimpleFilter: %+v", err) } + decoded["type"] = "Simple" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/version.go index 45dc2209c527..88de79758f81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/experiments/version.go @@ -1,12 +1,10 @@ package experiments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/experiments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/experiments/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/README.md index 0cad1ac60815..6237703a20d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets` Documentation -The `targets` SDK allows for interaction with the Azure Resource Manager Service `chaosstudio` (API Version `2023-11-01`). +The `targets` SDK allows for interaction with Azure Resource Manager `chaosstudio` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName") payload := targets.Target{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetValue") +id := commonids.NewChaosStudioTargetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "targetName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/client.go index 4fa378b2dbc9..ef0e4cc7dcc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/client.go @@ -15,7 +15,7 @@ type TargetsClient struct { } func NewTargetsClientWithBaseURI(sdkApi sdkEnv.Api) (*TargetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "targets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "targets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TargetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_createorupdate.go index 7eeb7528da38..50bb7ec43ab0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_createorupdate.go @@ -50,7 +50,6 @@ func (c TargetsClient) CreateOrUpdate(ctx context.Context, id commonids.ChaosStu var model Target result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_get.go index e16ab315976a..7c47058ae960 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_get.go @@ -46,7 +46,6 @@ func (c TargetsClient) Get(ctx context.Context, id commonids.ChaosStudioTargetId var model Target result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_list.go index 4e6681c4b1ea..c875c3edaf27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/version.go index fe3a08d00464..3f3c0cce2a12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targets/version.go @@ -1,12 +1,10 @@ package targets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/targets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/targets/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/README.md index 036773d1c8bd..18a60d156543 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes` Documentation -The `targettypes` SDK allows for interaction with the Azure Resource Manager Service `chaosstudio` (API Version `2023-11-01`). +The `targettypes` SDK allows for interaction with Azure Resource Manager `chaosstudio` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := targettypes.NewTargetTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "targetTypeValue") +id := targettypes.NewTargetTypeID("12345678-1234-9876-4563-123456789012", "locationName", "targetTypeName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := targettypes.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := targettypes.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") // alternatively `client.List(ctx, id, targettypes.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, targettypes.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/client.go index ab93296dfcbd..5f40b7e59fe2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/client.go @@ -15,7 +15,7 @@ type TargetTypesClient struct { } func NewTargetTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*TargetTypesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "targettypes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "targettypes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TargetTypesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_location.go index ff2ac33008d3..5601e312dd34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_targettype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_targettype.go index 0c73bed2e05a..9911c83ee29f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_targettype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/id_targettype.go @@ -42,7 +42,7 @@ func ParseTargetTypeID(input string) (*TargetTypeId, error) { } id := TargetTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTargetTypeIDInsensitively(input string) (*TargetTypeId, error) { } id := TargetTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id TargetTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftChaos", "Microsoft.Chaos", "Microsoft.Chaos"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), resourceids.StaticSegment("staticTargetTypes", "targetTypes", "targetTypes"), - resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeValue"), + resourceids.UserSpecifiedSegment("targetTypeName", "targetTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_get.go index 6ff56a33ce6e..93867c52e028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_get.go @@ -45,7 +45,6 @@ func (c TargetTypesClient) Get(ctx context.Context, id TargetTypeId) (result Get var model TargetType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go index 62d8fb2d6f09..7e07ba42f4dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/version.go index 3ee9241126a5..46b2c2142762 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2023-11-01/targettypes/version.go @@ -1,12 +1,10 @@ package targettypes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/targettypes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/targettypes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md index 20f470ee0a55..f8d12af0772c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts` Documentation -The `cognitiveservicesaccounts` SDK allows for interaction with the Azure Resource Manager Service `cognitive` (API Version `2023-05-01`). +The `cognitiveservicesaccounts` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cognitiveservicesaccounts.Account{ // ... @@ -42,7 +42,7 @@ if err := client.AccountsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsListKeys(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.AccountsListModels(ctx, id)` can be used to do batched pagination items, err := client.AccountsListModelsComplete(ctx, id) @@ -137,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsListSkus(ctx, id) if err != nil { @@ -153,7 +153,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.AccountsListUsages(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions())` can be used to do batched pagination items, err := client.AccountsListUsagesComplete(ctx, id, cognitiveservicesaccounts.DefaultAccountsListUsagesOperationOptions()) @@ -170,7 +170,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cognitiveservicesaccounts.RegenerateKeyParameters{ // ... @@ -191,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := cognitiveservicesaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cognitiveservicesaccounts.Account{ // ... @@ -229,7 +229,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := cognitiveservicesaccounts.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := cognitiveservicesaccounts.CheckSkuAvailabilityParameter{ // ... @@ -250,7 +250,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "example-resource-group", "deletedAccountValue") +id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "location", "example-resource-group", "accountName") read, err := client.DeletedAccountsGet(ctx, id) if err != nil { @@ -283,7 +283,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "example-resource-group", "deletedAccountValue") +id := cognitiveservicesaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "location", "example-resource-group", "accountName") if err := client.DeletedAccountsPurgeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go index 574dcc192d10..6cd1def04377 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/client.go @@ -15,7 +15,7 @@ type CognitiveServicesAccountsClient struct { } func NewCognitiveServicesAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*CognitiveServicesAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cognitiveservicesaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cognitiveservicesaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CognitiveServicesAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go index a76738051ab8..4ba45d42a5ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCognitiveServices", "Microsoft.CognitiveServices", "Microsoft.CognitiveServices"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go index 8554c3367750..06b62b98f513 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_deletedaccount.go @@ -44,7 +44,7 @@ func ParseDeletedAccountID(input string) (*DeletedAccountId, error) { } id := DeletedAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeletedAccountIDInsensitively(input string) (*DeletedAccountId, error) } id := DeletedAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,11 +119,11 @@ func (id DeletedAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCognitiveServices", "Microsoft.CognitiveServices", "Microsoft.CognitiveServices"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), resourceids.StaticSegment("staticDeletedAccounts", "deletedAccounts", "deletedAccounts"), - resourceids.UserSpecifiedSegment("deletedAccountName", "deletedAccountValue"), + resourceids.UserSpecifiedSegment("deletedAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go index 9375e26eabe7..367e04d1dfd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCognitiveServices", "Microsoft.CognitiveServices", "Microsoft.CognitiveServices"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go index c6a3eb2a3e81..5d07d81b6699 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsget.go @@ -45,7 +45,6 @@ func (c CognitiveServicesAccountsClient) AccountsGet(ctx context.Context, id Acc var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go index 3e59222efbfd..c24b7f052d71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistkeys.go @@ -46,7 +46,6 @@ func (c CognitiveServicesAccountsClient) AccountsListKeys(ctx context.Context, i var model ApiKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go index d6ff403fa1e1..d796d0612bd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistskus.go @@ -46,7 +46,6 @@ func (c CognitiveServicesAccountsClient) AccountsListSkus(ctx context.Context, i var model AccountSkuListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go index aa800ae686c4..dbe6c3aca457 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountslistusages.go @@ -39,6 +39,7 @@ func (o AccountsListUsagesOperationOptions) ToHeaders() *client.Headers { func (o AccountsListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go index 80ab81ec7a85..eeb30efbda60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_accountsregeneratekey.go @@ -50,7 +50,6 @@ func (c CognitiveServicesAccountsClient) AccountsRegenerateKey(ctx context.Conte var model ApiKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go index a116ebb69af3..8e7e462576ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkdomainavailability.go @@ -51,7 +51,6 @@ func (c CognitiveServicesAccountsClient) CheckDomainAvailability(ctx context.Con var model DomainAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go index 17b1e327996b..f0ca7782dd0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_checkskuavailability.go @@ -50,7 +50,6 @@ func (c CognitiveServicesAccountsClient) CheckSkuAvailability(ctx context.Contex var model SkuAvailabilityListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go index 5518f33375d6..7e0415db7f7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/method_deletedaccountsget.go @@ -45,7 +45,6 @@ func (c CognitiveServicesAccountsClient) DeletedAccountsGet(ctx context.Context, var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go index 709c57b35060..c5666ad98808 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/cognitiveservicesaccounts/version.go @@ -1,12 +1,10 @@ package cognitiveservicesaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cognitiveservicesaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cognitiveservicesaccounts/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md index 5c705d683a2e..4652baa68534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments` Documentation -The `deployments` SDK allows for interaction with the Azure Resource Manager Service `cognitive` (API Version `2023-05-01`). +The `deployments` SDK allows for interaction with Azure Resource Manager `cognitive` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "deploymentValue") +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") payload := deployments.Deployment{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "deploymentValue") +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "deploymentValue") +id := deployments.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "deploymentName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deployments.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deployments.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go index 50a604559bd1..a0f7b24cdd04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/client.go @@ -15,7 +15,7 @@ type DeploymentsClient struct { } func NewDeploymentsClientWithBaseURI(sdkApi sdkEnv.Api) (*DeploymentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deployments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deployments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeploymentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go index bccff6774a1a..f723fffce422 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCognitiveServices", "Microsoft.CognitiveServices", "Microsoft.CognitiveServices"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go index dbbb45912e27..f3277abb0cbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/id_deployment.go @@ -44,7 +44,7 @@ func ParseDeploymentID(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCognitiveServices", "Microsoft.CognitiveServices", "Microsoft.CognitiveServices"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), - resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + resourceids.UserSpecifiedSegment("deploymentName", "deploymentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go index 957621b4fb13..4e7a125be9e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/method_get.go @@ -45,7 +45,6 @@ func (c DeploymentsClient) Get(ctx context.Context, id DeploymentId) (result Get var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go index 379776d6d84a..a4d532834a54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cognitive/2023-05-01/deployments/version.go @@ -1,12 +1,10 @@ package deployments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deployments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deployments/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/README.md index 17952778eb96..684eed5b325c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices` Documentation -The `communicationservices` SDK allows for interaction with the Azure Resource Manager Service `communication` (API Version `2023-03-31`). +The `communicationservices` SDK allows for interaction with Azure Resource Manager `communication` (API Version `2023-03-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") payload := communicationservices.CommunicationServiceResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") payload := communicationservices.LinkNotificationHubParameters{ // ... @@ -146,7 +146,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -162,7 +162,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") payload := communicationservices.RegenerateKeyParameters{ // ... @@ -183,7 +183,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceValue") +id := communicationservices.NewCommunicationServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationServiceName") payload := communicationservices.CommunicationServiceResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/client.go index 489c8a36eecf..0b0869f1bf03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/client.go @@ -15,7 +15,7 @@ type CommunicationServicesClient struct { } func NewCommunicationServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*CommunicationServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "communicationservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "communicationservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CommunicationServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/id_communicationservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/id_communicationservice.go index 78092b5cbee1..5584261ee116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/id_communicationservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/id_communicationservice.go @@ -42,7 +42,7 @@ func ParseCommunicationServiceID(input string) (*CommunicationServiceId, error) } id := CommunicationServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCommunicationServiceIDInsensitively(input string) (*CommunicationServi } id := CommunicationServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CommunicationServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCommunication", "Microsoft.Communication", "Microsoft.Communication"), resourceids.StaticSegment("staticCommunicationServices", "communicationServices", "communicationServices"), - resourceids.UserSpecifiedSegment("communicationServiceName", "communicationServiceValue"), + resourceids.UserSpecifiedSegment("communicationServiceName", "communicationServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_checknameavailability.go index 14b8081ef64a..6132597e81eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c CommunicationServicesClient) CheckNameAvailability(ctx context.Context, var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_get.go index 2af890681fe8..6bcc549719ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_get.go @@ -45,7 +45,6 @@ func (c CommunicationServicesClient) Get(ctx context.Context, id CommunicationSe var model CommunicationServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_linknotificationhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_linknotificationhub.go index c82376b9d5f2..45cce64a7eac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_linknotificationhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_linknotificationhub.go @@ -50,7 +50,6 @@ func (c CommunicationServicesClient) LinkNotificationHub(ctx context.Context, id var model LinkedNotificationHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_listkeys.go index 3c4c43bf3565..77070fe0c749 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_listkeys.go @@ -46,7 +46,6 @@ func (c CommunicationServicesClient) ListKeys(ctx context.Context, id Communicat var model CommunicationServiceKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_regeneratekey.go index 590cccd116b5..fcf94edb3944 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c CommunicationServicesClient) RegenerateKey(ctx context.Context, id Commu var model CommunicationServiceKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_update.go index c7b62c70f530..6c0de49675ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/method_update.go @@ -49,7 +49,6 @@ func (c CommunicationServicesClient) Update(ctx context.Context, id Communicatio var model CommunicationServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/version.go index b2eb1dc88acf..1a6aab2b4d1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/communicationservices/version.go @@ -1,12 +1,10 @@ package communicationservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/communicationservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/communicationservices/2023-03-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/README.md index 08eddd35707b..fe2e26d3a882 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains` Documentation -The `domains` SDK allows for interaction with the Azure Resource Manager Service `communication` (API Version `2023-03-31`). +The `domains` SDK allows for interaction with Azure Resource Manager `communication` (API Version `2023-03-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") payload := domains.VerificationParameter{ // ... @@ -41,7 +41,7 @@ if err := client.CancelVerificationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") payload := domains.DomainResource{ // ... @@ -58,7 +58,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") payload := domains.VerificationParameter{ // ... @@ -103,7 +103,7 @@ if err := client.InitiateVerificationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := domains.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue") +id := domains.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName") // alternatively `client.ListByEmailServiceResource(ctx, id)` can be used to do batched pagination items, err := client.ListByEmailServiceResourceComplete(ctx, id) @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName", "domainName") payload := domains.UpdateDomainRequestParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/client.go index 2ce822d248f2..59ee394333f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/client.go @@ -15,7 +15,7 @@ type DomainsClient struct { } func NewDomainsClientWithBaseURI(sdkApi sdkEnv.Api) (*DomainsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "domains", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "domains", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DomainsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_domain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_domain.go index 412b08fcdf35..a2a01bf6081c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_domain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_domain.go @@ -44,7 +44,7 @@ func ParseDomainID(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDomainIDInsensitively(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCommunication", "Microsoft.Communication", "Microsoft.Communication"), resourceids.StaticSegment("staticEmailServices", "emailServices", "emailServices"), - resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceValue"), + resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceName"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_emailservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_emailservice.go index 130ee50d6e49..11e80617be61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_emailservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/id_emailservice.go @@ -42,7 +42,7 @@ func ParseEmailServiceID(input string) (*EmailServiceId, error) { } id := EmailServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEmailServiceIDInsensitively(input string) (*EmailServiceId, error) { } id := EmailServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EmailServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCommunication", "Microsoft.Communication", "Microsoft.Communication"), resourceids.StaticSegment("staticEmailServices", "emailServices", "emailServices"), - resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceValue"), + resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/method_get.go index 5aaff4ba93e3..2266c40f1265 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/method_get.go @@ -45,7 +45,6 @@ func (c DomainsClient) Get(ctx context.Context, id DomainId) (result GetOperatio var model DomainResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/version.go index 81aadaf4b3db..c874dd74cf7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/domains/version.go @@ -1,12 +1,10 @@ package domains -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/domains/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/domains/2023-03-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/README.md index 03c9a58a63a0..c9e0913e7060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices` Documentation -The `emailservices` SDK allows for interaction with the Azure Resource Manager Service `communication` (API Version `2023-03-31`). +The `emailservices` SDK allows for interaction with Azure Resource Manager `communication` (API Version `2023-03-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue") +id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName") payload := emailservices.EmailServiceResource{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue") +id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue") +id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceValue") +id := emailservices.NewEmailServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "emailServiceName") payload := emailservices.TaggedResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/client.go index d40737164f4a..5aff393f049c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/client.go @@ -15,7 +15,7 @@ type EmailServicesClient struct { } func NewEmailServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*EmailServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "emailservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "emailservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EmailServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/id_emailservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/id_emailservice.go index 326c60db1a48..36a9fcaa30c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/id_emailservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/id_emailservice.go @@ -42,7 +42,7 @@ func ParseEmailServiceID(input string) (*EmailServiceId, error) { } id := EmailServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEmailServiceIDInsensitively(input string) (*EmailServiceId, error) { } id := EmailServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EmailServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCommunication", "Microsoft.Communication", "Microsoft.Communication"), resourceids.StaticSegment("staticEmailServices", "emailServices", "emailServices"), - resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceValue"), + resourceids.UserSpecifiedSegment("emailServiceName", "emailServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_get.go index 1b62a5594378..c86979c07b31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_get.go @@ -45,7 +45,6 @@ func (c EmailServicesClient) Get(ctx context.Context, id EmailServiceId) (result var model EmailServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_listverifiedexchangeonlinedomains.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_listverifiedexchangeonlinedomains.go index 5be1499ab692..aa6c54135eed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_listverifiedexchangeonlinedomains.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/method_listverifiedexchangeonlinedomains.go @@ -47,7 +47,6 @@ func (c EmailServicesClient) ListVerifiedExchangeOnlineDomains(ctx context.Conte var model []string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/version.go index fc118e2361c7..2ee44b0792d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/communication/2023-03-31/emailservices/version.go @@ -1,12 +1,10 @@ package emailservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/emailservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/emailservices/2023-03-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/README.md index 1828e0ca1365..49861a11e23e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus` Documentation -The `skus` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2021-07-01`). +The `skus` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2021-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/client.go index 90cd04245b3e..8db417218634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/client.go @@ -15,7 +15,7 @@ type SkusClient struct { } func NewSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "skus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "skus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SkusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go index 6ffa0d545435..ce1916af0bc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/method_resourceskuslist.go @@ -41,6 +41,7 @@ func (o ResourceSkusListOperationOptions) ToHeaders() *client.Headers { func (o ResourceSkusListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/version.go index d524fc47acc5..0e9cdccf25c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/skus/version.go @@ -1,12 +1,10 @@ package skus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/skus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/skus/2021-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md index c5c1d5594e4d..98963a199fbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups` Documentation -The `capacityreservationgroups` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-01`). +The `capacityreservationgroups` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue") +id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName") payload := capacityreservationgroups.CapacityReservationGroup{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue") +id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue") +id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName") read, err := client.Get(ctx, id, capacityreservationgroups.DefaultGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue") +id := capacityreservationgroups.NewCapacityReservationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName") payload := capacityreservationgroups.CapacityReservationGroupUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/client.go index 15ced399cbcf..088a08cf1037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/client.go @@ -15,7 +15,7 @@ type CapacityReservationGroupsClient struct { } func NewCapacityReservationGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacityReservationGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capacityreservationgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capacityreservationgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapacityReservationGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/id_capacityreservationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/id_capacityreservationgroup.go index 92a9a9e1ae16..edd8c309cf2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/id_capacityreservationgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/id_capacityreservationgroup.go @@ -42,7 +42,7 @@ func ParseCapacityReservationGroupID(input string) (*CapacityReservationGroupId, } id := CapacityReservationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCapacityReservationGroupIDInsensitively(input string) (*CapacityReserv } id := CapacityReservationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CapacityReservationGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCapacityReservationGroups", "capacityReservationGroups", "capacityReservationGroups"), - resourceids.UserSpecifiedSegment("capacityReservationGroupName", "capacityReservationGroupValue"), + resourceids.UserSpecifiedSegment("capacityReservationGroupName", "capacityReservationGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_createorupdate.go index 35050e649c5f..b2779f3d9df4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_createorupdate.go @@ -50,7 +50,6 @@ func (c CapacityReservationGroupsClient) CreateOrUpdate(ctx context.Context, id var model CapacityReservationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go index 3aa39e689af0..40ec743fa1e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CapacityReservationGroupsClient) Get(ctx context.Context, id CapacityRes var model CapacityReservationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go index e3708c6a167e..471bfa93e535 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go index 810c49f03b47..5a37a32d4ddc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_update.go index 904fe5ef0fe3..0ab0ca706c18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/method_update.go @@ -49,7 +49,6 @@ func (c CapacityReservationGroupsClient) Update(ctx context.Context, id Capacity var model CapacityReservationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/version.go index bbaa2d5fdf5d..f97f5197d534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservationgroups/version.go @@ -1,12 +1,10 @@ package capacityreservationgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capacityreservationgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capacityreservationgroups/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/README.md index cd1bf4b50d71..48e90a51aa52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations` Documentation -The `capacityreservations` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-01`). +The `capacityreservations` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue", "capacityReservationValue") +id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName", "capacityReservationName") payload := capacityreservations.CapacityReservation{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue", "capacityReservationValue") +id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName", "capacityReservationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue", "capacityReservationValue") +id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName", "capacityReservationName") read, err := client.Get(ctx, id, capacityreservations.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupValue", "capacityReservationValue") +id := capacityreservations.NewCapacityReservationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityReservationGroupName", "capacityReservationName") payload := capacityreservations.CapacityReservationUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/client.go index 03bc68e43c53..46407a5fa335 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/client.go @@ -15,7 +15,7 @@ type CapacityReservationsClient struct { } func NewCapacityReservationsClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacityReservationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capacityreservations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capacityreservations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapacityReservationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/id_capacityreservation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/id_capacityreservation.go index 0f72f8f4a700..fc4e90461a03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/id_capacityreservation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/id_capacityreservation.go @@ -44,7 +44,7 @@ func ParseCapacityReservationID(input string) (*CapacityReservationId, error) { } id := CapacityReservationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCapacityReservationIDInsensitively(input string) (*CapacityReservation } id := CapacityReservationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CapacityReservationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCapacityReservationGroups", "capacityReservationGroups", "capacityReservationGroups"), - resourceids.UserSpecifiedSegment("capacityReservationGroupName", "capacityReservationGroupValue"), + resourceids.UserSpecifiedSegment("capacityReservationGroupName", "capacityReservationGroupName"), resourceids.StaticSegment("staticCapacityReservations", "capacityReservations", "capacityReservations"), - resourceids.UserSpecifiedSegment("capacityReservationName", "capacityReservationValue"), + resourceids.UserSpecifiedSegment("capacityReservationName", "capacityReservationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/method_get.go index 745d18a7fc37..b9d6e655ff46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CapacityReservationsClient) Get(ctx context.Context, id CapacityReservat var model CapacityReservation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/version.go index a8f297202141..64b11c31e658 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/capacityreservations/version.go @@ -1,12 +1,10 @@ package capacityreservations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capacityreservations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capacityreservations/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/README.md index d30b877a12dc..14f1e9f83d9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images` Documentation -The `images` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-01`). +The `images` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageValue") +id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageName") payload := images.Image{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageValue") +id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageValue") +id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageName") read, err := client.Get(ctx, id, images.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageValue") +id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "imageName") payload := images.ImageUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/client.go index efdeb17e082f..1732ff320573 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/client.go @@ -15,7 +15,7 @@ type ImagesClient struct { } func NewImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*ImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "images", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "images", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/id_image.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/id_image.go index 8f3964a77c74..1ea813580520 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/id_image.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/id_image.go @@ -42,7 +42,7 @@ func ParseImageID(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseImageIDInsensitively(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "imageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/method_get.go index 73320770a282..e68f9e933bb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId, options GetOperationO var model Image result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/version.go index 6f323f36e343..f92ae5a5a51c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/images/version.go @@ -1,12 +1,10 @@ package images -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/images/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/images/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md index 36bc71c68817..13fc29306eb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups` Documentation -The `proximityplacementgroups` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-01`). +The `proximityplacementgroups` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupValue") +id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupName") payload := proximityplacementgroups.ProximityPlacementGroup{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupValue") +id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupValue") +id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupName") read, err := client.Get(ctx, id, proximityplacementgroups.DefaultGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupValue") +id := proximityplacementgroups.NewProximityPlacementGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "proximityPlacementGroupName") payload := proximityplacementgroups.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/client.go index 2b737bf0f866..1a6cf3adbc33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/client.go @@ -15,7 +15,7 @@ type ProximityPlacementGroupsClient struct { } func NewProximityPlacementGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProximityPlacementGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "proximityplacementgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "proximityplacementgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProximityPlacementGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/id_proximityplacementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/id_proximityplacementgroup.go index 0c0c7a01d306..0f46e6f28448 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/id_proximityplacementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/id_proximityplacementgroup.go @@ -42,7 +42,7 @@ func ParseProximityPlacementGroupID(input string) (*ProximityPlacementGroupId, e } id := ProximityPlacementGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProximityPlacementGroupIDInsensitively(input string) (*ProximityPlacem } id := ProximityPlacementGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProximityPlacementGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticProximityPlacementGroups", "proximityPlacementGroups", "proximityPlacementGroups"), - resourceids.UserSpecifiedSegment("proximityPlacementGroupName", "proximityPlacementGroupValue"), + resourceids.UserSpecifiedSegment("proximityPlacementGroupName", "proximityPlacementGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_createorupdate.go index ec5dbe0e33f3..b52985d0f6cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ProximityPlacementGroupsClient) CreateOrUpdate(ctx context.Context, id P var model ProximityPlacementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go index 3e2a44fe3714..9319acd4f9ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ProximityPlacementGroupsClient) Get(ctx context.Context, id ProximityPla var model ProximityPlacementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_update.go index 2e1e1e45fc6e..dd8d1e3003a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/method_update.go @@ -49,7 +49,6 @@ func (c ProximityPlacementGroupsClient) Update(ctx context.Context, id Proximity var model ProximityPlacementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/version.go index a595529e42bc..078d95e4e782 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-01/proximityplacementgroups/version.go @@ -1,12 +1,10 @@ package proximityplacementgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/proximityplacementgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/proximityplacementgroups/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/README.md index 8a09545bc9ad..94494f5b28f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses` Documentation -The `diskaccesses` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-02`). +The `diskaccesses` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-02`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") payload := diskaccesses.DiskAccess{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue") +id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName", "privateEndpointConnectionName") if err := client.DeleteAPrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteAPrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue") +id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName", "privateEndpointConnectionName") read, err := client.GetAPrivateEndpointConnection(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") // alternatively `client.ListPrivateEndpointConnections(ctx, id)` can be used to do batched pagination items, err := client.ListPrivateEndpointConnectionsComplete(ctx, id) @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue") +id := diskaccesses.NewDiskAccessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName") payload := diskaccesses.DiskAccessUpdate{ // ... @@ -182,7 +182,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessValue", "privateEndpointConnectionValue") +id := diskaccesses.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskAccessName", "privateEndpointConnectionName") payload := diskaccesses.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/client.go index 5f54514c9975..cda295ab0382 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/client.go @@ -15,7 +15,7 @@ type DiskAccessesClient struct { } func NewDiskAccessesClientWithBaseURI(sdkApi sdkEnv.Api) (*DiskAccessesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diskaccesses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diskaccesses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiskAccessesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_diskaccess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_diskaccess.go index 16e931edbe00..fc45a2740bb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_diskaccess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_diskaccess.go @@ -42,7 +42,7 @@ func ParseDiskAccessID(input string) (*DiskAccessId, error) { } id := DiskAccessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDiskAccessIDInsensitively(input string) (*DiskAccessId, error) { } id := DiskAccessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DiskAccessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticDiskAccesses", "diskAccesses", "diskAccesses"), - resourceids.UserSpecifiedSegment("diskAccessName", "diskAccessValue"), + resourceids.UserSpecifiedSegment("diskAccessName", "diskAccessName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_privateendpointconnection.go index 8ee9e9ce467f..f5731dd52ce6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticDiskAccesses", "diskAccesses", "diskAccesses"), - resourceids.UserSpecifiedSegment("diskAccessName", "diskAccessValue"), + resourceids.UserSpecifiedSegment("diskAccessName", "diskAccessName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_get.go index 430959657564..601add75a171 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_get.go @@ -45,7 +45,6 @@ func (c DiskAccessesClient) Get(ctx context.Context, id DiskAccessId) (result Ge var model DiskAccess result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getaprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getaprivateendpointconnection.go index a0494a9e4344..8ae0f646ec2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getaprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getaprivateendpointconnection.go @@ -45,7 +45,6 @@ func (c DiskAccessesClient) GetAPrivateEndpointConnection(ctx context.Context, i var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getprivatelinkresources.go index 5f5fcd215095..9af74e8677fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/method_getprivatelinkresources.go @@ -46,7 +46,6 @@ func (c DiskAccessesClient) GetPrivateLinkResources(ctx context.Context, id Disk var model PrivateLinkResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/version.go index eff0467ba5a2..83ccd2335623 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskaccesses/version.go @@ -1,12 +1,10 @@ package diskaccesses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-02" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diskaccesses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diskaccesses/2022-03-02" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/README.md index 9b58789c5249..67b4a0b70016 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets` Documentation -The `diskencryptionsets` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-02`). +The `diskencryptionsets` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-02`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetName") payload := diskencryptionsets.DiskEncryptionSet{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetName") // alternatively `client.ListAssociatedResources(ctx, id)` can be used to do batched pagination items, err := client.ListAssociatedResourcesComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetValue") +id := commonids.NewDiskEncryptionSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskEncryptionSetName") payload := diskencryptionsets.DiskEncryptionSetUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/client.go index cd5615541d1e..c5deb5876d7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/client.go @@ -15,7 +15,7 @@ type DiskEncryptionSetsClient struct { } func NewDiskEncryptionSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*DiskEncryptionSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diskencryptionsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diskencryptionsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiskEncryptionSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/method_get.go index 47f9c08835dd..441ab4200e0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/method_get.go @@ -46,7 +46,6 @@ func (c DiskEncryptionSetsClient) Get(ctx context.Context, id commonids.DiskEncr var model DiskEncryptionSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/version.go index 172f878f2fb0..4b4785474a7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/diskencryptionsets/version.go @@ -1,12 +1,10 @@ package diskencryptionsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-02" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diskencryptionsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diskencryptionsets/2022-03-02" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/README.md index a6a0ad36fcb3..98cee6d2c501 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-02`). +The `snapshots` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-02`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") payload := snapshots.Snapshot{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") payload := snapshots.GrantAccessData{ // ... @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") if err := client.RevokeAccessThenPoll(ctx, id); err != nil { // handle the error @@ -133,7 +133,7 @@ if err := client.RevokeAccessThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotName") payload := snapshots.SnapshotUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/client.go index 620b7900eab7..678a64470aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/client.go @@ -15,7 +15,7 @@ type SnapshotsClient struct { } func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/id_snapshot.go index 87928ccc3ad4..bf9fd5f4cc8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/id_snapshot.go @@ -42,7 +42,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotName", "snapshotValue"), + resourceids.UserSpecifiedSegment("snapshotName", "snapshotName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/method_get.go index d020538006a5..68b676f0115f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/method_get.go @@ -45,7 +45,6 @@ func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOper var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/version.go index 21604564bc84..9a14900b7235 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-02/snapshots/version.go @@ -1,12 +1,10 @@ package snapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-02" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshots/2022-03-02" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/README.md index 2781ffa4ca9a..f2585010ecb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries` Documentation -The `galleries` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `galleries` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") payload := galleries.Gallery{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") read, err := client.Get(ctx, id, galleries.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") payload := galleries.GalleryUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/client.go index 624f4aaf60a2..d9db0ae13ba2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/client.go @@ -15,7 +15,7 @@ type GalleriesClient struct { } func NewGalleriesClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/method_get.go index b8f3b9be59a3..702aa5617512 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c GalleriesClient) Get(ctx context.Context, id commonids.SharedImageGaller var model Gallery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/version.go index e63648020b4a..a860db9d6847 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleries/version.go @@ -1,12 +1,10 @@ package galleries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleries/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/README.md index 7aba5a0d4aac..be9093723c34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications` Documentation -The `galleryapplications` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `galleryapplications` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue") +id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName") payload := galleryapplications.GalleryApplication{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue") +id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue") +id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue") +id := galleryapplications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName") payload := galleryapplications.GalleryApplicationUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/client.go index efd5159e1851..0131466680d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/client.go @@ -15,7 +15,7 @@ type GalleryApplicationsClient struct { } func NewGalleryApplicationsClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryApplicationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleryapplications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleryapplications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleryApplicationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/id_application.go index 994259e991d8..865683cdda7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/id_application.go @@ -44,7 +44,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "galleryApplicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/method_get.go index 8d1ab31cfd79..600f262b5afe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/method_get.go @@ -45,7 +45,6 @@ func (c GalleryApplicationsClient) Get(ctx context.Context, id ApplicationId) (r var model GalleryApplication result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/version.go index 154468f4750e..ceb1bed380fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplications/version.go @@ -1,12 +1,10 @@ package galleryapplications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleryapplications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleryapplications/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/README.md index bdfc53043fed..3c603b88dbd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions` Documentation -The `galleryapplicationversions` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `galleryapplicationversions` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue") +id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName", "galleryApplicationVersionName") payload := galleryapplicationversions.GalleryApplicationVersion{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue") +id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName", "galleryApplicationVersionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue") +id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName", "galleryApplicationVersionName") read, err := client.Get(ctx, id, galleryapplicationversions.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryapplicationversions.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue") +id := galleryapplicationversions.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName") // alternatively `client.ListByGalleryApplication(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryApplicationComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue") +id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryApplicationName", "galleryApplicationVersionName") payload := galleryapplicationversions.GalleryApplicationVersionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/client.go index 76bda42bb018..c45f09e57f5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/client.go @@ -15,7 +15,7 @@ type GalleryApplicationVersionsClient struct { } func NewGalleryApplicationVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryApplicationVersionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleryapplicationversions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleryapplicationversions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleryApplicationVersionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_application.go index ab968ddd82ad..08704b1b91f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_application.go @@ -44,7 +44,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "galleryApplicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_applicationversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_applicationversion.go index 2c01633613f2..545d234622c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_applicationversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/id_applicationversion.go @@ -46,7 +46,7 @@ func ParseApplicationVersionID(input string) (*ApplicationVersionId, error) { } id := ApplicationVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseApplicationVersionIDInsensitively(input string) (*ApplicationVersionId } id := ApplicationVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ApplicationVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "galleryApplicationName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "galleryApplicationVersionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go index fc382e13c397..84c637d6e223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c GalleryApplicationVersionsClient) Get(ctx context.Context, id Applicatio var model GalleryApplicationVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/version.go index 86f964e49690..b654df03370e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions/version.go @@ -1,12 +1,10 @@ package galleryapplicationversions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleryapplicationversions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleryapplicationversions/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/README.md index 915c0167863b..feb57361f17c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages` Documentation -The `galleryimages` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `galleryimages` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName") payload := galleryimages.GalleryImage{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") // alternatively `client.ListByGallery(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue") +id := galleryimages.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName") payload := galleryimages.GalleryImageUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/client.go index 59b9c848dbd0..cebddc1c307f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/client.go @@ -15,7 +15,7 @@ type GalleryImagesClient struct { } func NewGalleryImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleryimages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleryimages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleryImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/id_galleryimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/id_galleryimage.go index 951c083ad3b2..5883023f4635 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/id_galleryimage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/id_galleryimage.go @@ -44,7 +44,7 @@ func ParseGalleryImageID(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGalleryImageIDInsensitively(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GalleryImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "galleryImageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/method_get.go index 5c642368aac6..730b820ae30d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/method_get.go @@ -45,7 +45,6 @@ func (c GalleryImagesClient) Get(ctx context.Context, id GalleryImageId) (result var model GalleryImage result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/version.go index 2eafb4c12715..6ca29c44294e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimages/version.go @@ -1,12 +1,10 @@ package galleryimages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleryimages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleryimages/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/README.md index 3c2142389ced..a5951ef97de6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions` Documentation -The `galleryimageversions` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `galleryimageversions` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue", "versionValue") +id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName", "galleryImageVersionName") payload := galleryimageversions.GalleryImageVersion{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue", "versionValue") +id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName", "galleryImageVersionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue", "versionValue") +id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName", "galleryImageVersionName") read, err := client.Get(ctx, id, galleryimageversions.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleryimageversions.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue") +id := galleryimageversions.NewGalleryImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName") // alternatively `client.ListByGalleryImage(ctx, id)` can be used to do batched pagination items, err := client.ListByGalleryImageComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "imageValue", "versionValue") +id := galleryimageversions.NewImageVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName", "galleryImageName", "galleryImageVersionName") payload := galleryimageversions.GalleryImageVersionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/client.go index c8bf5a50ca79..6bf3f9b0ebb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/client.go @@ -15,7 +15,7 @@ type GalleryImageVersionsClient struct { } func NewGalleryImageVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryImageVersionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleryimageversions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleryimageversions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleryImageVersionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_galleryimage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_galleryimage.go index 282c39e643a3..fdcea2d752bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_galleryimage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_galleryimage.go @@ -44,7 +44,7 @@ func ParseGalleryImageID(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGalleryImageIDInsensitively(input string) (*GalleryImageId, error) { } id := GalleryImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GalleryImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "galleryImageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_imageversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_imageversion.go index 7f98ea65bd21..d6252874c0c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_imageversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/id_imageversion.go @@ -46,7 +46,7 @@ func ParseImageVersionID(input string) (*ImageVersionId, error) { } id := ImageVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseImageVersionIDInsensitively(input string) (*ImageVersionId, error) { } id := ImageVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ImageVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "galleryImageName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "galleryImageVersionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go index 9638bdc304d0..a018545b29f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c GalleryImageVersionsClient) Get(ctx context.Context, id ImageVersionId, var model GalleryImageVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/version.go index 1a7f8e9a4139..979089db567f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryimageversions/version.go @@ -1,12 +1,10 @@ package galleryimageversions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleryimageversions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleryimageversions/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md index 838eb33378b4..45bf70026d7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate` Documentation -The `gallerysharingupdate` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2022-03-03`). +The `gallerysharingupdate` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2022-03-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue") +id := commonids.NewSharedImageGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryName") payload := gallerysharingupdate.SharingUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/client.go index 1fd6513f8384..b293b189a851 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/client.go @@ -15,7 +15,7 @@ type GallerySharingUpdateClient struct { } func NewGallerySharingUpdateClientWithBaseURI(sdkApi sdkEnv.Api) (*GallerySharingUpdateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "gallerysharingupdate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "gallerysharingupdate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GallerySharingUpdateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/version.go index d122548a0eb3..366818045f76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/gallerysharingupdate/version.go @@ -1,12 +1,10 @@ package gallerysharingupdate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/gallerysharingupdate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/gallerysharingupdate/2022-03-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/README.md index cda7111170c4..d1ac79ce4338 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints` Documentation -The `restorepoints` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2023-03-01`). +The `restorepoints` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") payload := restorepoints.RestorePoint{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") read, err := client.Get(ctx, id, restorepoints.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/client.go index d655ff0350dd..febed9d42f1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/client.go @@ -15,7 +15,7 @@ type RestorePointsClient struct { } func NewRestorePointsClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorePointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "restorepoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "restorepoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RestorePointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/id_restorepoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/id_restorepoint.go index 5ffe0e1d42b2..5644a05c4f45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/id_restorepoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/id_restorepoint.go @@ -44,7 +44,7 @@ func ParseRestorePointID(input string) (*RestorePointId, error) { } id := RestorePointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRestorePointIDInsensitively(input string) (*RestorePointId, error) { } id := RestorePointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RestorePointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticRestorePointCollections", "restorePointCollections", "restorePointCollections"), - resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionValue"), + resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionName"), resourceids.StaticSegment("staticRestorePoints", "restorePoints", "restorePoints"), - resourceids.UserSpecifiedSegment("restorePointName", "restorePointValue"), + resourceids.UserSpecifiedSegment("restorePointName", "restorePointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/method_get.go index 1fb0a01b3f89..ccf229525cb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId, options var model RestorePoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/version.go index 85a0cba59c3d..31293bd408b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/restorepoints/version.go @@ -1,12 +1,10 @@ package restorepoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/restorepoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/restorepoints/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/README.md index 84d5e4aaca1e..c060d567299e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands` Documentation -The `virtualmachineruncommands` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2023-03-01`). +The `virtualmachineruncommands` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "runCommandValue") +id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "runCommandName") payload := virtualmachineruncommands.VirtualMachineRunCommand{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "runCommandValue") +id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "runCommandName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewRunCommandID("12345678-1234-9876-4563-123456789012", "locationValue", "commandIdValue") +id := virtualmachineruncommands.NewRunCommandID("12345678-1234-9876-4563-123456789012", "location", "commandId") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "runCommandValue") +id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "runCommandName") read, err := client.GetByVirtualMachine(ctx, id, virtualmachineruncommands.DefaultGetByVirtualMachineOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := virtualmachineruncommands.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachineruncommands.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") // alternatively `client.ListByVirtualMachine(ctx, id, virtualmachineruncommands.DefaultListByVirtualMachineOperationOptions())` can be used to do batched pagination items, err := client.ListByVirtualMachineComplete(ctx, id, virtualmachineruncommands.DefaultListByVirtualMachineOperationOptions()) @@ -119,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "runCommandValue") +id := virtualmachineruncommands.NewVirtualMachineRunCommandID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "runCommandName") payload := virtualmachineruncommands.VirtualMachineRunCommandUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/client.go index ee453cd014cd..48e134abb29d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/client.go @@ -15,7 +15,7 @@ type VirtualMachineRunCommandsClient struct { } func NewVirtualMachineRunCommandsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineRunCommandsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachineruncommands", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachineruncommands", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineRunCommandsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_location.go index dfd7f350471b..d8733d6665f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_runcommand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_runcommand.go index e2bd6f0a5757..6781693a76fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_runcommand.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_runcommand.go @@ -42,7 +42,7 @@ func ParseRunCommandID(input string) (*RunCommandId, error) { } id := RunCommandId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRunCommandIDInsensitively(input string) (*RunCommandId, error) { } id := RunCommandId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id RunCommandId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticRunCommands", "runCommands", "runCommands"), - resourceids.UserSpecifiedSegment("commandId", "commandIdValue"), + resourceids.UserSpecifiedSegment("commandId", "commandId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachine.go index 8d098c85c3b2..1ee0639845f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachine.go @@ -42,7 +42,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachineruncommand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachineruncommand.go index 1c90363b725e..158a3e80bddc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachineruncommand.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/id_virtualmachineruncommand.go @@ -44,7 +44,7 @@ func ParseVirtualMachineRunCommandID(input string) (*VirtualMachineRunCommandId, } id := VirtualMachineRunCommandId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineRunCommandIDInsensitively(input string) (*VirtualMachine } id := VirtualMachineRunCommandId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineRunCommandId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), resourceids.StaticSegment("staticRunCommands", "runCommands", "runCommands"), - resourceids.UserSpecifiedSegment("runCommandName", "runCommandValue"), + resourceids.UserSpecifiedSegment("runCommandName", "runCommandName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_get.go index 83355bdb92b4..465ea8330ad1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_get.go @@ -45,7 +45,6 @@ func (c VirtualMachineRunCommandsClient) Get(ctx context.Context, id RunCommandI var model RunCommandDocument result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go index c06971e26be1..f603e128c0c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_getbyvirtualmachine.go @@ -34,6 +34,7 @@ func (o GetByVirtualMachineOperationOptions) ToHeaders() *client.Headers { func (o GetByVirtualMachineOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineRunCommandsClient) GetByVirtualMachine(ctx context.Context var model VirtualMachineRunCommand result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go index d3cf5c6296b8..739e09cd17f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/method_listbyvirtualmachine.go @@ -39,6 +39,7 @@ func (o ListByVirtualMachineOperationOptions) ToHeaders() *client.Headers { func (o ListByVirtualMachineOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/version.go index d3edc4e602fd..e568cdeff8bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-03-01/virtualmachineruncommands/version.go @@ -1,12 +1,10 @@ package virtualmachineruncommands -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachineruncommands/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachineruncommands/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/README.md index 0e2b9a7ef186..f9b1038a1f18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks` Documentation -The `disks` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2023-04-02`). +The `disks` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2023-04-02`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") payload := disks.Disk{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") payload := disks.GrantAccessData{ // ... @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") if err := client.RevokeAccessThenPoll(ctx, id); err != nil { // handle the error @@ -133,7 +133,7 @@ if err := client.RevokeAccessThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskValue") +id := commonids.NewManagedDiskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "diskName") payload := disks.DiskUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/client.go index 16f70b8378d0..e5accbb35a3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/client.go @@ -15,7 +15,7 @@ type DisksClient struct { } func NewDisksClientWithBaseURI(sdkApi sdkEnv.Api) (*DisksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "disks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "disks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DisksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/method_get.go index 699a246fb99c..6aee90767550 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/method_get.go @@ -46,7 +46,6 @@ func (c DisksClient) Get(ctx context.Context, id commonids.ManagedDiskId) (resul var model Disk result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/version.go index f678fc2f3522..cfa434a98f05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks/version.go @@ -1,12 +1,10 @@ package disks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-02" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/disks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/disks/2023-04-02" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md index bd2653d73182..1b7a13cc0540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets` Documentation -The `availabilitysets` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `availabilitysets` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetName") payload := availabilitysets.AvailabilitySet{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetName") read, err := client.Get(ctx, id) if err != nil { @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetName") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := commonids.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetName") payload := availabilitysets.AvailabilitySetUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go index 54ef249b4a80..8bc85925a496 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/client.go @@ -15,7 +15,7 @@ type AvailabilitySetsClient struct { } func NewAvailabilitySetsClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailabilitySetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "availabilitysets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "availabilitysets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AvailabilitySetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go index 886d801ae4a3..0fd3b44fe2c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AvailabilitySetsClient) CreateOrUpdate(ctx context.Context, id commonids var model AvailabilitySet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go index 3c2eb94bfb23..5331c2457d7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_get.go @@ -46,7 +46,6 @@ func (c AvailabilitySetsClient) Get(ctx context.Context, id commonids.Availabili var model AvailabilitySet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go index 2e2e96fa6199..d47e9dec5a74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listavailablesizes.go @@ -47,7 +47,6 @@ func (c AvailabilitySetsClient) ListAvailableSizes(ctx context.Context, id commo var model VirtualMachineSizeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go index 6de26336e6c4..44f1ba6844b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go index 3784e4c86043..8eb2093ecd23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/method_update.go @@ -50,7 +50,6 @@ func (c AvailabilitySetsClient) Update(ctx context.Context, id commonids.Availab var model AvailabilitySet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go index ef8fe9081df2..a62c90f16d8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/availabilitysets/version.go @@ -1,12 +1,10 @@ package availabilitysets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/availabilitysets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/availabilitysets/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md index bc83232b572b..30873e36248c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups` Documentation -The `dedicatedhostgroups` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `dedicatedhostgroups` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName") payload := dedicatedhostgroups.DedicatedHostGroup{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName") read, err := client.Get(ctx, id, dedicatedhostgroups.DefaultGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue") +id := commonids.NewDedicatedHostGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName") payload := dedicatedhostgroups.DedicatedHostGroupUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go index e3ac7c014b15..1198b8174626 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/client.go @@ -15,7 +15,7 @@ type DedicatedHostGroupsClient struct { } func NewDedicatedHostGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*DedicatedHostGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dedicatedhostgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dedicatedhostgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DedicatedHostGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go index 7696a3629087..4b26099152dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_createorupdate.go @@ -51,7 +51,6 @@ func (c DedicatedHostGroupsClient) CreateOrUpdate(ctx context.Context, id common var model DedicatedHostGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go index 7c5f6eba0afc..8d31b5806686 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c DedicatedHostGroupsClient) Get(ctx context.Context, id commonids.Dedicat var model DedicatedHostGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go index 518f4006b016..0bb7d2873f72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/method_update.go @@ -50,7 +50,6 @@ func (c DedicatedHostGroupsClient) Update(ctx context.Context, id commonids.Dedi var model DedicatedHostGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go index 618f3a46fec0..978c2b35b6d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhostgroups/version.go @@ -1,12 +1,10 @@ package dedicatedhostgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dedicatedhostgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dedicatedhostgroups/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md index e5b1553c82fe..d30673dc73f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts` Documentation -The `dedicatedhosts` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `dedicatedhosts` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName", "hostName") payload := dedicatedhosts.DedicatedHost{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName", "hostName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName", "hostName") read, err := client.Get(ctx, id, dedicatedhosts.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupValue", "hostValue") +id := commonids.NewDedicatedHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostGroupName", "hostName") payload := dedicatedhosts.DedicatedHostUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go index 0b6463387952..1f5bf6278f73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/client.go @@ -15,7 +15,7 @@ type DedicatedHostsClient struct { } func NewDedicatedHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*DedicatedHostsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dedicatedhosts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dedicatedhosts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DedicatedHostsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go index 63e85f0ce8b0..ae7a03232adf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c DedicatedHostsClient) Get(ctx context.Context, id commonids.DedicatedHos var model DedicatedHost result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go index ff71e375c074..f00e50bd1c8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/dedicatedhosts/version.go @@ -1,12 +1,10 @@ package dedicatedhosts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dedicatedhosts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dedicatedhosts/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/README.md index 27964ff3e62d..caa10dea2e57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections` Documentation -The `restorepointcollections` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `restorepointcollections` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue") +id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName") payload := restorepointcollections.RestorePointCollection{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue") +id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue") +id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName") read, err := client.Get(ctx, id, restorepointcollections.DefaultGetOperationOptions()) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue") +id := restorepointcollections.NewRestorePointCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName") payload := restorepointcollections.RestorePointCollectionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/client.go index 816bae4a3462..543d327725d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/client.go @@ -15,7 +15,7 @@ type RestorePointCollectionsClient struct { } func NewRestorePointCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorePointCollectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "restorepointcollections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "restorepointcollections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RestorePointCollectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/id_restorepointcollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/id_restorepointcollection.go index 5ae5a2198296..91fd3012fb1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/id_restorepointcollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/id_restorepointcollection.go @@ -42,7 +42,7 @@ func ParseRestorePointCollectionID(input string) (*RestorePointCollectionId, err } id := RestorePointCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRestorePointCollectionIDInsensitively(input string) (*RestorePointColl } id := RestorePointCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RestorePointCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticRestorePointCollections", "restorePointCollections", "restorePointCollections"), - resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionValue"), + resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_createorupdate.go index 6837427e5be1..7e9dac346e32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_createorupdate.go @@ -50,7 +50,6 @@ func (c RestorePointCollectionsClient) CreateOrUpdate(ctx context.Context, id Re var model RestorePointCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go index 875f286c7fa8..636041d46c6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RestorePointCollectionsClient) Get(ctx context.Context, id RestorePointC var model RestorePointCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_update.go index 209e763e72dd..3aa41ed97ea4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/method_update.go @@ -49,7 +49,6 @@ func (c RestorePointCollectionsClient) Update(ctx context.Context, id RestorePoi var model RestorePointCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/version.go index 681e25f32a75..4e76ad840745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepointcollections/version.go @@ -1,12 +1,10 @@ package restorepointcollections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/restorepointcollections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/restorepointcollections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/README.md index 90438c912df1..0599ed2680c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints` Documentation -The `restorepoints` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `restorepoints` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") payload := restorepoints.RestorePoint{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionValue", "restorePointValue") +id := restorepoints.NewRestorePointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "restorePointCollectionName", "restorePointName") read, err := client.Get(ctx, id, restorepoints.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/client.go index d655ff0350dd..febed9d42f1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/client.go @@ -15,7 +15,7 @@ type RestorePointsClient struct { } func NewRestorePointsClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorePointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "restorepoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "restorepoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RestorePointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/id_restorepoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/id_restorepoint.go index 5ffe0e1d42b2..5644a05c4f45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/id_restorepoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/id_restorepoint.go @@ -44,7 +44,7 @@ func ParseRestorePointID(input string) (*RestorePointId, error) { } id := RestorePointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRestorePointIDInsensitively(input string) (*RestorePointId, error) { } id := RestorePointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RestorePointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticRestorePointCollections", "restorePointCollections", "restorePointCollections"), - resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionValue"), + resourceids.UserSpecifiedSegment("restorePointCollectionName", "restorePointCollectionName"), resourceids.StaticSegment("staticRestorePoints", "restorePoints", "restorePoints"), - resourceids.UserSpecifiedSegment("restorePointName", "restorePointValue"), + resourceids.UserSpecifiedSegment("restorePointName", "restorePointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/method_get.go index 1fb0a01b3f89..ccf229525cb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RestorePointsClient) Get(ctx context.Context, id RestorePointId, options var model RestorePoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/version.go index 14ad7bf2f4c9..cd941d58762a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/restorepoints/version.go @@ -1,12 +1,10 @@ package restorepoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/restorepoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/restorepoints/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md index 5fb9c4d76728..e918d8f0a326 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys` Documentation -The `sshpublickeys` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `sshpublickeys` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") +id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyName") payload := sshpublickeys.SshPublicKeyResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") +id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") +id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyName") payload := sshpublickeys.SshGenerateKeyPairInputParameters{ // ... @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") +id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyName") read, err := client.Get(ctx, id) if err != nil { @@ -133,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyValue") +id := sshpublickeys.NewSshPublicKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sshPublicKeyName") payload := sshpublickeys.SshPublicKeyUpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go index 60a955db2ead..b1945fe3975a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/client.go @@ -15,7 +15,7 @@ type SshPublicKeysClient struct { } func NewSshPublicKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*SshPublicKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sshpublickeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sshpublickeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SshPublicKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go index 013618b26f30..87079874645b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/id_sshpublickey.go @@ -42,7 +42,7 @@ func ParseSshPublicKeyID(input string) (*SshPublicKeyId, error) { } id := SshPublicKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSshPublicKeyIDInsensitively(input string) (*SshPublicKeyId, error) { } id := SshPublicKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SshPublicKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticSshPublicKeys", "sshPublicKeys", "sshPublicKeys"), - resourceids.UserSpecifiedSegment("sshPublicKeyName", "sshPublicKeyValue"), + resourceids.UserSpecifiedSegment("sshPublicKeyName", "sshPublicKeyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go index 391f084ac1d1..d348c2924e18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_create.go @@ -50,7 +50,6 @@ func (c SshPublicKeysClient) Create(ctx context.Context, id SshPublicKeyId, inpu var model SshPublicKeyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go index c4670a0c4326..d0a6f830ed09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_generatekeypair.go @@ -50,7 +50,6 @@ func (c SshPublicKeysClient) GenerateKeyPair(ctx context.Context, id SshPublicKe var model SshPublicKeyGenerateKeyPairResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go index 3420ec987c9b..dc1c3cbdb029 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_get.go @@ -45,7 +45,6 @@ func (c SshPublicKeysClient) Get(ctx context.Context, id SshPublicKeyId) (result var model SshPublicKeyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go index d697813a6ed9..da0970a3389a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/method_update.go @@ -49,7 +49,6 @@ func (c SshPublicKeysClient) Update(ctx context.Context, id SshPublicKeyId, inpu var model SshPublicKeyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go index 77095cd40ff7..3347cdd192a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/sshpublickeys/version.go @@ -1,12 +1,10 @@ package sshpublickeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sshpublickeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sshpublickeys/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/README.md index 90b97a512d0f..30807e777115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions` Documentation -The `virtualmachineextensions` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachineextensions` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "extensionValue") +id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "vmExtensionName") payload := virtualmachineextensions.VirtualMachineExtension{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "extensionValue") +id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "vmExtensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "extensionValue") +id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "vmExtensionName") read, err := client.Get(ctx, id, virtualmachineextensions.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineextensions.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachineextensions.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.List(ctx, id, virtualmachineextensions.DefaultListOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "extensionValue") +id := virtualmachineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "vmExtensionName") payload := virtualmachineextensions.VirtualMachineExtensionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/client.go index 4adf20a248c9..c049fb742ed3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/client.go @@ -15,7 +15,7 @@ type VirtualMachineExtensionsClient struct { } func NewVirtualMachineExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachineextensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachineextensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_extension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_extension.go index b9ae480741df..25ce4dd99cfd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_extension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_extension.go @@ -44,7 +44,7 @@ func ParseExtensionID(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExtensionIDInsensitively(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "vmExtensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_virtualmachine.go index 50052e6b019a..01381ed6d4b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/id_virtualmachine.go @@ -42,7 +42,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go index 767c337cafb5..081bdecb6fff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineExtensionsClient) Get(ctx context.Context, id ExtensionId, var model VirtualMachineExtension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go index b5541f851164..b495c3fa1d53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/method_list.go @@ -34,6 +34,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineExtensionsClient) List(ctx context.Context, id VirtualMach var model VirtualMachineExtensionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/version.go index 4a8f80505ea7..9a08bdd366fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineextensions/version.go @@ -1,12 +1,10 @@ package virtualmachineextensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachineextensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachineextensions/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/README.md index 714713a6cb69..b846d12324c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages` Documentation -The `virtualmachineimages` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachineimages` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachineimages.NewOfferSkuVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue", "skuValue", "versionValue") +id := virtualmachineimages.NewOfferSkuVersionID("12345678-1234-9876-4563-123456789012", "location", "edgeZone", "publisherName", "offer", "skus", "version") read, err := client.EdgeZoneGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewOfferSkuID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue", "skuValue") +id := virtualmachineimages.NewOfferSkuID("12345678-1234-9876-4563-123456789012", "location", "edgeZone", "publisherName", "offer", "skus") read, err := client.EdgeZoneList(ctx, id, virtualmachineimages.DefaultEdgeZoneListOperationOptions()) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewEdgeZonePublisherID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue") +id := virtualmachineimages.NewEdgeZonePublisherID("12345678-1234-9876-4563-123456789012", "location", "edgeZone", "publisherName") read, err := client.EdgeZoneListOffers(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue") +id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "location", "edgeZone") read, err := client.EdgeZoneListPublishers(ctx, id) if err != nil { @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewVMImageOfferID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue", "publisherValue", "offerValue") +id := virtualmachineimages.NewVMImageOfferID("12345678-1234-9876-4563-123456789012", "location", "edgeZone", "publisherName", "offer") read, err := client.EdgeZoneListSkus(ctx, id) if err != nil { @@ -104,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewSkuVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue", "skuValue", "versionValue") +id := virtualmachineimages.NewSkuVersionID("12345678-1234-9876-4563-123456789012", "location", "publisherName", "offer", "skus", "version") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewSkuID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue", "skuValue") +id := virtualmachineimages.NewSkuID("12345678-1234-9876-4563-123456789012", "location", "publisherName", "offer", "skus") read, err := client.List(ctx, id, virtualmachineimages.DefaultListOperationOptions()) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "locationValue", "edgeZoneValue") +id := virtualmachineimages.NewEdgeZoneID("12345678-1234-9876-4563-123456789012", "location", "edgeZone") // alternatively `client.ListByEdgeZone(ctx, id)` can be used to do batched pagination items, err := client.ListByEdgeZoneComplete(ctx, id) @@ -153,7 +153,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachineimages.NewPublisherID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue") +id := virtualmachineimages.NewPublisherID("12345678-1234-9876-4563-123456789012", "location", "publisherName") read, err := client.ListOffers(ctx, id) if err != nil { @@ -169,7 +169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := virtualmachineimages.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.ListPublishers(ctx, id) if err != nil { @@ -185,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachineimages.NewOfferID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "offerValue") +id := virtualmachineimages.NewOfferID("12345678-1234-9876-4563-123456789012", "location", "publisherName", "offer") read, err := client.ListSkus(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/client.go index 3d9912359f83..05c5fd93d490 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/client.go @@ -15,7 +15,7 @@ type VirtualMachineImagesClient struct { } func NewVirtualMachineImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachineimages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachineimages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezone.go index 689e0be7e568..9decb1ab0749 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezone.go @@ -42,7 +42,7 @@ func ParseEdgeZoneID(input string) (*EdgeZoneId, error) { } id := EdgeZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEdgeZoneIDInsensitively(input string) (*EdgeZoneId, error) { } id := EdgeZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id EdgeZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticEdgeZones", "edgeZones", "edgeZones"), - resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZoneValue"), + resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZone"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezonepublisher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezonepublisher.go index 3838d08d8b80..270c659bca74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezonepublisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_edgezonepublisher.go @@ -44,7 +44,7 @@ func ParseEdgeZonePublisherID(input string) (*EdgeZonePublisherId, error) { } id := EdgeZonePublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEdgeZonePublisherIDInsensitively(input string) (*EdgeZonePublisherId, } id := EdgeZonePublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,11 +119,11 @@ func (id EdgeZonePublisherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticEdgeZones", "edgeZones", "edgeZones"), - resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZoneValue"), + resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZone"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_location.go index 21b22ae91520..964d6fa45df7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offer.go index 40367d1e7b52..0c2104719a19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offer.go @@ -44,7 +44,7 @@ func ParseOfferID(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOfferIDInsensitively(input string) (*OfferId, error) { } id := OfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,13 +119,13 @@ func (id OfferId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offersku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offersku.go index 91e4a1687030..4a79b9d3b5ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offersku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offersku.go @@ -48,7 +48,7 @@ func ParseOfferSkuID(input string) (*OfferSkuId, error) { } id := OfferSkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseOfferSkuIDInsensitively(input string) (*OfferSkuId, error) { } id := OfferSkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -131,17 +131,17 @@ func (id OfferSkuId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticEdgeZones", "edgeZones", "edgeZones"), - resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZoneValue"), + resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZone"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), resourceids.StaticSegment("staticSkus", "skus", "skus"), - resourceids.UserSpecifiedSegment("skuName", "skuValue"), + resourceids.UserSpecifiedSegment("skuName", "skus"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offerskuversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offerskuversion.go index dae6d7f61be7..7dbff8871b4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offerskuversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_offerskuversion.go @@ -50,7 +50,7 @@ func ParseOfferSkuVersionID(input string) (*OfferSkuVersionId, error) { } id := OfferSkuVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -67,7 +67,7 @@ func ParseOfferSkuVersionIDInsensitively(input string) (*OfferSkuVersionId, erro } id := OfferSkuVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -137,19 +137,19 @@ func (id OfferSkuVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticEdgeZones", "edgeZones", "edgeZones"), - resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZoneValue"), + resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZone"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), resourceids.StaticSegment("staticSkus", "skus", "skus"), - resourceids.UserSpecifiedSegment("skuName", "skuValue"), + resourceids.UserSpecifiedSegment("skuName", "skus"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "version"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_publisher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_publisher.go index 509220be1444..f33e882af348 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_publisher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_publisher.go @@ -42,7 +42,7 @@ func ParsePublisherID(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePublisherIDInsensitively(input string) (*PublisherId, error) { } id := PublisherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id PublisherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_sku.go index 935057743f67..e8d0dddeaac9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_sku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_sku.go @@ -46,7 +46,7 @@ func ParseSkuID(input string) (*SkuId, error) { } id := SkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSkuIDInsensitively(input string) (*SkuId, error) { } id := SkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -125,15 +125,15 @@ func (id SkuId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), resourceids.StaticSegment("staticSkus", "skus", "skus"), - resourceids.UserSpecifiedSegment("skuName", "skuValue"), + resourceids.UserSpecifiedSegment("skuName", "skus"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_skuversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_skuversion.go index 2e5d0e9a79c2..94cefe0168e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_skuversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_skuversion.go @@ -48,7 +48,7 @@ func ParseSkuVersionID(input string) (*SkuVersionId, error) { } id := SkuVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSkuVersionIDInsensitively(input string) (*SkuVersionId, error) { } id := SkuVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -131,17 +131,17 @@ func (id SkuVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), resourceids.StaticSegment("staticSkus", "skus", "skus"), - resourceids.UserSpecifiedSegment("skuName", "skuValue"), + resourceids.UserSpecifiedSegment("skuName", "skus"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "version"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_vmimageoffer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_vmimageoffer.go index 22411c949d8f..1d8939e1fdb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_vmimageoffer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/id_vmimageoffer.go @@ -46,7 +46,7 @@ func ParseVMImageOfferID(input string) (*VMImageOfferId, error) { } id := VMImageOfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVMImageOfferIDInsensitively(input string) (*VMImageOfferId, error) { } id := VMImageOfferId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -125,15 +125,15 @@ func (id VMImageOfferId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticEdgeZones", "edgeZones", "edgeZones"), - resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZoneValue"), + resourceids.UserSpecifiedSegment("edgeZoneName", "edgeZone"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisherName"), resourceids.StaticSegment("staticArtifactTypes", "artifactTypes", "artifactTypes"), resourceids.StaticSegment("staticVmImage", "vmImage", "vmImage"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerName", "offerValue"), + resourceids.UserSpecifiedSegment("offerName", "offer"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezoneget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezoneget.go index d08e473ae5ff..aae2bc8618d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezoneget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezoneget.go @@ -45,7 +45,6 @@ func (c VirtualMachineImagesClient) EdgeZoneGet(ctx context.Context, id OfferSku var model VirtualMachineImage result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go index ba17ca15382f..70e0120daa18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelist.go @@ -36,6 +36,7 @@ func (o EdgeZoneListOperationOptions) ToHeaders() *client.Headers { func (o EdgeZoneListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c VirtualMachineImagesClient) EdgeZoneList(ctx context.Context, id OfferSk var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistoffers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistoffers.go index af3bb42c4bad..26cde80c4484 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistoffers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistoffers.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) EdgeZoneListOffers(ctx context.Context, id E var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistpublishers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistpublishers.go index 9aadf470f3bb..2ed9f07750ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistpublishers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistpublishers.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) EdgeZoneListPublishers(ctx context.Context, var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistskus.go index 42a5ccfc0ae2..62b0005efdd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistskus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_edgezonelistskus.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) EdgeZoneListSkus(ctx context.Context, id VMI var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_get.go index 3be37d5f899e..d9357bbb7dc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_get.go @@ -45,7 +45,6 @@ func (c VirtualMachineImagesClient) Get(ctx context.Context, id SkuVersionId) (r var model VirtualMachineImage result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go index 2989d0c443ab..2d6df70703d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_list.go @@ -36,6 +36,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c VirtualMachineImagesClient) List(ctx context.Context, id SkuId, options var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listoffers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listoffers.go index edba237d0ec6..b44d982eaafc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listoffers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listoffers.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) ListOffers(ctx context.Context, id Publisher var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listpublishers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listpublishers.go index 0ff57ba69ee7..0251298dfe5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listpublishers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listpublishers.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) ListPublishers(ctx context.Context, id Locat var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listskus.go index 2613d661514d..1a3ee4796501 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listskus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/method_listskus.go @@ -46,7 +46,6 @@ func (c VirtualMachineImagesClient) ListSkus(ctx context.Context, id OfferId) (r var model []VirtualMachineImageResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/version.go index b64bf9f2a8f5..ac85fda9d864 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachineimages/version.go @@ -1,12 +1,10 @@ package virtualmachineimages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachineimages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachineimages/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md index ec267ed59a20..4cfaf8f5bff9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines` Documentation -The `virtualmachines` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachines` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.AssessPatchesThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AssessPatchesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.AttachDetachDataDisksRequest{ // ... @@ -54,7 +54,7 @@ if err := client.AttachDetachDataDisksThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.VirtualMachineCaptureParameters{ // ... @@ -71,7 +71,7 @@ if err := client.CaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.ConvertToManagedDisksThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.ConvertToManagedDisksThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.VirtualMachine{ // ... @@ -100,7 +100,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualmachines.Defaul ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.DeallocateThenPoll(ctx, id, virtualmachines.DefaultDeallocateOperationOptions()); err != nil { // handle the error @@ -112,7 +112,7 @@ if err := client.DeallocateThenPoll(ctx, id, virtualmachines.DefaultDeallocateOp ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.DeleteThenPoll(ctx, id, virtualmachines.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -124,7 +124,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachines.DefaultDeleteOperationO ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.Generalize(ctx, id) if err != nil { @@ -140,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.Get(ctx, id, virtualmachines.DefaultGetOperationOptions()) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.VirtualMachineInstallPatchesParameters{ // ... @@ -173,7 +173,7 @@ if err := client.InstallPatchesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.InstanceView(ctx, id) if err != nil { @@ -223,7 +223,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.ListAvailableSizes(ctx, id) if err != nil { @@ -239,7 +239,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := virtualmachines.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListByLocation(ctx, id)` can be used to do batched pagination items, err := client.ListByLocationComplete(ctx, id) @@ -256,7 +256,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.PerformMaintenanceThenPoll(ctx, id); err != nil { // handle the error @@ -268,7 +268,7 @@ if err := client.PerformMaintenanceThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.PowerOffThenPoll(ctx, id, virtualmachines.DefaultPowerOffOperationOptions()); err != nil { // handle the error @@ -280,7 +280,7 @@ if err := client.PowerOffThenPoll(ctx, id, virtualmachines.DefaultPowerOffOperat ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.ReapplyThenPoll(ctx, id); err != nil { // handle the error @@ -292,7 +292,7 @@ if err := client.ReapplyThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.RedeployThenPoll(ctx, id); err != nil { // handle the error @@ -304,7 +304,7 @@ if err := client.RedeployThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.VirtualMachineReimageParameters{ // ... @@ -321,7 +321,7 @@ if err := client.ReimageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -333,7 +333,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.RetrieveBootDiagnosticsData(ctx, id, virtualmachines.DefaultRetrieveBootDiagnosticsDataOperationOptions()) if err != nil { @@ -349,7 +349,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.RunCommandInput{ // ... @@ -366,7 +366,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.SimulateEviction(ctx, id) if err != nil { @@ -382,7 +382,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -394,7 +394,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") payload := virtualmachines.VirtualMachineUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go index 29f57e611e83..511271064362 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/client.go @@ -15,7 +15,7 @@ type VirtualMachinesClient struct { } func NewVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go index 59cc84391522..5e0c32a8f32a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go index 0a676811b3a8..69a7bb18c411 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/id_virtualmachine.go @@ -42,7 +42,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go index 120d8edf9af2..cce467977a6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go index ae7ee7a0d2bd..c962480de36d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_deallocate.go @@ -36,6 +36,7 @@ func (o DeallocateOperationOptions) ToHeaders() *client.Headers { func (o DeallocateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go index 7809910a33a5..e2d145391fa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go index ca0e72e7b048..610b8728f944 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt var model VirtualMachine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go index 629b0f652672..735f254f665c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_instanceview.go @@ -46,7 +46,6 @@ func (c VirtualMachinesClient) InstanceView(ctx context.Context, id VirtualMachi var model VirtualMachineInstanceView result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go index 824fde5beb23..64092df3b3ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go index 30caaba2f042..c5abe6abb74e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listall.go @@ -42,6 +42,7 @@ func (o ListAllOperationOptions) ToHeaders() *client.Headers { func (o ListAllOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go index ade9d529c86a..f4ad290ed8b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_listavailablesizes.go @@ -46,7 +46,6 @@ func (c VirtualMachinesClient) ListAvailableSizes(ctx context.Context, id Virtua var model VirtualMachineSizeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go index cd9da9535833..f5c1b75d289c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_poweroff.go @@ -36,6 +36,7 @@ func (o PowerOffOperationOptions) ToHeaders() *client.Headers { func (o PowerOffOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go index ef782af5c0a9..cf8035af4645 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_retrievebootdiagnosticsdata.go @@ -34,6 +34,7 @@ func (o RetrieveBootDiagnosticsDataOperationOptions) ToHeaders() *client.Headers func (o RetrieveBootDiagnosticsDataOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachinesClient) RetrieveBootDiagnosticsData(ctx context.Context, var model RetrieveBootDiagnosticsDataResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go index 89a435a15669..96f8c0490ea0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/method_update.go @@ -43,6 +43,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go index 9540ddcd820f..b5dc809faec6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachines/version.go @@ -1,12 +1,10 @@ package virtualmachines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachines/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/README.md index a9bda78667e9..df7b5b12daf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions` Documentation -The `virtualmachinescalesetextensions` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachinescalesetextensions` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue") +id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "vmssExtensionName") payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtension{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue") +id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "vmssExtensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue") +id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "vmssExtensionName") read, err := client.Get(ctx, id, virtualmachinescalesetextensions.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue") +id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "vmssExtensionName") payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtensionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/client.go index 9555c0add8c9..8b2f0aa3f610 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/client.go @@ -15,7 +15,7 @@ type VirtualMachineScaleSetExtensionsClient struct { } func NewVirtualMachineScaleSetExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineScaleSetExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachinescalesetextensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachinescalesetextensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineScaleSetExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescaleset.go index e52fb99c34f8..d9ab06b3c906 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescalesetextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescalesetextension.go index eaeca4e66773..e5f4dfee0c50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescalesetextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/id_virtualmachinescalesetextension.go @@ -44,7 +44,7 @@ func ParseVirtualMachineScaleSetExtensionID(input string) (*VirtualMachineScaleS } id := VirtualMachineScaleSetExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineScaleSetExtensionIDInsensitively(input string) (*Virtual } id := VirtualMachineScaleSetExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineScaleSetExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "vmssExtensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go index 805e9846e65f..58bd9a837289 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineScaleSetExtensionsClient) Get(ctx context.Context, id Virt var model VirtualMachineScaleSetExtension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/version.go index e42772350ccf..3135297f14a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetextensions/version.go @@ -1,12 +1,10 @@ package virtualmachinescalesetextensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachinescalesetextensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachinescalesetextensions/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/README.md index 645948bde64a..7455846f0546 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades` Documentation -The `virtualmachinescalesetrollingupgrades` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachinescalesetrollingupgrades` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") if err := client.CancelThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CancelThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") read, err := client.GetLatest(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") if err := client.StartExtensionUpgradeThenPoll(ctx, id); err != nil { // handle the error @@ -64,7 +64,7 @@ if err := client.StartExtensionUpgradeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetrollingupgrades.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") if err := client.StartOSUpgradeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/client.go index fb39e655c939..2bc32c3839f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/client.go @@ -15,7 +15,7 @@ type VirtualMachineScaleSetRollingUpgradesClient struct { } func NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineScaleSetRollingUpgradesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachinescalesetrollingupgrades", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachinescalesetrollingupgrades", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineScaleSetRollingUpgradesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/id_virtualmachinescaleset.go index 73ab65cf8ad7..1b3d32bde5b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/method_getlatest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/method_getlatest.go index e9dda93541ef..647dbb00e177 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/method_getlatest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/method_getlatest.go @@ -46,7 +46,6 @@ func (c VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context.Conte var model RollingUpgradeStatusInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/version.go index c7ad2716033f..f07388f5a7b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetrollingupgrades/version.go @@ -1,12 +1,10 @@ package virtualmachinescalesetrollingupgrades -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachinescalesetrollingupgrades/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachinescalesetrollingupgrades/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/README.md index 36f56c4ee409..fa15b0d04315 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms` Documentation -The `virtualmachinescalesetvms` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-03-01`). +The `virtualmachinescalesetvms` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.ApproveRollingUpgradeThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.ApproveRollingUpgradeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") payload := virtualmachinescalesetvms.AttachDetachDataDisksRequest{ // ... @@ -53,7 +53,7 @@ if err := client.AttachDetachDataDisksThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.DeallocateThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DeallocateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.DeleteThenPoll(ctx, id, virtualmachinescalesetvms.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -77,7 +77,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachinescalesetvms.DefaultDelete ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") read, err := client.Get(ctx, id, virtualmachinescalesetvms.DefaultGetOperationOptions()) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") read, err := client.GetInstanceView(ctx, id) if err != nil { @@ -109,7 +109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.List(ctx, id, virtualmachinescalesetvms.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualmachinescalesetvms.DefaultListOperationOptions()) @@ -126,7 +126,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.PerformMaintenanceThenPoll(ctx, id); err != nil { // handle the error @@ -138,7 +138,7 @@ if err := client.PerformMaintenanceThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.PowerOffThenPoll(ctx, id, virtualmachinescalesetvms.DefaultPowerOffOperationOptions()); err != nil { // handle the error @@ -150,7 +150,7 @@ if err := client.PowerOffThenPoll(ctx, id, virtualmachinescalesetvms.DefaultPowe ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.RedeployThenPoll(ctx, id); err != nil { // handle the error @@ -162,7 +162,7 @@ if err := client.RedeployThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") payload := virtualmachinescalesetvms.VirtualMachineScaleSetVMReimageParameters{ // ... @@ -179,7 +179,7 @@ if err := client.ReimageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.ReimageAllThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.ReimageAllThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") read, err := client.RetrieveBootDiagnosticsData(ctx, id, virtualmachinescalesetvms.DefaultRetrieveBootDiagnosticsDataOperationOptions()) if err != nil { @@ -219,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") payload := virtualmachinescalesetvms.RunCommandInput{ // ... @@ -236,7 +236,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") read, err := client.SimulateEviction(ctx, id) if err != nil { @@ -252,7 +252,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -264,7 +264,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "instanceIdValue") +id := virtualmachinescalesetvms.NewVirtualMachineScaleSetVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "instanceId") payload := virtualmachinescalesetvms.VirtualMachineScaleSetVM{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/client.go index d86b351fd864..61a216f26bfc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/client.go @@ -15,7 +15,7 @@ type VirtualMachineScaleSetVMsClient struct { } func NewVirtualMachineScaleSetVMsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineScaleSetVMsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachinescalesetvms", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachinescalesetvms", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineScaleSetVMsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescaleset.go index 833491565682..4a4bde1ec788 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescalesetvirtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescalesetvirtualmachine.go index 5e77406f79cc..dd2751e73aca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescalesetvirtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/id_virtualmachinescalesetvirtualmachine.go @@ -44,7 +44,7 @@ func ParseVirtualMachineScaleSetVirtualMachineID(input string) (*VirtualMachineS } id := VirtualMachineScaleSetVirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineScaleSetVirtualMachineIDInsensitively(input string) (*Vi } id := VirtualMachineScaleSetVirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineScaleSetVirtualMachineId) Segments() []resourceids.Segmen resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go index 70ab6260f498..2c4fdb5bb39d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go index 54f1a9f63ea1..48056f0eab3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineScaleSetVMsClient) Get(ctx context.Context, id VirtualMach var model VirtualMachineScaleSetVM result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_getinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_getinstanceview.go index 67764259f286..d2e27a1295d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_getinstanceview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_getinstanceview.go @@ -46,7 +46,6 @@ func (c VirtualMachineScaleSetVMsClient) GetInstanceView(ctx context.Context, id var model VirtualMachineScaleSetVMInstanceView result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go index 258289096291..bb09ed5d71a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go index 1b450b80bfa4..cbe987a9165b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_poweroff.go @@ -36,6 +36,7 @@ func (o PowerOffOperationOptions) ToHeaders() *client.Headers { func (o PowerOffOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go index 29eb32435ddf..a93248b30429 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_retrievebootdiagnosticsdata.go @@ -34,6 +34,7 @@ func (o RetrieveBootDiagnosticsDataOperationOptions) ToHeaders() *client.Headers func (o RetrieveBootDiagnosticsDataOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineScaleSetVMsClient) RetrieveBootDiagnosticsData(ctx context var model RetrieveBootDiagnosticsDataResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go index c63bdf8b2cd7..e08fda7ace45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/method_update.go @@ -43,6 +43,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/version.go index 1232f8d82c65..a90109a15b02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-03-01/virtualmachinescalesetvms/version.go @@ -1,12 +1,10 @@ package virtualmachinescalesetvms -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachinescalesetvms/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachinescalesetvms/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/README.md index d801bd3293b3..96977b359221 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets` Documentation -The `virtualmachinescalesets` SDK allows for interaction with the Azure Resource Manager Service `compute` (API Version `2024-07-01`). +The `virtualmachinescalesets` SDK allows for interaction with Azure Resource Manager `compute` (API Version `2024-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -42,7 +42,7 @@ if err := client.ApproveRollingUpgradeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VMScaleSetConvertToSinglePlacementGroupInput{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSet{ // ... @@ -80,7 +80,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualmachinescaleset ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -97,7 +97,7 @@ if err := client.DeallocateThenPoll(ctx, id, payload, virtualmachinescalesets.De ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") if err := client.DeleteThenPoll(ctx, id, virtualmachinescalesets.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -109,7 +109,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachinescalesets.DefaultDeleteOp ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceRequiredIDs{ // ... @@ -126,7 +126,7 @@ if err := client.DeleteInstancesThenPoll(ctx, id, payload, virtualmachinescalese ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") read, err := client.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(ctx, id, virtualmachinescalesets.DefaultForceRecoveryServiceFabricPlatformUpdateDomainWalkOperationOptions()) if err != nil { @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") read, err := client.Get(ctx, id, virtualmachinescalesets.DefaultGetOperationOptions()) if err != nil { @@ -158,7 +158,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") read, err := client.GetInstanceView(ctx, id) if err != nil { @@ -174,7 +174,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.GetOSUpgradeHistory(ctx, id)` can be used to do batched pagination items, err := client.GetOSUpgradeHistoryComplete(ctx, id) @@ -225,7 +225,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := virtualmachinescalesets.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListByLocation(ctx, id)` can be used to do batched pagination items, err := client.ListByLocationComplete(ctx, id) @@ -242,7 +242,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.ListSkus(ctx, id)` can be used to do batched pagination items, err := client.ListSkusComplete(ctx, id) @@ -259,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -276,7 +276,7 @@ if err := client.PerformMaintenanceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -293,7 +293,7 @@ if err := client.PowerOffThenPoll(ctx, id, payload, virtualmachinescalesets.Defa ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") if err := client.ReapplyThenPoll(ctx, id); err != nil { // handle the error @@ -305,7 +305,7 @@ if err := client.ReapplyThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -322,7 +322,7 @@ if err := client.RedeployThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetReimageParameters{ // ... @@ -339,7 +339,7 @@ if err := client.ReimageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -356,7 +356,7 @@ if err := client.ReimageAllThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -373,7 +373,7 @@ if err := client.RestartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.OrchestrationServiceStateInput{ // ... @@ -390,7 +390,7 @@ if err := client.SetOrchestrationServiceStateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceIDs{ // ... @@ -407,7 +407,7 @@ if err := client.StartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetUpdate{ // ... @@ -424,7 +424,7 @@ if err := client.UpdateThenPoll(ctx, id, payload, virtualmachinescalesets.Defaul ```go ctx := context.TODO() -id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := virtualmachinescalesets.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") payload := virtualmachinescalesets.VirtualMachineScaleSetVMInstanceRequiredIDs{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/client.go index a08ba8c1d817..0548a7aec676 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/client.go @@ -15,7 +15,7 @@ type VirtualMachineScaleSetsClient struct { } func NewVirtualMachineScaleSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineScaleSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachinescalesets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachinescalesets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineScaleSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_location.go index a674916111d5..2ecdd1311939 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_virtualmachinescaleset.go index d4542bba1b5d..fe53f8c0e325 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_createorupdate.go index 75e8e97e63ff..ce61579304c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deallocate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deallocate.go index 451106300483..1965e606c516 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deallocate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deallocate.go @@ -36,6 +36,7 @@ func (o DeallocateOperationOptions) ToHeaders() *client.Headers { func (o DeallocateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_delete.go index 154aacdb1ce8..40c53c88532b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deleteinstances.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deleteinstances.go index 375063255ba0..ae1057f79fa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deleteinstances.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_deleteinstances.go @@ -36,6 +36,7 @@ func (o DeleteInstancesOperationOptions) ToHeaders() *client.Headers { func (o DeleteInstancesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go index 9e2117d6a63d..a49b926c0582 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_forcerecoveryservicefabricplatformupdatedomainwalk.go @@ -36,6 +36,7 @@ func (o ForceRecoveryServiceFabricPlatformUpdateDomainWalkOperationOptions) ToHe func (o ForceRecoveryServiceFabricPlatformUpdateDomainWalkOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c VirtualMachineScaleSetsClient) ForceRecoveryServiceFabricPlatformUpdateD var model RecoveryWalkResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_get.go index 1a1c806d33a0..4ade8c757e15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachineScaleSetsClient) Get(ctx context.Context, id VirtualMachin var model VirtualMachineScaleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_getinstanceview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_getinstanceview.go index b79b350b676c..4e409bb9b3b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_getinstanceview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_getinstanceview.go @@ -46,7 +46,6 @@ func (c VirtualMachineScaleSetsClient) GetInstanceView(ctx context.Context, id V var model VirtualMachineScaleSetInstanceView result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_poweroff.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_poweroff.go index 3b0e524f55b7..0b805fc3b555 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_poweroff.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_poweroff.go @@ -36,6 +36,7 @@ func (o PowerOffOperationOptions) ToHeaders() *client.Headers { func (o PowerOffOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_update.go index 4a22fdf65cfc..f508f4deebf8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/method_update.go @@ -43,6 +43,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/version.go index 1cd085583d29..2d49a76bf5a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/compute/2024-07-01/virtualmachinescalesets/version.go @@ -1,12 +1,10 @@ package virtualmachinescalesets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachinescalesets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachinescalesets/2024-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md index 71869deb5445..4b86ca693e48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger` Documentation -The `confidentialledger` SDK allows for interaction with the Azure Resource Manager Service `confidentialledger` (API Version `2022-05-13`). +The `confidentialledger` SDK allows for interaction with Azure Resource Manager `confidentialledger` (API Version `2022-05-13`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerValue") +id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerName") payload := confidentialledger.ConfidentialLedger{ // ... @@ -42,7 +42,7 @@ if err := client.LedgerCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerValue") +id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerName") if err := client.LedgerDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.LedgerDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerValue") +id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerName") read, err := client.LedgerGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerValue") +id := confidentialledger.NewLedgerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ledgerName") payload := confidentialledger.ConfidentialLedger{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/client.go index 7bcdb08b1062..fce0c86160be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/client.go @@ -15,7 +15,7 @@ type ConfidentialLedgerClient struct { } func NewConfidentialLedgerClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfidentialLedgerClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "confidentialledger", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "confidentialledger", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfidentialLedgerClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/id_ledger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/id_ledger.go index 91e8f79a51cd..7e6ac05b1779 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/id_ledger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/id_ledger.go @@ -42,7 +42,7 @@ func ParseLedgerID(input string) (*LedgerId, error) { } id := LedgerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLedgerIDInsensitively(input string) (*LedgerId, error) { } id := LedgerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LedgerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftConfidentialLedger", "Microsoft.ConfidentialLedger", "Microsoft.ConfidentialLedger"), resourceids.StaticSegment("staticLedgers", "ledgers", "ledgers"), - resourceids.UserSpecifiedSegment("ledgerName", "ledgerValue"), + resourceids.UserSpecifiedSegment("ledgerName", "ledgerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerget.go index 35e2ca0d5e98..bce71ae3ee07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerget.go @@ -45,7 +45,6 @@ func (c ConfidentialLedgerClient) LedgerGet(ctx context.Context, id LedgerId) (r var model ConfidentialLedger result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go index 01152022317c..e99e3026b91a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbyresourcegroup.go @@ -40,6 +40,7 @@ func (o LedgerListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o LedgerListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go index a74fc3e73a6b..5151a16bcc03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/method_ledgerlistbysubscription.go @@ -40,6 +40,7 @@ func (o LedgerListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o LedgerListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/version.go index 2528fa3818cb..2efc1988852b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/confidentialledger/2022-05-13/confidentialledger/version.go @@ -1,12 +1,10 @@ package confidentialledger -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-13" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/confidentialledger/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/confidentialledger/2022-05-13" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/README.md index 47665ca63207..0f82aeb9de9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets` Documentation -The `budgets` SDK allows for interaction with the Azure Resource Manager Service `consumption` (API Version `2019-10-01`). +The `budgets` SDK allows for interaction with Azure Resource Manager `consumption` (API Version `2019-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetValue") +id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetName") payload := budgets.Budget{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetValue") +id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetValue") +id := budgets.NewScopedBudgetID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "budgetName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/client.go index ad5bfc858571..57e800a930c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/client.go @@ -15,7 +15,7 @@ type BudgetsClient struct { } func NewBudgetsClientWithBaseURI(sdkApi sdkEnv.Api) (*BudgetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "budgets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "budgets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BudgetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/id_scopedbudget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/id_scopedbudget.go index a7a18b1cd30d..8ac1238c12b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/id_scopedbudget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/id_scopedbudget.go @@ -40,7 +40,7 @@ func ParseScopedBudgetID(input string) (*ScopedBudgetId, error) { } id := ScopedBudgetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedBudgetIDInsensitively(input string) (*ScopedBudgetId, error) { } id := ScopedBudgetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedBudgetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftConsumption", "Microsoft.Consumption", "Microsoft.Consumption"), resourceids.StaticSegment("staticBudgets", "budgets", "budgets"), - resourceids.UserSpecifiedSegment("budgetName", "budgetValue"), + resourceids.UserSpecifiedSegment("budgetName", "budgetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_createorupdate.go index efacada91d49..9ea587d4ceac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_createorupdate.go @@ -50,7 +50,6 @@ func (c BudgetsClient) CreateOrUpdate(ctx context.Context, id ScopedBudgetId, in var model Budget result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_get.go index d597fcc76e5e..22197d5789df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/method_get.go @@ -45,7 +45,6 @@ func (c BudgetsClient) Get(ctx context.Context, id ScopedBudgetId) (result GetOp var model Budget result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/version.go index 4e582168a9f1..2b2e5b23fff9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/consumption/2019-10-01/budgets/version.go @@ -1,12 +1,10 @@ package budgets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/budgets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/budgets/2019-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md index 43ed8b751ef7..598629c26cb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates` Documentation -The `certificates` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `certificates` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "certificateName") payload := certificates.Certificate{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "certificateName") read, err := client.ConnectedEnvironmentsCertificatesDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "certificateName") read, err := client.ConnectedEnvironmentsCertificatesGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue") +id := certificates.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName") // alternatively `client.ConnectedEnvironmentsCertificatesList(ctx, id)` can be used to do batched pagination items, err := client.ConnectedEnvironmentsCertificatesListComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "certificateValue") +id := certificates.NewConnectedEnvironmentCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "certificateName") payload := certificates.CertificatePatch{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := certificates.Certificate{ // ... @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.Delete(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.Get(ctx, id) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificates.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := certificates.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -185,7 +185,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := certificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := certificates.CertificatePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go index 7248daeda342..f045f1b92657 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/client.go @@ -15,7 +15,7 @@ type CertificatesClient struct { } func NewCertificatesClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go index 1f3c85bd29ae..49eb93a7dd22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go index 4147c3edea2b..7043d3dc6e68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironment.go @@ -42,7 +42,7 @@ func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error) } id := ConnectedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironme } id := ConnectedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), - resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go index d066a1f6d089..e1333d52532f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_connectedenvironmentcertificate.go @@ -44,7 +44,7 @@ func ParseConnectedEnvironmentCertificateID(input string) (*ConnectedEnvironment } id := ConnectedEnvironmentCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectedEnvironmentCertificateIDInsensitively(input string) (*Connect } id := ConnectedEnvironmentCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectedEnvironmentCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), - resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go index 5f5f0986d2a6..bdca1112a93f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/id_managedenvironment.go @@ -42,7 +42,7 @@ func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error) { } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate.go index 08223ec1f7e3..2af96101d74f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatescreateorupdate.go @@ -49,7 +49,6 @@ func (c CertificatesClient) ConnectedEnvironmentsCertificatesCreateOrUpdate(ctx var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget.go index 46ad518db876..9f597b7931b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesget.go @@ -45,7 +45,6 @@ func (c CertificatesClient) ConnectedEnvironmentsCertificatesGet(ctx context.Con var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate.go index 65a14b672c39..e0a4b47cbf2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_connectedenvironmentscertificatesupdate.go @@ -49,7 +49,6 @@ func (c CertificatesClient) ConnectedEnvironmentsCertificatesUpdate(ctx context. var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate.go index dd5b06bc2501..ef3ac53ed392 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_createorupdate.go @@ -49,7 +49,6 @@ func (c CertificatesClient) CreateOrUpdate(ctx context.Context, id CertificateId var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get.go index 339126ffd6a2..50817117dad3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_get.go @@ -45,7 +45,6 @@ func (c CertificatesClient) Get(ctx context.Context, id CertificateId) (result G var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update.go index fa22e1ab8ac6..a7cab2abe049 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/method_update.go @@ -49,7 +49,6 @@ func (c CertificatesClient) Update(ctx context.Context, id CertificateId, input var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go index 99d93672900e..fb0b1c445b11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/certificates/version.go @@ -1,12 +1,10 @@ package certificates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificates/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md index a0549f0cd78f..80a05d80f21c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps` Documentation -The `containerapps` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `containerapps` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") payload := containerapps.ContainerApp{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerapps.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "detectorValue") +id := containerapps.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "detectorName") read, err := client.DiagnosticsGetDetector(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewRevisionsApiRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "revisionValue") +id := containerapps.NewRevisionsApiRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") read, err := client.DiagnosticsGetRevision(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") read, err := client.DiagnosticsGetRoot(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") // alternatively `client.DiagnosticsListDetectors(ctx, id)` can be used to do batched pagination items, err := client.DiagnosticsListDetectorsComplete(ctx, id) @@ -119,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") // alternatively `client.DiagnosticsListRevisions(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions())` can be used to do batched pagination items, err := client.DiagnosticsListRevisionsComplete(ctx, id, containerapps.DefaultDiagnosticsListRevisionsOperationOptions()) @@ -136,7 +136,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") read, err := client.Get(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") read, err := client.GetAuthToken(ctx, id) if err != nil { @@ -202,7 +202,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") read, err := client.ListCustomHostNameAnalysis(ctx, id, containerapps.DefaultListCustomHostNameAnalysisOperationOptions()) if err != nil { @@ -218,7 +218,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -234,7 +234,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -246,7 +246,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -258,7 +258,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerapps.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") payload := containerapps.ContainerApp{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go index 65599ae354f8..aed3cca9efbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/client.go @@ -15,7 +15,7 @@ type ContainerAppsClient struct { } func NewContainerAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerAppsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "containerapps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "containerapps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContainerAppsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go index bfd98ec05550..fcbbf0087d66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_containerapp.go @@ -42,7 +42,7 @@ func ParseContainerAppID(input string) (*ContainerAppId, error) { } id := ContainerAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error) { } id := ContainerAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ContainerAppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppValue"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go index e887d9bbf5a2..0ce38d3ca620 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_detector.go @@ -44,7 +44,7 @@ func ParseDetectorID(input string) (*DetectorId, error) { } id := DetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDetectorIDInsensitively(input string) (*DetectorId, error) { } id := DetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DetectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppValue"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), - resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + resourceids.UserSpecifiedSegment("detectorName", "detectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go index cf7fcd3b4e9d..6597dd0e46a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/id_revisionsapirevision.go @@ -44,7 +44,7 @@ func ParseRevisionsApiRevisionID(input string) (*RevisionsApiRevisionId, error) } id := RevisionsApiRevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRevisionsApiRevisionIDInsensitively(input string) (*RevisionsApiRevisi } id := RevisionsApiRevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id RevisionsApiRevisionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppValue"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), resourceids.StaticSegment("staticDetectorProperties", "detectorProperties", "detectorProperties"), resourceids.StaticSegment("staticRevisionsApi", "revisionsApi", "revisionsApi"), resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), - resourceids.UserSpecifiedSegment("revisionName", "revisionValue"), + resourceids.UserSpecifiedSegment("revisionName", "revisionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go index adbefc98d504..f298d8ffc48a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetdetector.go @@ -45,7 +45,6 @@ func (c ContainerAppsClient) DiagnosticsGetDetector(ctx context.Context, id Dete var model Diagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go index 376c7031e069..968db6baceb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetrevision.go @@ -45,7 +45,6 @@ func (c ContainerAppsClient) DiagnosticsGetRevision(ctx context.Context, id Revi var model Revision result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go index f21a74342523..8c9904e53952 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticsgetroot.go @@ -46,7 +46,6 @@ func (c ContainerAppsClient) DiagnosticsGetRoot(ctx context.Context, id Containe var model ContainerApp result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go index 996b89e3a7c0..6d8d5523fbd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_diagnosticslistrevisions.go @@ -39,6 +39,7 @@ func (o DiagnosticsListRevisionsOperationOptions) ToHeaders() *client.Headers { func (o DiagnosticsListRevisionsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go index 1cf49840634d..b17e455e9232 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_get.go @@ -45,7 +45,6 @@ func (c ContainerAppsClient) Get(ctx context.Context, id ContainerAppId) (result var model ContainerApp result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go index 33667cea14c2..7203313fe747 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_getauthtoken.go @@ -46,7 +46,6 @@ func (c ContainerAppsClient) GetAuthToken(ctx context.Context, id ContainerAppId var model ContainerAppAuthToken result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go index be6a76b9e531..17119ef149eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listcustomhostnameanalysis.go @@ -34,6 +34,7 @@ func (o ListCustomHostNameAnalysisOperationOptions) ToHeaders() *client.Headers func (o ListCustomHostNameAnalysisOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ContainerAppsClient) ListCustomHostNameAnalysis(ctx context.Context, id var model CustomHostnameAnalysisResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go index 2981767594f6..8c35814e73fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/method_listsecrets.go @@ -46,7 +46,6 @@ func (c ContainerAppsClient) ListSecrets(ctx context.Context, id ContainerAppId) var model SecretsCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go index 07a5b1edc557..d1525032b4b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerapps/version.go @@ -1,12 +1,10 @@ package containerapps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/containerapps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/containerapps/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md index b0db98f8088d..0b462a990d13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions` Documentation -The `containerappsrevisions` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `containerappsrevisions` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "revisionValue") +id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") read, err := client.ActivateRevision(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "revisionValue") +id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") read, err := client.DeactivateRevision(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "revisionValue") +id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") read, err := client.GetRevision(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerappsrevisions.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue") +id := containerappsrevisions.NewContainerAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName") // alternatively `client.ListRevisions(ctx, id, containerappsrevisions.DefaultListRevisionsOperationOptions())` can be used to do batched pagination items, err := client.ListRevisionsComplete(ctx, id, containerappsrevisions.DefaultListRevisionsOperationOptions()) @@ -89,7 +89,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppValue", "revisionValue") +id := containerappsrevisions.NewRevisionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerAppName", "revisionName") read, err := client.RestartRevision(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go index 6dd288e2fae1..16764223cb1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/client.go @@ -15,7 +15,7 @@ type ContainerAppsRevisionsClient struct { } func NewContainerAppsRevisionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerAppsRevisionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "containerappsrevisions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "containerappsrevisions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContainerAppsRevisionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go index 469c5109b012..02b8ca33474e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_containerapp.go @@ -42,7 +42,7 @@ func ParseContainerAppID(input string) (*ContainerAppId, error) { } id := ContainerAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseContainerAppIDInsensitively(input string) (*ContainerAppId, error) { } id := ContainerAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ContainerAppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppValue"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go index 54f632736324..f11f18aac0fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/id_revision.go @@ -44,7 +44,7 @@ func ParseRevisionID(input string) (*RevisionId, error) { } id := RevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRevisionIDInsensitively(input string) (*RevisionId, error) { } id := RevisionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RevisionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticContainerApps", "containerApps", "containerApps"), - resourceids.UserSpecifiedSegment("containerAppName", "containerAppValue"), + resourceids.UserSpecifiedSegment("containerAppName", "containerAppName"), resourceids.StaticSegment("staticRevisions", "revisions", "revisions"), - resourceids.UserSpecifiedSegment("revisionName", "revisionValue"), + resourceids.UserSpecifiedSegment("revisionName", "revisionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision.go index f2d02c1605e0..5f54d0c3df20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_getrevision.go @@ -45,7 +45,6 @@ func (c ContainerAppsRevisionsClient) GetRevision(ctx context.Context, id Revisi var model Revision result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go index 1ba891671881..b25d4c9fd537 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/method_listrevisions.go @@ -39,6 +39,7 @@ func (o ListRevisionsOperationOptions) ToHeaders() *client.Headers { func (o ListRevisionsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go index fa0ac8268de1..825abd076809 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/containerappsrevisions/version.go @@ -1,12 +1,10 @@ package containerappsrevisions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/containerappsrevisions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/containerappsrevisions/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md index a55e054f4b62..297ff91e3933 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents` Documentation -The `daprcomponents` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `daprcomponents` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "componentName") payload := daprcomponents.DaprComponent{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "componentName") read, err := client.ConnectedEnvironmentsDaprComponentsDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "componentName") read, err := client.ConnectedEnvironmentsDaprComponentsGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue") +id := daprcomponents.NewConnectedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName") // alternatively `client.ConnectedEnvironmentsDaprComponentsList(ctx, id)` can be used to do batched pagination items, err := client.ConnectedEnvironmentsDaprComponentsListComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewConnectedEnvironmentDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedEnvironmentName", "componentName") read, err := client.ConnectedEnvironmentsDaprComponentsListSecrets(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "componentName") payload := daprcomponents.DaprComponent{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "componentName") read, err := client.Delete(ctx, id) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "componentName") read, err := client.Get(ctx, id) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := daprcomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := daprcomponents.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -180,7 +180,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "daprComponentValue") +id := daprcomponents.NewDaprComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "componentName") read, err := client.ListSecrets(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go index f018f00bdee2..7fb966bb0e5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/client.go @@ -15,7 +15,7 @@ type DaprComponentsClient struct { } func NewDaprComponentsClientWithBaseURI(sdkApi sdkEnv.Api) (*DaprComponentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "daprcomponents", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "daprcomponents", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DaprComponentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go index 94391e0338e9..226453924020 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironment.go @@ -42,7 +42,7 @@ func ParseConnectedEnvironmentID(input string) (*ConnectedEnvironmentId, error) } id := ConnectedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectedEnvironmentIDInsensitively(input string) (*ConnectedEnvironme } id := ConnectedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), - resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go index 554b54acb914..79f844365dce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_connectedenvironmentdaprcomponent.go @@ -44,7 +44,7 @@ func ParseConnectedEnvironmentDaprComponentID(input string) (*ConnectedEnvironme } id := ConnectedEnvironmentDaprComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectedEnvironmentDaprComponentIDInsensitively(input string) (*Conne } id := ConnectedEnvironmentDaprComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectedEnvironmentDaprComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticConnectedEnvironments", "connectedEnvironments", "connectedEnvironments"), - resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentValue"), + resourceids.UserSpecifiedSegment("connectedEnvironmentName", "connectedEnvironmentName"), resourceids.StaticSegment("staticDaprComponents", "daprComponents", "daprComponents"), - resourceids.UserSpecifiedSegment("daprComponentName", "daprComponentValue"), + resourceids.UserSpecifiedSegment("daprComponentName", "componentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go index 755d9dc094d9..d5885f637cfd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_daprcomponent.go @@ -44,7 +44,7 @@ func ParseDaprComponentID(input string) (*DaprComponentId, error) { } id := DaprComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDaprComponentIDInsensitively(input string) (*DaprComponentId, error) { } id := DaprComponentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DaprComponentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticDaprComponents", "daprComponents", "daprComponents"), - resourceids.UserSpecifiedSegment("daprComponentName", "daprComponentValue"), + resourceids.UserSpecifiedSegment("daprComponentName", "componentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go index d2a90d1954e3..61f3c0fc1a80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/id_managedenvironment.go @@ -42,7 +42,7 @@ func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error) { } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate.go index b372ec0d96c5..3b339e8d2a8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentscreateorupdate.go @@ -49,7 +49,6 @@ func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsCreateOrUpdate( var model DaprComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget.go index 3336d264da51..fa7c1d61804b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentsget.go @@ -45,7 +45,6 @@ func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsGet(ctx context var model DaprComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets.go index 57cb57955677..6474a29e1d89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_connectedenvironmentsdaprcomponentslistsecrets.go @@ -46,7 +46,6 @@ func (c DaprComponentsClient) ConnectedEnvironmentsDaprComponentsListSecrets(ctx var model DaprSecretsCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate.go index d19e2f104cbd..b9ca657b15d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_createorupdate.go @@ -49,7 +49,6 @@ func (c DaprComponentsClient) CreateOrUpdate(ctx context.Context, id DaprCompone var model DaprComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get.go index 3ce780b6d039..b60e81d0ae5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_get.go @@ -45,7 +45,6 @@ func (c DaprComponentsClient) Get(ctx context.Context, id DaprComponentId) (resu var model DaprComponent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets.go index 636ae80459c9..03d6c3ccdcba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/method_listsecrets.go @@ -46,7 +46,6 @@ func (c DaprComponentsClient) ListSecrets(ctx context.Context, id DaprComponentI var model DaprSecretsCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go index 928d2c04bddc..507e819c8cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/daprcomponents/version.go @@ -1,12 +1,10 @@ package daprcomponents -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/daprcomponents/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/daprcomponents/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md index aed44ceaed1d..93bb34e806de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments` Documentation -The `managedenvironments` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `managedenvironments` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := managedenvironments.Certificate{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.CertificatesDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.CertificatesGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := managedenvironments.CertificatePatch{ // ... @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.ManagedEnvironment{ // ... @@ -133,7 +133,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -145,7 +145,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.DiagnosticsGetRoot(ctx, id) if err != nil { @@ -161,7 +161,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.Get(ctx, id) if err != nil { @@ -177,7 +177,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.GetAuthToken(ctx, id) if err != nil { @@ -227,7 +227,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ListWorkloadProfileStates(ctx, id)` can be used to do batched pagination items, err := client.ListWorkloadProfileStatesComplete(ctx, id) @@ -244,7 +244,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") payload := managedenvironments.ManagedCertificate{ // ... @@ -261,7 +261,7 @@ if err := client.ManagedCertificatesCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") read, err := client.ManagedCertificatesDelete(ctx, id) if err != nil { @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") read, err := client.ManagedCertificatesGet(ctx, id) if err != nil { @@ -293,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ManagedCertificatesList(ctx, id)` can be used to do batched pagination items, err := client.ManagedCertificatesListComplete(ctx, id) @@ -310,7 +310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") payload := managedenvironments.ManagedCertificatePatch{ // ... @@ -331,7 +331,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "detectorValue") +id := managedenvironments.NewManagedEnvironmentDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "detectorName") read, err := client.ManagedEnvironmentDiagnosticsGetDetector(ctx, id) if err != nil { @@ -347,7 +347,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ManagedEnvironmentDiagnosticsListDetectors(ctx, id)` can be used to do batched pagination items, err := client.ManagedEnvironmentDiagnosticsListDetectorsComplete(ctx, id) @@ -364,7 +364,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.CheckNameAvailabilityRequest{ // ... @@ -385,7 +385,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.ManagedEnvironment{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go index d1f90d9f4418..b7d8992fa302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/client.go @@ -15,7 +15,7 @@ type ManagedEnvironmentsClient struct { } func NewManagedEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedEnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedenvironments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedenvironments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedEnvironmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go index 8f924206e86d..bd5f3dea777e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go index 610fc08db298..5a6d0991d4a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedcertificate.go @@ -44,7 +44,7 @@ func ParseManagedCertificateID(input string) (*ManagedCertificateId, error) { } id := ManagedCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedCertificateIDInsensitively(input string) (*ManagedCertificateId } id := ManagedCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticManagedCertificates", "managedCertificates", "managedCertificates"), - resourceids.UserSpecifiedSegment("managedCertificateName", "managedCertificateValue"), + resourceids.UserSpecifiedSegment("managedCertificateName", "managedCertificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go index e96a1dd8ba59..6bf99e292686 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironment.go @@ -42,7 +42,7 @@ func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error) { } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go index 6f4fce7eb18a..da9e34f72a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/id_managedenvironmentdetector.go @@ -44,7 +44,7 @@ func ParseManagedEnvironmentDetectorID(input string) (*ManagedEnvironmentDetecto } id := ManagedEnvironmentDetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedEnvironmentDetectorIDInsensitively(input string) (*ManagedEnvir } id := ManagedEnvironmentDetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedEnvironmentDetectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), - resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + resourceids.UserSpecifiedSegment("detectorName", "detectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate.go index 4b74842fc14b..6e71a190b18e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatescreateorupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) CertificatesCreateOrUpdate(ctx context.Contex var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget.go index 718c7d0f3403..9c379c868c5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesget.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) CertificatesGet(ctx context.Context, id Certi var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate.go index 761029f13c65..64f05973e557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_certificatesupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) CertificatesUpdate(ctx context.Context, id Ce var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot.go index 88cccae7e278..f41bb5dd6975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_diagnosticsgetroot.go @@ -46,7 +46,6 @@ func (c ManagedEnvironmentsClient) DiagnosticsGetRoot(ctx context.Context, id Ma var model ManagedEnvironment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get.go index 8b0cdde0fe5d..5c821baf6371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_get.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) Get(ctx context.Context, id ManagedEnvironmen var model ManagedEnvironment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken.go index fe7eb3d026e9..fac4db2d5549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_getauthtoken.go @@ -46,7 +46,6 @@ func (c ManagedEnvironmentsClient) GetAuthToken(ctx context.Context, id ManagedE var model EnvironmentAuthToken result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget.go index 7b3915bd5d84..c1768ca5b9b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesget.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesGet(ctx context.Context, i var model ManagedCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate.go index d4ecb3dd00b7..3a177ed8d300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedcertificatesupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesUpdate(ctx context.Context var model ManagedCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go index 43845d851873..8097358a0b80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsGetDetector(ctx var model Diagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability.go index b1f2717072ad..f2c52cfc7bbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/method_namespaceschecknameavailability.go @@ -50,7 +50,6 @@ func (c ManagedEnvironmentsClient) NamespacesCheckNameAvailability(ctx context.C var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go index e3b0cf7f9f06..16b7d0cf42ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironments/version.go @@ -1,12 +1,10 @@ package managedenvironments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedenvironments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedenvironments/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md index dcea63a4cfa5..ae9d8b96585c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages` Documentation -The `managedenvironmentsstorages` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2023-05-01`). +The `managedenvironmentsstorages` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue") +id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "storageName") payload := managedenvironmentsstorages.ManagedEnvironmentStorage{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue") +id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "storageName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "storageValue") +id := managedenvironmentsstorages.NewStorageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "storageName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironmentsstorages.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironmentsstorages.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go index 48b7aee12b31..7b39b5e0e384 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/client.go @@ -15,7 +15,7 @@ type ManagedEnvironmentsStoragesClient struct { } func NewManagedEnvironmentsStoragesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedEnvironmentsStoragesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedenvironmentsstorages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedenvironmentsstorages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedEnvironmentsStoragesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go index 4bf35d8d15ba..a1c7dc16d882 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_managedenvironment.go @@ -42,7 +42,7 @@ func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error) { } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go index d3c5f4b065ca..1e2c729257f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/id_storage.go @@ -44,7 +44,7 @@ func ParseStorageID(input string) (*StorageId, error) { } id := StorageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseStorageIDInsensitively(input string) (*StorageId, error) { } id := StorageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id StorageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticStorages", "storages", "storages"), - resourceids.UserSpecifiedSegment("storageName", "storageValue"), + resourceids.UserSpecifiedSegment("storageName", "storageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate.go index 3221f2c51625..6111332ea74d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_createorupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsStoragesClient) CreateOrUpdate(ctx context.Context, i var model ManagedEnvironmentStorage result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get.go index dbb3feab7e83..97349d794810 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_get.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsStoragesClient) Get(ctx context.Context, id StorageId var model ManagedEnvironmentStorage result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list.go index 90f9fe55a5fe..ff3a55a4b4ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/method_list.go @@ -46,7 +46,6 @@ func (c ManagedEnvironmentsStoragesClient) List(ctx context.Context, id ManagedE var model ManagedEnvironmentStoragesCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go index 75d2da96cefa..281839bbc988 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2023-05-01/managedenvironmentsstorages/version.go @@ -1,12 +1,10 @@ package managedenvironmentsstorages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedenvironmentsstorages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedenvironmentsstorages/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/README.md index e379a74954c3..bd5f7f89d7b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs` Documentation -The `jobs` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2024-02-02-preview`). +The `jobs` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2024-02-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := jobs.Job{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.ExecutionsList(ctx, id, jobs.DefaultExecutionsListOperationOptions())` can be used to do batched pagination items, err := client.ExecutionsListComplete(ctx, id, jobs.DefaultExecutionsListOperationOptions()) @@ -71,7 +71,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobs.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue", "detectorValue") +id := jobs.NewDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "detectorName") read, err := client.GetDetector(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobs.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue", "executionValue") +id := jobs.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "jobExecutionName") read, err := client.JobExecution(ctx, id) if err != nil { @@ -153,7 +153,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.ListDetectors(ctx, id)` can be used to do batched pagination items, err := client.ListDetectorsComplete(ctx, id) @@ -170,7 +170,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") read, err := client.ListSecrets(ctx, id) if err != nil { @@ -186,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") read, err := client.ProxyGet(ctx, id) if err != nil { @@ -202,7 +202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := jobs.JobExecutionTemplate{ // ... @@ -219,7 +219,7 @@ if err := client.StartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := jobs.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue", "executionValue") +id := jobs.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "jobExecutionName") if err := client.StopExecutionThenPoll(ctx, id); err != nil { // handle the error @@ -231,7 +231,7 @@ if err := client.StopExecutionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.StopMultipleExecutions(ctx, id)` can be used to do batched pagination items, err := client.StopMultipleExecutionsComplete(ctx, id) @@ -248,7 +248,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobValue") +id := jobs.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := jobs.JobPatchProperties{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/client.go index f89b0c72db7b..762c577e9e18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/client.go @@ -15,7 +15,7 @@ type JobsClient struct { } func NewJobsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_detector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_detector.go index 778152219f6c..f25116af8c89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_detector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_detector.go @@ -44,7 +44,7 @@ func ParseDetectorID(input string) (*DetectorId, error) { } id := DetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDetectorIDInsensitively(input string) (*DetectorId, error) { } id := DetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DetectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), - resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + resourceids.UserSpecifiedSegment("detectorName", "detectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_execution.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_execution.go index 252582285a74..0e09a65b4bb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_execution.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_execution.go @@ -44,7 +44,7 @@ func ParseExecutionID(input string) (*ExecutionId, error) { } id := ExecutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExecutionIDInsensitively(input string) (*ExecutionId, error) { } id := ExecutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExecutionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), resourceids.StaticSegment("staticExecutions", "executions", "executions"), - resourceids.UserSpecifiedSegment("executionName", "executionValue"), + resourceids.UserSpecifiedSegment("executionName", "jobExecutionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_job.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_job.go index 818f9f6aa828..e84704f7f48a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_job.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/id_job.go @@ -42,7 +42,7 @@ func ParseJobID(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseJobIDInsensitively(input string) (*JobId, error) { } id := JobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id JobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticJobs", "jobs", "jobs"), - resourceids.UserSpecifiedSegment("jobName", "jobValue"), + resourceids.UserSpecifiedSegment("jobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_executionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_executionslist.go index 8032ccc4ee22..98280e2c319e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_executionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_executionslist.go @@ -39,6 +39,7 @@ func (o ExecutionsListOperationOptions) ToHeaders() *client.Headers { func (o ExecutionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_get.go index 3e21435af338..92dd9e2cf394 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_get.go @@ -45,7 +45,6 @@ func (c JobsClient) Get(ctx context.Context, id JobId) (result GetOperationRespo var model Job result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_getdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_getdetector.go index 548f39c53699..d2957d9afaf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_getdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_getdetector.go @@ -45,7 +45,6 @@ func (c JobsClient) GetDetector(ctx context.Context, id DetectorId) (result GetD var model Diagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_jobexecution.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_jobexecution.go index 910aedeff62c..d305cdb2c5a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_jobexecution.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_jobexecution.go @@ -45,7 +45,6 @@ func (c JobsClient) JobExecution(ctx context.Context, id ExecutionId) (result Jo var model JobExecution result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_listsecrets.go index 33fe668d3c9e..6d9e1f870c18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_listsecrets.go @@ -46,7 +46,6 @@ func (c JobsClient) ListSecrets(ctx context.Context, id JobId) (result ListSecre var model JobSecretsCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_proxyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_proxyget.go index 278f2840fda2..b500defe75a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_proxyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/method_proxyget.go @@ -46,7 +46,6 @@ func (c JobsClient) ProxyGet(ctx context.Context, id JobId) (result ProxyGetOper var model Job result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/version.go index 66a99b1c30a0..7fd6131cb0e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-02-02-preview/jobs/version.go @@ -1,12 +1,10 @@ package jobs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-02-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobs/2024-02-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/README.md index 471d3b21fc5b..e772c3b3b1a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments` Documentation -The `managedenvironments` SDK allows for interaction with the Azure Resource Manager Service `containerapps` (API Version `2024-03-01`). +The `managedenvironments` SDK allows for interaction with Azure Resource Manager `containerapps` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := managedenvironments.Certificate{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.CertificatesDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") read, err := client.CertificatesGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "certificateValue") +id := managedenvironments.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "certificateName") payload := managedenvironments.CertificatePatch{ // ... @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.ManagedEnvironment{ // ... @@ -133,7 +133,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -145,7 +145,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.DiagnosticsGetRoot(ctx, id) if err != nil { @@ -161,7 +161,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.Get(ctx, id) if err != nil { @@ -177,7 +177,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.GetAuthToken(ctx, id) if err != nil { @@ -227,7 +227,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ListWorkloadProfileStates(ctx, id)` can be used to do batched pagination items, err := client.ListWorkloadProfileStatesComplete(ctx, id) @@ -244,7 +244,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") payload := managedenvironments.ManagedCertificate{ // ... @@ -261,7 +261,7 @@ if err := client.ManagedCertificatesCreateOrUpdateThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") read, err := client.ManagedCertificatesDelete(ctx, id) if err != nil { @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") read, err := client.ManagedCertificatesGet(ctx, id) if err != nil { @@ -293,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ManagedCertificatesList(ctx, id)` can be used to do batched pagination items, err := client.ManagedCertificatesListComplete(ctx, id) @@ -310,7 +310,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "managedCertificateValue") +id := managedenvironments.NewManagedCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "managedCertificateName") payload := managedenvironments.ManagedCertificatePatch{ // ... @@ -331,7 +331,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue", "detectorValue") +id := managedenvironments.NewManagedEnvironmentDetectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "detectorName") read, err := client.ManagedEnvironmentDiagnosticsGetDetector(ctx, id) if err != nil { @@ -347,7 +347,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") // alternatively `client.ManagedEnvironmentDiagnosticsListDetectors(ctx, id)` can be used to do batched pagination items, err := client.ManagedEnvironmentDiagnosticsListDetectorsComplete(ctx, id) @@ -364,7 +364,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.CheckNameAvailabilityRequest{ // ... @@ -385,7 +385,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedEnvironmentValue") +id := managedenvironments.NewManagedEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := managedenvironments.ManagedEnvironment{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/client.go index d1f90d9f4418..b7d8992fa302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/client.go @@ -15,7 +15,7 @@ type ManagedEnvironmentsClient struct { } func NewManagedEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedEnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedenvironments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedenvironments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedEnvironmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_certificate.go index 8f924206e86d..bd5f3dea777e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedcertificate.go index 610fc08db298..5a6d0991d4a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedcertificate.go @@ -44,7 +44,7 @@ func ParseManagedCertificateID(input string) (*ManagedCertificateId, error) { } id := ManagedCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedCertificateIDInsensitively(input string) (*ManagedCertificateId } id := ManagedCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticManagedCertificates", "managedCertificates", "managedCertificates"), - resourceids.UserSpecifiedSegment("managedCertificateName", "managedCertificateValue"), + resourceids.UserSpecifiedSegment("managedCertificateName", "managedCertificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironment.go index e96a1dd8ba59..6bf99e292686 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironment.go @@ -42,7 +42,7 @@ func ParseManagedEnvironmentID(input string) (*ManagedEnvironmentId, error) { } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedEnvironmentIDInsensitively(input string) (*ManagedEnvironmentId } id := ManagedEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironmentdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironmentdetector.go index 6f4fce7eb18a..da9e34f72a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironmentdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/id_managedenvironmentdetector.go @@ -44,7 +44,7 @@ func ParseManagedEnvironmentDetectorID(input string) (*ManagedEnvironmentDetecto } id := ManagedEnvironmentDetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedEnvironmentDetectorIDInsensitively(input string) (*ManagedEnvir } id := ManagedEnvironmentDetectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedEnvironmentDetectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftApp", "Microsoft.App", "Microsoft.App"), resourceids.StaticSegment("staticManagedEnvironments", "managedEnvironments", "managedEnvironments"), - resourceids.UserSpecifiedSegment("managedEnvironmentName", "managedEnvironmentValue"), + resourceids.UserSpecifiedSegment("managedEnvironmentName", "environmentName"), resourceids.StaticSegment("staticDetectors", "detectors", "detectors"), - resourceids.UserSpecifiedSegment("detectorName", "detectorValue"), + resourceids.UserSpecifiedSegment("detectorName", "detectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatescreateorupdate.go index 4b74842fc14b..6e71a190b18e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatescreateorupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) CertificatesCreateOrUpdate(ctx context.Contex var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesget.go index 718c7d0f3403..9c379c868c5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesget.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) CertificatesGet(ctx context.Context, id Certi var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesupdate.go index 761029f13c65..64f05973e557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_certificatesupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) CertificatesUpdate(ctx context.Context, id Ce var model Certificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_diagnosticsgetroot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_diagnosticsgetroot.go index 88cccae7e278..f41bb5dd6975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_diagnosticsgetroot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_diagnosticsgetroot.go @@ -46,7 +46,6 @@ func (c ManagedEnvironmentsClient) DiagnosticsGetRoot(ctx context.Context, id Ma var model ManagedEnvironment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_get.go index 8b0cdde0fe5d..5c821baf6371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_get.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) Get(ctx context.Context, id ManagedEnvironmen var model ManagedEnvironment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_getauthtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_getauthtoken.go index fe7eb3d026e9..fac4db2d5549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_getauthtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_getauthtoken.go @@ -46,7 +46,6 @@ func (c ManagedEnvironmentsClient) GetAuthToken(ctx context.Context, id ManagedE var model EnvironmentAuthToken result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesget.go index 7b3915bd5d84..c1768ca5b9b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesget.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesGet(ctx context.Context, i var model ManagedCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesupdate.go index d4ecb3dd00b7..3a177ed8d300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedcertificatesupdate.go @@ -49,7 +49,6 @@ func (c ManagedEnvironmentsClient) ManagedCertificatesUpdate(ctx context.Context var model ManagedCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go index 43845d851873..8097358a0b80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_managedenvironmentdiagnosticsgetdetector.go @@ -45,7 +45,6 @@ func (c ManagedEnvironmentsClient) ManagedEnvironmentDiagnosticsGetDetector(ctx var model Diagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_namespaceschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_namespaceschecknameavailability.go index b1f2717072ad..f2c52cfc7bbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_namespaceschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/method_namespaceschecknameavailability.go @@ -50,7 +50,6 @@ func (c ManagedEnvironmentsClient) NamespacesCheckNameAvailability(ctx context.C var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/version.go index 725bcb7fac32..96e6016eb234 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerapps/2024-03-01/managedenvironments/version.go @@ -1,12 +1,10 @@ package managedenvironments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedenvironments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedenvironments/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/README.md index dbc924faa1d9..27919c97b2dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance` Documentation -The `containerinstance` SDK allows for interaction with the Azure Resource Manager Service `containerinstance` (API Version `2023-05-01`). +The `containerinstance` SDK allows for interaction with Azure Resource Manager `containerinstance` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") payload := containerinstance.ContainerGroup{ // ... @@ -42,7 +42,7 @@ if err := client.ContainerGroupsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") if err := client.ContainerGroupsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ContainerGroupsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") read, err := client.ContainerGroupsGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") read, err := client.ContainerGroupsGetOutboundNetworkDependenciesEndpoints(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") if err := client.ContainerGroupsRestartThenPoll(ctx, id); err != nil { // handle the error @@ -132,7 +132,7 @@ if err := client.ContainerGroupsRestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") if err := client.ContainerGroupsStartThenPoll(ctx, id); err != nil { // handle the error @@ -144,7 +144,7 @@ if err := client.ContainerGroupsStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") read, err := client.ContainerGroupsStop(ctx, id) if err != nil { @@ -160,7 +160,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue") +id := containerinstance.NewContainerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName") payload := containerinstance.Resource{ // ... @@ -181,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue", "containerValue") +id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName", "containerName") read, err := client.ContainersAttach(ctx, id) if err != nil { @@ -197,7 +197,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue", "containerValue") +id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName", "containerName") payload := containerinstance.ContainerExecRequest{ // ... @@ -218,7 +218,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupValue", "containerValue") +id := containerinstance.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "containerGroupName", "containerName") read, err := client.ContainersListLogs(ctx, id, containerinstance.DefaultContainersListLogsOperationOptions()) if err != nil { @@ -234,7 +234,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.LocationListCachedImages(ctx, id)` can be used to do batched pagination items, err := client.LocationListCachedImagesComplete(ctx, id) @@ -251,7 +251,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.LocationListCapabilities(ctx, id)` can be used to do batched pagination items, err := client.LocationListCapabilitiesComplete(ctx, id) @@ -268,7 +268,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := containerinstance.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationListUsage(ctx, id) if err != nil { @@ -284,7 +284,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") if err := client.SubnetServiceAssociationLinkDeleteThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go index bec267c5086f..9e2dd14ce18c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/client.go @@ -15,7 +15,7 @@ type ContainerInstanceClient struct { } func NewContainerInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerInstanceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "containerinstance", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "containerinstance", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContainerInstanceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_container.go index 53ab184b921a..22e536f257e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_container.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_container.go @@ -44,7 +44,7 @@ func ParseContainerID(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseContainerIDInsensitively(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerInstance", "Microsoft.ContainerInstance", "Microsoft.ContainerInstance"), resourceids.StaticSegment("staticContainerGroups", "containerGroups", "containerGroups"), - resourceids.UserSpecifiedSegment("containerGroupName", "containerGroupValue"), + resourceids.UserSpecifiedSegment("containerGroupName", "containerGroupName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_containergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_containergroup.go index 31b7833bb106..a878d95b3bca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_containergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_containergroup.go @@ -42,7 +42,7 @@ func ParseContainerGroupID(input string) (*ContainerGroupId, error) { } id := ContainerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseContainerGroupIDInsensitively(input string) (*ContainerGroupId, error) } id := ContainerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ContainerGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerInstance", "Microsoft.ContainerInstance", "Microsoft.ContainerInstance"), resourceids.StaticSegment("staticContainerGroups", "containerGroups", "containerGroups"), - resourceids.UserSpecifiedSegment("containerGroupName", "containerGroupValue"), + resourceids.UserSpecifiedSegment("containerGroupName", "containerGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_location.go index dc6b8110935c..9600f5289c62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerInstance", "Microsoft.ContainerInstance", "Microsoft.ContainerInstance"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go index a185e3f92842..56a159e91238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsget.go @@ -45,7 +45,6 @@ func (c ContainerInstanceClient) ContainerGroupsGet(ctx context.Context, id Cont var model ContainerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go index e957860b7610..85d12a682e4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsgetoutboundnetworkdependenciesendpoints.go @@ -46,7 +46,6 @@ func (c ContainerInstanceClient) ContainerGroupsGetOutboundNetworkDependenciesEn var model []string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go index ab81ed5b734c..25dcf5026930 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containergroupsupdate.go @@ -49,7 +49,6 @@ func (c ContainerInstanceClient) ContainerGroupsUpdate(ctx context.Context, id C var model ContainerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go index bf56bbcf9391..89c06f345eb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersattach.go @@ -46,7 +46,6 @@ func (c ContainerInstanceClient) ContainersAttach(ctx context.Context, id Contai var model ContainerAttachResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go index 1701b25a299c..04d63544727a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containersexecutecommand.go @@ -50,7 +50,6 @@ func (c ContainerInstanceClient) ContainersExecuteCommand(ctx context.Context, i var model ContainerExecResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go index 510df9c13d2f..968ef8f3636c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_containerslistlogs.go @@ -35,6 +35,7 @@ func (o ContainersListLogsOperationOptions) ToHeaders() *client.Headers { func (o ContainersListLogsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ContainerInstanceClient) ContainersListLogs(ctx context.Context, id Cont var model Logs result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go index e7f7dfc3786e..2883aab9a365 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/method_locationlistusage.go @@ -46,7 +46,6 @@ func (c ContainerInstanceClient) LocationListUsage(ctx context.Context, id Locat var model UsageListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/version.go index 149f9fc52e33..b8185322d4f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerinstance/2023-05-01/containerinstance/version.go @@ -1,12 +1,10 @@ package containerinstance -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/containerinstance/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/containerinstance/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/README.md index 1adb5f12945a..427697736a72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools` Documentation -The `agentpools` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2019-06-01-preview`). +The `agentpools` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2019-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "agentPoolName") payload := agentpools.AgentPool{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "agentPoolName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "agentPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "agentPoolName") read, err := client.GetQueueStatus(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := agentpools.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "agentPoolName") payload := agentpools.AgentPoolUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/client.go index 2edad36c0059..c46e63234951 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/client.go @@ -15,7 +15,7 @@ type AgentPoolsClient struct { } func NewAgentPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentPoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agentpools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agentpools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgentPoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_agentpool.go index f2d222a30156..5080dc26c558 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_agentpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_agentpool.go @@ -44,7 +44,7 @@ func ParseAgentPoolID(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAgentPoolIDInsensitively(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AgentPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), - resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolValue"), + resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_registry.go index 16f46119fd4b..da8b93b41de7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_get.go index 97eecd6a97af..ea20389e4a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_get.go @@ -45,7 +45,6 @@ func (c AgentPoolsClient) Get(ctx context.Context, id AgentPoolId) (result GetOp var model AgentPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_getqueuestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_getqueuestatus.go index f500dec799d1..6c28b373bc20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_getqueuestatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/method_getqueuestatus.go @@ -46,7 +46,6 @@ func (c AgentPoolsClient) GetQueueStatus(ctx context.Context, id AgentPoolId) (r var model AgentPoolQueueStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/version.go index 4f7cc47b565f..7ba674358dfc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/agentpools/version.go @@ -1,12 +1,10 @@ package agentpools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agentpools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agentpools/2019-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/README.md index 87e7d582950b..9bed7f1c95ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries` Documentation -The `registries` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2019-06-01-preview`). +The `registries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2019-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") read, err := client.GetBuildSourceUploadUrl(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.RunRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/client.go index f3defc5ecd2e..19546ba8db38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/client.go @@ -15,7 +15,7 @@ type RegistriesClient struct { } func NewRegistriesClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "registries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "registries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegistriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/id_registry.go index ced90cd79e7a..9271561c3be4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/method_getbuildsourceuploadurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/method_getbuildsourceuploadurl.go index 427c284c5b70..52a6376864b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/method_getbuildsourceuploadurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/method_getbuildsourceuploadurl.go @@ -46,7 +46,6 @@ func (c RegistriesClient) GetBuildSourceUploadUrl(ctx context.Context, id Regist var model SourceUploadDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_dockerbuildrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_dockerbuildrequest.go index 1c87052e3ba5..4d1ef33a8775 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_dockerbuildrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_dockerbuildrequest.go @@ -24,9 +24,20 @@ type DockerBuildRequest struct { Timeout *int64 `json:"timeout,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s DockerBuildRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = DockerBuildRequest{} @@ -40,9 +51,10 @@ func (s DockerBuildRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DockerBuildRequest: %+v", err) } + decoded["type"] = "DockerBuildRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_encodedtaskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_encodedtaskrunrequest.go index 302e90831479..ed68dfae8f89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_encodedtaskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_encodedtaskrunrequest.go @@ -21,9 +21,20 @@ type EncodedTaskRunRequest struct { Values *[]SetValue `json:"values,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s EncodedTaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = EncodedTaskRunRequest{} @@ -37,9 +48,10 @@ func (s EncodedTaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EncodedTaskRunRequest: %+v", err) } + decoded["type"] = "EncodedTaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_filetaskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_filetaskrunrequest.go index 0730c7d1d867..dd24449b382d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_filetaskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_filetaskrunrequest.go @@ -21,9 +21,20 @@ type FileTaskRunRequest struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s FileTaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = FileTaskRunRequest{} @@ -37,9 +48,10 @@ func (s FileTaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileTaskRunRequest: %+v", err) } + decoded["type"] = "FileTaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_runrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_runrequest.go index d98eb00a9e2b..6245fbd70434 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_runrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_runrequest.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RunRequest interface { + RunRequest() BaseRunRequestImpl } -// RawRunRequestImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RunRequest = BaseRunRequestImpl{} + +type BaseRunRequestImpl struct { + AgentPoolName *string `json:"agentPoolName,omitempty"` + IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` + LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s BaseRunRequestImpl) RunRequest() BaseRunRequestImpl { + return s +} + +var _ RunRequest = RawRunRequestImpl{} + +// RawRunRequestImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRunRequestImpl struct { - Type string - Values map[string]interface{} + runRequest BaseRunRequestImpl + Type string + Values map[string]interface{} +} + +func (s RawRunRequestImpl) RunRequest() BaseRunRequestImpl { + return s.runRequest } -func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { +func UnmarshalRunRequestImplementation(input []byte) (RunRequest, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { return nil, fmt.Errorf("unmarshaling RunRequest into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "DockerBuildRequest") { @@ -68,10 +88,15 @@ func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { return out, nil } - out := RawRunRequestImpl{ - Type: value, - Values: temp, + var parent BaseRunRequestImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRunRequestImpl: %+v", err) } - return out, nil + + return RawRunRequestImpl{ + runRequest: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_taskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_taskrunrequest.go index 1d8d25fa906e..a304985549b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_taskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/model_taskrunrequest.go @@ -15,9 +15,20 @@ type TaskRunRequest struct { TaskId string `json:"taskId"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s TaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = TaskRunRequest{} @@ -31,9 +42,10 @@ func (s TaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling TaskRunRequest: %+v", err) } + decoded["type"] = "TaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/version.go index 84290c8d0abe..5fdbb7c65f79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/registries/version.go @@ -1,12 +1,10 @@ package registries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/registries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/registries/2019-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/README.md index 699b55b1d60f..7b71cbcda1d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs` Documentation -The `runs` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2019-06-01-preview`). +The `runs` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2019-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "runIdValue") +id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "runId") if err := client.CancelThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CancelThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "runIdValue") +id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "runId") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "runIdValue") +id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "runId") read, err := client.GetLogSasUrl(ctx, id) if err != nil { @@ -68,7 +68,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := runs.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := runs.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id, runs.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, runs.DefaultListOperationOptions()) @@ -85,7 +85,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "runIdValue") +id := runs.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "runId") payload := runs.RunUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/client.go index 22236a80b624..648f48a00162 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/client.go @@ -15,7 +15,7 @@ type RunsClient struct { } func NewRunsClientWithBaseURI(sdkApi sdkEnv.Api) (*RunsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "runs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "runs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RunsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_registry.go index 6571c702904b..1d0fe07cf3a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_run.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_run.go index 1df6e0ee6c72..d5c0f1ce4c0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_run.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/id_run.go @@ -44,7 +44,7 @@ func ParseRunID(input string) (*RunId, error) { } id := RunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunIDInsensitively(input string) (*RunId, error) { } id := RunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runId", "runIdValue"), + resourceids.UserSpecifiedSegment("runId", "runId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_get.go index bf67db392201..02e7e2761250 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_get.go @@ -45,7 +45,6 @@ func (c RunsClient) Get(ctx context.Context, id RunId) (result GetOperationRespo var model Run result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_getlogsasurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_getlogsasurl.go index cd6ba9a028d5..4a1e7d9e3de2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_getlogsasurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_getlogsasurl.go @@ -46,7 +46,6 @@ func (c RunsClient) GetLogSasUrl(ctx context.Context, id RunId) (result GetLogSa var model RunGetLogResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go index 8e4d9bf8c333..a2575c844cf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/version.go index b47eab3fa4dc..af53be099ea6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/runs/version.go @@ -1,12 +1,10 @@ package runs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/runs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/runs/2019-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/README.md index 2c9bc38a2357..39c8d25eb9ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns` Documentation -The `taskruns` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2019-06-01-preview`). +The `taskruns` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2019-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskRunValue") +id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskRunName") payload := taskruns.TaskRun{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskRunValue") +id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskRunName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskRunValue") +id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskRunName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskRunValue") +id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskRunName") read, err := client.GetDetails(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := taskruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := taskruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskRunValue") +id := taskruns.NewTaskRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskRunName") payload := taskruns.TaskRunUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/client.go index 690d8b47df79..9b04e022566f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/client.go @@ -15,7 +15,7 @@ type TaskRunsClient struct { } func NewTaskRunsClientWithBaseURI(sdkApi sdkEnv.Api) (*TaskRunsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "taskruns", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "taskruns", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TaskRunsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_registry.go index b95dbe45ce01..7f37844b3fe0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_taskrun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_taskrun.go index 02199eebf65e..fdb187311048 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_taskrun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/id_taskrun.go @@ -44,7 +44,7 @@ func ParseTaskRunID(input string) (*TaskRunId, error) { } id := TaskRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTaskRunIDInsensitively(input string) (*TaskRunId, error) { } id := TaskRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TaskRunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticTaskRuns", "taskRuns", "taskRuns"), - resourceids.UserSpecifiedSegment("taskRunName", "taskRunValue"), + resourceids.UserSpecifiedSegment("taskRunName", "taskRunName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_get.go index f08d0975567f..a4f659a5ef96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_get.go @@ -45,7 +45,6 @@ func (c TaskRunsClient) Get(ctx context.Context, id TaskRunId) (result GetOperat var model TaskRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_getdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_getdetails.go index d1271f6ea6c7..f78e360333ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_getdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/method_getdetails.go @@ -46,7 +46,6 @@ func (c TaskRunsClient) GetDetails(ctx context.Context, id TaskRunId) (result Ge var model TaskRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_dockerbuildrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_dockerbuildrequest.go index cd21a0e12c5d..ea3d500279db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_dockerbuildrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_dockerbuildrequest.go @@ -24,9 +24,20 @@ type DockerBuildRequest struct { Timeout *int64 `json:"timeout,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s DockerBuildRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = DockerBuildRequest{} @@ -40,9 +51,10 @@ func (s DockerBuildRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DockerBuildRequest: %+v", err) } + decoded["type"] = "DockerBuildRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_encodedtaskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_encodedtaskrunrequest.go index daf14c7a3e1e..36ddb42ee9ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_encodedtaskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_encodedtaskrunrequest.go @@ -21,9 +21,20 @@ type EncodedTaskRunRequest struct { Values *[]SetValue `json:"values,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s EncodedTaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = EncodedTaskRunRequest{} @@ -37,9 +48,10 @@ func (s EncodedTaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EncodedTaskRunRequest: %+v", err) } + decoded["type"] = "EncodedTaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_filetaskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_filetaskrunrequest.go index 822d06143e06..df4ab95e8223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_filetaskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_filetaskrunrequest.go @@ -21,9 +21,20 @@ type FileTaskRunRequest struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s FileTaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = FileTaskRunRequest{} @@ -37,9 +48,10 @@ func (s FileTaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileTaskRunRequest: %+v", err) } + decoded["type"] = "FileTaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_runrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_runrequest.go index 8ced0bcd755c..14b6954820fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_runrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_runrequest.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RunRequest interface { + RunRequest() BaseRunRequestImpl } -// RawRunRequestImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RunRequest = BaseRunRequestImpl{} + +type BaseRunRequestImpl struct { + AgentPoolName *string `json:"agentPoolName,omitempty"` + IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` + LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s BaseRunRequestImpl) RunRequest() BaseRunRequestImpl { + return s +} + +var _ RunRequest = RawRunRequestImpl{} + +// RawRunRequestImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRunRequestImpl struct { - Type string - Values map[string]interface{} + runRequest BaseRunRequestImpl + Type string + Values map[string]interface{} +} + +func (s RawRunRequestImpl) RunRequest() BaseRunRequestImpl { + return s.runRequest } -func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { +func UnmarshalRunRequestImplementation(input []byte) (RunRequest, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { return nil, fmt.Errorf("unmarshaling RunRequest into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "DockerBuildRequest") { @@ -68,10 +88,15 @@ func unmarshalRunRequestImplementation(input []byte) (RunRequest, error) { return out, nil } - out := RawRunRequestImpl{ - Type: value, - Values: temp, + var parent BaseRunRequestImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRunRequestImpl: %+v", err) } - return out, nil + + return RawRunRequestImpl{ + runRequest: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunproperties.go index 32c79c1b1e1b..503cbd20b740 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunproperties.go @@ -18,10 +18,13 @@ type TaskRunProperties struct { var _ json.Unmarshaler = &TaskRunProperties{} func (s *TaskRunProperties) UnmarshalJSON(bytes []byte) error { - type alias TaskRunProperties - var decoded alias + var decoded struct { + ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + RunResult *Run `json:"runResult,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TaskRunProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ForceUpdateTag = decoded.ForceUpdateTag @@ -34,11 +37,12 @@ func (s *TaskRunProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["runRequest"]; ok { - impl, err := unmarshalRunRequestImplementation(v) + impl, err := UnmarshalRunRequestImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RunRequest' for 'TaskRunProperties': %+v", err) } s.RunRequest = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunpropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunpropertiesupdateparameters.go index 9426ec59aaad..cb899c55476e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunpropertiesupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunpropertiesupdateparameters.go @@ -16,10 +16,11 @@ type TaskRunPropertiesUpdateParameters struct { var _ json.Unmarshaler = &TaskRunPropertiesUpdateParameters{} func (s *TaskRunPropertiesUpdateParameters) UnmarshalJSON(bytes []byte) error { - type alias TaskRunPropertiesUpdateParameters - var decoded alias + var decoded struct { + ForceUpdateTag *string `json:"forceUpdateTag,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TaskRunPropertiesUpdateParameters: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ForceUpdateTag = decoded.ForceUpdateTag @@ -30,11 +31,12 @@ func (s *TaskRunPropertiesUpdateParameters) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["runRequest"]; ok { - impl, err := unmarshalRunRequestImplementation(v) + impl, err := UnmarshalRunRequestImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RunRequest' for 'TaskRunPropertiesUpdateParameters': %+v", err) } s.RunRequest = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunrequest.go index 6dee3faeb06d..c176e0aaba83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/model_taskrunrequest.go @@ -15,9 +15,20 @@ type TaskRunRequest struct { TaskId string `json:"taskId"` // Fields inherited from RunRequest + AgentPoolName *string `json:"agentPoolName,omitempty"` IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` LogTemplate *string `json:"logTemplate,omitempty"` + Type string `json:"type"` +} + +func (s TaskRunRequest) RunRequest() BaseRunRequestImpl { + return BaseRunRequestImpl{ + AgentPoolName: s.AgentPoolName, + IsArchiveEnabled: s.IsArchiveEnabled, + LogTemplate: s.LogTemplate, + Type: s.Type, + } } var _ json.Marshaler = TaskRunRequest{} @@ -31,9 +42,10 @@ func (s TaskRunRequest) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling TaskRunRequest: %+v", err) } + decoded["type"] = "TaskRunRequest" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/version.go index 121b169bf5ac..e5ebfaf8846b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/taskruns/version.go @@ -1,12 +1,10 @@ package taskruns -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/taskruns/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/taskruns/2019-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/README.md index 52cb5f232839..a755af60a113 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks` Documentation -The `tasks` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2019-06-01-preview`). +The `tasks` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2019-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskValue") +id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskName") payload := tasks.Task{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskValue") +id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskValue") +id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskValue") +id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskName") read, err := client.GetDetails(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tasks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := tasks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "taskValue") +id := tasks.NewTaskID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "taskName") payload := tasks.TaskUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/client.go index 8e365f36b1ab..acc4e56ed72c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/client.go @@ -15,7 +15,7 @@ type TasksClient struct { } func NewTasksClientWithBaseURI(sdkApi sdkEnv.Api) (*TasksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tasks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tasks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TasksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_registry.go index e5cfc9b044ce..002dcbde942d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_task.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_task.go index 24f595ca1b03..7ca88988fc16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_task.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/id_task.go @@ -44,7 +44,7 @@ func ParseTaskID(input string) (*TaskId, error) { } id := TaskId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTaskIDInsensitively(input string) (*TaskId, error) { } id := TaskId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TaskId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticTasks", "tasks", "tasks"), - resourceids.UserSpecifiedSegment("taskName", "taskValue"), + resourceids.UserSpecifiedSegment("taskName", "taskName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_get.go index 2781b2e53cad..e4424858155a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_get.go @@ -45,7 +45,6 @@ func (c TasksClient) Get(ctx context.Context, id TaskId) (result GetOperationRes var model Task result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_getdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_getdetails.go index 64cac88d5531..18c4539fada3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_getdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/method_getdetails.go @@ -46,7 +46,6 @@ func (c TasksClient) GetDetails(ctx context.Context, id TaskId) (result GetDetai var model Task result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstep.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstep.go index bbaf354d48c5..ca306a9dc89f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstep.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstep.go @@ -19,9 +19,20 @@ type DockerBuildStep struct { Target *string `json:"target,omitempty"` // Fields inherited from TaskStepProperties + BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` ContextAccessToken *string `json:"contextAccessToken,omitempty"` ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s DockerBuildStep) TaskStepProperties() BaseTaskStepPropertiesImpl { + return BaseTaskStepPropertiesImpl{ + BaseImageDependencies: s.BaseImageDependencies, + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = DockerBuildStep{} @@ -35,9 +46,10 @@ func (s DockerBuildStep) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DockerBuildStep: %+v", err) } + decoded["type"] = "Docker" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstepupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstepupdateparameters.go index 5ed89fb74cb8..1c5fe1a99bde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstepupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_dockerbuildstepupdateparameters.go @@ -19,8 +19,18 @@ type DockerBuildStepUpdateParameters struct { Target *string `json:"target,omitempty"` // Fields inherited from TaskStepUpdateParameters - ContextAccessToken *string `json:"contextAccessToken,omitempty"` - ContextPath *string `json:"contextPath,omitempty"` + + ContextAccessToken *string `json:"contextAccessToken,omitempty"` + ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s DockerBuildStepUpdateParameters) TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl { + return BaseTaskStepUpdateParametersImpl{ + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = DockerBuildStepUpdateParameters{} @@ -34,9 +44,10 @@ func (s DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DockerBuildStepUpdateParameters: %+v", err) } + decoded["type"] = "Docker" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstep.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstep.go index ae5d6c1ad5c8..2521f3b48c51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstep.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstep.go @@ -16,9 +16,20 @@ type EncodedTaskStep struct { Values *[]SetValue `json:"values,omitempty"` // Fields inherited from TaskStepProperties + BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` ContextAccessToken *string `json:"contextAccessToken,omitempty"` ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s EncodedTaskStep) TaskStepProperties() BaseTaskStepPropertiesImpl { + return BaseTaskStepPropertiesImpl{ + BaseImageDependencies: s.BaseImageDependencies, + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = EncodedTaskStep{} @@ -32,9 +43,10 @@ func (s EncodedTaskStep) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EncodedTaskStep: %+v", err) } + decoded["type"] = "EncodedTask" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstepupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstepupdateparameters.go index c69e7bcb860c..5bfe6195566f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstepupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_encodedtaskstepupdateparameters.go @@ -16,8 +16,18 @@ type EncodedTaskStepUpdateParameters struct { Values *[]SetValue `json:"values,omitempty"` // Fields inherited from TaskStepUpdateParameters - ContextAccessToken *string `json:"contextAccessToken,omitempty"` - ContextPath *string `json:"contextPath,omitempty"` + + ContextAccessToken *string `json:"contextAccessToken,omitempty"` + ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s EncodedTaskStepUpdateParameters) TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl { + return BaseTaskStepUpdateParametersImpl{ + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = EncodedTaskStepUpdateParameters{} @@ -31,9 +41,10 @@ func (s EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EncodedTaskStepUpdateParameters: %+v", err) } + decoded["type"] = "EncodedTask" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstep.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstep.go index 762e4bc864ef..afbfdbdfae53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstep.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstep.go @@ -16,9 +16,20 @@ type FileTaskStep struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Fields inherited from TaskStepProperties + BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` ContextAccessToken *string `json:"contextAccessToken,omitempty"` ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s FileTaskStep) TaskStepProperties() BaseTaskStepPropertiesImpl { + return BaseTaskStepPropertiesImpl{ + BaseImageDependencies: s.BaseImageDependencies, + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = FileTaskStep{} @@ -32,9 +43,10 @@ func (s FileTaskStep) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileTaskStep: %+v", err) } + decoded["type"] = "FileTask" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstepupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstepupdateparameters.go index a155bf5da29d..1ffe69f86a16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstepupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_filetaskstepupdateparameters.go @@ -16,8 +16,18 @@ type FileTaskStepUpdateParameters struct { ValuesFilePath *string `json:"valuesFilePath,omitempty"` // Fields inherited from TaskStepUpdateParameters - ContextAccessToken *string `json:"contextAccessToken,omitempty"` - ContextPath *string `json:"contextPath,omitempty"` + + ContextAccessToken *string `json:"contextAccessToken,omitempty"` + ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s FileTaskStepUpdateParameters) TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl { + return BaseTaskStepUpdateParametersImpl{ + ContextAccessToken: s.ContextAccessToken, + ContextPath: s.ContextPath, + Type: s.Type, + } } var _ json.Marshaler = FileTaskStepUpdateParameters{} @@ -31,9 +41,10 @@ func (s FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileTaskStepUpdateParameters: %+v", err) } + decoded["type"] = "FileTask" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskproperties.go index f862a445cd94..42669a13bfc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskproperties.go @@ -41,10 +41,21 @@ func (o *TaskProperties) SetCreationDateAsTime(input time.Time) { var _ json.Unmarshaler = &TaskProperties{} func (s *TaskProperties) UnmarshalJSON(bytes []byte) error { - type alias TaskProperties - var decoded alias + var decoded struct { + AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` + AgentPoolName *string `json:"agentPoolName,omitempty"` + CreationDate *string `json:"creationDate,omitempty"` + Credentials *Credentials `json:"credentials,omitempty"` + IsSystemTask *bool `json:"isSystemTask,omitempty"` + LogTemplate *string `json:"logTemplate,omitempty"` + Platform *PlatformProperties `json:"platform,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Status *TaskStatus `json:"status,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + Trigger *TriggerProperties `json:"trigger,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TaskProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AgentConfiguration = decoded.AgentConfiguration @@ -65,11 +76,12 @@ func (s *TaskProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["step"]; ok { - impl, err := unmarshalTaskStepPropertiesImplementation(v) + impl, err := UnmarshalTaskStepPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Step' for 'TaskProperties': %+v", err) } s.Step = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskpropertiesupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskpropertiesupdateparameters.go index b280132f68a5..b0ede427c5dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskpropertiesupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskpropertiesupdateparameters.go @@ -23,10 +23,18 @@ type TaskPropertiesUpdateParameters struct { var _ json.Unmarshaler = &TaskPropertiesUpdateParameters{} func (s *TaskPropertiesUpdateParameters) UnmarshalJSON(bytes []byte) error { - type alias TaskPropertiesUpdateParameters - var decoded alias + var decoded struct { + AgentConfiguration *AgentProperties `json:"agentConfiguration,omitempty"` + AgentPoolName *string `json:"agentPoolName,omitempty"` + Credentials *Credentials `json:"credentials,omitempty"` + LogTemplate *string `json:"logTemplate,omitempty"` + Platform *PlatformUpdateParameters `json:"platform,omitempty"` + Status *TaskStatus `json:"status,omitempty"` + Timeout *int64 `json:"timeout,omitempty"` + Trigger *TriggerUpdateParameters `json:"trigger,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TaskPropertiesUpdateParameters: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AgentConfiguration = decoded.AgentConfiguration @@ -44,11 +52,12 @@ func (s *TaskPropertiesUpdateParameters) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["step"]; ok { - impl, err := unmarshalTaskStepUpdateParametersImplementation(v) + impl, err := UnmarshalTaskStepUpdateParametersImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Step' for 'TaskPropertiesUpdateParameters': %+v", err) } s.Step = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepproperties.go index a2715325318b..100ea70ecdd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepproperties.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TaskStepProperties interface { + TaskStepProperties() BaseTaskStepPropertiesImpl } -// RawTaskStepPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TaskStepProperties = BaseTaskStepPropertiesImpl{} + +type BaseTaskStepPropertiesImpl struct { + BaseImageDependencies *[]BaseImageDependency `json:"baseImageDependencies,omitempty"` + ContextAccessToken *string `json:"contextAccessToken,omitempty"` + ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s BaseTaskStepPropertiesImpl) TaskStepProperties() BaseTaskStepPropertiesImpl { + return s +} + +var _ TaskStepProperties = RawTaskStepPropertiesImpl{} + +// RawTaskStepPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTaskStepPropertiesImpl struct { - Type string - Values map[string]interface{} + taskStepProperties BaseTaskStepPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawTaskStepPropertiesImpl) TaskStepProperties() BaseTaskStepPropertiesImpl { + return s.taskStepProperties } -func unmarshalTaskStepPropertiesImplementation(input []byte) (TaskStepProperties, error) { +func UnmarshalTaskStepPropertiesImplementation(input []byte) (TaskStepProperties, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalTaskStepPropertiesImplementation(input []byte) (TaskStepProperties return nil, fmt.Errorf("unmarshaling TaskStepProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Docker") { @@ -60,10 +80,15 @@ func unmarshalTaskStepPropertiesImplementation(input []byte) (TaskStepProperties return out, nil } - out := RawTaskStepPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseTaskStepPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTaskStepPropertiesImpl: %+v", err) } - return out, nil + + return RawTaskStepPropertiesImpl{ + taskStepProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepupdateparameters.go index 3cb8d8604740..116b954f056b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/model_taskstepupdateparameters.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TaskStepUpdateParameters interface { + TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl } -// RawTaskStepUpdateParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TaskStepUpdateParameters = BaseTaskStepUpdateParametersImpl{} + +type BaseTaskStepUpdateParametersImpl struct { + ContextAccessToken *string `json:"contextAccessToken,omitempty"` + ContextPath *string `json:"contextPath,omitempty"` + Type StepType `json:"type"` +} + +func (s BaseTaskStepUpdateParametersImpl) TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl { + return s +} + +var _ TaskStepUpdateParameters = RawTaskStepUpdateParametersImpl{} + +// RawTaskStepUpdateParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTaskStepUpdateParametersImpl struct { - Type string - Values map[string]interface{} + taskStepUpdateParameters BaseTaskStepUpdateParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawTaskStepUpdateParametersImpl) TaskStepUpdateParameters() BaseTaskStepUpdateParametersImpl { + return s.taskStepUpdateParameters } -func unmarshalTaskStepUpdateParametersImplementation(input []byte) (TaskStepUpdateParameters, error) { +func UnmarshalTaskStepUpdateParametersImplementation(input []byte) (TaskStepUpdateParameters, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalTaskStepUpdateParametersImplementation(input []byte) (TaskStepUpda return nil, fmt.Errorf("unmarshaling TaskStepUpdateParameters into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Docker") { @@ -60,10 +79,15 @@ func unmarshalTaskStepUpdateParametersImplementation(input []byte) (TaskStepUpda return out, nil } - out := RawTaskStepUpdateParametersImpl{ - Type: value, - Values: temp, + var parent BaseTaskStepUpdateParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTaskStepUpdateParametersImpl: %+v", err) } - return out, nil + + return RawTaskStepUpdateParametersImpl{ + taskStepUpdateParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/version.go index 331eb7bcbc96..32c2b1d97fee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2019-06-01-preview/tasks/version.go @@ -1,12 +1,10 @@ package tasks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tasks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tasks/2019-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md index 21288c1293b0..c17da71a90e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives` Documentation -The `archives` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `archives` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue") +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName") payload := archives.Archive{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue") +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue") +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := archives.NewPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue") +id := archives.NewPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue") +id := archives.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName") payload := archives.ArchiveUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go index b7c449dd3d1b..762100372073 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/client.go @@ -15,7 +15,7 @@ type ArchivesClient struct { } func NewArchivesClientWithBaseURI(sdkApi sdkEnv.Api) (*ArchivesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "archives", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "archives", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ArchivesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go index 6f95c8d0cbc9..3e2460f9f434 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_archive.go @@ -46,7 +46,7 @@ func ParseArchiveID(input string) (*ArchiveId, error) { } id := ArchiveId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseArchiveIDInsensitively(input string) (*ArchiveId, error) { } id := ArchiveId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ArchiveId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPackages", "packages", "packages"), - resourceids.UserSpecifiedSegment("packageName", "packageValue"), + resourceids.UserSpecifiedSegment("packageName", "packageType"), resourceids.StaticSegment("staticArchives", "archives", "archives"), - resourceids.UserSpecifiedSegment("archiveName", "archiveValue"), + resourceids.UserSpecifiedSegment("archiveName", "archiveName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go index 20b128bda763..b5573e3617fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/id_package.go @@ -44,7 +44,7 @@ func ParsePackageID(input string) (*PackageId, error) { } id := PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePackageIDInsensitively(input string) (*PackageId, error) { } id := PackageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PackageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPackages", "packages", "packages"), - resourceids.UserSpecifiedSegment("packageName", "packageValue"), + resourceids.UserSpecifiedSegment("packageName", "packageType"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go index 70ccf688a3f2..3d18cdfab3d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_get.go @@ -45,7 +45,6 @@ func (c ArchivesClient) Get(ctx context.Context, id ArchiveId) (result GetOperat var model Archive result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go index 7bcb8caaa98c..3b32e4bd4384 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/method_update.go @@ -49,7 +49,6 @@ func (c ArchivesClient) Update(ctx context.Context, id ArchiveId, input ArchiveU var model Archive result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go index 5cbf34265858..2c486abe329e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archives/version.go @@ -1,12 +1,10 @@ package archives -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/archives/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/archives/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md index f836e5abeec0..211d1135587b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions` Documentation -The `archiveversions` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `archiveversions` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue") +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName", "archiveVersionName") if err := client.CreateThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CreateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue") +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName", "archiveVersionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -48,7 +48,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue") +id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName", "archiveVersionName") read, err := client.Get(ctx, id) if err != nil { @@ -64,7 +64,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := archiveversions.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue") +id := archiveversions.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "packageType", "archiveName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go index 2ac7d871ed35..cef30b31ebda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/client.go @@ -15,7 +15,7 @@ type ArchiveVersionsClient struct { } func NewArchiveVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ArchiveVersionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "archiveversions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "archiveversions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ArchiveVersionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go index aec038aac95d..c3ff182a7ccc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_archive.go @@ -46,7 +46,7 @@ func ParseArchiveID(input string) (*ArchiveId, error) { } id := ArchiveId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseArchiveIDInsensitively(input string) (*ArchiveId, error) { } id := ArchiveId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ArchiveId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPackages", "packages", "packages"), - resourceids.UserSpecifiedSegment("packageName", "packageValue"), + resourceids.UserSpecifiedSegment("packageName", "packageType"), resourceids.StaticSegment("staticArchives", "archives", "archives"), - resourceids.UserSpecifiedSegment("archiveName", "archiveValue"), + resourceids.UserSpecifiedSegment("archiveName", "archiveName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go index 25c4b7da7ed7..5b8320f86443 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/id_version.go @@ -48,7 +48,7 @@ func ParseVersionID(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseVersionIDInsensitively(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id VersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPackages", "packages", "packages"), - resourceids.UserSpecifiedSegment("packageName", "packageValue"), + resourceids.UserSpecifiedSegment("packageName", "packageType"), resourceids.StaticSegment("staticArchives", "archives", "archives"), - resourceids.UserSpecifiedSegment("archiveName", "archiveValue"), + resourceids.UserSpecifiedSegment("archiveName", "archiveName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "archiveVersionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go index 0e5cef42a8a6..c4ca3d2dfc8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/method_get.go @@ -45,7 +45,6 @@ func (c ArchiveVersionsClient) Get(ctx context.Context, id VersionId) (result Ge var model ArchiveVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go index ca8afaf53380..00a7e3cf69de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions/version.go @@ -1,12 +1,10 @@ package archiveversions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/archiveversions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/archiveversions/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md index 84d0f73b142c..3914a770d8f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules` Documentation -The `cacherules` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `cacherules` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") payload := cacherules.CacheRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") payload := cacherules.CacheRuleUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go index 8a3c87e0787b..d8e98c949c5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/client.go @@ -15,7 +15,7 @@ type CacheRulesClient struct { } func NewCacheRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*CacheRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cacherules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cacherules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CacheRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go index 47244dd517b1..18ee6f7cdb17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_cacherule.go @@ -44,7 +44,7 @@ func ParseCacheRuleID(input string) (*CacheRuleId, error) { } id := CacheRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCacheRuleIDInsensitively(input string) (*CacheRuleId, error) { } id := CacheRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CacheRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticCacheRules", "cacheRules", "cacheRules"), - resourceids.UserSpecifiedSegment("cacheRuleName", "cacheRuleValue"), + resourceids.UserSpecifiedSegment("cacheRuleName", "cacheRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go index e60010c55ea6..8f9249caef0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go index 8514302dbc33..5934319965fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/method_get.go @@ -45,7 +45,6 @@ func (c CacheRulesClient) Get(ctx context.Context, id CacheRuleId) (result GetOp var model CacheRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go index f6a78e9ea3ff..b5f0f22edf07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/cacherules/version.go @@ -1,12 +1,10 @@ package cacherules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cacherules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cacherules/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md index 6e446264d729..d6a4440d4e42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries` Documentation -The `connectedregistries` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `connectedregistries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "connectedRegistryValue") +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") payload := connectedregistries.ConnectedRegistry{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "connectedRegistryValue") +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") if err := client.DeactivateThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeactivateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "connectedRegistryValue") +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "connectedRegistryValue") +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +81,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedregistries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := connectedregistries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id, connectedregistries.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, connectedregistries.DefaultListOperationOptions()) @@ -98,7 +98,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "connectedRegistryValue") +id := connectedregistries.NewConnectedRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "connectedRegistryName") payload := connectedregistries.ConnectedRegistryUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go index e91198e1cad8..7580fc11c654 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/client.go @@ -15,7 +15,7 @@ type ConnectedRegistriesClient struct { } func NewConnectedRegistriesClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectedRegistriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectedregistries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectedregistries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectedRegistriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go index 115af5e197d7..e055a0c04a61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_connectedregistry.go @@ -44,7 +44,7 @@ func ParseConnectedRegistryID(input string) (*ConnectedRegistryId, error) { } id := ConnectedRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectedRegistryIDInsensitively(input string) (*ConnectedRegistryId, } id := ConnectedRegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectedRegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticConnectedRegistries", "connectedRegistries", "connectedRegistries"), - resourceids.UserSpecifiedSegment("connectedRegistryName", "connectedRegistryValue"), + resourceids.UserSpecifiedSegment("connectedRegistryName", "connectedRegistryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go index cfb0e0003329..6be8ac207ce5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go index 923fff7d9039..4c81bf8b4b1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_get.go @@ -45,7 +45,6 @@ func (c ConnectedRegistriesClient) Get(ctx context.Context, id ConnectedRegistry var model ConnectedRegistry result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go index cd37a551ab18..8bb816547bbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go index f5fc55a547c5..ebe2a9d7655e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/connectedregistries/version.go @@ -1,12 +1,10 @@ package connectedregistries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectedregistries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectedregistries/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md index a1c57db15264..e32479ed892e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets` Documentation -The `credentialsets` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `credentialsets` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") payload := credentialsets.CredentialSet{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") payload := credentialsets.CredentialSetUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go index cb20ca224462..8a4cdeafb1a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/client.go @@ -15,7 +15,7 @@ type CredentialSetsClient struct { } func NewCredentialSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*CredentialSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "credentialsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "credentialsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CredentialSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go index 2538c5cf3110..294e54d8384b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_credentialset.go @@ -44,7 +44,7 @@ func ParseCredentialSetID(input string) (*CredentialSetId, error) { } id := CredentialSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCredentialSetIDInsensitively(input string) (*CredentialSetId, error) { } id := CredentialSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CredentialSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticCredentialSets", "credentialSets", "credentialSets"), - resourceids.UserSpecifiedSegment("credentialSetName", "credentialSetValue"), + resourceids.UserSpecifiedSegment("credentialSetName", "credentialSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go index e688b3adba09..b65f35b83c17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go index 83eef1b0ac5e..65e3a16b9dae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/method_get.go @@ -45,7 +45,6 @@ func (c CredentialSetsClient) Get(ctx context.Context, id CredentialSetId) (resu var model CredentialSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go index 530629458493..e1198cc81ff8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/credentialsets/version.go @@ -1,12 +1,10 @@ package credentialsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/credentialsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/credentialsets/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md index d1508ce1bdd7..28663560d833 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines` Documentation -The `exportpipelines` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `exportpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "exportPipelineValue") +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") payload := exportpipelines.ExportPipeline{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "exportPipelineValue") +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "exportPipelineValue") +id := exportpipelines.NewExportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "exportPipelineName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exportpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := exportpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go index c744a0df8245..2762c4736275 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/client.go @@ -15,7 +15,7 @@ type ExportPipelinesClient struct { } func NewExportPipelinesClientWithBaseURI(sdkApi sdkEnv.Api) (*ExportPipelinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "exportpipelines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "exportpipelines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExportPipelinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go index 759d844ce6f7..ded876f133ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_exportpipeline.go @@ -44,7 +44,7 @@ func ParseExportPipelineID(input string) (*ExportPipelineId, error) { } id := ExportPipelineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExportPipelineIDInsensitively(input string) (*ExportPipelineId, error) } id := ExportPipelineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExportPipelineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticExportPipelines", "exportPipelines", "exportPipelines"), - resourceids.UserSpecifiedSegment("exportPipelineName", "exportPipelineValue"), + resourceids.UserSpecifiedSegment("exportPipelineName", "exportPipelineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go index 18b200c11317..e16e67217415 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go index 3b290aebdc52..fc95722aa944 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/method_get.go @@ -45,7 +45,6 @@ func (c ExportPipelinesClient) Get(ctx context.Context, id ExportPipelineId) (re var model ExportPipeline result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go index cac8701d42f7..5e46014ffd23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/exportpipelines/version.go @@ -1,12 +1,10 @@ package exportpipelines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/exportpipelines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/exportpipelines/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md index f506d2375277..4a7aaf960de2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines` Documentation -The `importpipelines` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `importpipelines` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "importPipelineValue") +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") payload := importpipelines.ImportPipeline{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "importPipelineValue") +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "importPipelineValue") +id := importpipelines.NewImportPipelineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "importPipelineName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := importpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := importpipelines.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go index b761ac37d614..ef442ee8ef87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/client.go @@ -15,7 +15,7 @@ type ImportPipelinesClient struct { } func NewImportPipelinesClientWithBaseURI(sdkApi sdkEnv.Api) (*ImportPipelinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "importpipelines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "importpipelines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ImportPipelinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go index 3f59946d3dc9..980990c866b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_importpipeline.go @@ -44,7 +44,7 @@ func ParseImportPipelineID(input string) (*ImportPipelineId, error) { } id := ImportPipelineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseImportPipelineIDInsensitively(input string) (*ImportPipelineId, error) } id := ImportPipelineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ImportPipelineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticImportPipelines", "importPipelines", "importPipelines"), - resourceids.UserSpecifiedSegment("importPipelineName", "importPipelineValue"), + resourceids.UserSpecifiedSegment("importPipelineName", "importPipelineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go index 1d176b670fa5..273a48c845d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go index fe6128c1dfcf..d392563356de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/method_get.go @@ -45,7 +45,6 @@ func (c ImportPipelinesClient) Get(ctx context.Context, id ImportPipelineId) (re var model ImportPipeline result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go index 3113dada4e43..7d8ca3a4442f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/importpipelines/version.go @@ -1,12 +1,10 @@ package importpipelines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/importpipelines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/importpipelines/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md index 92b636a428a8..45fb225fd7d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation` Documentation -The `operation` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `operation` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go index bac3e788aaf3..d7880ff04145 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/client.go @@ -15,7 +15,7 @@ type OperationClient struct { } func NewOperationClientWithBaseURI(sdkApi sdkEnv.Api) (*OperationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "operation", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "operation", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OperationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go index 975fa300016e..971af5b4587b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/method_registrieschecknameavailability.go @@ -51,7 +51,6 @@ func (c OperationClient) RegistriesCheckNameAvailability(ctx context.Context, id var model RegistryNameStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go index 1acd5e6016dd..5773e3046910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/operation/version.go @@ -1,12 +1,10 @@ package operation -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/operation/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/operation/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md index 3125c4cefce5..c216898af08f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns` Documentation -The `pipelineruns` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `pipelineruns` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "pipelineRunValue") +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") payload := pipelineruns.PipelineRun{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "pipelineRunValue") +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "pipelineRunValue") +id := pipelineruns.NewPipelineRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "pipelineRunName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pipelineruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := pipelineruns.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go index 72adfa237c89..f5e877b401ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/client.go @@ -15,7 +15,7 @@ type PipelineRunsClient struct { } func NewPipelineRunsClientWithBaseURI(sdkApi sdkEnv.Api) (*PipelineRunsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "pipelineruns", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "pipelineruns", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PipelineRunsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go index 24ad7e056d52..c00c3b469c70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_pipelinerun.go @@ -44,7 +44,7 @@ func ParsePipelineRunID(input string) (*PipelineRunId, error) { } id := PipelineRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePipelineRunIDInsensitively(input string) (*PipelineRunId, error) { } id := PipelineRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PipelineRunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPipelineRuns", "pipelineRuns", "pipelineRuns"), - resourceids.UserSpecifiedSegment("pipelineRunName", "pipelineRunValue"), + resourceids.UserSpecifiedSegment("pipelineRunName", "pipelineRunName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go index 7f91d9fbd7fb..334720487441 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go index 7ab8d1c589df..572b20c19cda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/method_get.go @@ -45,7 +45,6 @@ func (c PipelineRunsClient) Get(ctx context.Context, id PipelineRunId) (result G var model PipelineRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go index c54632b8e630..ab18db63427e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/pipelineruns/version.go @@ -1,12 +1,10 @@ package pipelineruns -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/pipelineruns/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/pipelineruns/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md index b213fe8fea55..952b17565c3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := privateendpointconnections.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go index 3a5c1c4d378f..18e5540952a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go index 109960059c43..cbb9543515a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go index e5b68d8d6ceb..88b36253fd44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md index d9e0e20a5bf5..5ce331f32319 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries` Documentation -The `registries` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `registries` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.Registry{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.GenerateCredentialsParameters{ // ... @@ -71,7 +71,7 @@ if err := client.GenerateCredentialsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "privateLinkResourceValue") +id := registries.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "groupName") read, err := client.GetPrivateLinkResource(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.ImportImageParameters{ // ... @@ -154,7 +154,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") read, err := client.ListCredentials(ctx, id) if err != nil { @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.ListPrivateLinkResources(ctx, id)` can be used to do batched pagination items, err := client.ListPrivateLinkResourcesComplete(ctx, id) @@ -187,7 +187,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") read, err := client.ListUsages(ctx, id) if err != nil { @@ -203,7 +203,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.RegenerateCredentialParameters{ // ... @@ -224,7 +224,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") payload := registries.RegistryUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go index f3defc5ecd2e..19546ba8db38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/client.go @@ -15,7 +15,7 @@ type RegistriesClient struct { } func NewRegistriesClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "registries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "registries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegistriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go index ebf2b8bcac5f..564fe929903d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_privatelinkresource.go @@ -44,7 +44,7 @@ func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error) { } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResource } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticPrivateLinkResources", "privateLinkResources", "privateLinkResources"), - resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceValue"), + resourceids.UserSpecifiedSegment("privateLinkResourceName", "groupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go index ced90cd79e7a..9271561c3be4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go index bfd0c8119211..35c99ecc4a6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_get.go @@ -45,7 +45,6 @@ func (c RegistriesClient) Get(ctx context.Context, id RegistryId) (result GetOpe var model Registry result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go index 1f017340494c..163aa93ca75f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_getprivatelinkresource.go @@ -45,7 +45,6 @@ func (c RegistriesClient) GetPrivateLinkResource(ctx context.Context, id Private var model PrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go index cc5f3f64da15..2c9ddf645353 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listcredentials.go @@ -46,7 +46,6 @@ func (c RegistriesClient) ListCredentials(ctx context.Context, id RegistryId) (r var model RegistryListCredentialsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go index 6a981aee2670..d5f43985b7b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_listusages.go @@ -46,7 +46,6 @@ func (c RegistriesClient) ListUsages(ctx context.Context, id RegistryId) (result var model RegistryUsageListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go index 4db46fb579bc..03fa33af49d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/method_regeneratecredential.go @@ -50,7 +50,6 @@ func (c RegistriesClient) RegenerateCredential(ctx context.Context, id RegistryI var model RegistryListCredentialsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go index 957d6ac0c4dd..258ae6e679f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/registries/version.go @@ -1,12 +1,10 @@ package registries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/registries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/registries/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md index e049f7af4fa9..0ebb57293f6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications` Documentation -The `replications` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `replications` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "replicationValue") +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") payload := replications.Replication{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "replicationValue") +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "replicationValue") +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replications.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := replications.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "replicationValue") +id := replications.NewReplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "replicationName") payload := replications.ReplicationUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go index 4cd118374acb..3728690aaae0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/client.go @@ -15,7 +15,7 @@ type ReplicationsClient struct { } func NewReplicationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go index 5aa993ef70cd..401151f5c11f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go index 604cae9aead2..b862238852fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/id_replication.go @@ -44,7 +44,7 @@ func ParseReplicationID(input string) (*ReplicationId, error) { } id := ReplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationIDInsensitively(input string) (*ReplicationId, error) { } id := ReplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticReplications", "replications", "replications"), - resourceids.UserSpecifiedSegment("replicationName", "replicationValue"), + resourceids.UserSpecifiedSegment("replicationName", "replicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go index 13be12c7ca15..2e98060169be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationsClient) Get(ctx context.Context, id ReplicationId) (result G var model Replication result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go index f38e9ca9c28b..a42b723ef154 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/replications/version.go @@ -1,12 +1,10 @@ package replications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replications/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md index 233535ccd6f4..55101b762e15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps` Documentation -The `scopemaps` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `scopemaps` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue") +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") payload := scopemaps.ScopeMap{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue") +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue") +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scopemaps.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := scopemaps.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "scopeMapValue") +id := scopemaps.NewScopeMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "scopeMapName") payload := scopemaps.ScopeMapUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go index a5ac7bcecec3..fe18db9d17a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/client.go @@ -15,7 +15,7 @@ type ScopeMapsClient struct { } func NewScopeMapsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScopeMapsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scopemaps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scopemaps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScopeMapsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go index 185bfc9501d1..44d9827008d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go index f70441f715a7..8bd3e7878e87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/id_scopemap.go @@ -44,7 +44,7 @@ func ParseScopeMapID(input string) (*ScopeMapId, error) { } id := ScopeMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScopeMapIDInsensitively(input string) (*ScopeMapId, error) { } id := ScopeMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScopeMapId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticScopeMaps", "scopeMaps", "scopeMaps"), - resourceids.UserSpecifiedSegment("scopeMapName", "scopeMapValue"), + resourceids.UserSpecifiedSegment("scopeMapName", "scopeMapName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go index 48e684aa402e..851cf9e9c46a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/method_get.go @@ -45,7 +45,6 @@ func (c ScopeMapsClient) Get(ctx context.Context, id ScopeMapId) (result GetOper var model ScopeMap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go index 4b3c2a8619f1..3ab06ed5ce23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/scopemaps/version.go @@ -1,12 +1,10 @@ package scopemaps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scopemaps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scopemaps/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md index 4b40948e9b72..71545f51031b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens` Documentation -The `tokens` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `tokens` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "tokenValue") +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") payload := tokens.Token{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "tokenValue") +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "tokenValue") +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tokens.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := tokens.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "tokenValue") +id := tokens.NewTokenID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "tokenName") payload := tokens.TokenUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go index 11f08be868cb..496fade07ad6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/client.go @@ -15,7 +15,7 @@ type TokensClient struct { } func NewTokensClientWithBaseURI(sdkApi sdkEnv.Api) (*TokensClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tokens", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tokens", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TokensClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go index fda07a2cc32d..d282875d3e16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go index af095b01bde2..5abaa812d771 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/id_token.go @@ -44,7 +44,7 @@ func ParseTokenID(input string) (*TokenId, error) { } id := TokenId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTokenIDInsensitively(input string) (*TokenId, error) { } id := TokenId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TokenId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticTokens", "tokens", "tokens"), - resourceids.UserSpecifiedSegment("tokenName", "tokenValue"), + resourceids.UserSpecifiedSegment("tokenName", "tokenName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go index d7c6df407ba8..6f07e5caa5ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/method_get.go @@ -45,7 +45,6 @@ func (c TokensClient) Get(ctx context.Context, id TokenId) (result GetOperationR var model Token result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go index b2dfc439841b..c4025a2aae29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/tokens/version.go @@ -1,12 +1,10 @@ package tokens -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tokens/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tokens/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md index 9062845286bc..bd48f8f2904d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks` Documentation -The `webhooks` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-06-01-preview`). +The `webhooks` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") payload := webhooks.WebhookCreateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") read, err := client.GetCallbackConfig(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhooks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := webhooks.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") // alternatively `client.ListEvents(ctx, id)` can be used to do batched pagination items, err := client.ListEventsComplete(ctx, id) @@ -119,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") read, err := client.Ping(ctx, id) if err != nil { @@ -135,7 +135,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "webHookValue") +id := webhooks.NewWebHookID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "webhookName") payload := webhooks.WebhookUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go index b5da8564ffd9..8fce4a9da491 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/client.go @@ -15,7 +15,7 @@ type WebHooksClient struct { } func NewWebHooksClientWithBaseURI(sdkApi sdkEnv.Api) (*WebHooksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webhooks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webhooks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebHooksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go index c878a6063dc6..a6a3919b565a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go index 72e5710069e4..eda18c15f8d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/id_webhook.go @@ -44,7 +44,7 @@ func ParseWebHookID(input string) (*WebHookId, error) { } id := WebHookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWebHookIDInsensitively(input string) (*WebHookId, error) { } id := WebHookId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WebHookId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticWebHooks", "webHooks", "webHooks"), - resourceids.UserSpecifiedSegment("webHookName", "webHookValue"), + resourceids.UserSpecifiedSegment("webHookName", "webhookName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go index e89ea9db5db2..dfb306899c19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_get.go @@ -45,7 +45,6 @@ func (c WebHooksClient) Get(ctx context.Context, id WebHookId) (result GetOperat var model Webhook result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go index 17146c00e680..ecb3c8aded6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_getcallbackconfig.go @@ -46,7 +46,6 @@ func (c WebHooksClient) GetCallbackConfig(ctx context.Context, id WebHookId) (re var model CallbackConfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go index 04e4ef1fde73..a56359e25601 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/method_ping.go @@ -46,7 +46,6 @@ func (c WebHooksClient) Ping(ctx context.Context, id WebHookId) (result PingOper var model EventInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go index 1a86c1789a80..ba43fa1c37b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/webhooks/version.go @@ -1,12 +1,10 @@ package webhooks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webhooks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webhooks/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/README.md index c3a022566c98..9b1d5cb7c39f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules` Documentation -The `cacherules` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-07-01`). +The `cacherules` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") payload := cacherules.CacheRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := cacherules.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "cacheRuleValue") +id := cacherules.NewCacheRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "cacheRuleName") payload := cacherules.CacheRuleUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/client.go index 8a3c87e0787b..d8e98c949c5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/client.go @@ -15,7 +15,7 @@ type CacheRulesClient struct { } func NewCacheRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*CacheRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cacherules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cacherules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CacheRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_cacherule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_cacherule.go index 47244dd517b1..18ee6f7cdb17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_cacherule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_cacherule.go @@ -44,7 +44,7 @@ func ParseCacheRuleID(input string) (*CacheRuleId, error) { } id := CacheRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCacheRuleIDInsensitively(input string) (*CacheRuleId, error) { } id := CacheRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CacheRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticCacheRules", "cacheRules", "cacheRules"), - resourceids.UserSpecifiedSegment("cacheRuleName", "cacheRuleValue"), + resourceids.UserSpecifiedSegment("cacheRuleName", "cacheRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_registry.go index e60010c55ea6..8f9249caef0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/method_get.go index 8514302dbc33..5934319965fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/method_get.go @@ -45,7 +45,6 @@ func (c CacheRulesClient) Get(ctx context.Context, id CacheRuleId) (result GetOp var model CacheRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/version.go index 92ef098585db..0aabb120cea4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/cacherules/version.go @@ -1,12 +1,10 @@ package cacherules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cacherules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cacherules/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/README.md index 1928c694ff77..c9c5db7ed7c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets` Documentation -The `credentialsets` SDK allows for interaction with the Azure Resource Manager Service `containerregistry` (API Version `2023-07-01`). +The `credentialsets` SDK allows for interaction with Azure Resource Manager `containerregistry` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") payload := credentialsets.CredentialSet{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue") +id := credentialsets.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "credentialSetValue") +id := credentialsets.NewCredentialSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "credentialSetName") payload := credentialsets.CredentialSetUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/client.go index cb20ca224462..8a4cdeafb1a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/client.go @@ -15,7 +15,7 @@ type CredentialSetsClient struct { } func NewCredentialSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*CredentialSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "credentialsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "credentialsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CredentialSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_credentialset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_credentialset.go index 2538c5cf3110..294e54d8384b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_credentialset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_credentialset.go @@ -44,7 +44,7 @@ func ParseCredentialSetID(input string) (*CredentialSetId, error) { } id := CredentialSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCredentialSetIDInsensitively(input string) (*CredentialSetId, error) { } id := CredentialSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CredentialSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), resourceids.StaticSegment("staticCredentialSets", "credentialSets", "credentialSets"), - resourceids.UserSpecifiedSegment("credentialSetName", "credentialSetValue"), + resourceids.UserSpecifiedSegment("credentialSetName", "credentialSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_registry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_registry.go index e688b3adba09..b65f35b83c17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_registry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/id_registry.go @@ -42,7 +42,7 @@ func ParseRegistryID(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRegistryIDInsensitively(input string) (*RegistryId, error) { } id := RegistryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RegistryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerRegistry", "Microsoft.ContainerRegistry", "Microsoft.ContainerRegistry"), resourceids.StaticSegment("staticRegistries", "registries", "registries"), - resourceids.UserSpecifiedSegment("registryName", "registryValue"), + resourceids.UserSpecifiedSegment("registryName", "registryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/method_get.go index 83eef1b0ac5e..65e3a16b9dae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/method_get.go @@ -45,7 +45,6 @@ func (c CredentialSetsClient) Get(ctx context.Context, id CredentialSetId) (resu var model CredentialSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/version.go index 51ea87a3966c..a9c3c9e84ce1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/credentialsets/version.go @@ -1,12 +1,10 @@ package credentialsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/credentialsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/credentialsets/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/README.md index 0930a3f061dd..5b307c9ee3f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices` Documentation -The `containerservices` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2019-08-01`). +The `containerservices` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2019-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := containerservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := containerservices.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.ListOrchestrators(ctx, id, containerservices.DefaultListOrchestratorsOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/client.go index dbb918e99a68..e893c4d57a4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/client.go @@ -15,7 +15,7 @@ type ContainerServicesClient struct { } func NewContainerServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*ContainerServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "containerservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "containerservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContainerServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/id_location.go index 40ba667266ce..a92b2952cc3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go index 9940d416c04b..93e73859b648 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/method_listorchestrators.go @@ -34,6 +34,7 @@ func (o ListOrchestratorsOperationOptions) ToHeaders() *client.Headers { func (o ListOrchestratorsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ContainerServicesClient) ListOrchestrators(ctx context.Context, id Locat var model OrchestratorVersionProfileListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/version.go index b89b4c90531e..69b5d00acc82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2019-08-01/containerservices/version.go @@ -1,12 +1,10 @@ package containerservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/containerservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/containerservices/2019-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md index aaacb5c5e484..48f99637560d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools` Documentation -The `agentpools` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `agentpools` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") payload := agentpools.AgentPool{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.DeleteThenPoll(ctx, id, agentpools.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id, agentpools.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.UpgradeNodeImageVersionThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/client.go index 2edad36c0059..c46e63234951 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/client.go @@ -15,7 +15,7 @@ type AgentPoolsClient struct { } func NewAgentPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentPoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agentpools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agentpools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgentPoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/id_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/id_agentpool.go index 3f8470383519..f45a42615454 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/id_agentpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/id_agentpool.go @@ -44,7 +44,7 @@ func ParseAgentPoolID(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAgentPoolIDInsensitively(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AgentPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), - resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolValue"), + resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go index 4943dd2d43e8..046bdd6d7b35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_get.go index 97eecd6a97af..ea20389e4a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_get.go @@ -45,7 +45,6 @@ func (c AgentPoolsClient) Get(ctx context.Context, id AgentPoolId) (result GetOp var model AgentPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getavailableagentpoolversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getavailableagentpoolversions.go index 81aa1c660a47..685d4c2c2ec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getavailableagentpoolversions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getavailableagentpoolversions.go @@ -47,7 +47,6 @@ func (c AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context, id var model AgentPoolAvailableVersions result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getupgradeprofile.go index e8d8a91ceed6..1810ae898b6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/method_getupgradeprofile.go @@ -46,7 +46,6 @@ func (c AgentPoolsClient) GetUpgradeProfile(ctx context.Context, id AgentPoolId) var model AgentPoolUpgradeProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/version.go index 80d44b191e2d..10075230c051 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/agentpools/version.go @@ -1,12 +1,10 @@ package agentpools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agentpools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agentpools/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md index 10bf032259c0..2cf0d9912b61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations` Documentation -The `maintenanceconfigurations` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `maintenanceconfigurations` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") payload := maintenanceconfigurations.MaintenanceConfiguration{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/client.go index 4d799de617cf..bcb48de37791 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/client.go @@ -15,7 +15,7 @@ type MaintenanceConfigurationsClient struct { } func NewMaintenanceConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*MaintenanceConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MaintenanceConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/id_maintenanceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/id_maintenanceconfiguration.go index cb172f6bd60a..cb14a0833605 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/id_maintenanceconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/id_maintenanceconfiguration.go @@ -44,7 +44,7 @@ func ParseMaintenanceConfigurationID(input string) (*MaintenanceConfigurationId, } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMaintenanceConfigurationIDInsensitively(input string) (*MaintenanceCon } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MaintenanceConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticMaintenanceConfigurations", "maintenanceConfigurations", "maintenanceConfigurations"), - resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "maintenanceConfigurationValue"), + resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "configName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_createorupdate.go index 726183cac89b..17459f461eb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_createorupdate.go @@ -49,7 +49,6 @@ func (c MaintenanceConfigurationsClient) CreateOrUpdate(ctx context.Context, id var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_get.go index 6ea658ab6d50..3989652ca968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c MaintenanceConfigurationsClient) Get(ctx context.Context, id Maintenance var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/version.go index e9ccc7096d9a..ebe3bbacc1dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/maintenanceconfigurations/version.go @@ -1,12 +1,10 @@ package maintenanceconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/maintenanceconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/maintenanceconfigurations/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md index e8afcddb3b83..508860ecbc1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters` Documentation -The `managedclusters` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `managedclusters` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedCluster{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id, managedclusters.DefaultDeleteOperationO ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewAccessProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "accessProfileValue") +id := managedclusters.NewAccessProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "roleName") read, err := client.GetAccessProfile(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewCommandResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "commandIdValue") +id := managedclusters.NewCommandResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "commandId") read, err := client.GetCommandResult(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.GetOSOptions(ctx, id, managedclusters.DefaultGetOSOptionsOperationOptions()) if err != nil { @@ -130,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -180,7 +180,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -196,7 +196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -212,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.ListKubernetesVersions(ctx, id) if err != nil { @@ -244,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -261,7 +261,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -278,7 +278,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -295,7 +295,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -307,7 +307,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -319,7 +319,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.RunCommandRequest{ // ... @@ -336,7 +336,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -348,7 +348,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -360,7 +360,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/client.go index 5081c63c8e61..a2037a7e28b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/client.go @@ -15,7 +15,7 @@ type ManagedClustersClient struct { } func NewManagedClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_accessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_accessprofile.go index 6719ccebee19..292f444cb705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_accessprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_accessprofile.go @@ -44,7 +44,7 @@ func ParseAccessProfileID(input string) (*AccessProfileId, error) { } id := AccessProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessProfileIDInsensitively(input string) (*AccessProfileId, error) { } id := AccessProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticAccessProfiles", "accessProfiles", "accessProfiles"), - resourceids.UserSpecifiedSegment("accessProfileName", "accessProfileValue"), + resourceids.UserSpecifiedSegment("accessProfileName", "roleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_commandresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_commandresult.go index 8cad7061547f..be78edd1c374 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_commandresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_commandresult.go @@ -44,7 +44,7 @@ func ParseCommandResultID(input string) (*CommandResultId, error) { } id := CommandResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCommandResultIDInsensitively(input string) (*CommandResultId, error) { } id := CommandResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CommandResultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticCommandResults", "commandResults", "commandResults"), - resourceids.UserSpecifiedSegment("commandId", "commandIdValue"), + resourceids.UserSpecifiedSegment("commandId", "commandId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_location.go index 2a97028d499a..39e02aa38991 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go index d7cee216475a..5fe68bf23ab1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_delete.go @@ -37,6 +37,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_get.go index 7962c50ca93f..5c5b9cd89b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_get.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) Get(ctx context.Context, id commonids.KubernetesC var model ManagedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getaccessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getaccessprofile.go index fb2fd875c420..99bbda7cca54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getaccessprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getaccessprofile.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) GetAccessProfile(ctx context.Context, id AccessPr var model ManagedClusterAccessProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getcommandresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getcommandresult.go index 3f6f4f1f00f4..9cd6f99a5f98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getcommandresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getcommandresult.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) GetCommandResult(ctx context.Context, id CommandR var model RunCommandResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go index f255b25649c2..84d4ecd37440 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getosoptions.go @@ -34,6 +34,7 @@ func (o GetOSOptionsOperationOptions) ToHeaders() *client.Headers { func (o GetOSOptionsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ManagedClustersClient) GetOSOptions(ctx context.Context, id LocationId, var model OSOptionProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getupgradeprofile.go index 9b500de8b580..b5a5533d9e39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_getupgradeprofile.go @@ -47,7 +47,6 @@ func (c ManagedClustersClient) GetUpgradeProfile(ctx context.Context, id commoni var model ManagedClusterUpgradeProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go index c12814454628..7ccb6f0d6eb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusteradmincredentials.go @@ -35,6 +35,7 @@ func (o ListClusterAdminCredentialsOperationOptions) ToHeaders() *client.Headers func (o ListClusterAdminCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go index 17ffc52bd4cf..cdf8383752ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclustermonitoringusercredentials.go @@ -35,6 +35,7 @@ func (o ListClusterMonitoringUserCredentialsOperationOptions) ToHeaders() *clien func (o ListClusterMonitoringUserCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go index 20feffa44182..ce168c171aa3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listclusterusercredentials.go @@ -36,6 +36,7 @@ func (o ListClusterUserCredentialsOperationOptions) ToHeaders() *client.Headers func (o ListClusterUserCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listkubernetesversions.go index 4de425a9201f..286125762cdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listkubernetesversions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/method_listkubernetesversions.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) ListKubernetesVersions(ctx context.Context, id Lo var model KubernetesVersionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/version.go index 321a7a0eed71..3c0434fe0c0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclusters/version.go @@ -1,12 +1,10 @@ package managedclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedclusters/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md index 9dff4dbe26de..131fe45d5d4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots` Documentation -The `managedclustersnapshots` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `managedclustersnapshots` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterSnapshotValue") +id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := managedclustersnapshots.ManagedClusterSnapshot{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterSnapshotValue") +id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterSnapshotValue") +id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterSnapshotValue") +id := managedclustersnapshots.NewManagedClusterSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := managedclustersnapshots.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/client.go index 939ebd0b9843..87f79ccf5636 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/client.go @@ -15,7 +15,7 @@ type ManagedClusterSnapshotsClient struct { } func NewManagedClusterSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedClusterSnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedclustersnapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedclustersnapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedClusterSnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/id_managedclustersnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/id_managedclustersnapshot.go index bd22899cf084..f67238a89dba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/id_managedclustersnapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/id_managedclustersnapshot.go @@ -42,7 +42,7 @@ func ParseManagedClusterSnapshotID(input string) (*ManagedClusterSnapshotId, err } id := ManagedClusterSnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedClusterSnapshotIDInsensitively(input string) (*ManagedClusterSn } id := ManagedClusterSnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedClusterSnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusterSnapshots", "managedClusterSnapshots", "managedClusterSnapshots"), - resourceids.UserSpecifiedSegment("managedClusterSnapshotName", "managedClusterSnapshotValue"), + resourceids.UserSpecifiedSegment("managedClusterSnapshotName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_createorupdate.go index 1041144ec509..1d79274192eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ManagedClusterSnapshotsClient) CreateOrUpdate(ctx context.Context, id Ma var model ManagedClusterSnapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_get.go index ead8643d9dc7..3b0b9a991fa2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_get.go @@ -45,7 +45,6 @@ func (c ManagedClusterSnapshotsClient) Get(ctx context.Context, id ManagedCluste var model ManagedClusterSnapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_updatetags.go index f6dcaa5a53e6..11373c0908fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/method_updatetags.go @@ -49,7 +49,6 @@ func (c ManagedClusterSnapshotsClient) UpdateTags(ctx context.Context, id Manage var model ManagedClusterSnapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/version.go index 2db5d2b0905e..4644cfa43a45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/managedclustersnapshots/version.go @@ -1,12 +1,10 @@ package managedclustersnapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedclustersnapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedclustersnapshots/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md index 8ce6529a7f67..a3c04c28a9d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -53,7 +53,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.List(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/id_privateendpointconnection.go index c682166f416d..7ad36e39a628 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_list.go index bd4dd26e8bbd..1ed7cfe4cf65 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_list.go @@ -47,7 +47,6 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id commonids var model PrivateEndpointConnectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_update.go index c118ecada7d2..1b91edb4dda4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/method_update.go @@ -49,7 +49,6 @@ func (c PrivateEndpointConnectionsClient) Update(ctx context.Context, id Private var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/version.go index eef3cdbcf264..34b1b079ab63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md index b7775c0efd09..387ab675e595 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/method_list.go index 836fd220ae3c..905a02fa8032 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/method_list.go @@ -47,7 +47,6 @@ func (c PrivateLinkResourcesClient) List(ctx context.Context, id commonids.Kuber var model PrivateLinkResourcesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/version.go index 6d4c708c2388..57e34b7a3d2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md index dbc24b832d8a..90356b6ebed6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid` Documentation -The `resolveprivatelinkserviceid` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `resolveprivatelinkserviceid` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := resolveprivatelinkserviceid.PrivateLinkResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/client.go index dd21ffc0b6b5..5682fe91725b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/client.go @@ -15,7 +15,7 @@ type ResolvePrivateLinkServiceIdClient struct { } func NewResolvePrivateLinkServiceIdClientWithBaseURI(sdkApi sdkEnv.Api) (*ResolvePrivateLinkServiceIdClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resolveprivatelinkserviceid", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resolveprivatelinkserviceid", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResolvePrivateLinkServiceIdClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/method_post.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/method_post.go index f583a77cede9..de55fb54ccc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/method_post.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/method_post.go @@ -51,7 +51,6 @@ func (c ResolvePrivateLinkServiceIdClient) POST(ctx context.Context, id commonid var model PrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/version.go index d9166e02ecf7..134e71852f02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/resolveprivatelinkserviceid/version.go @@ -1,12 +1,10 @@ package resolveprivatelinkserviceid -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resolveprivatelinkserviceid/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resolveprivatelinkserviceid/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md index effae843adf8..9344071738a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `snapshots` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := snapshots.Snapshot{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := snapshots.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/client.go index 620b7900eab7..678a64470aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/client.go @@ -15,7 +15,7 @@ type SnapshotsClient struct { } func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/id_snapshot.go index 36f5d370bdf6..378c04ec35a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/id_snapshot.go @@ -42,7 +42,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotName", "snapshotValue"), + resourceids.UserSpecifiedSegment("snapshotName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_createorupdate.go index 201c0eaedc76..2085af2f95be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SnapshotsClient) CreateOrUpdate(ctx context.Context, id SnapshotId, inpu var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_get.go index d020538006a5..68b676f0115f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_get.go @@ -45,7 +45,6 @@ func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOper var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_updatetags.go index 60346d7cddc1..86fd5d87f003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/method_updatetags.go @@ -49,7 +49,6 @@ func (c SnapshotsClient) UpdateTags(ctx context.Context, id SnapshotId, input Ta var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/version.go index 2ee5abc1fcaa..a2ac47f2113f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/snapshots/version.go @@ -1,12 +1,10 @@ package snapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshots/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md index 5638d8d0a27c..1cca96bf3585 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess` Documentation -The `trustedaccess` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2023-03-02-preview`). +The `trustedaccess` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2023-03-02-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue") +id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "trustedAccessRoleBindingName") payload := trustedaccess.TrustedAccessRoleBinding{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue") +id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "trustedAccessRoleBindingName") read, err := client.RoleBindingsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "trustedAccessRoleBindingValue") +id := trustedaccess.NewTrustedAccessRoleBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "trustedAccessRoleBindingName") read, err := client.RoleBindingsGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.RoleBindingsList(ctx, id)` can be used to do batched pagination items, err := client.RoleBindingsListComplete(ctx, id) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := trustedaccess.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := trustedaccess.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.RolesList(ctx, id)` can be used to do batched pagination items, err := client.RolesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/client.go index 3478bfc5e372..e3e1d5a54e4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/client.go @@ -15,7 +15,7 @@ type TrustedAccessClient struct { } func NewTrustedAccessClientWithBaseURI(sdkApi sdkEnv.Api) (*TrustedAccessClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "trustedaccess", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "trustedaccess", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TrustedAccessClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_location.go index f2c540d6e65a..ee307de7b57a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_trustedaccessrolebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_trustedaccessrolebinding.go index 18c1e6b10f36..f6b33cf608ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_trustedaccessrolebinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/id_trustedaccessrolebinding.go @@ -44,7 +44,7 @@ func ParseTrustedAccessRoleBindingID(input string) (*TrustedAccessRoleBindingId, } id := TrustedAccessRoleBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTrustedAccessRoleBindingIDInsensitively(input string) (*TrustedAccessR } id := TrustedAccessRoleBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TrustedAccessRoleBindingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticTrustedAccessRoleBindings", "trustedAccessRoleBindings", "trustedAccessRoleBindings"), - resourceids.UserSpecifiedSegment("trustedAccessRoleBindingName", "trustedAccessRoleBindingValue"), + resourceids.UserSpecifiedSegment("trustedAccessRoleBindingName", "trustedAccessRoleBindingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingscreateorupdate.go index a8371698581f..7d5802ff7f7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingscreateorupdate.go @@ -49,7 +49,6 @@ func (c TrustedAccessClient) RoleBindingsCreateOrUpdate(ctx context.Context, id var model TrustedAccessRoleBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingsget.go index a0b81891af6f..d70aa4cbfb45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/method_rolebindingsget.go @@ -45,7 +45,6 @@ func (c TrustedAccessClient) RoleBindingsGet(ctx context.Context, id TrustedAcce var model TrustedAccessRoleBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/version.go index 4d9414bda782..8c4511b21ce1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2023-03-02-preview/trustedaccess/version.go @@ -1,12 +1,10 @@ package trustedaccess -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-02-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/trustedaccess/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/trustedaccess/2023-03-02-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/README.md index f78359cb9a70..b881fbf04d74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers` Documentation -The `fleetmembers` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-04-01`). +The `fleetmembers` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue") +id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "fleetMemberName") payload := fleetmembers.FleetMember{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload, fleetmembers.DefaultCreateOper ```go ctx := context.TODO() -id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue") +id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "fleetMemberName") if err := client.DeleteThenPoll(ctx, id, fleetmembers.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, fleetmembers.DefaultDeleteOperationOpti ```go ctx := context.TODO() -id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue") +id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "fleetMemberName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fleetmembers.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleetmembers.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") // alternatively `client.ListByFleet(ctx, id)` can be used to do batched pagination items, err := client.ListByFleetComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "memberValue") +id := fleetmembers.NewMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "fleetMemberName") payload := fleetmembers.FleetMemberUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/client.go index 1f2556b87438..4ae813805f10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/client.go @@ -15,7 +15,7 @@ type FleetMembersClient struct { } func NewFleetMembersClientWithBaseURI(sdkApi sdkEnv.Api) (*FleetMembersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fleetmembers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fleetmembers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FleetMembersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_fleet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_fleet.go index 2795f9626bd4..cb40c9190ea5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_fleet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_fleet.go @@ -42,7 +42,7 @@ func ParseFleetID(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFleetIDInsensitively(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FleetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_member.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_member.go index 4363bf1487a8..09870cf19913 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_member.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/id_member.go @@ -44,7 +44,7 @@ func ParseMemberID(input string) (*MemberId, error) { } id := MemberId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMemberIDInsensitively(input string) (*MemberId, error) { } id := MemberId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MemberId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), resourceids.StaticSegment("staticMembers", "members", "members"), - resourceids.UserSpecifiedSegment("memberName", "memberValue"), + resourceids.UserSpecifiedSegment("memberName", "fleetMemberName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_create.go index 9262ed20170b..863427e015b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_create.go @@ -43,6 +43,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_delete.go index 9a1357f94b54..b4dcd897327e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_get.go index 3987fc968d25..40f85147798c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_get.go @@ -45,7 +45,6 @@ func (c FleetMembersClient) Get(ctx context.Context, id MemberId) (result GetOpe var model FleetMember result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_update.go index d3cf5af1fcd6..8be3394469bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/version.go index 4d295640acc6..f6bab2178a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetmembers/version.go @@ -1,12 +1,10 @@ package fleetmembers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fleetmembers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fleetmembers/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/README.md index ede3f078aef8..edad9b497c39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets` Documentation -The `fleets` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-04-01`). +The `fleets` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") payload := fleets.Fleet{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, fleets.DefaultCreateOr ```go ctx := context.TODO() -id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") if err := client.DeleteThenPoll(ctx, id, fleets.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, fleets.DefaultDeleteOperationOptions()) ```go ctx := context.TODO() -id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") read, err := client.ListCredentials(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleets.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") payload := fleets.FleetPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/client.go index 199fd2ac0ede..212151c25700 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/client.go @@ -15,7 +15,7 @@ type FleetsClient struct { } func NewFleetsClientWithBaseURI(sdkApi sdkEnv.Api) (*FleetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fleets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fleets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FleetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/id_fleet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/id_fleet.go index 6fce8b8ea59b..2c1376f96146 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/id_fleet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/id_fleet.go @@ -42,7 +42,7 @@ func ParseFleetID(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFleetIDInsensitively(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FleetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_createorupdate.go index f2a4ae483c0b..8ce25cd6c504 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_delete.go index f8ce48096f6f..603d4bba4bf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_get.go index 146f057c8617..c45bbd36e112 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_get.go @@ -45,7 +45,6 @@ func (c FleetsClient) Get(ctx context.Context, id FleetId) (result GetOperationR var model Fleet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_listcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_listcredentials.go index 1e024cb076cf..67aefe4c3c09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_listcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_listcredentials.go @@ -46,7 +46,6 @@ func (c FleetsClient) ListCredentials(ctx context.Context, id FleetId) (result L var model FleetCredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_update.go index c227554999ab..0ee99d9de026 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/version.go index d31bc8fa96a1..f7553ad5fa50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleets/version.go @@ -1,12 +1,10 @@ package fleets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fleets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fleets/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/README.md index cd732f0522a4..60d890f45019 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies` Documentation -The `fleetupdatestrategies` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-04-01`). +The `fleetupdatestrategies` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateStrategyValue") +id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateStrategyName") payload := fleetupdatestrategies.FleetUpdateStrategy{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, fleetupdatestrategies. ```go ctx := context.TODO() -id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateStrategyValue") +id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateStrategyName") if err := client.DeleteThenPoll(ctx, id, fleetupdatestrategies.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, fleetupdatestrategies.DefaultDeleteOper ```go ctx := context.TODO() -id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateStrategyValue") +id := fleetupdatestrategies.NewUpdateStrategyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateStrategyName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fleetupdatestrategies.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := fleetupdatestrategies.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") // alternatively `client.ListByFleet(ctx, id)` can be used to do batched pagination items, err := client.ListByFleetComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/client.go index 4f33ef884ac1..ef7f28de5bc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/client.go @@ -15,7 +15,7 @@ type FleetUpdateStrategiesClient struct { } func NewFleetUpdateStrategiesClientWithBaseURI(sdkApi sdkEnv.Api) (*FleetUpdateStrategiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fleetupdatestrategies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fleetupdatestrategies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FleetUpdateStrategiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_fleet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_fleet.go index fdfca4e72417..74fe7e5efd25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_fleet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_fleet.go @@ -42,7 +42,7 @@ func ParseFleetID(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFleetIDInsensitively(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FleetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_updatestrategy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_updatestrategy.go index 5d4d6e2a9bfa..f3e21a4b1854 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_updatestrategy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/id_updatestrategy.go @@ -44,7 +44,7 @@ func ParseUpdateStrategyID(input string) (*UpdateStrategyId, error) { } id := UpdateStrategyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateStrategyIDInsensitively(input string) (*UpdateStrategyId, error) } id := UpdateStrategyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateStrategyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), resourceids.StaticSegment("staticUpdateStrategies", "updateStrategies", "updateStrategies"), - resourceids.UserSpecifiedSegment("updateStrategyName", "updateStrategyValue"), + resourceids.UserSpecifiedSegment("updateStrategyName", "updateStrategyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_createorupdate.go index e8bbc7612058..bb24a7a38fe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_delete.go index c825765bfe61..c4cdd1a25d50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_get.go index 6abfa83b7e30..fffad5ecff7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/method_get.go @@ -45,7 +45,6 @@ func (c FleetUpdateStrategiesClient) Get(ctx context.Context, id UpdateStrategyI var model FleetUpdateStrategy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/version.go index d7894cc6ae19..47a395f841d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/fleetupdatestrategies/version.go @@ -1,12 +1,10 @@ package fleetupdatestrategies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fleetupdatestrategies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fleetupdatestrategies/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/README.md index 9f0f612a5be0..7100cae5ec87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns` Documentation -The `updateruns` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-04-01`). +The `updateruns` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") payload := updateruns.UpdateRun{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, updateruns.DefaultCrea ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") if err := client.DeleteThenPoll(ctx, id, updateruns.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, updateruns.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := updateruns.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue") +id := updateruns.NewFleetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName") // alternatively `client.ListByFleet(ctx, id)` can be used to do batched pagination items, err := client.ListByFleetComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") payload := updateruns.SkipProperties{ // ... @@ -103,7 +103,7 @@ if err := client.SkipThenPoll(ctx, id, payload, updateruns.DefaultSkipOperationO ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") if err := client.StartThenPoll(ctx, id, updateruns.DefaultStartOperationOptions()); err != nil { // handle the error @@ -115,7 +115,7 @@ if err := client.StartThenPoll(ctx, id, updateruns.DefaultStartOperationOptions( ```go ctx := context.TODO() -id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetValue", "updateRunValue") +id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fleetName", "updateRunName") if err := client.StopThenPoll(ctx, id, updateruns.DefaultStopOperationOptions()); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/client.go index a5becca3c6b3..e25bd8527887 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/client.go @@ -15,7 +15,7 @@ type UpdateRunsClient struct { } func NewUpdateRunsClientWithBaseURI(sdkApi sdkEnv.Api) (*UpdateRunsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "updateruns", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "updateruns", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UpdateRunsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_fleet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_fleet.go index c64c7ee3c36b..67dd65627c06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_fleet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_fleet.go @@ -42,7 +42,7 @@ func ParseFleetID(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFleetIDInsensitively(input string) (*FleetId, error) { } id := FleetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FleetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_updaterun.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_updaterun.go index 08d19f8e02a4..8fc5943486e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_updaterun.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/id_updaterun.go @@ -44,7 +44,7 @@ func ParseUpdateRunID(input string) (*UpdateRunId, error) { } id := UpdateRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateRunIDInsensitively(input string) (*UpdateRunId, error) { } id := UpdateRunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateRunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticFleets", "fleets", "fleets"), - resourceids.UserSpecifiedSegment("fleetName", "fleetValue"), + resourceids.UserSpecifiedSegment("fleetName", "fleetName"), resourceids.StaticSegment("staticUpdateRuns", "updateRuns", "updateRuns"), - resourceids.UserSpecifiedSegment("updateRunName", "updateRunValue"), + resourceids.UserSpecifiedSegment("updateRunName", "updateRunName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_createorupdate.go index 77b246d571a8..ab0f8d6a5066 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_delete.go index 5987e76eb415..a26ed011af11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_get.go index 674bbb589e9f..499bee735f82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_get.go @@ -45,7 +45,6 @@ func (c UpdateRunsClient) Get(ctx context.Context, id UpdateRunId) (result GetOp var model UpdateRun result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_skip.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_skip.go index eac1dab6fb6d..e6dbcc5d0464 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_skip.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_skip.go @@ -39,6 +39,7 @@ func (o SkipOperationOptions) ToHeaders() *client.Headers { func (o SkipOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_start.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_start.go index 618fd2ad6f6a..fc306bd10ded 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_start.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_start.go @@ -39,6 +39,7 @@ func (o StartOperationOptions) ToHeaders() *client.Headers { func (o StartOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_stop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_stop.go index 507884b05e8b..cef624442f03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_stop.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/method_stop.go @@ -39,6 +39,7 @@ func (o StopOperationOptions) ToHeaders() *client.Headers { func (o StopOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/version.go index 9a418161c050..263fa66da0f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-04-01/updateruns/version.go @@ -1,12 +1,10 @@ package updateruns -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/updateruns/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/updateruns/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/README.md index 4d852fa96b89..1d17d41326e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools` Documentation -The `agentpools` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-05-01`). +The `agentpools` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") payload := agentpools.AgentPool{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.GetAvailableAgentPoolVersions(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "agentPoolValue") +id := agentpools.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "agentPoolName") if err := client.UpgradeNodeImageVersionThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/client.go index 2edad36c0059..c46e63234951 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/client.go @@ -15,7 +15,7 @@ type AgentPoolsClient struct { } func NewAgentPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentPoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agentpools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agentpools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgentPoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/id_agentpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/id_agentpool.go index 3f8470383519..f45a42615454 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/id_agentpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/id_agentpool.go @@ -44,7 +44,7 @@ func ParseAgentPoolID(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAgentPoolIDInsensitively(input string) (*AgentPoolId, error) { } id := AgentPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AgentPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticAgentPools", "agentPools", "agentPools"), - resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolValue"), + resourceids.UserSpecifiedSegment("agentPoolName", "agentPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_get.go index 97eecd6a97af..ea20389e4a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_get.go @@ -45,7 +45,6 @@ func (c AgentPoolsClient) Get(ctx context.Context, id AgentPoolId) (result GetOp var model AgentPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getavailableagentpoolversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getavailableagentpoolversions.go index 81aa1c660a47..685d4c2c2ec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getavailableagentpoolversions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getavailableagentpoolversions.go @@ -47,7 +47,6 @@ func (c AgentPoolsClient) GetAvailableAgentPoolVersions(ctx context.Context, id var model AgentPoolAvailableVersions result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getupgradeprofile.go index e8d8a91ceed6..1810ae898b6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/method_getupgradeprofile.go @@ -46,7 +46,6 @@ func (c AgentPoolsClient) GetUpgradeProfile(ctx context.Context, id AgentPoolId) var model AgentPoolUpgradeProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/version.go index be0357b8bc24..276532eba787 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/agentpools/version.go @@ -1,12 +1,10 @@ package agentpools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agentpools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agentpools/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/README.md index d8dfda44d330..a8cc8b55e73a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations` Documentation -The `maintenanceconfigurations` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-05-01`). +The `maintenanceconfigurations` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") payload := maintenanceconfigurations.MaintenanceConfiguration{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "configName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.ListByManagedCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/client.go index 4d799de617cf..bcb48de37791 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/client.go @@ -15,7 +15,7 @@ type MaintenanceConfigurationsClient struct { } func NewMaintenanceConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*MaintenanceConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MaintenanceConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/id_maintenanceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/id_maintenanceconfiguration.go index cb172f6bd60a..cb14a0833605 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/id_maintenanceconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/id_maintenanceconfiguration.go @@ -44,7 +44,7 @@ func ParseMaintenanceConfigurationID(input string) (*MaintenanceConfigurationId, } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMaintenanceConfigurationIDInsensitively(input string) (*MaintenanceCon } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MaintenanceConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticMaintenanceConfigurations", "maintenanceConfigurations", "maintenanceConfigurations"), - resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "maintenanceConfigurationValue"), + resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "configName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_createorupdate.go index 6f8389d858df..a6e8fc757223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c MaintenanceConfigurationsClient) CreateOrUpdate(ctx context.Context, id var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_get.go index 6ea658ab6d50..3989652ca968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c MaintenanceConfigurationsClient) Get(ctx context.Context, id Maintenance var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/version.go index 97140e0ba21b..94e9a6cec402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/maintenanceconfigurations/version.go @@ -1,12 +1,10 @@ package maintenanceconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/maintenanceconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/maintenanceconfigurations/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/README.md index 31f49582ea3c..4e25bf1b6313 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters` Documentation -The `managedclusters` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-05-01`). +The `managedclusters` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AbortLatestOperationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedCluster{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewAccessProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "accessProfileValue") +id := managedclusters.NewAccessProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "roleName") read, err := client.GetAccessProfile(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewCommandResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "commandIdValue") +id := managedclusters.NewCommandResultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "commandId") read, err := client.GetCommandResult(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewMeshRevisionProfileID("12345678-1234-9876-4563-123456789012", "locationValue", "meshRevisionProfileValue") +id := managedclusters.NewMeshRevisionProfileID("12345678-1234-9876-4563-123456789012", "location", "mode") read, err := client.GetMeshRevisionProfile(ctx, id) if err != nil { @@ -130,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewMeshUpgradeProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "meshUpgradeProfileValue") +id := managedclusters.NewMeshUpgradeProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "mode") read, err := client.GetMeshUpgradeProfile(ctx, id) if err != nil { @@ -146,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.GetUpgradeProfile(ctx, id) if err != nil { @@ -196,7 +196,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterAdminCredentials(ctx, id, managedclusters.DefaultListClusterAdminCredentialsOperationOptions()) if err != nil { @@ -212,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterMonitoringUserCredentials(ctx, id, managedclusters.DefaultListClusterMonitoringUserCredentialsOperationOptions()) if err != nil { @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") read, err := client.ListClusterUserCredentials(ctx, id, managedclusters.DefaultListClusterUserCredentialsOperationOptions()) if err != nil { @@ -244,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.ListKubernetesVersions(ctx, id) if err != nil { @@ -260,7 +260,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := managedclusters.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListMeshRevisionProfiles(ctx, id)` can be used to do batched pagination items, err := client.ListMeshRevisionProfilesComplete(ctx, id) @@ -277,7 +277,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.ListMeshUpgradeProfiles(ctx, id)` can be used to do batched pagination items, err := client.ListMeshUpgradeProfilesComplete(ctx, id) @@ -294,7 +294,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -311,7 +311,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedClusterAADProfile{ // ... @@ -328,7 +328,7 @@ if err := client.ResetAADProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.ManagedClusterServicePrincipalProfile{ // ... @@ -345,7 +345,7 @@ if err := client.ResetServicePrincipalProfileThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { // handle the error @@ -357,7 +357,7 @@ if err := client.RotateClusterCertificatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { // handle the error @@ -369,7 +369,7 @@ if err := client.RotateServiceAccountSigningKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.RunCommandRequest{ // ... @@ -386,7 +386,7 @@ if err := client.RunCommandThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -398,7 +398,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -410,7 +410,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := commonids.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterName") payload := managedclusters.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/client.go index 5081c63c8e61..a2037a7e28b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/client.go @@ -15,7 +15,7 @@ type ManagedClustersClient struct { } func NewManagedClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_accessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_accessprofile.go index 6719ccebee19..292f444cb705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_accessprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_accessprofile.go @@ -44,7 +44,7 @@ func ParseAccessProfileID(input string) (*AccessProfileId, error) { } id := AccessProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessProfileIDInsensitively(input string) (*AccessProfileId, error) { } id := AccessProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticAccessProfiles", "accessProfiles", "accessProfiles"), - resourceids.UserSpecifiedSegment("accessProfileName", "accessProfileValue"), + resourceids.UserSpecifiedSegment("accessProfileName", "roleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_commandresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_commandresult.go index 8cad7061547f..be78edd1c374 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_commandresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_commandresult.go @@ -44,7 +44,7 @@ func ParseCommandResultID(input string) (*CommandResultId, error) { } id := CommandResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCommandResultIDInsensitively(input string) (*CommandResultId, error) { } id := CommandResultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CommandResultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticCommandResults", "commandResults", "commandResults"), - resourceids.UserSpecifiedSegment("commandId", "commandIdValue"), + resourceids.UserSpecifiedSegment("commandId", "commandId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_location.go index 2a97028d499a..39e02aa38991 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshrevisionprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshrevisionprofile.go index 6a9b778fbaec..9085f208683a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshrevisionprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshrevisionprofile.go @@ -42,7 +42,7 @@ func ParseMeshRevisionProfileID(input string) (*MeshRevisionProfileId, error) { } id := MeshRevisionProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMeshRevisionProfileIDInsensitively(input string) (*MeshRevisionProfile } id := MeshRevisionProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id MeshRevisionProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticMeshRevisionProfiles", "meshRevisionProfiles", "meshRevisionProfiles"), - resourceids.UserSpecifiedSegment("meshRevisionProfileName", "meshRevisionProfileValue"), + resourceids.UserSpecifiedSegment("meshRevisionProfileName", "mode"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshupgradeprofile.go index 6354c5ca0b84..0f525e4f282a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/id_meshupgradeprofile.go @@ -44,7 +44,7 @@ func ParseMeshUpgradeProfileID(input string) (*MeshUpgradeProfileId, error) { } id := MeshUpgradeProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMeshUpgradeProfileIDInsensitively(input string) (*MeshUpgradeProfileId } id := MeshUpgradeProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MeshUpgradeProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "resourceName"), resourceids.StaticSegment("staticMeshUpgradeProfiles", "meshUpgradeProfiles", "meshUpgradeProfiles"), - resourceids.UserSpecifiedSegment("meshUpgradeProfileName", "meshUpgradeProfileValue"), + resourceids.UserSpecifiedSegment("meshUpgradeProfileName", "mode"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_get.go index 7962c50ca93f..5c5b9cd89b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_get.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) Get(ctx context.Context, id commonids.KubernetesC var model ManagedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getaccessprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getaccessprofile.go index fb2fd875c420..99bbda7cca54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getaccessprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getaccessprofile.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) GetAccessProfile(ctx context.Context, id AccessPr var model ManagedClusterAccessProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getcommandresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getcommandresult.go index 3f6f4f1f00f4..9cd6f99a5f98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getcommandresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getcommandresult.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) GetCommandResult(ctx context.Context, id CommandR var model RunCommandResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshrevisionprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshrevisionprofile.go index 2aa4f55b1c3e..aba6637b8344 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshrevisionprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshrevisionprofile.go @@ -45,7 +45,6 @@ func (c ManagedClustersClient) GetMeshRevisionProfile(ctx context.Context, id Me var model MeshRevisionProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshupgradeprofile.go index 12b2a1032eda..536044f58756 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getmeshupgradeprofile.go @@ -45,7 +45,6 @@ func (c ManagedClustersClient) GetMeshUpgradeProfile(ctx context.Context, id Mes var model MeshUpgradeProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getupgradeprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getupgradeprofile.go index 9b500de8b580..b5a5533d9e39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getupgradeprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_getupgradeprofile.go @@ -47,7 +47,6 @@ func (c ManagedClustersClient) GetUpgradeProfile(ctx context.Context, id commoni var model ManagedClusterUpgradeProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusteradmincredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusteradmincredentials.go index c12814454628..7ccb6f0d6eb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusteradmincredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusteradmincredentials.go @@ -35,6 +35,7 @@ func (o ListClusterAdminCredentialsOperationOptions) ToHeaders() *client.Headers func (o ListClusterAdminCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ManagedClustersClient) ListClusterAdminCredentials(ctx context.Context, var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclustermonitoringusercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclustermonitoringusercredentials.go index 17ffc52bd4cf..cdf8383752ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclustermonitoringusercredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclustermonitoringusercredentials.go @@ -35,6 +35,7 @@ func (o ListClusterMonitoringUserCredentialsOperationOptions) ToHeaders() *clien func (o ListClusterMonitoringUserCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ManagedClustersClient) ListClusterMonitoringUserCredentials(ctx context. var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusterusercredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusterusercredentials.go index 20feffa44182..ce168c171aa3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusterusercredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listclusterusercredentials.go @@ -36,6 +36,7 @@ func (o ListClusterUserCredentialsOperationOptions) ToHeaders() *client.Headers func (o ListClusterUserCredentialsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ManagedClustersClient) ListClusterUserCredentials(ctx context.Context, i var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listkubernetesversions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listkubernetesversions.go index 4de425a9201f..286125762cdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listkubernetesversions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/method_listkubernetesversions.go @@ -46,7 +46,6 @@ func (c ManagedClustersClient) ListKubernetesVersions(ctx context.Context, id Lo var model KubernetesVersionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/version.go index 6c773894558a..7a078bf6542e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/managedclusters/version.go @@ -1,12 +1,10 @@ package managedclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedclusters/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/README.md index d6b53d27f3bd..c7b3935881e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `containerservice` (API Version `2024-05-01`). +The `snapshots` SDK allows for interaction with Azure Resource Manager `containerservice` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := snapshots.Snapshot{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := snapshots.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/client.go index 620b7900eab7..678a64470aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/client.go @@ -15,7 +15,7 @@ type SnapshotsClient struct { } func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/id_snapshot.go index 36f5d370bdf6..378c04ec35a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/id_snapshot.go @@ -42,7 +42,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftContainerService", "Microsoft.ContainerService", "Microsoft.ContainerService"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotName", "snapshotValue"), + resourceids.UserSpecifiedSegment("snapshotName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_createorupdate.go index 201c0eaedc76..2085af2f95be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SnapshotsClient) CreateOrUpdate(ctx context.Context, id SnapshotId, inpu var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_get.go index d020538006a5..68b676f0115f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_get.go @@ -45,7 +45,6 @@ func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOper var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_updatetags.go index 60346d7cddc1..86fd5d87f003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/method_updatetags.go @@ -49,7 +49,6 @@ func (c SnapshotsClient) UpdateTags(ctx context.Context, id SnapshotId, input Ta var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/version.go index 5297cad0e167..264ed3f2731c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/containerservice/2024-05-01/snapshots/version.go @@ -1,12 +1,10 @@ package snapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshots/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md index 8c3eddd8355d..5e131b324188 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb` Documentation -The `cosmosdb` SDK allows for interaction with the Azure Resource Manager Service `cosmosdb` (API Version `2022-05-15`). +The `cosmosdb` SDK allows for interaction with Azure Resource Manager `cosmosdb` (API Version `2022-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") payload := cosmosdb.CassandraKeyspaceCreateUpdateParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CassandraResourcesCreateUpdateCassandraKeyspaceThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") payload := cosmosdb.CassandraTableCreateUpdateParameters{ // ... @@ -59,7 +59,7 @@ if err := client.CassandraResourcesCreateUpdateCassandraTableThenPoll(ctx, id, p ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesDeleteCassandraKeyspaceThenPoll(ctx, id); err != nil { // handle the error @@ -71,7 +71,7 @@ if err := client.CassandraResourcesDeleteCassandraKeyspaceThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesDeleteCassandraTableThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.CassandraResourcesDeleteCassandraTableThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesGetCassandraKeyspace(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesGetCassandraKeyspaceThroughput(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") read, err := client.CassandraResourcesGetCassandraTable(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") read, err := client.CassandraResourcesGetCassandraTableThroughput(ctx, id) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.CassandraResourcesListCassandraKeyspaces(ctx, id) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesListCassandraTables(ctx, id) if err != nil { @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleThenPoll(c ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputThe ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesMigrateCassandraTableToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -215,7 +215,7 @@ if err := client.CassandraResourcesMigrateCassandraTableToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesMigrateCassandraTableToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -227,7 +227,7 @@ if err := client.CassandraResourcesMigrateCassandraTableToManualThroughputThenPo ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -244,7 +244,7 @@ if err := client.CassandraResourcesUpdateCassandraKeyspaceThroughputThenPoll(ctx ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -261,7 +261,7 @@ if err := client.CassandraResourcesUpdateCassandraTableThroughputThenPoll(ctx, i ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListMetricDefinitions(ctx, id) if err != nil { @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListMetrics(ctx, id, cosmosdb.DefaultCollectionListMetricsOperationOptions()) if err != nil { @@ -293,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListUsages(ctx, id, cosmosdb.DefaultCollectionListUsagesOperationOptions()) if err != nil { @@ -309,7 +309,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionPartitionListMetrics(ctx, id, cosmosdb.DefaultCollectionPartitionListMetricsOperationOptions()) if err != nil { @@ -325,7 +325,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionPartitionListUsages(ctx, id, cosmosdb.DefaultCollectionPartitionListUsagesOperationOptions()) if err != nil { @@ -341,7 +341,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue") +id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid") read, err := client.CollectionPartitionRegionListMetrics(ctx, id, cosmosdb.DefaultCollectionPartitionRegionListMetricsOperationOptions()) if err != nil { @@ -357,7 +357,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue") +id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid") read, err := client.CollectionRegionListMetrics(ctx, id, cosmosdb.DefaultCollectionRegionListMetricsOperationOptions()) if err != nil { @@ -373,7 +373,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue") +id := cosmosdb.NewRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region") read, err := client.DatabaseAccountRegionListMetrics(ctx, id, cosmosdb.DefaultDatabaseAccountRegionListMetricsOperationOptions()) if err != nil { @@ -389,7 +389,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountNameID("databaseAccountValue") +id := cosmosdb.NewDatabaseAccountNameID("accountName") read, err := client.DatabaseAccountsCheckNameExists(ctx, id) if err != nil { @@ -405,7 +405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountCreateUpdateParameters{ // ... @@ -422,7 +422,7 @@ if err := client.DatabaseAccountsCreateOrUpdateThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.DatabaseAccountsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -434,7 +434,7 @@ if err := client.DatabaseAccountsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.FailoverPolicies{ // ... @@ -451,7 +451,7 @@ if err := client.DatabaseAccountsFailoverPriorityChangeThenPoll(ctx, id, payload ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsGet(ctx, id) if err != nil { @@ -467,7 +467,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsGetReadOnlyKeys(ctx, id) if err != nil { @@ -515,7 +515,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListConnectionStrings(ctx, id) if err != nil { @@ -531,7 +531,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListKeys(ctx, id) if err != nil { @@ -547,7 +547,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListMetricDefinitions(ctx, id) if err != nil { @@ -563,7 +563,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListMetrics(ctx, id, cosmosdb.DefaultDatabaseAccountsListMetricsOperationOptions()) if err != nil { @@ -579,7 +579,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListReadOnlyKeys(ctx, id) if err != nil { @@ -595,7 +595,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListUsages(ctx, id, cosmosdb.DefaultDatabaseAccountsListUsagesOperationOptions()) if err != nil { @@ -611,7 +611,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.RegionForOnlineOffline{ // ... @@ -628,7 +628,7 @@ if err := client.DatabaseAccountsOfflineRegionThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.RegionForOnlineOffline{ // ... @@ -645,7 +645,7 @@ if err := client.DatabaseAccountsOnlineRegionThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountRegenerateKeyParameters{ // ... @@ -662,7 +662,7 @@ if err := client.DatabaseAccountsRegenerateKeyThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountUpdateParameters{ // ... @@ -679,7 +679,7 @@ if err := client.DatabaseAccountsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListMetricDefinitions(ctx, id) if err != nil { @@ -695,7 +695,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListMetrics(ctx, id, cosmosdb.DefaultDatabaseListMetricsOperationOptions()) if err != nil { @@ -711,7 +711,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListUsages(ctx, id, cosmosdb.DefaultDatabaseListUsagesOperationOptions()) if err != nil { @@ -727,7 +727,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.GremlinDatabaseCreateUpdateParameters{ // ... @@ -744,7 +744,7 @@ if err := client.GremlinResourcesCreateUpdateGremlinDatabaseThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") payload := cosmosdb.GremlinGraphCreateUpdateParameters{ // ... @@ -761,7 +761,7 @@ if err := client.GremlinResourcesCreateUpdateGremlinGraphThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesDeleteGremlinDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -773,7 +773,7 @@ if err := client.GremlinResourcesDeleteGremlinDatabaseThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesDeleteGremlinGraphThenPoll(ctx, id); err != nil { // handle the error @@ -785,7 +785,7 @@ if err := client.GremlinResourcesDeleteGremlinGraphThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesGetGremlinDatabase(ctx, id) if err != nil { @@ -801,7 +801,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesGetGremlinDatabaseThroughput(ctx, id) if err != nil { @@ -817,7 +817,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") read, err := client.GremlinResourcesGetGremlinGraph(ctx, id) if err != nil { @@ -833,7 +833,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") read, err := client.GremlinResourcesGetGremlinGraphThroughput(ctx, id) if err != nil { @@ -849,7 +849,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.GremlinResourcesListGremlinDatabases(ctx, id) if err != nil { @@ -865,7 +865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesListGremlinGraphs(ctx, id) if err != nil { @@ -881,7 +881,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesMigrateGremlinDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -893,7 +893,7 @@ if err := client.GremlinResourcesMigrateGremlinDatabaseToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesMigrateGremlinDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -905,7 +905,7 @@ if err := client.GremlinResourcesMigrateGremlinDatabaseToManualThroughputThenPol ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesMigrateGremlinGraphToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -917,7 +917,7 @@ if err := client.GremlinResourcesMigrateGremlinGraphToAutoscaleThenPoll(ctx, id) ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesMigrateGremlinGraphToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -929,7 +929,7 @@ if err := client.GremlinResourcesMigrateGremlinGraphToManualThroughputThenPoll(c ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -946,7 +946,7 @@ if err := client.GremlinResourcesUpdateGremlinDatabaseThroughputThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -963,7 +963,7 @@ if err := client.GremlinResourcesUpdateGremlinGraphThroughputThenPoll(ctx, id, p ```go ctx := context.TODO() -id := cosmosdb.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := cosmosdb.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationsGet(ctx, id) if err != nil { @@ -995,7 +995,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") payload := cosmosdb.MongoDBCollectionCreateUpdateParameters{ // ... @@ -1012,7 +1012,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoDBCollectionThenPoll(ctx, id, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.MongoDBDatabaseCreateUpdateParameters{ // ... @@ -1029,7 +1029,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoDBDatabaseThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesDeleteMongoDBCollectionThenPoll(ctx, id); err != nil { // handle the error @@ -1041,7 +1041,7 @@ if err := client.MongoDBResourcesDeleteMongoDBCollectionThenPoll(ctx, id); err ! ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesDeleteMongoDBDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -1053,7 +1053,7 @@ if err := client.MongoDBResourcesDeleteMongoDBDatabaseThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") read, err := client.MongoDBResourcesGetMongoDBCollection(ctx, id) if err != nil { @@ -1069,7 +1069,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") read, err := client.MongoDBResourcesGetMongoDBCollectionThroughput(ctx, id) if err != nil { @@ -1085,7 +1085,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesGetMongoDBDatabase(ctx, id) if err != nil { @@ -1101,7 +1101,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesGetMongoDBDatabaseThroughput(ctx, id) if err != nil { @@ -1117,7 +1117,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesListMongoDBCollections(ctx, id) if err != nil { @@ -1133,7 +1133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.MongoDBResourcesListMongoDBDatabases(ctx, id) if err != nil { @@ -1149,7 +1149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1161,7 +1161,7 @@ if err := client.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleThenPoll(ctx ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1173,7 +1173,7 @@ if err := client.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputThenP ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1185,7 +1185,7 @@ if err := client.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1197,7 +1197,7 @@ if err := client.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputThenPol ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1214,7 +1214,7 @@ if err := client.MongoDBResourcesUpdateMongoDBCollectionThroughputThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1231,7 +1231,7 @@ if err := client.MongoDBResourcesUpdateMongoDBDatabaseThroughputThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue", "partitionKeyRangeIdValue") +id := cosmosdb.NewPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid", "partitionKeyRangeId") read, err := client.PartitionKeyRangeIdListMetrics(ctx, id, cosmosdb.DefaultPartitionKeyRangeIdListMetricsOperationOptions()) if err != nil { @@ -1247,7 +1247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue", "partitionKeyRangeIdValue") +id := cosmosdb.NewCollectionPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid", "partitionKeyRangeId") read, err := client.PartitionKeyRangeIdRegionListMetrics(ctx, id, cosmosdb.DefaultPartitionKeyRangeIdRegionListMetricsOperationOptions()) if err != nil { @@ -1263,7 +1263,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.PercentileListMetrics(ctx, id, cosmosdb.DefaultPercentileListMetricsOperationOptions()) if err != nil { @@ -1279,7 +1279,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSourceRegionTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sourceRegionValue", "targetRegionValue") +id := cosmosdb.NewSourceRegionTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "sourceRegion", "targetRegion") read, err := client.PercentileSourceTargetListMetrics(ctx, id, cosmosdb.DefaultPercentileSourceTargetListMetricsOperationOptions()) if err != nil { @@ -1295,7 +1295,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "targetRegionValue") +id := cosmosdb.NewTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "targetRegion") read, err := client.PercentileTargetListMetrics(ctx, id, cosmosdb.DefaultPercentileTargetListMetricsOperationOptions()) if err != nil { @@ -1311,7 +1311,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") payload := cosmosdb.SqlContainerCreateUpdateParameters{ // ... @@ -1328,7 +1328,7 @@ if err := client.SqlResourcesCreateUpdateSqlContainerThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.SqlDatabaseCreateUpdateParameters{ // ... @@ -1345,7 +1345,7 @@ if err := client.SqlResourcesCreateUpdateSqlDatabaseThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") payload := cosmosdb.SqlStoredProcedureCreateUpdateParameters{ // ... @@ -1362,7 +1362,7 @@ if err := client.SqlResourcesCreateUpdateSqlStoredProcedureThenPoll(ctx, id, pay ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") payload := cosmosdb.SqlTriggerCreateUpdateParameters{ // ... @@ -1379,7 +1379,7 @@ if err := client.SqlResourcesCreateUpdateSqlTriggerThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") payload := cosmosdb.SqlUserDefinedFunctionCreateUpdateParameters{ // ... @@ -1396,7 +1396,7 @@ if err := client.SqlResourcesCreateUpdateSqlUserDefinedFunctionThenPoll(ctx, id, ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesDeleteSqlContainerThenPoll(ctx, id); err != nil { // handle the error @@ -1408,7 +1408,7 @@ if err := client.SqlResourcesDeleteSqlContainerThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesDeleteSqlDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -1420,7 +1420,7 @@ if err := client.SqlResourcesDeleteSqlDatabaseThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") if err := client.SqlResourcesDeleteSqlStoredProcedureThenPoll(ctx, id); err != nil { // handle the error @@ -1432,7 +1432,7 @@ if err := client.SqlResourcesDeleteSqlStoredProcedureThenPoll(ctx, id); err != n ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") if err := client.SqlResourcesDeleteSqlTriggerThenPoll(ctx, id); err != nil { // handle the error @@ -1444,7 +1444,7 @@ if err := client.SqlResourcesDeleteSqlTriggerThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") if err := client.SqlResourcesDeleteSqlUserDefinedFunctionThenPoll(ctx, id); err != nil { // handle the error @@ -1456,7 +1456,7 @@ if err := client.SqlResourcesDeleteSqlUserDefinedFunctionThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesGetSqlContainer(ctx, id) if err != nil { @@ -1472,7 +1472,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesGetSqlContainerThroughput(ctx, id) if err != nil { @@ -1488,7 +1488,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesGetSqlDatabase(ctx, id) if err != nil { @@ -1504,7 +1504,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesGetSqlDatabaseThroughput(ctx, id) if err != nil { @@ -1520,7 +1520,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") read, err := client.SqlResourcesGetSqlStoredProcedure(ctx, id) if err != nil { @@ -1536,7 +1536,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") read, err := client.SqlResourcesGetSqlTrigger(ctx, id) if err != nil { @@ -1552,7 +1552,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") read, err := client.SqlResourcesGetSqlUserDefinedFunction(ctx, id) if err != nil { @@ -1568,7 +1568,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesListSqlContainers(ctx, id) if err != nil { @@ -1584,7 +1584,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SqlResourcesListSqlDatabases(ctx, id) if err != nil { @@ -1600,7 +1600,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlStoredProcedures(ctx, id) if err != nil { @@ -1616,7 +1616,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlTriggers(ctx, id) if err != nil { @@ -1632,7 +1632,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlUserDefinedFunctions(ctx, id) if err != nil { @@ -1648,7 +1648,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesMigrateSqlContainerToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1660,7 +1660,7 @@ if err := client.SqlResourcesMigrateSqlContainerToAutoscaleThenPoll(ctx, id); er ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesMigrateSqlContainerToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1672,7 +1672,7 @@ if err := client.SqlResourcesMigrateSqlContainerToManualThroughputThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesMigrateSqlDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1684,7 +1684,7 @@ if err := client.SqlResourcesMigrateSqlDatabaseToAutoscaleThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesMigrateSqlDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1696,7 +1696,7 @@ if err := client.SqlResourcesMigrateSqlDatabaseToManualThroughputThenPoll(ctx, i ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1713,7 +1713,7 @@ if err := client.SqlResourcesUpdateSqlContainerThroughputThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1730,7 +1730,7 @@ if err := client.SqlResourcesUpdateSqlDatabaseThroughputThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := cosmosdb.TableCreateUpdateParameters{ // ... @@ -1747,7 +1747,7 @@ if err := client.TableResourcesCreateUpdateTableThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesDeleteTableThenPoll(ctx, id); err != nil { // handle the error @@ -1759,7 +1759,7 @@ if err := client.TableResourcesDeleteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableResourcesGetTable(ctx, id) if err != nil { @@ -1775,7 +1775,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableResourcesGetTableThroughput(ctx, id) if err != nil { @@ -1791,7 +1791,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.TableResourcesListTables(ctx, id) if err != nil { @@ -1807,7 +1807,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesMigrateTableToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1819,7 +1819,7 @@ if err := client.TableResourcesMigrateTableToAutoscaleThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesMigrateTableToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1831,7 +1831,7 @@ if err := client.TableResourcesMigrateTableToManualThroughputThenPoll(ctx, id); ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/client.go index febde6090795..68f649fae551 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/client.go @@ -15,7 +15,7 @@ type CosmosDBClient struct { } func NewCosmosDBClientWithBaseURI(sdkApi sdkEnv.Api) (*CosmosDBClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cosmosdb", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cosmosdb", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CosmosDBClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspace.go index be6cc48a9c84..4ce401244317 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspace.go @@ -44,7 +44,7 @@ func ParseCassandraKeyspaceID(input string) (*CassandraKeyspaceId, error) { } id := CassandraKeyspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCassandraKeyspaceIDInsensitively(input string) (*CassandraKeyspaceId, } id := CassandraKeyspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CassandraKeyspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticCassandraKeyspaces", "cassandraKeyspaces", "cassandraKeyspaces"), - resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "cassandraKeyspaceValue"), + resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "keyspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspacetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspacetable.go index 4fe3c8c5928f..939b9bdce123 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspacetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_cassandrakeyspacetable.go @@ -46,7 +46,7 @@ func ParseCassandraKeyspaceTableID(input string) (*CassandraKeyspaceTableId, err } id := CassandraKeyspaceTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCassandraKeyspaceTableIDInsensitively(input string) (*CassandraKeyspac } id := CassandraKeyspaceTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CassandraKeyspaceTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticCassandraKeyspaces", "cassandraKeyspaces", "cassandraKeyspaces"), - resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "cassandraKeyspaceValue"), + resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "keyspaceName"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collection.go index c6dee44ebec8..7a48b54fbb3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collection.go @@ -46,7 +46,7 @@ func ParseCollectionID(input string) (*CollectionId, error) { } id := CollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCollectionIDInsensitively(input string) (*CollectionId, error) { } id := CollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go index 59a42397284e..0372c743649c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go @@ -50,7 +50,7 @@ func ParseCollectionPartitionKeyRangeIdID(input string) (*CollectionPartitionKey } id := CollectionPartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -67,7 +67,7 @@ func ParseCollectionPartitionKeyRangeIdIDInsensitively(input string) (*Collectio } id := CollectionPartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -139,15 +139,15 @@ func (id CollectionPartitionKeyRangeIdId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), resourceids.StaticSegment("staticPartitionKeyRangeId", "partitionKeyRangeId", "partitionKeyRangeId"), - resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeIdValue"), + resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_container.go index ce95a8e413e4..9fc554842edd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_container.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_container.go @@ -46,7 +46,7 @@ func ParseContainerID(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseContainerIDInsensitively(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_database.go index d036afcf324e..32a5b8403989 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccount.go index 42910a8aff3a..2ca27074b007 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccount.go @@ -42,7 +42,7 @@ func ParseDatabaseAccountID(input string) (*DatabaseAccountId, error) { } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDatabaseAccountIDInsensitively(input string) (*DatabaseAccountId, erro } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DatabaseAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccountname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccountname.go index 4102315da936..46c015d77692 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccountname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databaseaccountname.go @@ -38,7 +38,7 @@ func ParseDatabaseAccountNameID(input string) (*DatabaseAccountNameId, error) { } id := DatabaseAccountNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseDatabaseAccountNameIDInsensitively(input string) (*DatabaseAccountName } id := DatabaseAccountNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id DatabaseAccountNameId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccountNames", "databaseAccountNames", "databaseAccountNames"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databasecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databasecollection.go index 6472795f5365..4029bc74189c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databasecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_databasecollection.go @@ -48,7 +48,7 @@ func ParseDatabaseCollectionID(input string) (*DatabaseCollectionId, error) { } id := DatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseDatabaseCollectionIDInsensitively(input string) (*DatabaseCollectionId } id := DatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id DatabaseCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_graph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_graph.go index e49a26e6ce99..7a55f30993cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_graph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_graph.go @@ -46,7 +46,7 @@ func ParseGraphID(input string) (*GraphId, error) { } id := GraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGraphIDInsensitively(input string) (*GraphId, error) { } id := GraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GraphId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticGremlinDatabases", "gremlinDatabases", "gremlinDatabases"), - resourceids.UserSpecifiedSegment("gremlinDatabaseName", "gremlinDatabaseValue"), + resourceids.UserSpecifiedSegment("gremlinDatabaseName", "databaseName"), resourceids.StaticSegment("staticGraphs", "graphs", "graphs"), - resourceids.UserSpecifiedSegment("graphName", "graphValue"), + resourceids.UserSpecifiedSegment("graphName", "graphName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_gremlindatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_gremlindatabase.go index a116c8e5d547..8bfcc87e575a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_gremlindatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_gremlindatabase.go @@ -44,7 +44,7 @@ func ParseGremlinDatabaseID(input string) (*GremlinDatabaseId, error) { } id := GremlinDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGremlinDatabaseIDInsensitively(input string) (*GremlinDatabaseId, erro } id := GremlinDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GremlinDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticGremlinDatabases", "gremlinDatabases", "gremlinDatabases"), - resourceids.UserSpecifiedSegment("gremlinDatabaseName", "gremlinDatabaseValue"), + resourceids.UserSpecifiedSegment("gremlinDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_location.go index 7420a7e1af35..febfbe7d88f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabase.go index 801a7fd57dcd..75875a6ac549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabase.go @@ -44,7 +44,7 @@ func ParseMongodbDatabaseID(input string) (*MongodbDatabaseId, error) { } id := MongodbDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMongodbDatabaseIDInsensitively(input string) (*MongodbDatabaseId, erro } id := MongodbDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MongodbDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbDatabases", "mongodbDatabases", "mongodbDatabases"), - resourceids.UserSpecifiedSegment("mongodbDatabaseName", "mongodbDatabaseValue"), + resourceids.UserSpecifiedSegment("mongodbDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabasecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabasecollection.go index bfe0a7d85fd7..7ddcf2cbb6d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabasecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_mongodbdatabasecollection.go @@ -46,7 +46,7 @@ func ParseMongodbDatabaseCollectionID(input string) (*MongodbDatabaseCollectionI } id := MongodbDatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseMongodbDatabaseCollectionIDInsensitively(input string) (*MongodbDataba } id := MongodbDatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id MongodbDatabaseCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbDatabases", "mongodbDatabases", "mongodbDatabases"), - resourceids.UserSpecifiedSegment("mongodbDatabaseName", "mongodbDatabaseValue"), + resourceids.UserSpecifiedSegment("mongodbDatabaseName", "databaseName"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_partitionkeyrangeid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_partitionkeyrangeid.go index da2bb45a226a..88f0f4a92d58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_partitionkeyrangeid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_partitionkeyrangeid.go @@ -48,7 +48,7 @@ func ParsePartitionKeyRangeIdID(input string) (*PartitionKeyRangeIdId, error) { } id := PartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParsePartitionKeyRangeIdIDInsensitively(input string) (*PartitionKeyRangeId } id := PartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id PartitionKeyRangeIdId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), resourceids.StaticSegment("staticPartitionKeyRangeId", "partitionKeyRangeId", "partitionKeyRangeId"), - resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeIdValue"), + resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_region.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_region.go index 42244d992913..4f0f50bcdef9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_region.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_region.go @@ -44,7 +44,7 @@ func ParseRegionID(input string) (*RegionId, error) { } id := RegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRegionIDInsensitively(input string) (*RegionId, error) { } id := RegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sourceregiontargetregion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sourceregiontargetregion.go index 51f21bd0244b..eaa24e25c65b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sourceregiontargetregion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sourceregiontargetregion.go @@ -46,7 +46,7 @@ func ParseSourceRegionTargetRegionID(input string) (*SourceRegionTargetRegionId, } id := SourceRegionTargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSourceRegionTargetRegionIDInsensitively(input string) (*SourceRegionTa } id := SourceRegionTargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SourceRegionTargetRegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSourceRegion", "sourceRegion", "sourceRegion"), - resourceids.UserSpecifiedSegment("sourceRegionName", "sourceRegionValue"), + resourceids.UserSpecifiedSegment("sourceRegionName", "sourceRegion"), resourceids.StaticSegment("staticTargetRegion", "targetRegion", "targetRegion"), - resourceids.UserSpecifiedSegment("targetRegionName", "targetRegionValue"), + resourceids.UserSpecifiedSegment("targetRegionName", "targetRegion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sqldatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sqldatabase.go index e4ea79b04b2b..d92d2bbbf596 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sqldatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_sqldatabase.go @@ -44,7 +44,7 @@ func ParseSqlDatabaseID(input string) (*SqlDatabaseId, error) { } id := SqlDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSqlDatabaseIDInsensitively(input string) (*SqlDatabaseId, error) { } id := SqlDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SqlDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_storedprocedure.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_storedprocedure.go index 0ab65f0783e5..72b9abbafe95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_storedprocedure.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_storedprocedure.go @@ -48,7 +48,7 @@ func ParseStoredProcedureID(input string) (*StoredProcedureId, error) { } id := StoredProcedureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseStoredProcedureIDInsensitively(input string) (*StoredProcedureId, erro } id := StoredProcedureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id StoredProcedureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticStoredProcedures", "storedProcedures", "storedProcedures"), - resourceids.UserSpecifiedSegment("storedProcedureName", "storedProcedureValue"), + resourceids.UserSpecifiedSegment("storedProcedureName", "storedProcedureName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_table.go index 6687c58036a2..ecf9d97c31ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_table.go @@ -44,7 +44,7 @@ func ParseTableID(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTableIDInsensitively(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_targetregion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_targetregion.go index e265a8e40b94..213d48cf6193 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_targetregion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_targetregion.go @@ -44,7 +44,7 @@ func ParseTargetRegionID(input string) (*TargetRegionId, error) { } id := TargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTargetRegionIDInsensitively(input string) (*TargetRegionId, error) { } id := TargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TargetRegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticTargetRegion", "targetRegion", "targetRegion"), - resourceids.UserSpecifiedSegment("targetRegionName", "targetRegionValue"), + resourceids.UserSpecifiedSegment("targetRegionName", "targetRegion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_trigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_trigger.go index fb8394f03c51..8c6760bfa3d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_trigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_trigger.go @@ -48,7 +48,7 @@ func ParseTriggerID(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseTriggerIDInsensitively(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id TriggerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticTriggers", "triggers", "triggers"), - resourceids.UserSpecifiedSegment("triggerName", "triggerValue"), + resourceids.UserSpecifiedSegment("triggerName", "triggerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_userdefinedfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_userdefinedfunction.go index b06ae438ba23..c09e749c3cbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_userdefinedfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/id_userdefinedfunction.go @@ -48,7 +48,7 @@ func ParseUserDefinedFunctionID(input string) (*UserDefinedFunctionId, error) { } id := UserDefinedFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseUserDefinedFunctionIDInsensitively(input string) (*UserDefinedFunction } id := UserDefinedFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id UserDefinedFunctionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticUserDefinedFunctions", "userDefinedFunctions", "userDefinedFunctions"), - resourceids.UserSpecifiedSegment("userDefinedFunctionName", "userDefinedFunctionValue"), + resourceids.UserSpecifiedSegment("userDefinedFunctionName", "userDefinedFunctionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go index a31069fc0b0e..de461e25dc1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraKeyspace(ctx context.Conte var model CassandraKeyspaceGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go index 356498418ece..89e084cef74a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraKeyspaceThroughput(ctx con var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go index 95fb74caa422..41dc5195f742 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraTable(ctx context.Context, var model CassandraTableGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go index 907c40dea874..c328ab674062 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraTableThroughput(ctx contex var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go index 92cf658bfc17..8fd6832e5892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesListCassandraKeyspaces(ctx context.Con var model CassandraKeyspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go index ea52708f45b3..2c2d361034f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesListCassandraTables(ctx context.Contex var model CassandraTableListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetricdefinitions.go index 5d7fb05541ce..759da61266fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CollectionListMetricDefinitions(ctx context.Context, id var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go index 8747f3a471ca..cf0c20186823 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionListMetricsOperationOptions) ToHeaders() *client.Headers { func (o CollectionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go index eaf8390c6a03..114d55e873d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionlistusages.go @@ -34,6 +34,7 @@ func (o CollectionListUsagesOperationOptions) ToHeaders() *client.Headers { func (o CollectionListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go index 9b26ee59ba29..e4738325382a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionPartitionListMetricsOperationOptions) ToHeaders() *client.Head func (o CollectionPartitionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go index 1df08750fb23..11b7cd3bb490 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionlistusages.go @@ -34,6 +34,7 @@ func (o CollectionPartitionListUsagesOperationOptions) ToHeaders() *client.Heade func (o CollectionPartitionListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co var model PartitionUsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index 725fbc82bf22..4c36c242ff33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionPartitionRegionListMetricsOperationOptions) ToHeaders() *clien func (o CollectionPartitionRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go index 335458e0b4ba..af8051f65e03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_collectionregionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionRegionListMetricsOperationOptions) ToHeaders() *client.Headers func (o CollectionRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 16c5eb70c057..f8be1c1d41f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseAccountRegionListMetricsOperationOptions) ToHeaders() *client.He func (o DatabaseAccountRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsget.go index d2a51fe0586f..062b96a49c50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsget.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) DatabaseAccountsGet(ctx context.Context, id DatabaseAcco var model DatabaseAccountGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go index 8dcfbf47e435..72046c42d04a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsGetReadOnlyKeys(ctx context.Context, id var model DatabaseAccountListReadOnlyKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslist.go index f52d3473a1b9..05f6c342ff53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslist.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) DatabaseAccountsList(ctx context.Context, id commonids.S var model DatabaseAccountsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go index 73c610536c4a..df3eeb3dd38c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) DatabaseAccountsListByResourceGroup(ctx context.Context, var model DatabaseAccountsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go index 61af9c871aff..73fc75aa1ad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListConnectionStrings(ctx context.Contex var model DatabaseAccountListConnectionStringsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistkeys.go index 1c8b71debc42..d47fc347572c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistkeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListKeys(ctx context.Context, id Databas var model DatabaseAccountListKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go index ddb38a2c1d65..4357cd02e662 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListMetricDefinitions(ctx context.Contex var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go index 42ea855bbe47..d0ba70fcbade 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseAccountsListMetricsOperationOptions) ToHeaders() *client.Headers func (o DatabaseAccountsListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go index 13666b0d36a8..d8667228eccb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListReadOnlyKeys(ctx context.Context, id var model DatabaseAccountListReadOnlyKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go index fd740072dd90..6409fa4aa880 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaseaccountslistusages.go @@ -34,6 +34,7 @@ func (o DatabaseAccountsListUsagesOperationOptions) ToHeaders() *client.Headers func (o DatabaseAccountsListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetricdefinitions.go index 7bbf108e68fd..60cd6e072bc9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseListMetricDefinitions(ctx context.Context, id Da var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go index 22284462c5b1..77dc7d128ccf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseListMetricsOperationOptions) ToHeaders() *client.Headers { func (o DatabaseListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go index 46d21b5a89d6..2d5907aa0689 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_databaselistusages.go @@ -34,6 +34,7 @@ func (o DatabaseListUsagesOperationOptions) ToHeaders() *client.Headers { func (o DatabaseListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go index 240425bac225..2be37b7e65ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinDatabase(ctx context.Context, var model GremlinDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go index 6ab56029e1d3..497eb988e79b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinDatabaseThroughput(ctx context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go index f7dfd2269857..3a72459fd702 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinGraph(ctx context.Context, id var model GremlinGraphGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go index d333b4c27d6b..29469526c524 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinGraphThroughput(ctx context.Co var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go index c71ca9938ed5..48bf17fd9409 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesListGremlinDatabases(ctx context.Context var model GremlinDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go index ecf46a99a9fe..97e332b3d32a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesListGremlinGraphs(ctx context.Context, i var model GremlinGraphListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationsget.go index edabf67eb7e2..1bcf857f6232 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationsget.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) LocationsGet(ctx context.Context, id LocationId) (result var model LocationGetResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationslist.go index 84429f5d3a4c..3d3b8a3c99e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_locationslist.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) LocationsList(ctx context.Context, id commonids.Subscrip var model LocationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go index 8047c0f57722..9296bf8ab51f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBCollection(ctx context.Context var model MongoDBCollectionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go index 895e544a6462..ef4212d22375 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBCollectionThroughput(ctx conte var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go index b1294ca767c0..af37b27fdc89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBDatabase(ctx context.Context, var model MongoDBDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go index c91e198e2c47..424444e72fc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBDatabaseThroughput(ctx context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go index b5019bfa3933..b1404d5a8d15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesListMongoDBCollections(ctx context.Conte var model MongoDBCollectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go index 4b062b95f9a5..1144c74833b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesListMongoDBDatabases(ctx context.Context var model MongoDBDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index 123d59fc3cd6..dd48b8f3546e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -34,6 +34,7 @@ func (o PartitionKeyRangeIdListMetricsOperationOptions) ToHeaders() *client.Head func (o PartitionKeyRangeIdListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 0ef6c622f7fd..4683537bc324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -34,6 +34,7 @@ func (o PartitionKeyRangeIdRegionListMetricsOperationOptions) ToHeaders() *clien func (o PartitionKeyRangeIdRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go index 3815628c1f60..e47c0b301892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilelistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileListMetricsOperationOptions) ToHeaders() *client.Headers { func (o PercentileListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index ee2c78f33daf..0a8441c8ce31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileSourceTargetListMetricsOperationOptions) ToHeaders() *client.H func (o PercentileSourceTargetListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go index 8f757b3beba7..af6ff16b4e3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileTargetListMetricsOperationOptions) ToHeaders() *client.Headers func (o PercentileTargetListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go index e4dbdcbfb726..5eb7bc222c38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlContainer(ctx context.Context, id Cont var model SqlContainerGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go index 26bdc14a6838..0a00c8a8bfe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlContainerThroughput(ctx context.Contex var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go index 6c487b4584bf..fc043b7c3b07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlDatabase(ctx context.Context, id SqlDa var model SqlDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go index 9e0d1786f8ad..0293bba4a080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlDatabaseThroughput(ctx context.Context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go index 1c8b39a10a8e..553c530859b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlStoredProcedure(ctx context.Context, i var model SqlStoredProcedureGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go index eafc6a9e3d7e..adc75a36c588 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlTrigger(ctx context.Context, id Trigge var model SqlTriggerGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go index 39a794f47a8a..1d1ddce00d4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlUserDefinedFunction(ctx context.Contex var model SqlUserDefinedFunctionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go index 512199371fbb..932b86bd0dc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlContainers(ctx context.Context, id Sq var model SqlContainerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go index 396499121886..6f5fadd616d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlDatabases(ctx context.Context, id Dat var model SqlDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go index b554525b5a4d..0c5708f20a28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlStoredProcedures(ctx context.Context, var model SqlStoredProcedureListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go index 149cca803daf..87d5232c835b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlTriggers(ctx context.Context, id Cont var model SqlTriggerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go index d81ebf50d179..93ecc4e048c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlUserDefinedFunctions(ctx context.Cont var model SqlUserDefinedFunctionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettable.go index f96caea16e30..26645d49a198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettable.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) TableResourcesGetTable(ctx context.Context, id TableId) var model TableGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettablethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettablethroughput.go index 05059dee57a4..8c7bf14664de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettablethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourcesgettablethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) TableResourcesGetTableThroughput(ctx context.Context, id var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourceslisttables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourceslisttables.go index 977a8bf214a2..9a22a7530b67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourceslisttables.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/method_tableresourceslisttables.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) TableResourcesListTables(ctx context.Context, id Databas var model TableListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_backuppolicy.go index 2e4805f1c2f8..5d5d654a4c36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_backuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_backuppolicy.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupPolicy interface { + BackupPolicy() BaseBackupPolicyImpl } -// RawBackupPolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BackupPolicy = BaseBackupPolicyImpl{} + +type BaseBackupPolicyImpl struct { + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s BaseBackupPolicyImpl) BackupPolicy() BaseBackupPolicyImpl { + return s +} + +var _ BackupPolicy = RawBackupPolicyImpl{} + +// RawBackupPolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBackupPolicyImpl struct { - Type string - Values map[string]interface{} + backupPolicy BaseBackupPolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupPolicyImpl) BackupPolicy() BaseBackupPolicyImpl { + return s.backupPolicy } -func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { +func UnmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { return nil, fmt.Errorf("unmarshaling BackupPolicy into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Continuous") { @@ -52,10 +70,15 @@ func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { return out, nil } - out := RawBackupPolicyImpl{ - Type: value, - Values: temp, + var parent BaseBackupPolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupPolicyImpl: %+v", err) } - return out, nil + + return RawBackupPolicyImpl{ + backupPolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_continuousmodebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_continuousmodebackuppolicy.go index f23ae252bb69..ec38a9b7261e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_continuousmodebackuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_continuousmodebackuppolicy.go @@ -13,7 +13,16 @@ var _ BackupPolicy = ContinuousModeBackupPolicy{} type ContinuousModeBackupPolicy struct { // Fields inherited from BackupPolicy + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s ContinuousModeBackupPolicy) BackupPolicy() BaseBackupPolicyImpl { + return BaseBackupPolicyImpl{ + MigrationState: s.MigrationState, + Type: s.Type, + } } var _ json.Marshaler = ContinuousModeBackupPolicy{} @@ -27,9 +36,10 @@ func (s ContinuousModeBackupPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ContinuousModeBackupPolicy: %+v", err) } + decoded["type"] = "Continuous" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go index c99fa1c91908..77b9ca7c12b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go @@ -41,10 +41,36 @@ type DatabaseAccountCreateUpdateProperties struct { var _ json.Unmarshaler = &DatabaseAccountCreateUpdateProperties{} func (s *DatabaseAccountCreateUpdateProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountCreateUpdateProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + Locations []Location `json:"locations"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + RestoreParameters *RestoreParameters `json:"restoreParameters,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountCreateUpdateProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -80,11 +106,12 @@ func (s *DatabaseAccountCreateUpdateProperties) UnmarshalJSON(bytes []byte) erro } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountCreateUpdateProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountgetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountgetproperties.go index ec292f3fd96f..ce9020b45afc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountgetproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountgetproperties.go @@ -48,10 +48,43 @@ type DatabaseAccountGetProperties struct { var _ json.Unmarshaler = &DatabaseAccountGetProperties{} func (s *DatabaseAccountGetProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountGetProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DatabaseAccountOfferType *DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DocumentEndpoint *string `json:"documentEndpoint,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + InstanceId *string `json:"instanceId,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + Locations *[]Location `json:"locations,omitempty"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + ReadLocations *[]Location `json:"readLocations,omitempty"` + RestoreParameters *RestoreParameters `json:"restoreParameters,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + WriteLocations *[]Location `json:"writeLocations,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountGetProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -94,11 +127,12 @@ func (s *DatabaseAccountGetProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountGetProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountupdateproperties.go index 7e115f81dc49..0555fd6bb927 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_databaseaccountupdateproperties.go @@ -38,10 +38,33 @@ type DatabaseAccountUpdateProperties struct { var _ json.Unmarshaler = &DatabaseAccountUpdateProperties{} func (s *DatabaseAccountUpdateProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountUpdateProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + Locations *[]Location `json:"locations,omitempty"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountUpdateProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -74,11 +97,12 @@ func (s *DatabaseAccountUpdateProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountUpdateProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_periodicmodebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_periodicmodebackuppolicy.go index b3d0a4a335cc..0ead8c8a1f7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_periodicmodebackuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/model_periodicmodebackuppolicy.go @@ -14,7 +14,16 @@ type PeriodicModeBackupPolicy struct { PeriodicModeProperties *PeriodicModeProperties `json:"periodicModeProperties,omitempty"` // Fields inherited from BackupPolicy + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s PeriodicModeBackupPolicy) BackupPolicy() BaseBackupPolicyImpl { + return BaseBackupPolicyImpl{ + MigrationState: s.MigrationState, + Type: s.Type, + } } var _ json.Marshaler = PeriodicModeBackupPolicy{} @@ -28,9 +37,10 @@ func (s PeriodicModeBackupPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PeriodicModeBackupPolicy: %+v", err) } + decoded["type"] = "Periodic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/version.go index f558f3b978d0..bb445d53df05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/cosmosdb/version.go @@ -1,12 +1,10 @@ package cosmosdb -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cosmosdb/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cosmosdb/2022-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/README.md index 27f403b3bc9d..77abcb8350de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway` Documentation -The `sqldedicatedgateway` SDK allows for interaction with the Azure Resource Manager Service `cosmosdb` (API Version `2022-05-15`). +The `sqldedicatedgateway` SDK allows for interaction with Azure Resource Manager `cosmosdb` (API Version `2022-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "serviceValue") +id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "serviceName") payload := sqldedicatedgateway.ServiceResourceCreateUpdateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.ServiceCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "serviceValue") +id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "serviceName") if err := client.ServiceDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.ServiceDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "serviceValue") +id := sqldedicatedgateway.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "serviceName") read, err := client.ServiceGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/client.go index fecc7a836eb4..36faaebb6198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/client.go @@ -15,7 +15,7 @@ type SqlDedicatedGatewayClient struct { } func NewSqlDedicatedGatewayClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlDedicatedGatewayClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sqldedicatedgateway", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sqldedicatedgateway", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SqlDedicatedGatewayClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/id_service.go index deac5c4e9c1b..fae29f8aa182 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/id_service.go @@ -44,7 +44,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/method_serviceget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/method_serviceget.go index afe30a2dcd85..e4c481bbe699 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/method_serviceget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/method_serviceget.go @@ -45,7 +45,6 @@ func (c SqlDedicatedGatewayClient) ServiceGet(ctx context.Context, id ServiceId) var model ServiceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_datatransferserviceresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_datatransferserviceresourceproperties.go index dfb970d32dad..14399b118ab7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_datatransferserviceresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_datatransferserviceresourceproperties.go @@ -17,12 +17,24 @@ type DataTransferServiceResourceProperties struct { Locations *[]RegionalServiceResource `json:"locations,omitempty"` // Fields inherited from ServiceResourceProperties + CreationTime *string `json:"creationTime,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` InstanceSize *ServiceSize `json:"instanceSize,omitempty"` + ServiceType ServiceType `json:"serviceType"` Status *ServiceStatus `json:"status,omitempty"` } +func (s DataTransferServiceResourceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return BaseServiceResourcePropertiesImpl{ + CreationTime: s.CreationTime, + InstanceCount: s.InstanceCount, + InstanceSize: s.InstanceSize, + ServiceType: s.ServiceType, + Status: s.Status, + } +} + func (o *DataTransferServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error) { if o.CreationTime == nil { return nil, nil @@ -46,9 +58,10 @@ func (s DataTransferServiceResourceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DataTransferServiceResourceProperties: %+v", err) } + decoded["serviceType"] = "DataTransfer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_graphapicomputeserviceresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_graphapicomputeserviceresourceproperties.go index 5621706c4c82..4a3df37bd1c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_graphapicomputeserviceresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_graphapicomputeserviceresourceproperties.go @@ -18,12 +18,24 @@ type GraphAPIComputeServiceResourceProperties struct { Locations *[]GraphAPIComputeRegionalServiceResource `json:"locations,omitempty"` // Fields inherited from ServiceResourceProperties + CreationTime *string `json:"creationTime,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` InstanceSize *ServiceSize `json:"instanceSize,omitempty"` + ServiceType ServiceType `json:"serviceType"` Status *ServiceStatus `json:"status,omitempty"` } +func (s GraphAPIComputeServiceResourceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return BaseServiceResourcePropertiesImpl{ + CreationTime: s.CreationTime, + InstanceCount: s.InstanceCount, + InstanceSize: s.InstanceSize, + ServiceType: s.ServiceType, + Status: s.Status, + } +} + func (o *GraphAPIComputeServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error) { if o.CreationTime == nil { return nil, nil @@ -47,9 +59,10 @@ func (s GraphAPIComputeServiceResourceProperties) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GraphAPIComputeServiceResourceProperties: %+v", err) } + decoded["serviceType"] = "GraphAPICompute" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_materializedviewsbuilderserviceresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_materializedviewsbuilderserviceresourceproperties.go index c530a00d2423..9062b4166c35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_materializedviewsbuilderserviceresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_materializedviewsbuilderserviceresourceproperties.go @@ -17,12 +17,24 @@ type MaterializedViewsBuilderServiceResourceProperties struct { Locations *[]RegionalServiceResource `json:"locations,omitempty"` // Fields inherited from ServiceResourceProperties + CreationTime *string `json:"creationTime,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` InstanceSize *ServiceSize `json:"instanceSize,omitempty"` + ServiceType ServiceType `json:"serviceType"` Status *ServiceStatus `json:"status,omitempty"` } +func (s MaterializedViewsBuilderServiceResourceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return BaseServiceResourcePropertiesImpl{ + CreationTime: s.CreationTime, + InstanceCount: s.InstanceCount, + InstanceSize: s.InstanceSize, + ServiceType: s.ServiceType, + Status: s.Status, + } +} + func (o *MaterializedViewsBuilderServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error) { if o.CreationTime == nil { return nil, nil @@ -46,9 +58,10 @@ func (s MaterializedViewsBuilderServiceResourceProperties) MarshalJSON() ([]byte } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MaterializedViewsBuilderServiceResourceProperties: %+v", err) } + decoded["serviceType"] = "MaterializedViewsBuilder" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresource.go index b85d11d4927b..a8a211ab13ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresource.go @@ -18,10 +18,13 @@ type ServiceResource struct { var _ json.Unmarshaler = &ServiceResource{} func (s *ServiceResource) UnmarshalJSON(bytes []byte) error { - type alias ServiceResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServiceResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *ServiceResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalServiceResourcePropertiesImplementation(v) + impl, err := UnmarshalServiceResourcePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ServiceResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresourceproperties.go index 73d5a0131feb..e33f68285148 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_serviceresourceproperties.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ServiceResourceProperties interface { + ServiceResourceProperties() BaseServiceResourcePropertiesImpl } -// RawServiceResourcePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ServiceResourceProperties = BaseServiceResourcePropertiesImpl{} + +type BaseServiceResourcePropertiesImpl struct { + CreationTime *string `json:"creationTime,omitempty"` + InstanceCount *int64 `json:"instanceCount,omitempty"` + InstanceSize *ServiceSize `json:"instanceSize,omitempty"` + ServiceType ServiceType `json:"serviceType"` + Status *ServiceStatus `json:"status,omitempty"` +} + +func (s BaseServiceResourcePropertiesImpl) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return s +} + +var _ ServiceResourceProperties = RawServiceResourcePropertiesImpl{} + +// RawServiceResourcePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawServiceResourcePropertiesImpl struct { - Type string - Values map[string]interface{} + serviceResourceProperties BaseServiceResourcePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawServiceResourcePropertiesImpl) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return s.serviceResourceProperties } -func unmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceResourceProperties, error) { +func UnmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceResourceProperties, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceReso return nil, fmt.Errorf("unmarshaling ServiceResourceProperties into map[string]interface: %+v", err) } - value, ok := temp["serviceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["serviceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "DataTransfer") { @@ -68,10 +89,15 @@ func unmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceReso return out, nil } - out := RawServiceResourcePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseServiceResourcePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseServiceResourcePropertiesImpl: %+v", err) } - return out, nil + + return RawServiceResourcePropertiesImpl{ + serviceResourceProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_sqldedicatedgatewayserviceresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_sqldedicatedgatewayserviceresourceproperties.go index 6637bd6d573b..f75bd97eba2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_sqldedicatedgatewayserviceresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/model_sqldedicatedgatewayserviceresourceproperties.go @@ -18,12 +18,24 @@ type SqlDedicatedGatewayServiceResourceProperties struct { SqlDedicatedGatewayEndpoint *string `json:"sqlDedicatedGatewayEndpoint,omitempty"` // Fields inherited from ServiceResourceProperties + CreationTime *string `json:"creationTime,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` InstanceSize *ServiceSize `json:"instanceSize,omitempty"` + ServiceType ServiceType `json:"serviceType"` Status *ServiceStatus `json:"status,omitempty"` } +func (s SqlDedicatedGatewayServiceResourceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl { + return BaseServiceResourcePropertiesImpl{ + CreationTime: s.CreationTime, + InstanceCount: s.InstanceCount, + InstanceSize: s.InstanceSize, + ServiceType: s.ServiceType, + Status: s.Status, + } +} + func (o *SqlDedicatedGatewayServiceResourceProperties) GetCreationTimeAsTime() (*time.Time, error) { if o.CreationTime == nil { return nil, nil @@ -47,9 +59,10 @@ func (s SqlDedicatedGatewayServiceResourceProperties) MarshalJSON() ([]byte, err } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SqlDedicatedGatewayServiceResourceProperties: %+v", err) } + decoded["serviceType"] = "SqlDedicatedGateway" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/version.go index c067d4ed04ec..d1b046bddd67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-05-15/sqldedicatedgateway/version.go @@ -1,12 +1,10 @@ package sqldedicatedgateway -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sqldedicatedgateway/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sqldedicatedgateway/2022-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/README.md index 90154513b098..d3d88f03c74d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs` Documentation -The `mongorbacs` SDK allows for interaction with the Azure Resource Manager Service `cosmosdb` (API Version `2022-11-15`). +The `mongorbacs` SDK allows for interaction with Azure Resource Manager `cosmosdb` (API Version `2022-11-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue") +id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoRoleDefinitionId") payload := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoRoleDefinitionThenPoll(ctx, id ```go ctx := context.TODO() -id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue") +id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoUserDefinitionId") payload := mongorbacs.MongoUserDefinitionCreateUpdateParameters{ // ... @@ -58,7 +58,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoUserDefinitionThenPoll(ctx, id ```go ctx := context.TODO() -id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue") +id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoRoleDefinitionId") if err := client.MongoDBResourcesDeleteMongoRoleDefinitionThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.MongoDBResourcesDeleteMongoRoleDefinitionThenPoll(ctx, id); err ```go ctx := context.TODO() -id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue") +id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoUserDefinitionId") if err := client.MongoDBResourcesDeleteMongoUserDefinitionThenPoll(ctx, id); err != nil { // handle the error @@ -82,7 +82,7 @@ if err := client.MongoDBResourcesDeleteMongoUserDefinitionThenPoll(ctx, id); err ```go ctx := context.TODO() -id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoRoleDefinitionIdValue") +id := mongorbacs.NewMongodbRoleDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoRoleDefinitionId") read, err := client.MongoDBResourcesGetMongoRoleDefinition(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongoUserDefinitionIdValue") +id := mongorbacs.NewMongodbUserDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "mongoUserDefinitionId") read, err := client.MongoDBResourcesGetMongoUserDefinition(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.MongoDBResourcesListMongoRoleDefinitions(ctx, id) if err != nil { @@ -130,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := mongorbacs.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.MongoDBResourcesListMongoUserDefinitions(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/client.go index 34578d6c0492..1e50d8ed79ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/client.go @@ -15,7 +15,7 @@ type MongorbacsClient struct { } func NewMongorbacsClientWithBaseURI(sdkApi sdkEnv.Api) (*MongorbacsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "mongorbacs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "mongorbacs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MongorbacsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_databaseaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_databaseaccount.go index 32d94aefd541..5dcb902abb59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_databaseaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_databaseaccount.go @@ -42,7 +42,7 @@ func ParseDatabaseAccountID(input string) (*DatabaseAccountId, error) { } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDatabaseAccountIDInsensitively(input string) (*DatabaseAccountId, erro } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DatabaseAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbroledefinition.go index 7f0d94ddc2d5..88c7ce70b53b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbroledefinition.go @@ -44,7 +44,7 @@ func ParseMongodbRoleDefinitionID(input string) (*MongodbRoleDefinitionId, error } id := MongodbRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMongodbRoleDefinitionIDInsensitively(input string) (*MongodbRoleDefini } id := MongodbRoleDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MongodbRoleDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbRoleDefinitions", "mongodbRoleDefinitions", "mongodbRoleDefinitions"), - resourceids.UserSpecifiedSegment("mongoRoleDefinitionId", "mongoRoleDefinitionIdValue"), + resourceids.UserSpecifiedSegment("mongoRoleDefinitionId", "mongoRoleDefinitionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbuserdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbuserdefinition.go index ad83825170a6..d3ad61af293a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbuserdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/id_mongodbuserdefinition.go @@ -44,7 +44,7 @@ func ParseMongodbUserDefinitionID(input string) (*MongodbUserDefinitionId, error } id := MongodbUserDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMongodbUserDefinitionIDInsensitively(input string) (*MongodbUserDefini } id := MongodbUserDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MongodbUserDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbUserDefinitions", "mongodbUserDefinitions", "mongodbUserDefinitions"), - resourceids.UserSpecifiedSegment("mongoUserDefinitionId", "mongoUserDefinitionIdValue"), + resourceids.UserSpecifiedSegment("mongoUserDefinitionId", "mongoUserDefinitionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongoroledefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongoroledefinition.go index 141819390476..1e7c9e694dd5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongoroledefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongoroledefinition.go @@ -45,7 +45,6 @@ func (c MongorbacsClient) MongoDBResourcesGetMongoRoleDefinition(ctx context.Con var model MongoRoleDefinitionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongouserdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongouserdefinition.go index 09cfb34386d5..718e65a31109 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongouserdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourcesgetmongouserdefinition.go @@ -45,7 +45,6 @@ func (c MongorbacsClient) MongoDBResourcesGetMongoUserDefinition(ctx context.Con var model MongoUserDefinitionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongoroledefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongoroledefinitions.go index ef803b9c9a1b..2992b8305b8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongoroledefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongoroledefinitions.go @@ -46,7 +46,6 @@ func (c MongorbacsClient) MongoDBResourcesListMongoRoleDefinitions(ctx context.C var model MongoRoleDefinitionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongouserdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongouserdefinitions.go index bab767da5f7f..cb49b6065738 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongouserdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/method_mongodbresourceslistmongouserdefinitions.go @@ -46,7 +46,6 @@ func (c MongorbacsClient) MongoDBResourcesListMongoUserDefinitions(ctx context.C var model MongoUserDefinitionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/version.go index c3b347512f33..bdb887118436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2022-11-15/mongorbacs/version.go @@ -1,12 +1,10 @@ package mongorbacs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/mongorbacs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/mongorbacs/2022-11-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md index d80001c75f24..e8d711dd4279 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras` Documentation -The `managedcassandras` SDK allows for interaction with the Azure Resource Manager Service `cosmosdb` (API Version `2023-04-15`). +The `managedcassandras` SDK allows for interaction with Azure Resource Manager `cosmosdb` (API Version `2023-04-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := managedcassandras.ClusterResource{ // ... @@ -42,7 +42,7 @@ if err := client.CassandraClustersCreateUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.CassandraClustersDeallocateThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.CassandraClustersDeallocateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.CassandraClustersDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.CassandraClustersDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.CassandraClustersGet(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := managedcassandras.CommandPostBody{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.CassandraClustersStartThenPoll(ctx, id); err != nil { // handle the error @@ -143,7 +143,7 @@ if err := client.CassandraClustersStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.CassandraClustersStatus(ctx, id) if err != nil { @@ -159,7 +159,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := managedcassandras.ClusterResource{ // ... @@ -176,7 +176,7 @@ if err := client.CassandraClustersUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue", "dataCenterValue") +id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "dataCenterName") payload := managedcassandras.DataCenterResource{ // ... @@ -193,7 +193,7 @@ if err := client.CassandraDataCentersCreateUpdateThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue", "dataCenterValue") +id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "dataCenterName") if err := client.CassandraDataCentersDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -205,7 +205,7 @@ if err := client.CassandraDataCentersDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue", "dataCenterValue") +id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "dataCenterName") read, err := client.CassandraDataCentersGet(ctx, id) if err != nil { @@ -221,7 +221,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue") +id := managedcassandras.NewCassandraClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.CassandraDataCentersList(ctx, id) if err != nil { @@ -237,7 +237,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cassandraClusterValue", "dataCenterValue") +id := managedcassandras.NewDataCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "dataCenterName") payload := managedcassandras.DataCenterResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/client.go index 1c38e874ac74..381eeefaf3cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/client.go @@ -15,7 +15,7 @@ type ManagedCassandrasClient struct { } func NewManagedCassandrasClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedCassandrasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedcassandras", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedcassandras", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedCassandrasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_cassandracluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_cassandracluster.go index 2daf54e81849..43ce8c1202c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_cassandracluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_cassandracluster.go @@ -42,7 +42,7 @@ func ParseCassandraClusterID(input string) (*CassandraClusterId, error) { } id := CassandraClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCassandraClusterIDInsensitively(input string) (*CassandraClusterId, er } id := CassandraClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CassandraClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticCassandraClusters", "cassandraClusters", "cassandraClusters"), - resourceids.UserSpecifiedSegment("cassandraClusterName", "cassandraClusterValue"), + resourceids.UserSpecifiedSegment("cassandraClusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_datacenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_datacenter.go index 0c8f1035307a..8736ef94f6fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_datacenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/id_datacenter.go @@ -44,7 +44,7 @@ func ParseDataCenterID(input string) (*DataCenterId, error) { } id := DataCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataCenterIDInsensitively(input string) (*DataCenterId, error) { } id := DataCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DataCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticCassandraClusters", "cassandraClusters", "cassandraClusters"), - resourceids.UserSpecifiedSegment("cassandraClusterName", "cassandraClusterValue"), + resourceids.UserSpecifiedSegment("cassandraClusterName", "clusterName"), resourceids.StaticSegment("staticDataCenters", "dataCenters", "dataCenters"), - resourceids.UserSpecifiedSegment("dataCenterName", "dataCenterValue"), + resourceids.UserSpecifiedSegment("dataCenterName", "dataCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersget.go index b91319fe142a..2f1754325574 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersget.go @@ -45,7 +45,6 @@ func (c ManagedCassandrasClient) CassandraClustersGet(ctx context.Context, id Ca var model ClusterResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbyresourcegroup.go index aee0d0356ffa..118bde5196f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ManagedCassandrasClient) CassandraClustersListByResourceGroup(ctx contex var model ListClusters result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbysubscription.go index 3f2da8d2a235..07ee7cad4fea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclusterslistbysubscription.go @@ -47,7 +47,6 @@ func (c ManagedCassandrasClient) CassandraClustersListBySubscription(ctx context var model ListClusters result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersstatus.go index c544dcd24c9e..e893f931bedd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandraclustersstatus.go @@ -46,7 +46,6 @@ func (c ManagedCassandrasClient) CassandraClustersStatus(ctx context.Context, id var model CassandraClusterPublicStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacentersget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacentersget.go index a4732a84516c..1da18b7e763f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacentersget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacentersget.go @@ -45,7 +45,6 @@ func (c ManagedCassandrasClient) CassandraDataCentersGet(ctx context.Context, id var model DataCenterResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacenterslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacenterslist.go index 9c116fd0bc33..00794e30f1ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacenterslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/method_cassandradatacenterslist.go @@ -46,7 +46,6 @@ func (c ManagedCassandrasClient) CassandraDataCentersList(ctx context.Context, i var model ListDataCenters result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/version.go index 04f8a2e8f9c1..21196c79097a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2023-04-15/managedcassandras/version.go @@ -1,12 +1,10 @@ package managedcassandras -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedcassandras/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedcassandras/2023-04-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/README.md index 7a72c4351198..a8696cd53eee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb` Documentation -The `cosmosdb` SDK allows for interaction with the Azure Resource Manager Service `cosmosdb` (API Version `2024-05-15`). +The `cosmosdb` SDK allows for interaction with Azure Resource Manager `cosmosdb` (API Version `2024-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") payload := cosmosdb.CassandraKeyspaceCreateUpdateParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CassandraResourcesCreateUpdateCassandraKeyspaceThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") payload := cosmosdb.CassandraTableCreateUpdateParameters{ // ... @@ -59,7 +59,7 @@ if err := client.CassandraResourcesCreateUpdateCassandraTableThenPoll(ctx, id, p ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesDeleteCassandraKeyspaceThenPoll(ctx, id); err != nil { // handle the error @@ -71,7 +71,7 @@ if err := client.CassandraResourcesDeleteCassandraKeyspaceThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesDeleteCassandraTableThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.CassandraResourcesDeleteCassandraTableThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesGetCassandraKeyspace(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesGetCassandraKeyspaceThroughput(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") read, err := client.CassandraResourcesGetCassandraTable(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") read, err := client.CassandraResourcesGetCassandraTableThroughput(ctx, id) if err != nil { @@ -147,7 +147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.CassandraResourcesListCassandraKeyspaces(ctx, id) if err != nil { @@ -163,7 +163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") read, err := client.CassandraResourcesListCassandraTables(ctx, id) if err != nil { @@ -179,7 +179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.CassandraResourcesMigrateCassandraKeyspaceToAutoscaleThenPoll(c ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") if err := client.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.CassandraResourcesMigrateCassandraKeyspaceToManualThroughputThe ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesMigrateCassandraTableToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -215,7 +215,7 @@ if err := client.CassandraResourcesMigrateCassandraTableToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") if err := client.CassandraResourcesMigrateCassandraTableToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -227,7 +227,7 @@ if err := client.CassandraResourcesMigrateCassandraTableToManualThroughputThenPo ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue") +id := cosmosdb.NewCassandraKeyspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -244,7 +244,7 @@ if err := client.CassandraResourcesUpdateCassandraKeyspaceThroughputThenPoll(ctx ```go ctx := context.TODO() -id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "cassandraKeyspaceValue", "tableValue") +id := cosmosdb.NewCassandraKeyspaceTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "keyspaceName", "tableName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -261,7 +261,7 @@ if err := client.CassandraResourcesUpdateCassandraTableThroughputThenPoll(ctx, i ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListMetricDefinitions(ctx, id) if err != nil { @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListMetrics(ctx, id, cosmosdb.DefaultCollectionListMetricsOperationOptions()) if err != nil { @@ -293,7 +293,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionListUsages(ctx, id, cosmosdb.DefaultCollectionListUsagesOperationOptions()) if err != nil { @@ -309,7 +309,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionPartitionListMetrics(ctx, id, cosmosdb.DefaultCollectionPartitionListMetricsOperationOptions()) if err != nil { @@ -325,7 +325,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue") +id := cosmosdb.NewCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid") read, err := client.CollectionPartitionListUsages(ctx, id, cosmosdb.DefaultCollectionPartitionListUsagesOperationOptions()) if err != nil { @@ -341,7 +341,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue") +id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid") read, err := client.CollectionPartitionRegionListMetrics(ctx, id, cosmosdb.DefaultCollectionPartitionRegionListMetricsOperationOptions()) if err != nil { @@ -357,7 +357,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue") +id := cosmosdb.NewDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid") read, err := client.CollectionRegionListMetrics(ctx, id, cosmosdb.DefaultCollectionRegionListMetricsOperationOptions()) if err != nil { @@ -373,7 +373,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue") +id := cosmosdb.NewRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region") read, err := client.DatabaseAccountRegionListMetrics(ctx, id, cosmosdb.DefaultDatabaseAccountRegionListMetricsOperationOptions()) if err != nil { @@ -389,7 +389,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountNameID("databaseAccountValue") +id := cosmosdb.NewDatabaseAccountNameID("accountName") read, err := client.DatabaseAccountsCheckNameExists(ctx, id) if err != nil { @@ -405,7 +405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountCreateUpdateParameters{ // ... @@ -422,7 +422,7 @@ if err := client.DatabaseAccountsCreateOrUpdateThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.DatabaseAccountsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -434,7 +434,7 @@ if err := client.DatabaseAccountsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.FailoverPolicies{ // ... @@ -451,7 +451,7 @@ if err := client.DatabaseAccountsFailoverPriorityChangeThenPoll(ctx, id, payload ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsGet(ctx, id) if err != nil { @@ -467,7 +467,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsGetReadOnlyKeys(ctx, id) if err != nil { @@ -515,7 +515,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListConnectionStrings(ctx, id) if err != nil { @@ -531,7 +531,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListKeys(ctx, id) if err != nil { @@ -547,7 +547,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListMetricDefinitions(ctx, id) if err != nil { @@ -563,7 +563,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListMetrics(ctx, id, cosmosdb.DefaultDatabaseAccountsListMetricsOperationOptions()) if err != nil { @@ -579,7 +579,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListReadOnlyKeys(ctx, id) if err != nil { @@ -595,7 +595,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.DatabaseAccountsListUsages(ctx, id, cosmosdb.DefaultDatabaseAccountsListUsagesOperationOptions()) if err != nil { @@ -611,7 +611,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.RegionForOnlineOffline{ // ... @@ -628,7 +628,7 @@ if err := client.DatabaseAccountsOfflineRegionThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.RegionForOnlineOffline{ // ... @@ -645,7 +645,7 @@ if err := client.DatabaseAccountsOnlineRegionThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountRegenerateKeyParameters{ // ... @@ -662,7 +662,7 @@ if err := client.DatabaseAccountsRegenerateKeyThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := cosmosdb.DatabaseAccountUpdateParameters{ // ... @@ -679,7 +679,7 @@ if err := client.DatabaseAccountsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListMetricDefinitions(ctx, id) if err != nil { @@ -695,7 +695,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListMetrics(ctx, id, cosmosdb.DefaultDatabaseListMetricsOperationOptions()) if err != nil { @@ -711,7 +711,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue") +id := cosmosdb.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid") read, err := client.DatabaseListUsages(ctx, id, cosmosdb.DefaultDatabaseListUsagesOperationOptions()) if err != nil { @@ -727,7 +727,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.GremlinDatabaseCreateUpdateParameters{ // ... @@ -744,7 +744,7 @@ if err := client.GremlinResourcesCreateUpdateGremlinDatabaseThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") payload := cosmosdb.GremlinGraphCreateUpdateParameters{ // ... @@ -761,7 +761,7 @@ if err := client.GremlinResourcesCreateUpdateGremlinGraphThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesDeleteGremlinDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -773,7 +773,7 @@ if err := client.GremlinResourcesDeleteGremlinDatabaseThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesDeleteGremlinGraphThenPoll(ctx, id); err != nil { // handle the error @@ -785,7 +785,7 @@ if err := client.GremlinResourcesDeleteGremlinGraphThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesGetGremlinDatabase(ctx, id) if err != nil { @@ -801,7 +801,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesGetGremlinDatabaseThroughput(ctx, id) if err != nil { @@ -817,7 +817,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") read, err := client.GremlinResourcesGetGremlinGraph(ctx, id) if err != nil { @@ -833,7 +833,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") read, err := client.GremlinResourcesGetGremlinGraphThroughput(ctx, id) if err != nil { @@ -849,7 +849,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.GremlinResourcesListGremlinDatabases(ctx, id) if err != nil { @@ -865,7 +865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.GremlinResourcesListGremlinGraphs(ctx, id) if err != nil { @@ -881,7 +881,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesMigrateGremlinDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -893,7 +893,7 @@ if err := client.GremlinResourcesMigrateGremlinDatabaseToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.GremlinResourcesMigrateGremlinDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -905,7 +905,7 @@ if err := client.GremlinResourcesMigrateGremlinDatabaseToManualThroughputThenPol ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesMigrateGremlinGraphToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -917,7 +917,7 @@ if err := client.GremlinResourcesMigrateGremlinGraphToAutoscaleThenPoll(ctx, id) ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") if err := client.GremlinResourcesMigrateGremlinGraphToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -929,7 +929,7 @@ if err := client.GremlinResourcesMigrateGremlinGraphToManualThroughputThenPoll(c ```go ctx := context.TODO() -id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue") +id := cosmosdb.NewGremlinDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -946,7 +946,7 @@ if err := client.GremlinResourcesUpdateGremlinDatabaseThroughputThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "gremlinDatabaseValue", "graphValue") +id := cosmosdb.NewGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "graphName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -963,7 +963,7 @@ if err := client.GremlinResourcesUpdateGremlinGraphThroughputThenPoll(ctx, id, p ```go ctx := context.TODO() -id := cosmosdb.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := cosmosdb.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationsGet(ctx, id) if err != nil { @@ -995,7 +995,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") payload := cosmosdb.MongoDBCollectionCreateUpdateParameters{ // ... @@ -1012,7 +1012,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoDBCollectionThenPoll(ctx, id, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.MongoDBDatabaseCreateUpdateParameters{ // ... @@ -1029,7 +1029,7 @@ if err := client.MongoDBResourcesCreateUpdateMongoDBDatabaseThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesDeleteMongoDBCollectionThenPoll(ctx, id); err != nil { // handle the error @@ -1041,7 +1041,7 @@ if err := client.MongoDBResourcesDeleteMongoDBCollectionThenPoll(ctx, id); err ! ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesDeleteMongoDBDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -1053,7 +1053,7 @@ if err := client.MongoDBResourcesDeleteMongoDBDatabaseThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") read, err := client.MongoDBResourcesGetMongoDBCollection(ctx, id) if err != nil { @@ -1069,7 +1069,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") read, err := client.MongoDBResourcesGetMongoDBCollectionThroughput(ctx, id) if err != nil { @@ -1085,7 +1085,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesGetMongoDBDatabase(ctx, id) if err != nil { @@ -1101,7 +1101,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesGetMongoDBDatabaseThroughput(ctx, id) if err != nil { @@ -1117,7 +1117,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.MongoDBResourcesListMongoDBCollections(ctx, id) if err != nil { @@ -1133,7 +1133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.MongoDBResourcesListMongoDBDatabases(ctx, id) if err != nil { @@ -1149,7 +1149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1161,7 +1161,7 @@ if err := client.MongoDBResourcesMigrateMongoDBCollectionToAutoscaleThenPoll(ctx ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") if err := client.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1173,7 +1173,7 @@ if err := client.MongoDBResourcesMigrateMongoDBCollectionToManualThroughputThenP ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1185,7 +1185,7 @@ if err := client.MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1197,7 +1197,7 @@ if err := client.MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputThenPol ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue", "collectionValue") +id := cosmosdb.NewMongodbDatabaseCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "collectionName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1214,7 +1214,7 @@ if err := client.MongoDBResourcesUpdateMongoDBCollectionThroughputThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "mongodbDatabaseValue") +id := cosmosdb.NewMongodbDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1231,7 +1231,7 @@ if err := client.MongoDBResourcesUpdateMongoDBDatabaseThroughputThenPoll(ctx, id ```go ctx := context.TODO() -id := cosmosdb.NewPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "databaseValue", "collectionValue", "partitionKeyRangeIdValue") +id := cosmosdb.NewPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseRid", "collectionRid", "partitionKeyRangeId") read, err := client.PartitionKeyRangeIdListMetrics(ctx, id, cosmosdb.DefaultPartitionKeyRangeIdListMetricsOperationOptions()) if err != nil { @@ -1247,7 +1247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewCollectionPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "regionValue", "databaseValue", "collectionValue", "partitionKeyRangeIdValue") +id := cosmosdb.NewCollectionPartitionKeyRangeIdID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "region", "databaseRid", "collectionRid", "partitionKeyRangeId") read, err := client.PartitionKeyRangeIdRegionListMetrics(ctx, id, cosmosdb.DefaultPartitionKeyRangeIdRegionListMetricsOperationOptions()) if err != nil { @@ -1263,7 +1263,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.PercentileListMetrics(ctx, id, cosmosdb.DefaultPercentileListMetricsOperationOptions()) if err != nil { @@ -1279,7 +1279,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSourceRegionTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sourceRegionValue", "targetRegionValue") +id := cosmosdb.NewSourceRegionTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "sourceRegion", "targetRegion") read, err := client.PercentileSourceTargetListMetrics(ctx, id, cosmosdb.DefaultPercentileSourceTargetListMetricsOperationOptions()) if err != nil { @@ -1295,7 +1295,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "targetRegionValue") +id := cosmosdb.NewTargetRegionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "targetRegion") read, err := client.PercentileTargetListMetrics(ctx, id, cosmosdb.DefaultPercentileTargetListMetricsOperationOptions()) if err != nil { @@ -1311,7 +1311,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewClientEncryptionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "clientEncryptionKeyValue") +id := cosmosdb.NewClientEncryptionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "clientEncryptionKeyName") payload := cosmosdb.ClientEncryptionKeyCreateUpdateParameters{ // ... @@ -1328,7 +1328,7 @@ if err := client.SqlResourcesCreateUpdateClientEncryptionKeyThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") payload := cosmosdb.SqlContainerCreateUpdateParameters{ // ... @@ -1345,7 +1345,7 @@ if err := client.SqlResourcesCreateUpdateSqlContainerThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.SqlDatabaseCreateUpdateParameters{ // ... @@ -1362,7 +1362,7 @@ if err := client.SqlResourcesCreateUpdateSqlDatabaseThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") payload := cosmosdb.SqlStoredProcedureCreateUpdateParameters{ // ... @@ -1379,7 +1379,7 @@ if err := client.SqlResourcesCreateUpdateSqlStoredProcedureThenPoll(ctx, id, pay ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") payload := cosmosdb.SqlTriggerCreateUpdateParameters{ // ... @@ -1396,7 +1396,7 @@ if err := client.SqlResourcesCreateUpdateSqlTriggerThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") payload := cosmosdb.SqlUserDefinedFunctionCreateUpdateParameters{ // ... @@ -1413,7 +1413,7 @@ if err := client.SqlResourcesCreateUpdateSqlUserDefinedFunctionThenPoll(ctx, id, ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesDeleteSqlContainerThenPoll(ctx, id); err != nil { // handle the error @@ -1425,7 +1425,7 @@ if err := client.SqlResourcesDeleteSqlContainerThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesDeleteSqlDatabaseThenPoll(ctx, id); err != nil { // handle the error @@ -1437,7 +1437,7 @@ if err := client.SqlResourcesDeleteSqlDatabaseThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") if err := client.SqlResourcesDeleteSqlStoredProcedureThenPoll(ctx, id); err != nil { // handle the error @@ -1449,7 +1449,7 @@ if err := client.SqlResourcesDeleteSqlStoredProcedureThenPoll(ctx, id); err != n ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") if err := client.SqlResourcesDeleteSqlTriggerThenPoll(ctx, id); err != nil { // handle the error @@ -1461,7 +1461,7 @@ if err := client.SqlResourcesDeleteSqlTriggerThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") if err := client.SqlResourcesDeleteSqlUserDefinedFunctionThenPoll(ctx, id); err != nil { // handle the error @@ -1473,7 +1473,7 @@ if err := client.SqlResourcesDeleteSqlUserDefinedFunctionThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewClientEncryptionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "clientEncryptionKeyValue") +id := cosmosdb.NewClientEncryptionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "clientEncryptionKeyName") read, err := client.SqlResourcesGetClientEncryptionKey(ctx, id) if err != nil { @@ -1489,7 +1489,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesGetSqlContainer(ctx, id) if err != nil { @@ -1505,7 +1505,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesGetSqlContainerThroughput(ctx, id) if err != nil { @@ -1521,7 +1521,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesGetSqlDatabase(ctx, id) if err != nil { @@ -1537,7 +1537,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesGetSqlDatabaseThroughput(ctx, id) if err != nil { @@ -1553,7 +1553,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "storedProcedureValue") +id := cosmosdb.NewStoredProcedureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "storedProcedureName") read, err := client.SqlResourcesGetSqlStoredProcedure(ctx, id) if err != nil { @@ -1569,7 +1569,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "triggerValue") +id := cosmosdb.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "triggerName") read, err := client.SqlResourcesGetSqlTrigger(ctx, id) if err != nil { @@ -1585,7 +1585,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue", "userDefinedFunctionValue") +id := cosmosdb.NewUserDefinedFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName", "userDefinedFunctionName") read, err := client.SqlResourcesGetSqlUserDefinedFunction(ctx, id) if err != nil { @@ -1601,7 +1601,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesListClientEncryptionKeys(ctx, id) if err != nil { @@ -1617,7 +1617,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") read, err := client.SqlResourcesListSqlContainers(ctx, id) if err != nil { @@ -1633,7 +1633,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SqlResourcesListSqlDatabases(ctx, id) if err != nil { @@ -1649,7 +1649,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlStoredProcedures(ctx, id) if err != nil { @@ -1665,7 +1665,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlTriggers(ctx, id) if err != nil { @@ -1681,7 +1681,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") read, err := client.SqlResourcesListSqlUserDefinedFunctions(ctx, id) if err != nil { @@ -1697,7 +1697,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesMigrateSqlContainerToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1709,7 +1709,7 @@ if err := client.SqlResourcesMigrateSqlContainerToAutoscaleThenPoll(ctx, id); er ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") if err := client.SqlResourcesMigrateSqlContainerToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1721,7 +1721,7 @@ if err := client.SqlResourcesMigrateSqlContainerToManualThroughputThenPoll(ctx, ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesMigrateSqlDatabaseToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1733,7 +1733,7 @@ if err := client.SqlResourcesMigrateSqlDatabaseToAutoscaleThenPoll(ctx, id); err ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") if err := client.SqlResourcesMigrateSqlDatabaseToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1745,7 +1745,7 @@ if err := client.SqlResourcesMigrateSqlDatabaseToManualThroughputThenPoll(ctx, i ```go ctx := context.TODO() -id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue", "containerValue") +id := cosmosdb.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName", "containerName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1762,7 +1762,7 @@ if err := client.SqlResourcesUpdateSqlContainerThroughputThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "sqlDatabaseValue") +id := cosmosdb.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "databaseName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... @@ -1779,7 +1779,7 @@ if err := client.SqlResourcesUpdateSqlDatabaseThroughputThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := cosmosdb.TableCreateUpdateParameters{ // ... @@ -1796,7 +1796,7 @@ if err := client.TableResourcesCreateUpdateTableThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesDeleteTableThenPoll(ctx, id); err != nil { // handle the error @@ -1808,7 +1808,7 @@ if err := client.TableResourcesDeleteTableThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableResourcesGetTable(ctx, id) if err != nil { @@ -1824,7 +1824,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableResourcesGetTableThroughput(ctx, id) if err != nil { @@ -1840,7 +1840,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue") +id := cosmosdb.NewDatabaseAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.TableResourcesListTables(ctx, id) if err != nil { @@ -1856,7 +1856,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesMigrateTableToAutoscaleThenPoll(ctx, id); err != nil { // handle the error @@ -1868,7 +1868,7 @@ if err := client.TableResourcesMigrateTableToAutoscaleThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") if err := client.TableResourcesMigrateTableToManualThroughputThenPoll(ctx, id); err != nil { // handle the error @@ -1880,7 +1880,7 @@ if err := client.TableResourcesMigrateTableToManualThroughputThenPoll(ctx, id); ```go ctx := context.TODO() -id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "databaseAccountValue", "tableValue") +id := cosmosdb.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := cosmosdb.ThroughputSettingsUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/client.go index febde6090795..68f649fae551 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/client.go @@ -15,7 +15,7 @@ type CosmosDBClient struct { } func NewCosmosDBClientWithBaseURI(sdkApi sdkEnv.Api) (*CosmosDBClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cosmosdb", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cosmosdb", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CosmosDBClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspace.go index be6cc48a9c84..4ce401244317 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspace.go @@ -44,7 +44,7 @@ func ParseCassandraKeyspaceID(input string) (*CassandraKeyspaceId, error) { } id := CassandraKeyspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCassandraKeyspaceIDInsensitively(input string) (*CassandraKeyspaceId, } id := CassandraKeyspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CassandraKeyspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticCassandraKeyspaces", "cassandraKeyspaces", "cassandraKeyspaces"), - resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "cassandraKeyspaceValue"), + resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "keyspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspacetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspacetable.go index 4fe3c8c5928f..939b9bdce123 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspacetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_cassandrakeyspacetable.go @@ -46,7 +46,7 @@ func ParseCassandraKeyspaceTableID(input string) (*CassandraKeyspaceTableId, err } id := CassandraKeyspaceTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCassandraKeyspaceTableIDInsensitively(input string) (*CassandraKeyspac } id := CassandraKeyspaceTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CassandraKeyspaceTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticCassandraKeyspaces", "cassandraKeyspaces", "cassandraKeyspaces"), - resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "cassandraKeyspaceValue"), + resourceids.UserSpecifiedSegment("cassandraKeyspaceName", "keyspaceName"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_clientencryptionkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_clientencryptionkey.go index f7dfcab2d276..edcfeff0f1c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_clientencryptionkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_clientencryptionkey.go @@ -46,7 +46,7 @@ func ParseClientEncryptionKeyID(input string) (*ClientEncryptionKeyId, error) { } id := ClientEncryptionKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseClientEncryptionKeyIDInsensitively(input string) (*ClientEncryptionKey } id := ClientEncryptionKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ClientEncryptionKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticClientEncryptionKeys", "clientEncryptionKeys", "clientEncryptionKeys"), - resourceids.UserSpecifiedSegment("clientEncryptionKeyName", "clientEncryptionKeyValue"), + resourceids.UserSpecifiedSegment("clientEncryptionKeyName", "clientEncryptionKeyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collection.go index c6dee44ebec8..7a48b54fbb3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collection.go @@ -46,7 +46,7 @@ func ParseCollectionID(input string) (*CollectionId, error) { } id := CollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCollectionIDInsensitively(input string) (*CollectionId, error) { } id := CollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go index 59a42397284e..0372c743649c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_collectionpartitionkeyrangeid.go @@ -50,7 +50,7 @@ func ParseCollectionPartitionKeyRangeIdID(input string) (*CollectionPartitionKey } id := CollectionPartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -67,7 +67,7 @@ func ParseCollectionPartitionKeyRangeIdIDInsensitively(input string) (*Collectio } id := CollectionPartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -139,15 +139,15 @@ func (id CollectionPartitionKeyRangeIdId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), resourceids.StaticSegment("staticPartitionKeyRangeId", "partitionKeyRangeId", "partitionKeyRangeId"), - resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeIdValue"), + resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_container.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_container.go index ce95a8e413e4..9fc554842edd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_container.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_container.go @@ -46,7 +46,7 @@ func ParseContainerID(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseContainerIDInsensitively(input string) (*ContainerId, error) { } id := ContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_database.go index d036afcf324e..32a5b8403989 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccount.go index 42910a8aff3a..2ca27074b007 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccount.go @@ -42,7 +42,7 @@ func ParseDatabaseAccountID(input string) (*DatabaseAccountId, error) { } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDatabaseAccountIDInsensitively(input string) (*DatabaseAccountId, erro } id := DatabaseAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DatabaseAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccountname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccountname.go index 4102315da936..46c015d77692 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccountname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databaseaccountname.go @@ -38,7 +38,7 @@ func ParseDatabaseAccountNameID(input string) (*DatabaseAccountNameId, error) { } id := DatabaseAccountNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseDatabaseAccountNameIDInsensitively(input string) (*DatabaseAccountName } id := DatabaseAccountNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id DatabaseAccountNameId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccountNames", "databaseAccountNames", "databaseAccountNames"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databasecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databasecollection.go index 6472795f5365..4029bc74189c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databasecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_databasecollection.go @@ -48,7 +48,7 @@ func ParseDatabaseCollectionID(input string) (*DatabaseCollectionId, error) { } id := DatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseDatabaseCollectionIDInsensitively(input string) (*DatabaseCollectionId } id := DatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id DatabaseCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_graph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_graph.go index e49a26e6ce99..7a55f30993cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_graph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_graph.go @@ -46,7 +46,7 @@ func ParseGraphID(input string) (*GraphId, error) { } id := GraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGraphIDInsensitively(input string) (*GraphId, error) { } id := GraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GraphId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticGremlinDatabases", "gremlinDatabases", "gremlinDatabases"), - resourceids.UserSpecifiedSegment("gremlinDatabaseName", "gremlinDatabaseValue"), + resourceids.UserSpecifiedSegment("gremlinDatabaseName", "databaseName"), resourceids.StaticSegment("staticGraphs", "graphs", "graphs"), - resourceids.UserSpecifiedSegment("graphName", "graphValue"), + resourceids.UserSpecifiedSegment("graphName", "graphName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_gremlindatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_gremlindatabase.go index a116c8e5d547..8bfcc87e575a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_gremlindatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_gremlindatabase.go @@ -44,7 +44,7 @@ func ParseGremlinDatabaseID(input string) (*GremlinDatabaseId, error) { } id := GremlinDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGremlinDatabaseIDInsensitively(input string) (*GremlinDatabaseId, erro } id := GremlinDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GremlinDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticGremlinDatabases", "gremlinDatabases", "gremlinDatabases"), - resourceids.UserSpecifiedSegment("gremlinDatabaseName", "gremlinDatabaseValue"), + resourceids.UserSpecifiedSegment("gremlinDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_location.go index 7420a7e1af35..febfbe7d88f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabase.go index 801a7fd57dcd..75875a6ac549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabase.go @@ -44,7 +44,7 @@ func ParseMongodbDatabaseID(input string) (*MongodbDatabaseId, error) { } id := MongodbDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMongodbDatabaseIDInsensitively(input string) (*MongodbDatabaseId, erro } id := MongodbDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MongodbDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbDatabases", "mongodbDatabases", "mongodbDatabases"), - resourceids.UserSpecifiedSegment("mongodbDatabaseName", "mongodbDatabaseValue"), + resourceids.UserSpecifiedSegment("mongodbDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabasecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabasecollection.go index bfe0a7d85fd7..7ddcf2cbb6d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabasecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_mongodbdatabasecollection.go @@ -46,7 +46,7 @@ func ParseMongodbDatabaseCollectionID(input string) (*MongodbDatabaseCollectionI } id := MongodbDatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseMongodbDatabaseCollectionIDInsensitively(input string) (*MongodbDataba } id := MongodbDatabaseCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id MongodbDatabaseCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticMongodbDatabases", "mongodbDatabases", "mongodbDatabases"), - resourceids.UserSpecifiedSegment("mongodbDatabaseName", "mongodbDatabaseValue"), + resourceids.UserSpecifiedSegment("mongodbDatabaseName", "databaseName"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_partitionkeyrangeid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_partitionkeyrangeid.go index da2bb45a226a..88f0f4a92d58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_partitionkeyrangeid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_partitionkeyrangeid.go @@ -48,7 +48,7 @@ func ParsePartitionKeyRangeIdID(input string) (*PartitionKeyRangeIdId, error) { } id := PartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParsePartitionKeyRangeIdIDInsensitively(input string) (*PartitionKeyRangeId } id := PartitionKeyRangeIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id PartitionKeyRangeIdId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseRid"), resourceids.StaticSegment("staticCollections", "collections", "collections"), - resourceids.UserSpecifiedSegment("collectionName", "collectionValue"), + resourceids.UserSpecifiedSegment("collectionName", "collectionRid"), resourceids.StaticSegment("staticPartitionKeyRangeId", "partitionKeyRangeId", "partitionKeyRangeId"), - resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeIdValue"), + resourceids.UserSpecifiedSegment("partitionKeyRangeId", "partitionKeyRangeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_region.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_region.go index 42244d992913..4f0f50bcdef9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_region.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_region.go @@ -44,7 +44,7 @@ func ParseRegionID(input string) (*RegionId, error) { } id := RegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRegionIDInsensitively(input string) (*RegionId, error) { } id := RegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticRegion", "region", "region"), - resourceids.UserSpecifiedSegment("regionName", "regionValue"), + resourceids.UserSpecifiedSegment("regionName", "region"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sourceregiontargetregion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sourceregiontargetregion.go index 51f21bd0244b..eaa24e25c65b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sourceregiontargetregion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sourceregiontargetregion.go @@ -46,7 +46,7 @@ func ParseSourceRegionTargetRegionID(input string) (*SourceRegionTargetRegionId, } id := SourceRegionTargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSourceRegionTargetRegionIDInsensitively(input string) (*SourceRegionTa } id := SourceRegionTargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SourceRegionTargetRegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSourceRegion", "sourceRegion", "sourceRegion"), - resourceids.UserSpecifiedSegment("sourceRegionName", "sourceRegionValue"), + resourceids.UserSpecifiedSegment("sourceRegionName", "sourceRegion"), resourceids.StaticSegment("staticTargetRegion", "targetRegion", "targetRegion"), - resourceids.UserSpecifiedSegment("targetRegionName", "targetRegionValue"), + resourceids.UserSpecifiedSegment("targetRegionName", "targetRegion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sqldatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sqldatabase.go index e4ea79b04b2b..d92d2bbbf596 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sqldatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_sqldatabase.go @@ -44,7 +44,7 @@ func ParseSqlDatabaseID(input string) (*SqlDatabaseId, error) { } id := SqlDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSqlDatabaseIDInsensitively(input string) (*SqlDatabaseId, error) { } id := SqlDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SqlDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_storedprocedure.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_storedprocedure.go index 0ab65f0783e5..72b9abbafe95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_storedprocedure.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_storedprocedure.go @@ -48,7 +48,7 @@ func ParseStoredProcedureID(input string) (*StoredProcedureId, error) { } id := StoredProcedureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseStoredProcedureIDInsensitively(input string) (*StoredProcedureId, erro } id := StoredProcedureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id StoredProcedureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticStoredProcedures", "storedProcedures", "storedProcedures"), - resourceids.UserSpecifiedSegment("storedProcedureName", "storedProcedureValue"), + resourceids.UserSpecifiedSegment("storedProcedureName", "storedProcedureName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_table.go index 6687c58036a2..ecf9d97c31ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_table.go @@ -44,7 +44,7 @@ func ParseTableID(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTableIDInsensitively(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_targetregion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_targetregion.go index e265a8e40b94..213d48cf6193 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_targetregion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_targetregion.go @@ -44,7 +44,7 @@ func ParseTargetRegionID(input string) (*TargetRegionId, error) { } id := TargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTargetRegionIDInsensitively(input string) (*TargetRegionId, error) { } id := TargetRegionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TargetRegionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticTargetRegion", "targetRegion", "targetRegion"), - resourceids.UserSpecifiedSegment("targetRegionName", "targetRegionValue"), + resourceids.UserSpecifiedSegment("targetRegionName", "targetRegion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_trigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_trigger.go index fb8394f03c51..8c6760bfa3d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_trigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_trigger.go @@ -48,7 +48,7 @@ func ParseTriggerID(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseTriggerIDInsensitively(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id TriggerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticTriggers", "triggers", "triggers"), - resourceids.UserSpecifiedSegment("triggerName", "triggerValue"), + resourceids.UserSpecifiedSegment("triggerName", "triggerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_userdefinedfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_userdefinedfunction.go index b06ae438ba23..c09e749c3cbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_userdefinedfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/id_userdefinedfunction.go @@ -48,7 +48,7 @@ func ParseUserDefinedFunctionID(input string) (*UserDefinedFunctionId, error) { } id := UserDefinedFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseUserDefinedFunctionIDInsensitively(input string) (*UserDefinedFunction } id := UserDefinedFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id UserDefinedFunctionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDocumentDB", "Microsoft.DocumentDB", "Microsoft.DocumentDB"), resourceids.StaticSegment("staticDatabaseAccounts", "databaseAccounts", "databaseAccounts"), - resourceids.UserSpecifiedSegment("databaseAccountName", "databaseAccountValue"), + resourceids.UserSpecifiedSegment("databaseAccountName", "accountName"), resourceids.StaticSegment("staticSqlDatabases", "sqlDatabases", "sqlDatabases"), - resourceids.UserSpecifiedSegment("sqlDatabaseName", "sqlDatabaseValue"), + resourceids.UserSpecifiedSegment("sqlDatabaseName", "databaseName"), resourceids.StaticSegment("staticContainers", "containers", "containers"), - resourceids.UserSpecifiedSegment("containerName", "containerValue"), + resourceids.UserSpecifiedSegment("containerName", "containerName"), resourceids.StaticSegment("staticUserDefinedFunctions", "userDefinedFunctions", "userDefinedFunctions"), - resourceids.UserSpecifiedSegment("userDefinedFunctionName", "userDefinedFunctionValue"), + resourceids.UserSpecifiedSegment("userDefinedFunctionName", "userDefinedFunctionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go index a31069fc0b0e..de461e25dc1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspace.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraKeyspace(ctx context.Conte var model CassandraKeyspaceGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go index 356498418ece..89e084cef74a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandrakeyspacethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraKeyspaceThroughput(ctx con var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go index 95fb74caa422..41dc5195f742 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratable.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraTable(ctx context.Context, var model CassandraTableGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go index 907c40dea874..c328ab674062 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourcesgetcassandratablethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesGetCassandraTableThroughput(ctx contex var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go index 92cf658bfc17..8fd6832e5892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandrakeyspaces.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesListCassandraKeyspaces(ctx context.Con var model CassandraKeyspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go index ea52708f45b3..2c2d361034f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_cassandraresourceslistcassandratables.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CassandraResourcesListCassandraTables(ctx context.Contex var model CassandraTableListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetricdefinitions.go index 5d7fb05541ce..759da61266fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) CollectionListMetricDefinitions(ctx context.Context, id var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go index 8747f3a471ca..cf0c20186823 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionListMetricsOperationOptions) ToHeaders() *client.Headers { func (o CollectionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionListMetrics(ctx context.Context, id Collection var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go index eaf8390c6a03..114d55e873d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionlistusages.go @@ -34,6 +34,7 @@ func (o CollectionListUsagesOperationOptions) ToHeaders() *client.Headers { func (o CollectionListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionListUsages(ctx context.Context, id CollectionI var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go index 9b26ee59ba29..e4738325382a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionPartitionListMetricsOperationOptions) ToHeaders() *client.Head func (o CollectionPartitionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionListMetrics(ctx context.Context, id C var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go index 1df08750fb23..11b7cd3bb490 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionlistusages.go @@ -34,6 +34,7 @@ func (o CollectionPartitionListUsagesOperationOptions) ToHeaders() *client.Heade func (o CollectionPartitionListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionListUsages(ctx context.Context, id Co var model PartitionUsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go index 725fbc82bf22..4c36c242ff33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionpartitionregionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionPartitionRegionListMetricsOperationOptions) ToHeaders() *clien func (o CollectionPartitionRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionPartitionRegionListMetrics(ctx context.Context var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go index 335458e0b4ba..af8051f65e03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_collectionregionlistmetrics.go @@ -34,6 +34,7 @@ func (o CollectionRegionListMetricsOperationOptions) ToHeaders() *client.Headers func (o CollectionRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) CollectionRegionListMetrics(ctx context.Context, id Data var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go index 16c5eb70c057..f8be1c1d41f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountregionlistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseAccountRegionListMetricsOperationOptions) ToHeaders() *client.He func (o DatabaseAccountRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountRegionListMetrics(ctx context.Context, id var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsget.go index d2a51fe0586f..062b96a49c50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsget.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) DatabaseAccountsGet(ctx context.Context, id DatabaseAcco var model DatabaseAccountGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go index 8dcfbf47e435..72046c42d04a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountsgetreadonlykeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsGetReadOnlyKeys(ctx context.Context, id var model DatabaseAccountListReadOnlyKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslist.go index f52d3473a1b9..05f6c342ff53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslist.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) DatabaseAccountsList(ctx context.Context, id commonids.S var model DatabaseAccountsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go index 73c610536c4a..df3eeb3dd38c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistbyresourcegroup.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) DatabaseAccountsListByResourceGroup(ctx context.Context, var model DatabaseAccountsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go index 61af9c871aff..73fc75aa1ad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistconnectionstrings.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListConnectionStrings(ctx context.Contex var model DatabaseAccountListConnectionStringsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistkeys.go index 1c8b71debc42..d47fc347572c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistkeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListKeys(ctx context.Context, id Databas var model DatabaseAccountListKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go index ddb38a2c1d65..4357cd02e662 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListMetricDefinitions(ctx context.Contex var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go index 42ea855bbe47..d0ba70fcbade 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseAccountsListMetricsOperationOptions) ToHeaders() *client.Headers func (o DatabaseAccountsListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountsListMetrics(ctx context.Context, id Data var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go index 13666b0d36a8..d8667228eccb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistreadonlykeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseAccountsListReadOnlyKeys(ctx context.Context, id var model DatabaseAccountListReadOnlyKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go index fd740072dd90..6409fa4aa880 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaseaccountslistusages.go @@ -34,6 +34,7 @@ func (o DatabaseAccountsListUsagesOperationOptions) ToHeaders() *client.Headers func (o DatabaseAccountsListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseAccountsListUsages(ctx context.Context, id Datab var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetricdefinitions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetricdefinitions.go index 7bbf108e68fd..60cd6e072bc9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetricdefinitions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetricdefinitions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) DatabaseListMetricDefinitions(ctx context.Context, id Da var model MetricDefinitionsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go index 22284462c5b1..77dc7d128ccf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistmetrics.go @@ -34,6 +34,7 @@ func (o DatabaseListMetricsOperationOptions) ToHeaders() *client.Headers { func (o DatabaseListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseListMetrics(ctx context.Context, id DatabaseId, var model MetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go index 46d21b5a89d6..2d5907aa0689 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_databaselistusages.go @@ -34,6 +34,7 @@ func (o DatabaseListUsagesOperationOptions) ToHeaders() *client.Headers { func (o DatabaseListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) DatabaseListUsages(ctx context.Context, id DatabaseId, o var model UsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go index 240425bac225..2be37b7e65ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinDatabase(ctx context.Context, var model GremlinDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go index 6ab56029e1d3..497eb988e79b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlindatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinDatabaseThroughput(ctx context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go index f7dfd2269857..3a72459fd702 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraph.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinGraph(ctx context.Context, id var model GremlinGraphGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go index d333b4c27d6b..29469526c524 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourcesgetgremlingraphthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesGetGremlinGraphThroughput(ctx context.Co var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go index c71ca9938ed5..48bf17fd9409 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlindatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesListGremlinDatabases(ctx context.Context var model GremlinDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go index ecf46a99a9fe..97e332b3d32a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_gremlinresourceslistgremlingraphs.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) GremlinResourcesListGremlinGraphs(ctx context.Context, i var model GremlinGraphListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationsget.go index edabf67eb7e2..1bcf857f6232 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationsget.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) LocationsGet(ctx context.Context, id LocationId) (result var model LocationGetResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationslist.go index 84429f5d3a4c..3d3b8a3c99e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_locationslist.go @@ -47,7 +47,6 @@ func (c CosmosDBClient) LocationsList(ctx context.Context, id commonids.Subscrip var model LocationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go index 8047c0f57722..9296bf8ab51f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollection.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBCollection(ctx context.Context var model MongoDBCollectionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go index 895e544a6462..ef4212d22375 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbcollectionthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBCollectionThroughput(ctx conte var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go index b1294ca767c0..af37b27fdc89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBDatabase(ctx context.Context, var model MongoDBDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go index c91e198e2c47..424444e72fc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourcesgetmongodbdatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesGetMongoDBDatabaseThroughput(ctx context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go index b5019bfa3933..b1404d5a8d15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbcollections.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesListMongoDBCollections(ctx context.Conte var model MongoDBCollectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go index 4b062b95f9a5..1144c74833b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_mongodbresourceslistmongodbdatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) MongoDBResourcesListMongoDBDatabases(ctx context.Context var model MongoDBDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go index 123d59fc3cd6..dd48b8f3546e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidlistmetrics.go @@ -34,6 +34,7 @@ func (o PartitionKeyRangeIdListMetricsOperationOptions) ToHeaders() *client.Head func (o PartitionKeyRangeIdListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PartitionKeyRangeIdListMetrics(ctx context.Context, id P var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go index 0ef6c622f7fd..4683537bc324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_partitionkeyrangeidregionlistmetrics.go @@ -34,6 +34,7 @@ func (o PartitionKeyRangeIdRegionListMetricsOperationOptions) ToHeaders() *clien func (o PartitionKeyRangeIdRegionListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PartitionKeyRangeIdRegionListMetrics(ctx context.Context var model PartitionMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go index 3815628c1f60..e47c0b301892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilelistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileListMetricsOperationOptions) ToHeaders() *client.Headers { func (o PercentileListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileListMetrics(ctx context.Context, id DatabaseAc var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go index ee2c78f33daf..0a8441c8ce31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentilesourcetargetlistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileSourceTargetListMetricsOperationOptions) ToHeaders() *client.H func (o PercentileSourceTargetListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileSourceTargetListMetrics(ctx context.Context, i var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go index 8f757b3beba7..af6ff16b4e3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_percentiletargetlistmetrics.go @@ -34,6 +34,7 @@ func (o PercentileTargetListMetricsOperationOptions) ToHeaders() *client.Headers func (o PercentileTargetListMetricsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CosmosDBClient) PercentileTargetListMetrics(ctx context.Context, id Targ var model PercentileMetricListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetclientencryptionkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetclientencryptionkey.go index 74d727c841db..af241efa45e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetclientencryptionkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetclientencryptionkey.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetClientEncryptionKey(ctx context.Context, var model ClientEncryptionKeyGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go index e4dbdcbfb726..5eb7bc222c38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainer.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlContainer(ctx context.Context, id Cont var model SqlContainerGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go index 26bdc14a6838..0a00c8a8bfe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlcontainerthroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlContainerThroughput(ctx context.Contex var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go index 6c487b4584bf..fc043b7c3b07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabase.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlDatabase(ctx context.Context, id SqlDa var model SqlDatabaseGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go index 9e0d1786f8ad..0293bba4a080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqldatabasethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlDatabaseThroughput(ctx context.Context var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go index 1c8b39a10a8e..553c530859b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqlstoredprocedure.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlStoredProcedure(ctx context.Context, i var model SqlStoredProcedureGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go index eafc6a9e3d7e..adc75a36c588 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqltrigger.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlTrigger(ctx context.Context, id Trigge var model SqlTriggerGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go index 39a794f47a8a..1d1ddce00d4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourcesgetsqluserdefinedfunction.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) SqlResourcesGetSqlUserDefinedFunction(ctx context.Contex var model SqlUserDefinedFunctionGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistclientencryptionkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistclientencryptionkeys.go index 98e90ecff88d..0fbb76de4459 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistclientencryptionkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistclientencryptionkeys.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListClientEncryptionKeys(ctx context.Context var model ClientEncryptionKeysListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go index 512199371fbb..932b86bd0dc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlcontainers.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlContainers(ctx context.Context, id Sq var model SqlContainerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go index 396499121886..6f5fadd616d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqldatabases.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlDatabases(ctx context.Context, id Dat var model SqlDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go index b554525b5a4d..0c5708f20a28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqlstoredprocedures.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlStoredProcedures(ctx context.Context, var model SqlStoredProcedureListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go index 149cca803daf..87d5232c835b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqltriggers.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlTriggers(ctx context.Context, id Cont var model SqlTriggerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go index d81ebf50d179..93ecc4e048c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_sqlresourceslistsqluserdefinedfunctions.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) SqlResourcesListSqlUserDefinedFunctions(ctx context.Cont var model SqlUserDefinedFunctionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettable.go index f96caea16e30..26645d49a198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettable.go @@ -45,7 +45,6 @@ func (c CosmosDBClient) TableResourcesGetTable(ctx context.Context, id TableId) var model TableGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettablethroughput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettablethroughput.go index 05059dee57a4..8c7bf14664de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettablethroughput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourcesgettablethroughput.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) TableResourcesGetTableThroughput(ctx context.Context, id var model ThroughputSettingsGetResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourceslisttables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourceslisttables.go index 977a8bf214a2..9a22a7530b67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourceslisttables.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/method_tableresourceslisttables.go @@ -46,7 +46,6 @@ func (c CosmosDBClient) TableResourcesListTables(ctx context.Context, id Databas var model TableListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_backuppolicy.go index 2e4805f1c2f8..5d5d654a4c36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_backuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_backuppolicy.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupPolicy interface { + BackupPolicy() BaseBackupPolicyImpl } -// RawBackupPolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BackupPolicy = BaseBackupPolicyImpl{} + +type BaseBackupPolicyImpl struct { + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s BaseBackupPolicyImpl) BackupPolicy() BaseBackupPolicyImpl { + return s +} + +var _ BackupPolicy = RawBackupPolicyImpl{} + +// RawBackupPolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBackupPolicyImpl struct { - Type string - Values map[string]interface{} + backupPolicy BaseBackupPolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupPolicyImpl) BackupPolicy() BaseBackupPolicyImpl { + return s.backupPolicy } -func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { +func UnmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { return nil, fmt.Errorf("unmarshaling BackupPolicy into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Continuous") { @@ -52,10 +70,15 @@ func unmarshalBackupPolicyImplementation(input []byte) (BackupPolicy, error) { return out, nil } - out := RawBackupPolicyImpl{ - Type: value, - Values: temp, + var parent BaseBackupPolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupPolicyImpl: %+v", err) } - return out, nil + + return RawBackupPolicyImpl{ + backupPolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_continuousmodebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_continuousmodebackuppolicy.go index 1d53e0c4ecae..eb15c07e5f22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_continuousmodebackuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_continuousmodebackuppolicy.go @@ -14,7 +14,16 @@ type ContinuousModeBackupPolicy struct { ContinuousModeProperties *ContinuousModeProperties `json:"continuousModeProperties,omitempty"` // Fields inherited from BackupPolicy + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s ContinuousModeBackupPolicy) BackupPolicy() BaseBackupPolicyImpl { + return BaseBackupPolicyImpl{ + MigrationState: s.MigrationState, + Type: s.Type, + } } var _ json.Marshaler = ContinuousModeBackupPolicy{} @@ -28,9 +37,10 @@ func (s ContinuousModeBackupPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ContinuousModeBackupPolicy: %+v", err) } + decoded["type"] = "Continuous" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go index e36d0f666d34..e16e29850ee2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountcreateupdateproperties.go @@ -46,10 +46,41 @@ type DatabaseAccountCreateUpdateProperties struct { var _ json.Unmarshaler = &DatabaseAccountCreateUpdateProperties{} func (s *DatabaseAccountCreateUpdateProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountCreateUpdateProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + CustomerManagedKeyStatus *string `json:"customerManagedKeyStatus,omitempty"` + DatabaseAccountOfferType DatabaseAccountOfferType `json:"databaseAccountOfferType"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableBurstCapacity *bool `json:"enableBurstCapacity,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + EnablePartitionMerge *bool `json:"enablePartitionMerge,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + KeysMetadata *DatabaseAccountKeysMetadata `json:"keysMetadata,omitempty"` + Locations []Location `json:"locations"` + MinimalTlsVersion *MinimalTlsVersion `json:"minimalTlsVersion,omitempty"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + RestoreParameters *RestoreParameters `json:"restoreParameters,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountCreateUpdateProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -90,11 +121,12 @@ func (s *DatabaseAccountCreateUpdateProperties) UnmarshalJSON(bytes []byte) erro } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountCreateUpdateProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountgetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountgetproperties.go index ff896712cd1c..f250965dd5a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountgetproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountgetproperties.go @@ -53,10 +53,48 @@ type DatabaseAccountGetProperties struct { var _ json.Unmarshaler = &DatabaseAccountGetProperties{} func (s *DatabaseAccountGetProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountGetProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + CustomerManagedKeyStatus *string `json:"customerManagedKeyStatus,omitempty"` + DatabaseAccountOfferType *DatabaseAccountOfferType `json:"databaseAccountOfferType,omitempty"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + DocumentEndpoint *string `json:"documentEndpoint,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableBurstCapacity *bool `json:"enableBurstCapacity,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + EnablePartitionMerge *bool `json:"enablePartitionMerge,omitempty"` + FailoverPolicies *[]FailoverPolicy `json:"failoverPolicies,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + InstanceId *string `json:"instanceId,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + KeysMetadata *DatabaseAccountKeysMetadata `json:"keysMetadata,omitempty"` + Locations *[]Location `json:"locations,omitempty"` + MinimalTlsVersion *MinimalTlsVersion `json:"minimalTlsVersion,omitempty"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + ReadLocations *[]Location `json:"readLocations,omitempty"` + RestoreParameters *RestoreParameters `json:"restoreParameters,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + WriteLocations *[]Location `json:"writeLocations,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountGetProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -104,11 +142,12 @@ func (s *DatabaseAccountGetProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountGetProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountupdateproperties.go index a7198a354a76..702598718d57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_databaseaccountupdateproperties.go @@ -43,10 +43,38 @@ type DatabaseAccountUpdateProperties struct { var _ json.Unmarshaler = &DatabaseAccountUpdateProperties{} func (s *DatabaseAccountUpdateProperties) UnmarshalJSON(bytes []byte) error { - type alias DatabaseAccountUpdateProperties - var decoded alias + var decoded struct { + AnalyticalStorageConfiguration *AnalyticalStorageConfiguration `json:"analyticalStorageConfiguration,omitempty"` + ApiProperties *ApiProperties `json:"apiProperties,omitempty"` + Capabilities *[]Capability `json:"capabilities,omitempty"` + Capacity *Capacity `json:"capacity,omitempty"` + ConnectorOffer *ConnectorOffer `json:"connectorOffer,omitempty"` + ConsistencyPolicy *ConsistencyPolicy `json:"consistencyPolicy,omitempty"` + Cors *[]CorsPolicy `json:"cors,omitempty"` + CustomerManagedKeyStatus *string `json:"customerManagedKeyStatus,omitempty"` + DefaultIdentity *string `json:"defaultIdentity,omitempty"` + DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + EnableAnalyticalStorage *bool `json:"enableAnalyticalStorage,omitempty"` + EnableAutomaticFailover *bool `json:"enableAutomaticFailover,omitempty"` + EnableBurstCapacity *bool `json:"enableBurstCapacity,omitempty"` + EnableCassandraConnector *bool `json:"enableCassandraConnector,omitempty"` + EnableFreeTier *bool `json:"enableFreeTier,omitempty"` + EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` + EnablePartitionMerge *bool `json:"enablePartitionMerge,omitempty"` + IPRules *[]IPAddressOrRange `json:"ipRules,omitempty"` + IsVirtualNetworkFilterEnabled *bool `json:"isVirtualNetworkFilterEnabled,omitempty"` + KeyVaultKeyUri *string `json:"keyVaultKeyUri,omitempty"` + KeysMetadata *DatabaseAccountKeysMetadata `json:"keysMetadata,omitempty"` + Locations *[]Location `json:"locations,omitempty"` + MinimalTlsVersion *MinimalTlsVersion `json:"minimalTlsVersion,omitempty"` + NetworkAclBypass *NetworkAclBypass `json:"networkAclBypass,omitempty"` + NetworkAclBypassResourceIds *[]string `json:"networkAclBypassResourceIds,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatabaseAccountUpdateProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AnalyticalStorageConfiguration = decoded.AnalyticalStorageConfiguration @@ -84,11 +112,12 @@ func (s *DatabaseAccountUpdateProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["backupPolicy"]; ok { - impl, err := unmarshalBackupPolicyImplementation(v) + impl, err := UnmarshalBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupPolicy' for 'DatabaseAccountUpdateProperties': %+v", err) } s.BackupPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_periodicmodebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_periodicmodebackuppolicy.go index b3d0a4a335cc..0ead8c8a1f7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_periodicmodebackuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/model_periodicmodebackuppolicy.go @@ -14,7 +14,16 @@ type PeriodicModeBackupPolicy struct { PeriodicModeProperties *PeriodicModeProperties `json:"periodicModeProperties,omitempty"` // Fields inherited from BackupPolicy + MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` + Type BackupPolicyType `json:"type"` +} + +func (s PeriodicModeBackupPolicy) BackupPolicy() BaseBackupPolicyImpl { + return BaseBackupPolicyImpl{ + MigrationState: s.MigrationState, + Type: s.Type, + } } var _ json.Marshaler = PeriodicModeBackupPolicy{} @@ -28,9 +37,10 @@ func (s PeriodicModeBackupPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PeriodicModeBackupPolicy: %+v", err) } + decoded["type"] = "Periodic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/version.go index 8c65bd14b7cf..48e53a5d306a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/cosmosdb/2024-05-15/cosmosdb/version.go @@ -1,12 +1,10 @@ package cosmosdb -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cosmosdb/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cosmosdb/2024-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/README.md index 77f79d25d051..43eddbb03bc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports` Documentation -The `exports` SDK allows for interaction with the Azure Resource Manager Service `costmanagement` (API Version `2021-10-01`). +The `exports` SDK allows for interaction with Azure Resource Manager `costmanagement` (API Version `2021-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportName") payload := exports.Export{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportName") read, err := client.Execute(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportName") read, err := client.Get(ctx, id, exports.DefaultGetOperationOptions()) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportValue") +id := exports.NewScopedExportID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "exportName") read, err := client.GetExecutionHistory(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/client.go index d66fcf02cc78..783067f27231 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/client.go @@ -15,7 +15,7 @@ type ExportsClient struct { } func NewExportsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExportsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "exports", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "exports", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExportsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/id_scopedexport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/id_scopedexport.go index 7db2e02ed55d..aa03ebab26b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/id_scopedexport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/id_scopedexport.go @@ -40,7 +40,7 @@ func ParseScopedExportID(input string) (*ScopedExportId, error) { } id := ScopedExportId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedExportIDInsensitively(input string) (*ScopedExportId, error) { } id := ScopedExportId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedExportId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticExports", "exports", "exports"), - resourceids.UserSpecifiedSegment("exportName", "exportValue"), + resourceids.UserSpecifiedSegment("exportName", "exportName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_createorupdate.go index 07d745350428..0ce129b77429 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ExportsClient) CreateOrUpdate(ctx context.Context, id ScopedExportId, in var model Export result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_get.go index bed88c945148..325c75fe4ea2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ExportsClient) Get(ctx context.Context, id ScopedExportId, options GetOp var model Export result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_getexecutionhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_getexecutionhistory.go index 687216d36d56..99c38c07df77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_getexecutionhistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_getexecutionhistory.go @@ -46,7 +46,6 @@ func (c ExportsClient) GetExecutionHistory(ctx context.Context, id ScopedExportI var model ExportExecutionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_list.go index 6b9e0d7ef58c..d18e687c04ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/method_list.go @@ -35,6 +35,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ExportsClient) List(ctx context.Context, id commonids.ScopeId, options L var model ExportListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/version.go index 96be6d93da3f..5f1858d26b46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2021-10-01/exports/version.go @@ -1,12 +1,10 @@ package exports -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/exports/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/exports/2021-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md index 64b789b27190..3c76511c7e60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions` Documentation -The `scheduledactions` SDK allows for interaction with the Azure Resource Manager Service `costmanagement` (API Version `2022-06-01-preview`). +The `scheduledactions` SDK allows for interaction with Azure Resource Manager `costmanagement` (API Version `2022-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -66,7 +66,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") payload := scheduledactions.ScheduledAction{ // ... @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") payload := scheduledactions.ScheduledAction{ // ... @@ -108,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Delete(ctx, id) if err != nil { @@ -124,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -140,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Execute(ctx, id) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.ExecuteByScope(ctx, id) if err != nil { @@ -172,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Get(ctx, id) if err != nil { @@ -188,7 +188,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.GetByScope(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/client.go index bca0696832fa..2ad38dee43c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/client.go @@ -15,7 +15,7 @@ type ScheduledActionsClient struct { } func NewScheduledActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduledActionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scheduledactions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scheduledactions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScheduledActionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scheduledaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scheduledaction.go index fef59f3f03de..1b3794907e52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scheduledaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scheduledaction.go @@ -38,7 +38,7 @@ func ParseScheduledActionID(input string) (*ScheduledActionId, error) { } id := ScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseScheduledActionIDInsensitively(input string) (*ScheduledActionId, erro } id := ScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id ScheduledActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticScheduledActions", "scheduledActions", "scheduledActions"), - resourceids.UserSpecifiedSegment("scheduledActionName", "scheduledActionValue"), + resourceids.UserSpecifiedSegment("scheduledActionName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scopedscheduledaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scopedscheduledaction.go index 3605a487daf1..09cfb4824acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scopedscheduledaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/id_scopedscheduledaction.go @@ -40,7 +40,7 @@ func ParseScopedScheduledActionID(input string) (*ScopedScheduledActionId, error } id := ScopedScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedScheduledActionIDInsensitively(input string) (*ScopedScheduledAc } id := ScopedScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedScheduledActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticScheduledActions", "scheduledActions", "scheduledActions"), - resourceids.UserSpecifiedSegment("scheduledActionName", "scheduledActionValue"), + resourceids.UserSpecifiedSegment("scheduledActionName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailability.go index 784263b1c5ec..3e3c05e72bc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailability.go @@ -49,7 +49,6 @@ func (c ScheduledActionsClient) CheckNameAvailability(ctx context.Context, input var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailabilitybyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailabilitybyscope.go index 16761a3d5651..dcc90e23d360 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailabilitybyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_checknameavailabilitybyscope.go @@ -51,7 +51,6 @@ func (c ScheduledActionsClient) CheckNameAvailabilityByScope(ctx context.Context var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdate.go index 05d0e0438014..bada485b8fe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdatebyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdatebyscope.go index 5146690cf6c0..636c9075980f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdatebyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_createorupdatebyscope.go @@ -50,7 +50,6 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_get.go index 60d64aba5e7a..7d8f87f99ca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_get.go @@ -45,7 +45,6 @@ func (c ScheduledActionsClient) Get(ctx context.Context, id ScheduledActionId) ( var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_getbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_getbyscope.go index 5f3e628d15b7..ddf1f0b66f2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_getbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_getbyscope.go @@ -45,7 +45,6 @@ func (c ScheduledActionsClient) GetByScope(ctx context.Context, id ScopedSchedul var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go index 57b3efc62dda..00803631088b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go index 959bc9896b83..a2f826572708 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/method_listbyscope.go @@ -40,6 +40,7 @@ func (o ListByScopeOperationOptions) ToHeaders() *client.Headers { func (o ListByScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/version.go index a8a14260e27a..ff08bd057298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-06-01-preview/scheduledactions/version.go @@ -1,12 +1,10 @@ package scheduledactions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scheduledactions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scheduledactions/2022-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md index 3d04f3fdc89b..4bdbb3b92775 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions` Documentation -The `scheduledactions` SDK allows for interaction with the Azure Resource Manager Service `costmanagement` (API Version `2022-10-01`). +The `scheduledactions` SDK allows for interaction with Azure Resource Manager `costmanagement` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -66,7 +66,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") payload := scheduledactions.ScheduledAction{ // ... @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") payload := scheduledactions.ScheduledAction{ // ... @@ -108,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Delete(ctx, id) if err != nil { @@ -124,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -140,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Get(ctx, id) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.GetByScope(ctx, id) if err != nil { @@ -206,7 +206,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledactions.NewScheduledActionID("scheduledActionValue") +id := scheduledactions.NewScheduledActionID("name") read, err := client.Run(ctx, id) if err != nil { @@ -222,7 +222,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "scheduledActionValue") +id := scheduledactions.NewScopedScheduledActionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.RunByScope(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/client.go index bca0696832fa..2ad38dee43c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/client.go @@ -15,7 +15,7 @@ type ScheduledActionsClient struct { } func NewScheduledActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduledActionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scheduledactions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scheduledactions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScheduledActionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scheduledaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scheduledaction.go index fef59f3f03de..1b3794907e52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scheduledaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scheduledaction.go @@ -38,7 +38,7 @@ func ParseScheduledActionID(input string) (*ScheduledActionId, error) { } id := ScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseScheduledActionIDInsensitively(input string) (*ScheduledActionId, erro } id := ScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id ScheduledActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticScheduledActions", "scheduledActions", "scheduledActions"), - resourceids.UserSpecifiedSegment("scheduledActionName", "scheduledActionValue"), + resourceids.UserSpecifiedSegment("scheduledActionName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scopedscheduledaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scopedscheduledaction.go index 3605a487daf1..09cfb4824acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scopedscheduledaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/id_scopedscheduledaction.go @@ -40,7 +40,7 @@ func ParseScopedScheduledActionID(input string) (*ScopedScheduledActionId, error } id := ScopedScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedScheduledActionIDInsensitively(input string) (*ScopedScheduledAc } id := ScopedScheduledActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedScheduledActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticScheduledActions", "scheduledActions", "scheduledActions"), - resourceids.UserSpecifiedSegment("scheduledActionName", "scheduledActionValue"), + resourceids.UserSpecifiedSegment("scheduledActionName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailability.go index 784263b1c5ec..3e3c05e72bc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailability.go @@ -49,7 +49,6 @@ func (c ScheduledActionsClient) CheckNameAvailability(ctx context.Context, input var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailabilitybyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailabilitybyscope.go index 16761a3d5651..dcc90e23d360 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailabilitybyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_checknameavailabilitybyscope.go @@ -51,7 +51,6 @@ func (c ScheduledActionsClient) CheckNameAvailabilityByScope(ctx context.Context var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go index 7ce81fbece9d..4a9d5d9fc3da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ScheduledActionsClient) CreateOrUpdate(ctx context.Context, id Scheduled var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go index c87a0eb91fc1..89c599107807 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_createorupdatebyscope.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateByScopeOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateByScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ScheduledActionsClient) CreateOrUpdateByScope(ctx context.Context, id Sc var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_get.go index 60d64aba5e7a..7d8f87f99ca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_get.go @@ -45,7 +45,6 @@ func (c ScheduledActionsClient) Get(ctx context.Context, id ScheduledActionId) ( var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_getbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_getbyscope.go index 5f3e628d15b7..ddf1f0b66f2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_getbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_getbyscope.go @@ -45,7 +45,6 @@ func (c ScheduledActionsClient) GetByScope(ctx context.Context, id ScopedSchedul var model ScheduledAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go index 57b3efc62dda..00803631088b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go index 959bc9896b83..a2f826572708 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/method_listbyscope.go @@ -40,6 +40,7 @@ func (o ListByScopeOperationOptions) ToHeaders() *client.Headers { func (o ListByScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/version.go index a5c1a30ebc1c..ff0bf6bd4389 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/scheduledactions/version.go @@ -1,12 +1,10 @@ package scheduledactions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scheduledactions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scheduledactions/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/README.md index a6dfad987e0b..383cc0bc60c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views` Documentation -The `views` SDK allows for interaction with the Azure Resource Manager Service `costmanagement` (API Version `2022-10-01`). +The `views` SDK allows for interaction with Azure Resource Manager `costmanagement` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := views.NewViewID("viewValue") +id := views.NewViewID("viewName") payload := views.View{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewValue") +id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewName") payload := views.View{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := views.NewViewID("viewValue") +id := views.NewViewID("viewName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewValue") +id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewName") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := views.NewViewID("viewValue") +id := views.NewViewID("viewName") read, err := client.Get(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewValue") +id := views.NewScopedViewID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "viewName") read, err := client.GetByScope(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/client.go index 8c009db63198..39dfbeb83c46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/client.go @@ -15,7 +15,7 @@ type ViewsClient struct { } func NewViewsClientWithBaseURI(sdkApi sdkEnv.Api) (*ViewsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "views", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "views", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ViewsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_scopedview.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_scopedview.go index cc727a1e00b6..3f229ef60ab6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_scopedview.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_scopedview.go @@ -40,7 +40,7 @@ func ParseScopedViewID(input string) (*ScopedViewId, error) { } id := ScopedViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedViewIDInsensitively(input string) (*ScopedViewId, error) { } id := ScopedViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedViewId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticViews", "views", "views"), - resourceids.UserSpecifiedSegment("viewName", "viewValue"), + resourceids.UserSpecifiedSegment("viewName", "viewName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_view.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_view.go index a8a4ef6475df..97e6931d8e8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_view.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/id_view.go @@ -38,7 +38,7 @@ func ParseViewID(input string) (*ViewId, error) { } id := ViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseViewIDInsensitively(input string) (*ViewId, error) { } id := ViewId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id ViewId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCostManagement", "Microsoft.CostManagement", "Microsoft.CostManagement"), resourceids.StaticSegment("staticViews", "views", "views"), - resourceids.UserSpecifiedSegment("viewName", "viewValue"), + resourceids.UserSpecifiedSegment("viewName", "viewName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdate.go index ee004eef3128..d4415bbe04f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ViewsClient) CreateOrUpdate(ctx context.Context, id ViewId, input View) var model View result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdatebyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdatebyscope.go index a013f26696bf..0e520ebb6455 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdatebyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_createorupdatebyscope.go @@ -50,7 +50,6 @@ func (c ViewsClient) CreateOrUpdateByScope(ctx context.Context, id ScopedViewId, var model View result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_get.go index c2730eb84166..d8ccf3940ac2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_get.go @@ -45,7 +45,6 @@ func (c ViewsClient) Get(ctx context.Context, id ViewId) (result GetOperationRes var model View result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_getbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_getbyscope.go index 781b520869d0..2322d1b1eff6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_getbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/method_getbyscope.go @@ -45,7 +45,6 @@ func (c ViewsClient) GetByScope(ctx context.Context, id ScopedViewId) (result Ge var model View result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/version.go index b517aab914e4..40d34f474ed5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/costmanagement/2022-10-01/views/version.go @@ -1,12 +1,10 @@ package views -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/views/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/views/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md index 54f03280f73b..b5527137a562 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider` Documentation -The `customresourceprovider` SDK allows for interaction with the Azure Resource Manager Service `customproviders` (API Version `2018-09-01-preview`). +The `customresourceprovider` SDK allows for interaction with Azure Resource Manager `customproviders` (API Version `2018-09-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue") +id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderName") payload := customresourceprovider.CustomRPManifest{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue") +id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue") +id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderValue") +id := customresourceprovider.NewResourceProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceProviderName") payload := customresourceprovider.ResourceProvidersUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/client.go index c7e9f464bc04..92089271dcc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/client.go @@ -15,7 +15,7 @@ type CustomResourceProviderClient struct { } func NewCustomResourceProviderClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomResourceProviderClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "customresourceprovider", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "customresourceprovider", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CustomResourceProviderClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/id_resourceprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/id_resourceprovider.go index c865f6eff201..e6467a5125dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/id_resourceprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/id_resourceprovider.go @@ -42,7 +42,7 @@ func ParseResourceProviderID(input string) (*ResourceProviderId, error) { } id := ResourceProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseResourceProviderIDInsensitively(input string) (*ResourceProviderId, er } id := ResourceProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ResourceProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCustomProviders", "Microsoft.CustomProviders", "Microsoft.CustomProviders"), resourceids.StaticSegment("staticResourceProviders", "resourceProviders", "resourceProviders"), - resourceids.UserSpecifiedSegment("resourceProviderName", "resourceProviderValue"), + resourceids.UserSpecifiedSegment("resourceProviderName", "resourceProviderName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_get.go index f7e63a7ca33b..a6f4ce84edd1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_get.go @@ -45,7 +45,6 @@ func (c CustomResourceProviderClient) Get(ctx context.Context, id ResourceProvid var model CustomRPManifest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_update.go index e871c4633e1e..af2109e9d680 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/method_update.go @@ -49,7 +49,6 @@ func (c CustomResourceProviderClient) Update(ctx context.Context, id ResourcePro var model CustomRPManifest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/version.go index 5c2bb858a342..ba9f501579ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/customproviders/2018-09-01-preview/customresourceprovider/version.go @@ -1,12 +1,10 @@ package customresourceprovider -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/customresourceprovider/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/customresourceprovider/2018-09-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/README.md index a4c1332bed35..2a2f8dd386b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource` Documentation -The `grafanaresource` SDK allows for interaction with the Azure Resource Manager Service `dashboard` (API Version `2023-09-01`). +The `grafanaresource` SDK allows for interaction with Azure Resource Manager `dashboard` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaValue") +id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.GrafanaCheckEnterpriseDetails(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaValue") +id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := grafanaresource.ManagedGrafana{ // ... @@ -58,7 +58,7 @@ if err := client.GrafanaCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaValue") +id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.GrafanaDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.GrafanaDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaValue") +id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.GrafanaGet(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "grafanaValue") +id := grafanaresource.NewGrafanaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := grafanaresource.ManagedGrafanaUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/client.go index 3c739c7c4d30..e4df7c7aa8b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/client.go @@ -15,7 +15,7 @@ type GrafanaResourceClient struct { } func NewGrafanaResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*GrafanaResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "grafanaresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "grafanaresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GrafanaResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/id_grafana.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/id_grafana.go index f557f3500f1e..0efcac4ffc9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/id_grafana.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/id_grafana.go @@ -42,7 +42,7 @@ func ParseGrafanaID(input string) (*GrafanaId, error) { } id := GrafanaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseGrafanaIDInsensitively(input string) (*GrafanaId, error) { } id := GrafanaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id GrafanaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDashboard", "Microsoft.Dashboard", "Microsoft.Dashboard"), resourceids.StaticSegment("staticGrafana", "grafana", "grafana"), - resourceids.UserSpecifiedSegment("grafanaName", "grafanaValue"), + resourceids.UserSpecifiedSegment("grafanaName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanacheckenterprisedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanacheckenterprisedetails.go index e728cb9126cb..2a5fca2d7964 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanacheckenterprisedetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanacheckenterprisedetails.go @@ -46,7 +46,6 @@ func (c GrafanaResourceClient) GrafanaCheckEnterpriseDetails(ctx context.Context var model EnterpriseDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaget.go index c20f300d05ff..f1371abbec46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaget.go @@ -45,7 +45,6 @@ func (c GrafanaResourceClient) GrafanaGet(ctx context.Context, id GrafanaId) (re var model ManagedGrafana result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaupdate.go index cf0f88e0a622..e260315d6a23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/method_grafanaupdate.go @@ -50,7 +50,6 @@ func (c GrafanaResourceClient) GrafanaUpdate(ctx context.Context, id GrafanaId, var model ManagedGrafana result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/version.go index bc9a8bdd9ff8..011a5541572b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dashboard/2023-09-01/grafanaresource/version.go @@ -1,12 +1,10 @@ package grafanaresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/grafanaresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/grafanaresource/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/README.md index b409deb7f28c..2d136191d3eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices` Documentation -The `devices` SDK allows for interaction with the Azure Resource Manager Service `databoxedge` (API Version `2022-03-01`). +The `devices` SDK allows for interaction with Azure Resource Manager `databoxedge` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := devices.DataBoxEdgeDevice{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := devices.SecuritySettings{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateSecuritySettingsThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") if err := client.DownloadUpdatesThenPoll(ctx, id); err != nil { // handle the error @@ -87,7 +87,7 @@ if err := client.DownloadUpdatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.GenerateCertificate(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.Get(ctx, id) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.GetExtendedInformation(ctx, id) if err != nil { @@ -135,7 +135,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.GetNetworkSettings(ctx, id) if err != nil { @@ -151,7 +151,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.GetUpdateSummary(ctx, id) if err != nil { @@ -167,7 +167,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") if err := client.InstallUpdatesThenPoll(ctx, id); err != nil { // handle the error @@ -213,7 +213,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") if err := client.ScanForUpdatesThenPoll(ctx, id); err != nil { // handle the error @@ -225,7 +225,7 @@ if err := client.ScanForUpdatesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := devices.DataBoxEdgeDevicePatch{ // ... @@ -246,7 +246,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := devices.DataBoxEdgeDeviceExtendedInfoPatch{ // ... @@ -267,7 +267,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := devices.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := devices.UploadCertificateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/client.go index 11a6944e9138..5941fcf50ea1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/client.go @@ -15,7 +15,7 @@ type DevicesClient struct { } func NewDevicesClientWithBaseURI(sdkApi sdkEnv.Api) (*DevicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "devices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "devices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DevicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/id_databoxedgedevice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/id_databoxedgedevice.go index c3b5b1e81395..f03c67cea72b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/id_databoxedgedevice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/id_databoxedgedevice.go @@ -42,7 +42,7 @@ func ParseDataBoxEdgeDeviceID(input string) (*DataBoxEdgeDeviceId, error) { } id := DataBoxEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataBoxEdgeDeviceIDInsensitively(input string) (*DataBoxEdgeDeviceId, } id := DataBoxEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataBoxEdgeDeviceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataBoxEdge", "Microsoft.DataBoxEdge", "Microsoft.DataBoxEdge"), resourceids.StaticSegment("staticDataBoxEdgeDevices", "dataBoxEdgeDevices", "dataBoxEdgeDevices"), - resourceids.UserSpecifiedSegment("dataBoxEdgeDeviceName", "dataBoxEdgeDeviceValue"), + resourceids.UserSpecifiedSegment("dataBoxEdgeDeviceName", "deviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_createorupdate.go index 7e28d6de94ae..6b341b171a92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_createorupdate.go @@ -49,7 +49,6 @@ func (c DevicesClient) CreateOrUpdate(ctx context.Context, id DataBoxEdgeDeviceI var model DataBoxEdgeDevice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_generatecertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_generatecertificate.go index 8d09369b4bc8..3d369faba8cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_generatecertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_generatecertificate.go @@ -46,7 +46,6 @@ func (c DevicesClient) GenerateCertificate(ctx context.Context, id DataBoxEdgeDe var model GenerateCertResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_get.go index 1cf1caee5e57..9aeec182f952 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_get.go @@ -45,7 +45,6 @@ func (c DevicesClient) Get(ctx context.Context, id DataBoxEdgeDeviceId) (result var model DataBoxEdgeDevice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getextendedinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getextendedinformation.go index 760275764582..c646f8a405fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getextendedinformation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getextendedinformation.go @@ -46,7 +46,6 @@ func (c DevicesClient) GetExtendedInformation(ctx context.Context, id DataBoxEdg var model DataBoxEdgeDeviceExtendedInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getnetworksettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getnetworksettings.go index c4a5297f5db5..21392f2297a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getnetworksettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getnetworksettings.go @@ -46,7 +46,6 @@ func (c DevicesClient) GetNetworkSettings(ctx context.Context, id DataBoxEdgeDev var model NetworkSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getupdatesummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getupdatesummary.go index 147f004c8ddd..8043341b5681 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getupdatesummary.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_getupdatesummary.go @@ -46,7 +46,6 @@ func (c DevicesClient) GetUpdateSummary(ctx context.Context, id DataBoxEdgeDevic var model UpdateSummary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go index 779f42afcf67..aa5e3470e9c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go index 46ad1d3fceda..5d429f30267a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_update.go index 6020e3a21091..0b87e2f87784 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_update.go @@ -49,7 +49,6 @@ func (c DevicesClient) Update(ctx context.Context, id DataBoxEdgeDeviceId, input var model DataBoxEdgeDevice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_updateextendedinformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_updateextendedinformation.go index b132f78d1ecb..7f81ea957ab8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_updateextendedinformation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_updateextendedinformation.go @@ -50,7 +50,6 @@ func (c DevicesClient) UpdateExtendedInformation(ctx context.Context, id DataBox var model DataBoxEdgeDeviceExtendedInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_uploadcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_uploadcertificate.go index b65c680ad878..73cbfa2d8a7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_uploadcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/method_uploadcertificate.go @@ -50,7 +50,6 @@ func (c DevicesClient) UploadCertificate(ctx context.Context, id DataBoxEdgeDevi var model UploadCertificateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/version.go index a786fbfe57be..f304b74d3e92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/devices/version.go @@ -1,12 +1,10 @@ package devices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/devices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/devices/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/README.md index 12234216ac4e..bc287907c9ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders` Documentation -The `orders` SDK allows for interaction with the Azure Resource Manager Service `databoxedge` (API Version `2022-03-01`). +The `orders` SDK allows for interaction with Azure Resource Manager `databoxedge` (API Version `2022-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") payload := orders.Order{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") // alternatively `client.ListByDataBoxEdgeDevice(ctx, id)` can be used to do batched pagination items, err := client.ListByDataBoxEdgeDeviceComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue") +id := orders.NewDataBoxEdgeDeviceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deviceName") read, err := client.ListDCAccessCode(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/client.go index 5be700510b67..2a1b7c07abf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/client.go @@ -15,7 +15,7 @@ type OrdersClient struct { } func NewOrdersClientWithBaseURI(sdkApi sdkEnv.Api) (*OrdersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "orders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "orders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OrdersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/id_databoxedgedevice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/id_databoxedgedevice.go index f4b04f8fc657..2d5c8c7ddf60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/id_databoxedgedevice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/id_databoxedgedevice.go @@ -42,7 +42,7 @@ func ParseDataBoxEdgeDeviceID(input string) (*DataBoxEdgeDeviceId, error) { } id := DataBoxEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataBoxEdgeDeviceIDInsensitively(input string) (*DataBoxEdgeDeviceId, } id := DataBoxEdgeDeviceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataBoxEdgeDeviceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataBoxEdge", "Microsoft.DataBoxEdge", "Microsoft.DataBoxEdge"), resourceids.StaticSegment("staticDataBoxEdgeDevices", "dataBoxEdgeDevices", "dataBoxEdgeDevices"), - resourceids.UserSpecifiedSegment("dataBoxEdgeDeviceName", "dataBoxEdgeDeviceValue"), + resourceids.UserSpecifiedSegment("dataBoxEdgeDeviceName", "deviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_get.go index 3d5bd988a8ae..456aefeeebc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_get.go @@ -46,7 +46,6 @@ func (c OrdersClient) Get(ctx context.Context, id DataBoxEdgeDeviceId) (result G var model Order result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_listdcaccesscode.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_listdcaccesscode.go index ba62ef019ca4..76b105c72b91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_listdcaccesscode.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/method_listdcaccesscode.go @@ -46,7 +46,6 @@ func (c OrdersClient) ListDCAccessCode(ctx context.Context, id DataBoxEdgeDevice var model DCAccessCode result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/version.go index aee0b512f959..d922d884ff03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2022-03-01/orders/version.go @@ -1,12 +1,10 @@ package orders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/orders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/orders/2022-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/README.md index 254a91dd535e..388021be84b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `databricks` (API Version `2022-04-01-preview`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `databricks` (API Version `2022-04-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspaceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/id_workspace.go index 815bf37d843d..acd354f62e2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatabricks", "Microsoft.Databricks", "Microsoft.Databricks"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/version.go index 51a37b51aa6b..464229d5b235 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-04-01-preview/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2022-04-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md index 29a35b84b6e4..26d483198690 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector` Documentation -The `accessconnector` SDK allows for interaction with the Azure Resource Manager Service `databricks` (API Version `2022-10-01-preview`). +The `accessconnector` SDK allows for interaction with Azure Resource Manager `databricks` (API Version `2022-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue") +id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectorName") payload := accessconnector.AccessConnector{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue") +id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue") +id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectorName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accessConnectorValue") +id := accessconnector.NewAccessConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectorName") payload := accessconnector.AccessConnectorUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/client.go index 934dd952c303..815c524909db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/client.go @@ -15,7 +15,7 @@ type AccessConnectorClient struct { } func NewAccessConnectorClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessConnectorClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "accessconnector", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "accessconnector", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccessConnectorClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/id_accessconnector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/id_accessconnector.go index 7945a8c422b9..d8c8ccda2e6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/id_accessconnector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/id_accessconnector.go @@ -42,7 +42,7 @@ func ParseAccessConnectorID(input string) (*AccessConnectorId, error) { } id := AccessConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccessConnectorIDInsensitively(input string) (*AccessConnectorId, erro } id := AccessConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccessConnectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatabricks", "Microsoft.Databricks", "Microsoft.Databricks"), resourceids.StaticSegment("staticAccessConnectors", "accessConnectors", "accessConnectors"), - resourceids.UserSpecifiedSegment("accessConnectorName", "accessConnectorValue"), + resourceids.UserSpecifiedSegment("accessConnectorName", "connectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/method_get.go index b35134f9e295..2337dc50e6ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/method_get.go @@ -45,7 +45,6 @@ func (c AccessConnectorClient) Get(ctx context.Context, id AccessConnectorId) (r var model AccessConnector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/version.go index 9591cefee34f..16cc91c4dc42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2022-10-01-preview/accessconnector/version.go @@ -1,12 +1,10 @@ package accessconnector -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/accessconnector/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/accessconnector/2022-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/README.md index 65527a7b9902..0946aa34c2ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering` Documentation -The `vnetpeering` SDK allows for interaction with the Azure Resource Manager Service `databricks` (API Version `2024-05-01`). +The `vnetpeering` SDK allows for interaction with Azure Resource Manager `databricks` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "virtualNetworkPeeringValue") +id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "peeringName") payload := vnetpeering.VirtualNetworkPeering{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "virtualNetworkPeeringValue") +id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "peeringName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "virtualNetworkPeeringValue") +id := vnetpeering.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "peeringName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vnetpeering.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := vnetpeering.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ListByWorkspace(ctx, id)` can be used to do batched pagination items, err := client.ListByWorkspaceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/client.go index 32828af1493b..5b85b9745b06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/client.go @@ -15,7 +15,7 @@ type VNetPeeringClient struct { } func NewVNetPeeringClientWithBaseURI(sdkApi sdkEnv.Api) (*VNetPeeringClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vnetpeering", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vnetpeering", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VNetPeeringClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_virtualnetworkpeering.go index c69b815cd851..cb5bd158c468 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_virtualnetworkpeering.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_virtualnetworkpeering.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkPeeringID(input string) (*VirtualNetworkPeeringId, error } id := VirtualNetworkPeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkPeeringIDInsensitively(input string) (*VirtualNetworkPee } id := VirtualNetworkPeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkPeeringId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatabricks", "Microsoft.Databricks", "Microsoft.Databricks"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticVirtualNetworkPeerings", "virtualNetworkPeerings", "virtualNetworkPeerings"), - resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "virtualNetworkPeeringValue"), + resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "peeringName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_workspace.go index 763c748e5e4e..1b50a048f4fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatabricks", "Microsoft.Databricks", "Microsoft.Databricks"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/method_get.go index 7a39c3f6b64d..af52e4b4637d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/method_get.go @@ -46,7 +46,6 @@ func (c VNetPeeringClient) Get(ctx context.Context, id VirtualNetworkPeeringId) var model VirtualNetworkPeering result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/version.go index 9dfae6e7ab09..9f2b6c170a0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/vnetpeering/version.go @@ -1,12 +1,10 @@ package vnetpeering -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vnetpeering/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vnetpeering/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/README.md index edfa240488e7..500ffe3bf714 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `databricks` (API Version `2024-05-01`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `databricks` (API Version `2024-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspaceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/id_workspace.go index 815bf37d843d..acd354f62e2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatabricks", "Microsoft.Databricks", "Microsoft.Databricks"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_delete.go index 35366130e755..a5714b205752 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/version.go index 743af8d4e07a..f974340b5a24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/databricks/2024-05-01/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2024-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/README.md index 90529f8a2023..51a9b76a9a8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements` Documentation -The `agreements` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `agreements` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/client.go index 970174ce3068..8093cc0b5c0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/client.go @@ -15,7 +15,7 @@ type AgreementsClient struct { } func NewAgreementsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgreementsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agreements", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agreements", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgreementsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementscreateorupdate.go index afd0beed1c84..6deef30408da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/method_marketplaceagreementscreateorupdate.go @@ -51,7 +51,6 @@ func (c AgreementsClient) MarketplaceAgreementsCreateOrUpdate(ctx context.Contex var model DatadogAgreementResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/version.go index 5fa9fe63de10..d7296ba38c3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/agreements/version.go @@ -1,12 +1,10 @@ package agreements -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agreements/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agreements/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/README.md index ff9ff00d393a..40cf0514bf37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey` Documentation -The `apikey` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `apikey` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.MonitorsGetDefaultKey(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.MonitorsListApiKeys(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListApiKeysComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := apikey.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := apikey.DatadogApiKey{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/client.go index ed977c4ea4e8..94ca415d9d60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/client.go @@ -15,7 +15,7 @@ type ApiKeyClient struct { } func NewApiKeyClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiKeyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apikey", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apikey", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApiKeyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/id_monitor.go index 6683067dcfcc..765e0fab63c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorsgetdefaultkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorsgetdefaultkey.go index 2fba36a9c41a..d17df22f1b4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorsgetdefaultkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/method_monitorsgetdefaultkey.go @@ -46,7 +46,6 @@ func (c ApiKeyClient) MonitorsGetDefaultKey(ctx context.Context, id MonitorId) ( var model DatadogApiKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/version.go index 0cd56849d756..2d0aa321a8ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/apikey/version.go @@ -1,12 +1,10 @@ package apikey -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apikey/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apikey/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/README.md index ed3fbc5189cb..c6639d04d1aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts` Documentation -The `hosts` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `hosts` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hosts.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := hosts.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.MonitorsListHosts(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListHostsComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/client.go index 47294adfe7f8..b8da7c2f8fd1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/client.go @@ -15,7 +15,7 @@ type HostsClient struct { } func NewHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*HostsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hosts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hosts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HostsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/id_monitor.go index 58ec80517947..710e26024b58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/version.go index 25bf521dbae4..a011e402098c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/hosts/version.go @@ -1,12 +1,10 @@ package hosts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hosts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hosts/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/README.md index e8bbd35345e0..423264ea622d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources` Documentation -The `linkedresources` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `linkedresources` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := linkedresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := linkedresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.MonitorsListLinkedResources(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListLinkedResourcesComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/client.go index b796d625158c..3def6afad30c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/client.go @@ -15,7 +15,7 @@ type LinkedResourcesClient struct { } func NewLinkedResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*LinkedResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "linkedresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "linkedresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LinkedResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/id_monitor.go index a49eaa651a72..75fe445b83c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/version.go index 0c8113d2b5be..c243fa4b15c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/linkedresources/version.go @@ -1,12 +1,10 @@ package linkedresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/linkedresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/linkedresources/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/README.md index 9efc2cdc6c4f..18185b05d56e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources` Documentation -The `monitoredresources` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `monitoredresources` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := monitoredresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitoredresources.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.MonitorsListMonitoredResources(ctx, id)` can be used to do batched pagination items, err := client.MonitorsListMonitoredResourcesComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/client.go index 68ce9836cd7b..8548ed2734dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/client.go @@ -15,7 +15,7 @@ type MonitoredResourcesClient struct { } func NewMonitoredResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitoredResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "monitoredresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "monitoredresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MonitoredResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/id_monitor.go index f3b55f0261f5..01fa1ed375b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/version.go index b631fbd65d51..3f9bba8e1c59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitoredresources/version.go @@ -1,12 +1,10 @@ package monitoredresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/monitoredresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/monitoredresources/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/README.md index 72f406547f01..27ee01f78fa7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource` Documentation -The `monitorsresource` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `monitorsresource` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitorsresource.DatadogMonitorResource{ // ... @@ -42,7 +42,7 @@ if err := client.MonitorsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") if err := client.MonitorsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.MonitorsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.MonitorsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitorsresource.DatadogMonitorResourceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/client.go index be6f7acb94b4..5e8ae38cadab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/client.go @@ -15,7 +15,7 @@ type MonitorsResourceClient struct { } func NewMonitorsResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "monitorsresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "monitorsresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MonitorsResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/id_monitor.go index c701aa84c418..ce00a854e6bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorsget.go index ce85abc6caca..221cbce61320 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/method_monitorsget.go @@ -45,7 +45,6 @@ func (c MonitorsResourceClient) MonitorsGet(ctx context.Context, id MonitorId) ( var model DatadogMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/version.go index 71b9e8ba5422..851801c6a76c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/monitorsresource/version.go @@ -1,12 +1,10 @@ package monitorsresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/monitorsresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/monitorsresource/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/README.md index 9fa7c636182d..8d1ed4e938a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink` Documentation -The `refreshsetpasswordlink` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `refreshsetpasswordlink` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := refreshsetpasswordlink.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := refreshsetpasswordlink.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.MonitorsRefreshSetPasswordLink(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/client.go index 89c88e0c4d7b..c765560ae223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/client.go @@ -15,7 +15,7 @@ type RefreshSetPasswordLinkClient struct { } func NewRefreshSetPasswordLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*RefreshSetPasswordLinkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "refreshsetpasswordlink", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "refreshsetpasswordlink", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RefreshSetPasswordLinkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/id_monitor.go index 30dab0406388..ab47aec2a9a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/method_monitorsrefreshsetpasswordlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/method_monitorsrefreshsetpasswordlink.go index e7e555f34816..bc543edfd956 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/method_monitorsrefreshsetpasswordlink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/method_monitorsrefreshsetpasswordlink.go @@ -46,7 +46,6 @@ func (c RefreshSetPasswordLinkClient) MonitorsRefreshSetPasswordLink(ctx context var model DatadogSetPasswordLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/version.go index 98842ce0c5e7..a8107dafb5c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/refreshsetpasswordlink/version.go @@ -1,12 +1,10 @@ package refreshsetpasswordlink -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/refreshsetpasswordlink/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/refreshsetpasswordlink/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/README.md index 8cddfe9f70ea..c38a7e411ea3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules` Documentation -The `rules` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `rules` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") payload := rules.MonitoringTagRules{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") read, err := client.TagRulesGet(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := rules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.TagRulesList(ctx, id)` can be used to do batched pagination items, err := client.TagRulesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/client.go index d145cf8c38ad..ee5a5154cef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/client.go @@ -15,7 +15,7 @@ type RulesClient struct { } func NewRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "rules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "rules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_monitor.go index 48be788a5ec1..644db5507c32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_tagrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_tagrule.go index 04f72287de1c..b4eae6727c3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_tagrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/id_tagrule.go @@ -44,7 +44,7 @@ func ParseTagRuleID(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTagRuleIDInsensitively(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TagRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), resourceids.StaticSegment("staticTagRules", "tagRules", "tagRules"), - resourceids.UserSpecifiedSegment("tagRuleName", "tagRuleValue"), + resourceids.UserSpecifiedSegment("tagRuleName", "ruleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulescreateorupdate.go index fcb1b93a265c..5ddded602cea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulescreateorupdate.go @@ -49,7 +49,6 @@ func (c RulesClient) TagRulesCreateOrUpdate(ctx context.Context, id TagRuleId, i var model MonitoringTagRules result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulesget.go index 680b675fa8bd..86d73a88c565 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/method_tagrulesget.go @@ -45,7 +45,6 @@ func (c RulesClient) TagRulesGet(ctx context.Context, id TagRuleId) (result TagR var model MonitoringTagRules result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/version.go index 9cc99e8fb4d2..e10a568030ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/rules/version.go @@ -1,12 +1,10 @@ package rules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/rules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/rules/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/README.md index 25a97346eaaf..b6887a3a7122 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon` Documentation -The `singlesignon` SDK allows for interaction with the Azure Resource Manager Service `datadog` (API Version `2021-03-01`). +The `singlesignon` SDK allows for interaction with Azure Resource Manager `datadog` (API Version `2021-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "singleSignOnConfigurationValue") +id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "configurationName") payload := singlesignon.DatadogSingleSignOnResource{ // ... @@ -41,7 +41,7 @@ if err := client.ConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "singleSignOnConfigurationValue") +id := singlesignon.NewSingleSignOnConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "configurationName") read, err := client.ConfigurationsGet(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := singlesignon.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := singlesignon.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationsListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/client.go index 8ea820a6e37c..7e1246669900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/client.go @@ -15,7 +15,7 @@ type SingleSignOnClient struct { } func NewSingleSignOnClientWithBaseURI(sdkApi sdkEnv.Api) (*SingleSignOnClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "singlesignon", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "singlesignon", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SingleSignOnClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_monitor.go index 3aa6da451ea5..f45a315b1b7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_singlesignonconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_singlesignonconfiguration.go index 7682e6135d2f..05f9761401c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_singlesignonconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/id_singlesignonconfiguration.go @@ -44,7 +44,7 @@ func ParseSingleSignOnConfigurationID(input string) (*SingleSignOnConfigurationI } id := SingleSignOnConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSingleSignOnConfigurationIDInsensitively(input string) (*SingleSignOnC } id := SingleSignOnConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SingleSignOnConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDatadog", "Microsoft.Datadog", "Microsoft.Datadog"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), resourceids.StaticSegment("staticSingleSignOnConfigurations", "singleSignOnConfigurations", "singleSignOnConfigurations"), - resourceids.UserSpecifiedSegment("singleSignOnConfigurationName", "singleSignOnConfigurationValue"), + resourceids.UserSpecifiedSegment("singleSignOnConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/method_configurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/method_configurationsget.go index 60e9df02c419..73ab9b27853d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/method_configurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/method_configurationsget.go @@ -45,7 +45,6 @@ func (c SingleSignOnClient) ConfigurationsGet(ctx context.Context, id SingleSign var model DatadogSingleSignOnResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/version.go index 00596ebe6838..9fc4e65d7b54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datadog/2021-03-01/singlesignon/version.go @@ -1,12 +1,10 @@ package singlesignon -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/singlesignon/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/singlesignon/2021-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/README.md index ecfef7836ec9..7af507dfbdf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials` Documentation -The `credentials` SDK allows for interaction with the Azure Resource Manager Service `datafactory` (API Version `2018-06-01`). +The `credentials` SDK allows for interaction with Azure Resource Manager `datafactory` (API Version `2018-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue") +id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "credentialName") payload := credentials.CredentialResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue") +id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "credentialName") read, err := client.CredentialOperationsDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "credentialValue") +id := credentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "credentialName") read, err := client.CredentialOperationsGet(ctx, id, credentials.DefaultCredentialOperationsGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := credentials.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := credentials.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") // alternatively `client.CredentialOperationsListByFactory(ctx, id)` can be used to do batched pagination items, err := client.CredentialOperationsListByFactoryComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/client.go index 47d62cef53e3..667909fa19e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/client.go @@ -15,7 +15,7 @@ type CredentialsClient struct { } func NewCredentialsClientWithBaseURI(sdkApi sdkEnv.Api) (*CredentialsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "credentials", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "credentials", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CredentialsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_credential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_credential.go index 6721ab9a5b14..d4204fb76f26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_credential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_credential.go @@ -44,7 +44,7 @@ func ParseCredentialID(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCredentialIDInsensitively(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CredentialId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), resourceids.StaticSegment("staticCredentials", "credentials", "credentials"), - resourceids.UserSpecifiedSegment("credentialName", "credentialValue"), + resourceids.UserSpecifiedSegment("credentialName", "credentialName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_factory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_factory.go index 1e003a168f3e..35815ad95f1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_factory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/id_factory.go @@ -42,7 +42,7 @@ func ParseFactoryID(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFactoryIDInsensitively(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FactoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go index eb08f80543f1..faea07cb9e3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationscreateorupdate.go @@ -36,6 +36,7 @@ func (o CredentialOperationsCreateOrUpdateOperationOptions) ToHeaders() *client. func (o CredentialOperationsCreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c CredentialsClient) CredentialOperationsCreateOrUpdate(ctx context.Contex var model CredentialResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go index f61d46ae2ad2..d7b235bc97e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/method_credentialoperationsget.go @@ -36,6 +36,7 @@ func (o CredentialOperationsGetOperationOptions) ToHeaders() *client.Headers { func (o CredentialOperationsGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CredentialsClient) CredentialOperationsGet(ctx context.Context, id Crede var model CredentialResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_azurekeyvaultsecretreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_azurekeyvaultsecretreference.go index 2dfc40f747f6..9ab8ef96dfbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_azurekeyvaultsecretreference.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_azurekeyvaultsecretreference.go @@ -16,6 +16,14 @@ type AzureKeyVaultSecretReference struct { Store LinkedServiceReference `json:"store"` // Fields inherited from SecretBase + + Type string `json:"type"` +} + +func (s AzureKeyVaultSecretReference) SecretBase() BaseSecretBaseImpl { + return BaseSecretBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureKeyVaultSecretReference{} @@ -29,9 +37,10 @@ func (s AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureKeyVaultSecretReference: %+v", err) } + decoded["type"] = "AzureKeyVaultSecret" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credential.go index 7090ed3de239..f70e5b754343 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credential.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Credential interface { + Credential() BaseCredentialImpl } -// RawCredentialImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Credential = BaseCredentialImpl{} + +type BaseCredentialImpl struct { + Annotations *[]interface{} `json:"annotations,omitempty"` + Description *string `json:"description,omitempty"` + Type string `json:"type"` +} + +func (s BaseCredentialImpl) Credential() BaseCredentialImpl { + return s +} + +var _ Credential = RawCredentialImpl{} + +// RawCredentialImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawCredentialImpl struct { - Type string - Values map[string]interface{} + credential BaseCredentialImpl + Type string + Values map[string]interface{} +} + +func (s RawCredentialImpl) Credential() BaseCredentialImpl { + return s.credential } -func unmarshalCredentialImplementation(input []byte) (Credential, error) { +func UnmarshalCredentialImplementation(input []byte) (Credential, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalCredentialImplementation(input []byte) (Credential, error) { return nil, fmt.Errorf("unmarshaling Credential into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ManagedIdentity") { @@ -52,10 +71,15 @@ func unmarshalCredentialImplementation(input []byte) (Credential, error) { return out, nil } - out := RawCredentialImpl{ - Type: value, - Values: temp, + var parent BaseCredentialImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseCredentialImpl: %+v", err) } - return out, nil + + return RawCredentialImpl{ + credential: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credentialresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credentialresource.go index 84cb469911db..4b8c29af88f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credentialresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_credentialresource.go @@ -19,10 +19,14 @@ type CredentialResource struct { var _ json.Unmarshaler = &CredentialResource{} func (s *CredentialResource) UnmarshalJSON(bytes []byte) error { - type alias CredentialResource - var decoded alias + var decoded struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CredentialResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Etag = decoded.Etag @@ -36,11 +40,12 @@ func (s *CredentialResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalCredentialImplementation(v) + impl, err := UnmarshalCredentialImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'CredentialResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_managedidentitycredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_managedidentitycredential.go index e17dc212836f..0688708fd2b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_managedidentitycredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_managedidentitycredential.go @@ -14,8 +14,18 @@ type ManagedIdentityCredential struct { TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` // Fields inherited from Credential + Annotations *[]interface{} `json:"annotations,omitempty"` Description *string `json:"description,omitempty"` + Type string `json:"type"` +} + +func (s ManagedIdentityCredential) Credential() BaseCredentialImpl { + return BaseCredentialImpl{ + Annotations: s.Annotations, + Description: s.Description, + Type: s.Type, + } } var _ json.Marshaler = ManagedIdentityCredential{} @@ -29,9 +39,10 @@ func (s ManagedIdentityCredential) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ManagedIdentityCredential: %+v", err) } + decoded["type"] = "ManagedIdentity" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go index 1ddf8a889f5f..4b6a082dcb37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_secretbase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SecretBase interface { + SecretBase() BaseSecretBaseImpl } -// RawSecretBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SecretBase = BaseSecretBaseImpl{} + +type BaseSecretBaseImpl struct { + Type string `json:"type"` +} + +func (s BaseSecretBaseImpl) SecretBase() BaseSecretBaseImpl { + return s +} + +var _ SecretBase = RawSecretBaseImpl{} + +// RawSecretBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSecretBaseImpl struct { - Type string - Values map[string]interface{} + secretBase BaseSecretBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawSecretBaseImpl) SecretBase() BaseSecretBaseImpl { + return s.secretBase } -func unmarshalSecretBaseImplementation(input []byte) (SecretBase, error) { +func UnmarshalSecretBaseImplementation(input []byte) (SecretBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSecretBaseImplementation(input []byte) (SecretBase, error) { return nil, fmt.Errorf("unmarshaling SecretBase into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureKeyVaultSecret") { @@ -44,10 +61,15 @@ func unmarshalSecretBaseImplementation(input []byte) (SecretBase, error) { return out, nil } - out := RawSecretBaseImpl{ - Type: value, - Values: temp, + var parent BaseSecretBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSecretBaseImpl: %+v", err) } - return out, nil + + return RawSecretBaseImpl{ + secretBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_serviceprincipalcredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_serviceprincipalcredential.go index 4cd767d3bd31..53d13341529e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_serviceprincipalcredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/model_serviceprincipalcredential.go @@ -14,8 +14,18 @@ type ServicePrincipalCredential struct { TypeProperties ServicePrincipalCredentialTypeProperties `json:"typeProperties"` // Fields inherited from Credential + Annotations *[]interface{} `json:"annotations,omitempty"` Description *string `json:"description,omitempty"` + Type string `json:"type"` +} + +func (s ServicePrincipalCredential) Credential() BaseCredentialImpl { + return BaseCredentialImpl{ + Annotations: s.Annotations, + Description: s.Description, + Type: s.Type, + } } var _ json.Marshaler = ServicePrincipalCredential{} @@ -29,9 +39,10 @@ func (s ServicePrincipalCredential) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalCredential: %+v", err) } + decoded["type"] = "ServicePrincipal" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/version.go index c75056fd9a4b..ab0167cdbb9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/credentials/version.go @@ -1,12 +1,10 @@ package credentials -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/credentials/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/credentials/2018-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/README.md index a6dd1fc8bb3e..3dbcd845a91a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories` Documentation -The `factories` SDK allows for interaction with the Azure Resource Manager Service `datafactory` (API Version `2018-06-01`). +The `factories` SDK allows for interaction with Azure Resource Manager `datafactory` (API Version `2018-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := factories.NewLocationID("12345678-1234-9876-4563-123456789012", "locationIdValue") +id := factories.NewLocationID("12345678-1234-9876-4563-123456789012", "locationId") payload := factories.FactoryRepoUpdate{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") payload := factories.Factory{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") read, err := client.Get(ctx, id, factories.DefaultGetOperationOptions()) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") payload := factories.UserAccessPolicy{ // ... @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") payload := factories.GitHubAccessTokenRequest{ // ... @@ -175,7 +175,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := factories.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") payload := factories.FactoryUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/client.go index da22ad6192c5..af5c79cf4b69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/client.go @@ -15,7 +15,7 @@ type FactoriesClient struct { } func NewFactoriesClientWithBaseURI(sdkApi sdkEnv.Api) (*FactoriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "factories", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "factories", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FactoriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_factory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_factory.go index 91473b750f1c..5e77c6cb80ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_factory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_factory.go @@ -42,7 +42,7 @@ func ParseFactoryID(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFactoryIDInsensitively(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FactoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_location.go index c7b76f23c318..7f082ba13e67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationId", "locationIdValue"), + resourceids.UserSpecifiedSegment("locationId", "locationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_configurefactoryrepo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_configurefactoryrepo.go index 6480203dc898..e9ad7b26e2fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_configurefactoryrepo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_configurefactoryrepo.go @@ -50,7 +50,6 @@ func (c FactoriesClient) ConfigureFactoryRepo(ctx context.Context, id LocationId var model Factory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go index d572f7c9f818..ca66c3ca44b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c FactoriesClient) CreateOrUpdate(ctx context.Context, id FactoryId, input var model Factory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_get.go index 5ef5d19abce0..8066b20859eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c FactoriesClient) Get(ctx context.Context, id FactoryId, options GetOpera var model Factory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getdataplaneaccess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getdataplaneaccess.go index 1be448f2ae3c..ba33880e016b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getdataplaneaccess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getdataplaneaccess.go @@ -50,7 +50,6 @@ func (c FactoriesClient) GetDataPlaneAccess(ctx context.Context, id FactoryId, i var model AccessPolicyResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getgithubaccesstoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getgithubaccesstoken.go index e5b9ddf3fc8e..2c91cbf2a667 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getgithubaccesstoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_getgithubaccesstoken.go @@ -50,7 +50,6 @@ func (c FactoriesClient) GetGitHubAccessToken(ctx context.Context, id FactoryId, var model GitHubAccessTokenResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_update.go index a9f0e1897623..b0fc178d30eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/method_update.go @@ -49,7 +49,6 @@ func (c FactoriesClient) Update(ctx context.Context, id FactoryId, input Factory var model Factory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factorygithubconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factorygithubconfiguration.go index 804f48ec09f3..840475e30a81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factorygithubconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factorygithubconfiguration.go @@ -16,12 +16,26 @@ type FactoryGitHubConfiguration struct { HostName *string `json:"hostName,omitempty"` // Fields inherited from FactoryRepoConfiguration + AccountName string `json:"accountName"` CollaborationBranch string `json:"collaborationBranch"` DisablePublish *bool `json:"disablePublish,omitempty"` LastCommitId *string `json:"lastCommitId,omitempty"` RepositoryName string `json:"repositoryName"` RootFolder string `json:"rootFolder"` + Type string `json:"type"` +} + +func (s FactoryGitHubConfiguration) FactoryRepoConfiguration() BaseFactoryRepoConfigurationImpl { + return BaseFactoryRepoConfigurationImpl{ + AccountName: s.AccountName, + CollaborationBranch: s.CollaborationBranch, + DisablePublish: s.DisablePublish, + LastCommitId: s.LastCommitId, + RepositoryName: s.RepositoryName, + RootFolder: s.RootFolder, + Type: s.Type, + } } var _ json.Marshaler = FactoryGitHubConfiguration{} @@ -35,9 +49,10 @@ func (s FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FactoryGitHubConfiguration: %+v", err) } + decoded["type"] = "FactoryGitHubConfiguration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryproperties.go index 853ab92d91c6..a0a950eb81d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryproperties.go @@ -37,10 +37,17 @@ func (o *FactoryProperties) SetCreateTimeAsTime(input time.Time) { var _ json.Unmarshaler = &FactoryProperties{} func (s *FactoryProperties) UnmarshalJSON(bytes []byte) error { - type alias FactoryProperties - var decoded alias + var decoded struct { + CreateTime *string `json:"createTime,omitempty"` + Encryption *EncryptionConfiguration `json:"encryption,omitempty"` + GlobalParameters *map[string]GlobalParameterSpecification `json:"globalParameters,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + PurviewConfiguration *PurviewConfiguration `json:"purviewConfiguration,omitempty"` + Version *string `json:"version,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FactoryProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.CreateTime = decoded.CreateTime @@ -57,11 +64,12 @@ func (s *FactoryProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["repoConfiguration"]; ok { - impl, err := unmarshalFactoryRepoConfigurationImplementation(v) + impl, err := UnmarshalFactoryRepoConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RepoConfiguration' for 'FactoryProperties': %+v", err) } s.RepoConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoconfiguration.go index 37176cae8665..ad115a153cf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoconfiguration.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FactoryRepoConfiguration interface { + FactoryRepoConfiguration() BaseFactoryRepoConfigurationImpl } -// RawFactoryRepoConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FactoryRepoConfiguration = BaseFactoryRepoConfigurationImpl{} + +type BaseFactoryRepoConfigurationImpl struct { + AccountName string `json:"accountName"` + CollaborationBranch string `json:"collaborationBranch"` + DisablePublish *bool `json:"disablePublish,omitempty"` + LastCommitId *string `json:"lastCommitId,omitempty"` + RepositoryName string `json:"repositoryName"` + RootFolder string `json:"rootFolder"` + Type string `json:"type"` +} + +func (s BaseFactoryRepoConfigurationImpl) FactoryRepoConfiguration() BaseFactoryRepoConfigurationImpl { + return s +} + +var _ FactoryRepoConfiguration = RawFactoryRepoConfigurationImpl{} + +// RawFactoryRepoConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFactoryRepoConfigurationImpl struct { - Type string - Values map[string]interface{} + factoryRepoConfiguration BaseFactoryRepoConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawFactoryRepoConfigurationImpl) FactoryRepoConfiguration() BaseFactoryRepoConfigurationImpl { + return s.factoryRepoConfiguration } -func unmarshalFactoryRepoConfigurationImplementation(input []byte) (FactoryRepoConfiguration, error) { +func UnmarshalFactoryRepoConfigurationImplementation(input []byte) (FactoryRepoConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalFactoryRepoConfigurationImplementation(input []byte) (FactoryRepoC return nil, fmt.Errorf("unmarshaling FactoryRepoConfiguration into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FactoryGitHubConfiguration") { @@ -52,10 +75,15 @@ func unmarshalFactoryRepoConfigurationImplementation(input []byte) (FactoryRepoC return out, nil } - out := RawFactoryRepoConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseFactoryRepoConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFactoryRepoConfigurationImpl: %+v", err) } - return out, nil + + return RawFactoryRepoConfigurationImpl{ + factoryRepoConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoupdate.go index 29a449011d1b..c20774083b74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryrepoupdate.go @@ -16,10 +16,11 @@ type FactoryRepoUpdate struct { var _ json.Unmarshaler = &FactoryRepoUpdate{} func (s *FactoryRepoUpdate) UnmarshalJSON(bytes []byte) error { - type alias FactoryRepoUpdate - var decoded alias + var decoded struct { + FactoryResourceId *string `json:"factoryResourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FactoryRepoUpdate: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FactoryResourceId = decoded.FactoryResourceId @@ -30,11 +31,12 @@ func (s *FactoryRepoUpdate) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["repoConfiguration"]; ok { - impl, err := unmarshalFactoryRepoConfigurationImplementation(v) + impl, err := UnmarshalFactoryRepoConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RepoConfiguration' for 'FactoryRepoUpdate': %+v", err) } s.RepoConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryvstsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryvstsconfiguration.go index bedcfa1237f6..d94a3c771bfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryvstsconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/model_factoryvstsconfiguration.go @@ -15,12 +15,26 @@ type FactoryVSTSConfiguration struct { TenantId *string `json:"tenantId,omitempty"` // Fields inherited from FactoryRepoConfiguration + AccountName string `json:"accountName"` CollaborationBranch string `json:"collaborationBranch"` DisablePublish *bool `json:"disablePublish,omitempty"` LastCommitId *string `json:"lastCommitId,omitempty"` RepositoryName string `json:"repositoryName"` RootFolder string `json:"rootFolder"` + Type string `json:"type"` +} + +func (s FactoryVSTSConfiguration) FactoryRepoConfiguration() BaseFactoryRepoConfigurationImpl { + return BaseFactoryRepoConfigurationImpl{ + AccountName: s.AccountName, + CollaborationBranch: s.CollaborationBranch, + DisablePublish: s.DisablePublish, + LastCommitId: s.LastCommitId, + RepositoryName: s.RepositoryName, + RootFolder: s.RootFolder, + Type: s.Type, + } } var _ json.Marshaler = FactoryVSTSConfiguration{} @@ -34,9 +48,10 @@ func (s FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FactoryVSTSConfiguration: %+v", err) } + decoded["type"] = "FactoryVSTSConfiguration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/version.go index 17590682c70c..f856e96c3b98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/factories/version.go @@ -1,12 +1,10 @@ package factories -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/factories/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/factories/2018-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/README.md index e43c0443bc12..7065137fd47a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints` Documentation -The `managedprivateendpoints` SDK allows for interaction with the Azure Resource Manager Service `datafactory` (API Version `2018-06-01`). +The `managedprivateendpoints` SDK allows for interaction with Azure Resource Manager `datafactory` (API Version `2018-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName", "managedPrivateEndpointName") payload := managedprivateendpoints.ManagedPrivateEndpointResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName", "managedPrivateEndpointName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName", "managedPrivateEndpointName") read, err := client.Get(ctx, id, managedprivateendpoints.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue") +id := managedprivateendpoints.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName") // alternatively `client.ListByFactory(ctx, id)` can be used to do batched pagination items, err := client.ListByFactoryComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/client.go index c0a043e05258..e02237558e49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/client.go @@ -15,7 +15,7 @@ type ManagedPrivateEndpointsClient struct { } func NewManagedPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedPrivateEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedprivateendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedprivateendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedPrivateEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedprivateendpoint.go index b1c17e5fc37e..db0a027f83ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedprivateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedprivateendpoint.go @@ -46,7 +46,7 @@ func ParseManagedPrivateEndpointID(input string) (*ManagedPrivateEndpointId, err } id := ManagedPrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseManagedPrivateEndpointIDInsensitively(input string) (*ManagedPrivateEn } id := ManagedPrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ManagedPrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), resourceids.StaticSegment("staticManagedVirtualNetworks", "managedVirtualNetworks", "managedVirtualNetworks"), - resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkValue"), + resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkName"), resourceids.StaticSegment("staticManagedPrivateEndpoints", "managedPrivateEndpoints", "managedPrivateEndpoints"), - resourceids.UserSpecifiedSegment("managedPrivateEndpointName", "managedPrivateEndpointValue"), + resourceids.UserSpecifiedSegment("managedPrivateEndpointName", "managedPrivateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedvirtualnetwork.go index 8b5c47f390bb..8f1f8afc2d3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/id_managedvirtualnetwork.go @@ -44,7 +44,7 @@ func ParseManagedVirtualNetworkID(input string) (*ManagedVirtualNetworkId, error } id := ManagedVirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedVirtualNetworkIDInsensitively(input string) (*ManagedVirtualNet } id := ManagedVirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedVirtualNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), resourceids.StaticSegment("staticManagedVirtualNetworks", "managedVirtualNetworks", "managedVirtualNetworks"), - resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkValue"), + resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go index eba183e8415c..dafef1f7280f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id Ma var model ManagedPrivateEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go index ebca28c71f28..11ea55eae569 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ManagedPrivateEndpointsClient) Get(ctx context.Context, id ManagedPrivat var model ManagedPrivateEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/version.go index a30ee2d7b487..feaf3fab5024 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedprivateendpoints/version.go @@ -1,12 +1,10 @@ package managedprivateendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedprivateendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedprivateendpoints/2018-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/README.md index f587af1094f0..201190c19b43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks` Documentation -The `managedvirtualnetworks` SDK allows for interaction with the Azure Resource Manager Service `datafactory` (API Version `2018-06-01`). +The `managedvirtualnetworks` SDK allows for interaction with Azure Resource Manager `datafactory` (API Version `2018-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue") +id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName") payload := managedvirtualnetworks.ManagedVirtualNetworkResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue", "managedVirtualNetworkValue") +id := managedvirtualnetworks.NewManagedVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName", "managedVirtualNetworkName") read, err := client.Get(ctx, id, managedvirtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedvirtualnetworks.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryValue") +id := managedvirtualnetworks.NewFactoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "factoryName") // alternatively `client.ListByFactory(ctx, id)` can be used to do batched pagination items, err := client.ListByFactoryComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/client.go index 82ba88c262b1..59d0cde348b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/client.go @@ -15,7 +15,7 @@ type ManagedVirtualNetworksClient struct { } func NewManagedVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedVirtualNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedvirtualnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedvirtualnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedVirtualNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_factory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_factory.go index 7acf90dc0700..333383237459 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_factory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_factory.go @@ -42,7 +42,7 @@ func ParseFactoryID(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFactoryIDInsensitively(input string) (*FactoryId, error) { } id := FactoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FactoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_managedvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_managedvirtualnetwork.go index 0059f098376f..f7680c32d25b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_managedvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/id_managedvirtualnetwork.go @@ -44,7 +44,7 @@ func ParseManagedVirtualNetworkID(input string) (*ManagedVirtualNetworkId, error } id := ManagedVirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedVirtualNetworkIDInsensitively(input string) (*ManagedVirtualNet } id := ManagedVirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedVirtualNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataFactory", "Microsoft.DataFactory", "Microsoft.DataFactory"), resourceids.StaticSegment("staticFactories", "factories", "factories"), - resourceids.UserSpecifiedSegment("factoryName", "factoryValue"), + resourceids.UserSpecifiedSegment("factoryName", "factoryName"), resourceids.StaticSegment("staticManagedVirtualNetworks", "managedVirtualNetworks", "managedVirtualNetworks"), - resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkValue"), + resourceids.UserSpecifiedSegment("managedVirtualNetworkName", "managedVirtualNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go index a9e00f4874be..e565487ff1a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, id Man var model ManagedVirtualNetworkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go index 035d910d4108..d19f2dd714cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ManagedVirtualNetworksClient) Get(ctx context.Context, id ManagedVirtual var model ManagedVirtualNetworkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/version.go index ac066480fea1..2a1dcc36fef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks/version.go @@ -1,12 +1,10 @@ package managedvirtualnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedvirtualnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedvirtualnetworks/2018-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md index 701fc40df0a0..9a341733d369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource` Documentation -The `projectresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2021-06-30`). +The `projectresource` SDK allows for interaction with Azure Resource Manager `datamigration` (API Version `2021-06-30`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue") +id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName", "projectName") payload := projectresource.Project{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue") +id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName", "projectName") read, err := client.ProjectsDelete(ctx, id, projectresource.DefaultProjectsDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue") +id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName", "projectName") read, err := client.ProjectsGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projectresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := projectresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") // alternatively `client.ProjectsList(ctx, id)` can be used to do batched pagination items, err := client.ProjectsListComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue") +id := projectresource.NewProjectID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName", "projectName") payload := projectresource.Project{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go index 511a84d728c9..cd47b992f3f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/client.go @@ -15,7 +15,7 @@ type ProjectResourceClient struct { } func NewProjectResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ProjectResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "projectresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "projectresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProjectResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go index 6b70e2427ef1..eeef2ee59f6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_project.go @@ -44,7 +44,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -117,13 +117,13 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataMigration", "Microsoft.DataMigration", "Microsoft.DataMigration"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go index 46510e7b4b3e..71d997f3dfed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,11 +111,11 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataMigration", "Microsoft.DataMigration", "Microsoft.DataMigration"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go index f3c8fba10ab5..12aedec03286 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectscreateorupdate.go @@ -50,7 +50,6 @@ func (c ProjectResourceClient) ProjectsCreateOrUpdate(ctx context.Context, id Pr var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go index f74d7bbd8be5..3de22d4ba25f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsdelete.go @@ -33,6 +33,7 @@ func (o ProjectsDeleteOperationOptions) ToHeaders() *client.Headers { func (o ProjectsDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go index d62130224aeb..53664662bf1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsget.go @@ -45,7 +45,6 @@ func (c ProjectResourceClient) ProjectsGet(ctx context.Context, id ProjectId) (r var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go index 88048fe4c189..01c4a4e72f47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/method_projectsupdate.go @@ -49,7 +49,6 @@ func (c ProjectResourceClient) ProjectsUpdate(ctx context.Context, id ProjectId, var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go index 97be01773f3b..a32063587154 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/projectresource/version.go @@ -1,12 +1,10 @@ package projectresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-30" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/projectresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/projectresource/2021-06-30" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md index 6695ccca3013..fcb5f99c8ea1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource` Documentation -The `serviceresource` SDK allows for interaction with the Azure Resource Manager Service `datamigration` (API Version `2021-06-30`). +The `serviceresource` SDK allows for interaction with Azure Resource Manager `datamigration` (API Version `2021-06-30`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") // alternatively `client.ServiceTasksList(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions())` can be used to do batched pagination items, err := client.ServiceTasksListComplete(ctx, id, serviceresource.DefaultServiceTasksListOperationOptions()) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") read, err := client.ServicesCheckStatus(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") payload := serviceresource.DataMigrationService{ // ... @@ -75,7 +75,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") if err := client.ServicesDeleteThenPoll(ctx, id, serviceresource.DefaultServicesDeleteOperationOptions()); err != nil { // handle the error @@ -87,7 +87,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id, serviceresource.DefaultServices ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "resourceGroupValue") +id := serviceresource.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "groupName") // alternatively `client.ServicesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ServicesListByResourceGroupComplete(ctx, id) @@ -137,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") // alternatively `client.ServicesListSkus(ctx, id)` can be used to do batched pagination items, err := client.ServicesListSkusComplete(ctx, id) @@ -154,7 +154,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") if err := client.ServicesStartThenPoll(ctx, id); err != nil { // handle the error @@ -166,7 +166,7 @@ if err := client.ServicesStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") if err := client.ServicesStopThenPoll(ctx, id); err != nil { // handle the error @@ -178,7 +178,7 @@ if err := client.ServicesStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue") +id := serviceresource.NewServiceID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName") payload := serviceresource.DataMigrationService{ // ... @@ -195,7 +195,7 @@ if err := client.ServicesUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serviceresource.NewProjectID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "serviceValue", "projectValue") +id := serviceresource.NewProjectID("12345678-1234-9876-4563-123456789012", "groupName", "serviceName", "projectName") // alternatively `client.TasksList(ctx, id, serviceresource.DefaultTasksListOperationOptions())` can be used to do batched pagination items, err := client.TasksListComplete(ctx, id, serviceresource.DefaultTasksListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go index 3617b27a6c5b..60618461d07b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/client.go @@ -15,7 +15,7 @@ type ServiceResourceClient struct { } func NewServiceResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serviceresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serviceresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go index a2b46bd8d9eb..8ab9dc82e507 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_project.go @@ -44,7 +44,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -117,13 +117,13 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataMigration", "Microsoft.DataMigration", "Microsoft.DataMigration"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go index 058aaf15dded..5074170e967c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_resourcegroup.go @@ -40,7 +40,7 @@ func ParseResourceGroupID(input string) (*ResourceGroupId, error) { } id := ResourceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseResourceGroupIDInsensitively(input string) (*ResourceGroupId, error) { } id := ResourceGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,7 +105,7 @@ func (id ResourceGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go index 783fa128265b..5b9a869072db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,11 +111,11 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataMigration", "Microsoft.DataMigration", "Microsoft.DataMigration"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go index a12b9661f795..33f7180c4ad5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicescheckstatus.go @@ -46,7 +46,6 @@ func (c ServiceResourceClient) ServicesCheckStatus(ctx context.Context, id Servi var model DataMigrationServiceStatusResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go index 48ffb46094f8..32630ee1f935 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesdelete.go @@ -36,6 +36,7 @@ func (o ServicesDeleteOperationOptions) ToHeaders() *client.Headers { func (o ServicesDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go index 9d4a60b35420..0e7a2126e5ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicesget.go @@ -45,7 +45,6 @@ func (c ServiceResourceClient) ServicesGet(ctx context.Context, id ServiceId) (r var model DataMigrationService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go index fed6e85c1620..2909fd64be78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_servicetaskslist.go @@ -39,6 +39,7 @@ func (o ServiceTasksListOperationOptions) ToHeaders() *client.Headers { func (o ServiceTasksListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go index b64c3edcf991..6628f689637a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/method_taskslist.go @@ -39,6 +39,7 @@ func (o TasksListOperationOptions) ToHeaders() *client.Headers { func (o TasksListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go index 760bade3a0ba..dc7c5f7f2a2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2021-06-30/serviceresource/version.go @@ -1,12 +1,10 @@ package serviceresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-30" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serviceresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serviceresource/2021-06-30" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md index 4601327dcd81..78c002ba28d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances` Documentation -The `backupinstances` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-01`). +The `backupinstances` SDK allows for interaction with Azure Resource Manager `dataprotection` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.TriggerBackupRequest{ // ... @@ -41,7 +41,7 @@ if err := client.AdhocBackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.BackupInstanceResource{ // ... @@ -58,7 +58,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, backupinstances.Defaul ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") if err := client.DeleteThenPoll(ctx, id, backupinstances.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.DeleteThenPoll(ctx, id, backupinstances.DefaultDeleteOperationO ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") if err := client.ResumeBackupsThenPoll(ctx, id); err != nil { // handle the error @@ -115,7 +115,7 @@ if err := client.ResumeBackupsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") if err := client.ResumeProtectionThenPoll(ctx, id); err != nil { // handle the error @@ -127,7 +127,7 @@ if err := client.ResumeProtectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.StopProtectionRequest{ // ... @@ -144,7 +144,7 @@ if err := client.StopProtectionThenPoll(ctx, id, payload, backupinstances.Defaul ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.SuspendBackupRequest{ // ... @@ -161,7 +161,7 @@ if err := client.SuspendBackupsThenPoll(ctx, id, payload, backupinstances.Defaul ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.SyncBackupInstanceRequest{ // ... @@ -178,7 +178,7 @@ if err := client.SyncBackupInstanceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") payload := backupinstances.CrossRegionRestoreRequestObject{ // ... @@ -195,7 +195,7 @@ if err := client.TriggerCrossRegionRestoreThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.AzureBackupRehydrationRequest{ // ... @@ -212,7 +212,7 @@ if err := client.TriggerRehydrateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.AzureBackupRestoreRequest{ // ... @@ -229,7 +229,7 @@ if err := client.TriggerRestoreThenPoll(ctx, id, payload, backupinstances.Defaul ```go ctx := context.TODO() -id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") payload := backupinstances.ValidateCrossRegionRestoreRequestObject{ // ... @@ -246,7 +246,7 @@ if err := client.ValidateCrossRegionRestoreThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupinstances.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := backupinstances.ValidateForBackupRequest{ // ... @@ -263,7 +263,7 @@ if err := client.ValidateForBackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") +id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupInstanceName") payload := backupinstances.ValidateRestoreRequestObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go index 9e37fa3fed59..d0c8a08b5f23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go @@ -15,7 +15,7 @@ type BackupInstancesClient struct { } func NewBackupInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backupinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backupinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackupInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go index 9120ff5c7b95..157878b86b22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go @@ -44,7 +44,7 @@ func ParseBackupInstanceID(input string) (*BackupInstanceId, error) { } id := BackupInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupInstanceIDInsensitively(input string) (*BackupInstanceId, error) } id := BackupInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), - resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultValue"), + resourceids.UserSpecifiedSegment("backupVaultName", "vaultName"), resourceids.StaticSegment("staticBackupInstances", "backupInstances", "backupInstances"), - resourceids.UserSpecifiedSegment("backupInstanceName", "backupInstanceValue"), + resourceids.UserSpecifiedSegment("backupInstanceName", "backupInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go index 3e2cc2544295..c82f22317107 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go @@ -42,7 +42,7 @@ func ParseBackupVaultID(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BackupVaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), - resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultValue"), + resourceids.UserSpecifiedSegment("backupVaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go index 41446698550d..72a497634bd0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go index 9b7d414a7e8c..7f9162cb178a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go index f7c7e187ba73..3de0e319d1f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go index dc268db7fc10..39aa6d46c903 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go @@ -45,7 +45,6 @@ func (c BackupInstancesClient) Get(ctx context.Context, id BackupInstanceId) (re var model BackupInstanceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go index 5340191884ee..f42acb7c1600 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go @@ -38,6 +38,7 @@ func (o StopProtectionOperationOptions) ToHeaders() *client.Headers { func (o StopProtectionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go index a99e82a0bde5..28443e575a64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go @@ -38,6 +38,7 @@ func (o SuspendBackupsOperationOptions) ToHeaders() *client.Headers { func (o SuspendBackupsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go index 0d868dfde677..c301fac0f4a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go @@ -39,6 +39,7 @@ func (o TriggerRestoreOperationOptions) ToHeaders() *client.Headers { func (o TriggerRestoreOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go index 8be823b957b9..a76df9971fdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AuthCredentials interface { + AuthCredentials() BaseAuthCredentialsImpl } -// RawAuthCredentialsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AuthCredentials = BaseAuthCredentialsImpl{} + +type BaseAuthCredentialsImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseAuthCredentialsImpl) AuthCredentials() BaseAuthCredentialsImpl { + return s +} + +var _ AuthCredentials = RawAuthCredentialsImpl{} + +// RawAuthCredentialsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAuthCredentialsImpl struct { - Type string - Values map[string]interface{} + authCredentials BaseAuthCredentialsImpl + Type string + Values map[string]interface{} +} + +func (s RawAuthCredentialsImpl) AuthCredentials() BaseAuthCredentialsImpl { + return s.authCredentials } -func unmarshalAuthCredentialsImplementation(input []byte) (AuthCredentials, error) { +func UnmarshalAuthCredentialsImplementation(input []byte) (AuthCredentials, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAuthCredentialsImplementation(input []byte) (AuthCredentials, erro return nil, fmt.Errorf("unmarshaling AuthCredentials into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "SecretStoreBasedAuthCredentials") { @@ -44,10 +61,15 @@ func unmarshalAuthCredentialsImplementation(input []byte) (AuthCredentials, erro return out, nil } - out := RawAuthCredentialsImpl{ - Type: value, - Values: temp, + var parent BaseAuthCredentialsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAuthCredentialsImpl: %+v", err) } - return out, nil + + return RawAuthCredentialsImpl{ + authCredentials: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go index cccd7deb636f..137344a6d079 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go @@ -14,13 +14,26 @@ type AzureBackupRecoveryPointBasedRestoreRequest struct { RecoveryPointId string `json:"recoveryPointId"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` } +func (s AzureBackupRecoveryPointBasedRestoreRequest) AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl { + return BaseAzureBackupRestoreRequestImpl{ + IdentityDetails: s.IdentityDetails, + ObjectType: s.ObjectType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + RestoreTargetInfo: s.RestoreTargetInfo, + SourceDataStoreType: s.SourceDataStoreType, + SourceResourceId: s.SourceResourceId, + } +} + var _ json.Marshaler = AzureBackupRecoveryPointBasedRestoreRequest{} func (s AzureBackupRecoveryPointBasedRestoreRequest) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s AzureBackupRecoveryPointBasedRestoreRequest) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupRecoveryPointBasedRestoreRequest: %+v", err) } + decoded["objectType"] = "AzureBackupRecoveryPointBasedRestoreRequest" encoded, err = json.Marshal(decoded) @@ -48,14 +62,21 @@ func (s AzureBackupRecoveryPointBasedRestoreRequest) MarshalJSON() ([]byte, erro var _ json.Unmarshaler = &AzureBackupRecoveryPointBasedRestoreRequest{} func (s *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(bytes []byte) error { - type alias AzureBackupRecoveryPointBasedRestoreRequest - var decoded alias + var decoded struct { + RecoveryPointId string `json:"recoveryPointId"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureBackupRecoveryPointBasedRestoreRequest: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointId = decoded.RecoveryPointId + s.IdentityDetails = decoded.IdentityDetails + s.ObjectType = decoded.ObjectType s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId @@ -66,11 +87,12 @@ func (s *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(bytes []byte } if v, ok := temp["restoreTargetInfo"]; ok { - impl, err := unmarshalRestoreTargetInfoBaseImplementation(v) + impl, err := UnmarshalRestoreTargetInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreTargetInfo' for 'AzureBackupRecoveryPointBasedRestoreRequest': %+v", err) } s.RestoreTargetInfo = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go index 6527462cb94d..fc6ace67659f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go @@ -14,13 +14,26 @@ type AzureBackupRecoveryTimeBasedRestoreRequest struct { RecoveryPointTime string `json:"recoveryPointTime"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` } +func (s AzureBackupRecoveryTimeBasedRestoreRequest) AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl { + return BaseAzureBackupRestoreRequestImpl{ + IdentityDetails: s.IdentityDetails, + ObjectType: s.ObjectType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + RestoreTargetInfo: s.RestoreTargetInfo, + SourceDataStoreType: s.SourceDataStoreType, + SourceResourceId: s.SourceResourceId, + } +} + var _ json.Marshaler = AzureBackupRecoveryTimeBasedRestoreRequest{} func (s AzureBackupRecoveryTimeBasedRestoreRequest) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s AzureBackupRecoveryTimeBasedRestoreRequest) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupRecoveryTimeBasedRestoreRequest: %+v", err) } + decoded["objectType"] = "AzureBackupRecoveryTimeBasedRestoreRequest" encoded, err = json.Marshal(decoded) @@ -48,14 +62,21 @@ func (s AzureBackupRecoveryTimeBasedRestoreRequest) MarshalJSON() ([]byte, error var _ json.Unmarshaler = &AzureBackupRecoveryTimeBasedRestoreRequest{} func (s *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(bytes []byte) error { - type alias AzureBackupRecoveryTimeBasedRestoreRequest - var decoded alias + var decoded struct { + RecoveryPointTime string `json:"recoveryPointTime"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureBackupRecoveryTimeBasedRestoreRequest: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointTime = decoded.RecoveryPointTime + s.IdentityDetails = decoded.IdentityDetails + s.ObjectType = decoded.ObjectType s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId @@ -66,11 +87,12 @@ func (s *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(bytes []byte) } if v, ok := temp["restoreTargetInfo"]; ok { - impl, err := unmarshalRestoreTargetInfoBaseImplementation(v) + impl, err := UnmarshalRestoreTargetInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreTargetInfo' for 'AzureBackupRecoveryTimeBasedRestoreRequest': %+v", err) } s.RestoreTargetInfo = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go index 3b5348e6cdfa..11a759db8235 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go @@ -10,18 +10,76 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AzureBackupRestoreRequest interface { + AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl } -// RawAzureBackupRestoreRequestImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AzureBackupRestoreRequest = BaseAzureBackupRestoreRequestImpl{} + +type BaseAzureBackupRestoreRequestImpl struct { + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` +} + +func (s BaseAzureBackupRestoreRequestImpl) AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl { + return s +} + +var _ AzureBackupRestoreRequest = RawAzureBackupRestoreRequestImpl{} + +// RawAzureBackupRestoreRequestImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAzureBackupRestoreRequestImpl struct { - Type string - Values map[string]interface{} + azureBackupRestoreRequest BaseAzureBackupRestoreRequestImpl + Type string + Values map[string]interface{} +} + +func (s RawAzureBackupRestoreRequestImpl) AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl { + return s.azureBackupRestoreRequest +} + +var _ json.Unmarshaler = &BaseAzureBackupRestoreRequestImpl{} + +func (s *BaseAzureBackupRestoreRequestImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.IdentityDetails = decoded.IdentityDetails + s.ObjectType = decoded.ObjectType + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests + s.SourceDataStoreType = decoded.SourceDataStoreType + s.SourceResourceId = decoded.SourceResourceId + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseAzureBackupRestoreRequestImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["restoreTargetInfo"]; ok { + impl, err := UnmarshalRestoreTargetInfoBaseImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'RestoreTargetInfo' for 'BaseAzureBackupRestoreRequestImpl': %+v", err) + } + s.RestoreTargetInfo = impl + } + + return nil } -func unmarshalAzureBackupRestoreRequestImplementation(input []byte) (AzureBackupRestoreRequest, error) { +func UnmarshalAzureBackupRestoreRequestImplementation(input []byte) (AzureBackupRestoreRequest, error) { if input == nil { return nil, nil } @@ -31,9 +89,9 @@ func unmarshalAzureBackupRestoreRequestImplementation(input []byte) (AzureBackup return nil, fmt.Errorf("unmarshaling AzureBackupRestoreRequest into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureBackupRecoveryPointBasedRestoreRequest") { @@ -60,10 +118,15 @@ func unmarshalAzureBackupRestoreRequestImplementation(input []byte) (AzureBackup return out, nil } - out := RawAzureBackupRestoreRequestImpl{ - Type: value, - Values: temp, + var parent BaseAzureBackupRestoreRequestImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAzureBackupRestoreRequestImpl: %+v", err) } - return out, nil + + return RawAzureBackupRestoreRequestImpl{ + azureBackupRestoreRequest: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go index effe61253228..0c248836f356 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go @@ -16,13 +16,26 @@ type AzureBackupRestoreWithRehydrationRequest struct { RehydrationRetentionDuration string `json:"rehydrationRetentionDuration"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` } +func (s AzureBackupRestoreWithRehydrationRequest) AzureBackupRestoreRequest() BaseAzureBackupRestoreRequestImpl { + return BaseAzureBackupRestoreRequestImpl{ + IdentityDetails: s.IdentityDetails, + ObjectType: s.ObjectType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + RestoreTargetInfo: s.RestoreTargetInfo, + SourceDataStoreType: s.SourceDataStoreType, + SourceResourceId: s.SourceResourceId, + } +} + var _ json.Marshaler = AzureBackupRestoreWithRehydrationRequest{} func (s AzureBackupRestoreWithRehydrationRequest) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s AzureBackupRestoreWithRehydrationRequest) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupRestoreWithRehydrationRequest: %+v", err) } + decoded["objectType"] = "AzureBackupRestoreWithRehydrationRequest" encoded, err = json.Marshal(decoded) @@ -50,16 +64,25 @@ func (s AzureBackupRestoreWithRehydrationRequest) MarshalJSON() ([]byte, error) var _ json.Unmarshaler = &AzureBackupRestoreWithRehydrationRequest{} func (s *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(bytes []byte) error { - type alias AzureBackupRestoreWithRehydrationRequest - var decoded alias + var decoded struct { + RecoveryPointId string `json:"recoveryPointId"` + RehydrationPriority RehydrationPriority `json:"rehydrationPriority"` + RehydrationRetentionDuration string `json:"rehydrationRetentionDuration"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureBackupRestoreWithRehydrationRequest: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointId = decoded.RecoveryPointId s.RehydrationPriority = decoded.RehydrationPriority s.RehydrationRetentionDuration = decoded.RehydrationRetentionDuration + s.IdentityDetails = decoded.IdentityDetails + s.ObjectType = decoded.ObjectType s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId @@ -70,11 +93,12 @@ func (s *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(bytes []byte) e } if v, ok := temp["restoreTargetInfo"]; ok { - impl, err := unmarshalRestoreTargetInfoBaseImplementation(v) + impl, err := UnmarshalRestoreTargetInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreTargetInfo' for 'AzureBackupRestoreWithRehydrationRequest': %+v", err) } s.RestoreTargetInfo = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azureoperationalstoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azureoperationalstoreparameters.go index f7daf43fe3e7..2c2c8c9086ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azureoperationalstoreparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azureoperationalstoreparameters.go @@ -14,7 +14,16 @@ type AzureOperationalStoreParameters struct { ResourceGroupId *string `json:"resourceGroupId,omitempty"` // Fields inherited from DataStoreParameters + DataStoreType DataStoreTypes `json:"dataStoreType"` + ObjectType string `json:"objectType"` +} + +func (s AzureOperationalStoreParameters) DataStoreParameters() BaseDataStoreParametersImpl { + return BaseDataStoreParametersImpl{ + DataStoreType: s.DataStoreType, + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AzureOperationalStoreParameters{} @@ -28,9 +37,10 @@ func (s AzureOperationalStoreParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureOperationalStoreParameters: %+v", err) } + decoded["objectType"] = "AzureOperationalStoreParameters" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupdatasourceparameters.go index 035cc0633ac1..6ceb9556543d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupdatasourceparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupdatasourceparameters.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupDatasourceParameters interface { + BackupDatasourceParameters() BaseBackupDatasourceParametersImpl } -// RawBackupDatasourceParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BackupDatasourceParameters = BaseBackupDatasourceParametersImpl{} + +type BaseBackupDatasourceParametersImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseBackupDatasourceParametersImpl) BackupDatasourceParameters() BaseBackupDatasourceParametersImpl { + return s +} + +var _ BackupDatasourceParameters = RawBackupDatasourceParametersImpl{} + +// RawBackupDatasourceParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBackupDatasourceParametersImpl struct { - Type string - Values map[string]interface{} + backupDatasourceParameters BaseBackupDatasourceParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupDatasourceParametersImpl) BackupDatasourceParameters() BaseBackupDatasourceParametersImpl { + return s.backupDatasourceParameters } -func unmarshalBackupDatasourceParametersImplementation(input []byte) (BackupDatasourceParameters, error) { +func UnmarshalBackupDatasourceParametersImplementation(input []byte) (BackupDatasourceParameters, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalBackupDatasourceParametersImplementation(input []byte) (BackupData return nil, fmt.Errorf("unmarshaling BackupDatasourceParameters into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BlobBackupDatasourceParameters") { @@ -52,10 +69,15 @@ func unmarshalBackupDatasourceParametersImplementation(input []byte) (BackupData return out, nil } - out := RawBackupDatasourceParametersImpl{ - Type: value, - Values: temp, + var parent BaseBackupDatasourceParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupDatasourceParametersImpl: %+v", err) } - return out, nil + + return RawBackupDatasourceParametersImpl{ + backupDatasourceParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go index ca616f380e71..ef05566c5274 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go @@ -27,10 +27,22 @@ type BackupInstance struct { var _ json.Unmarshaler = &BackupInstance{} func (s *BackupInstance) UnmarshalJSON(bytes []byte) error { - type alias BackupInstance - var decoded alias + var decoded struct { + CurrentProtectionState *CurrentProtectionState `json:"currentProtectionState,omitempty"` + DataSourceInfo Datasource `json:"dataSourceInfo"` + DataSourceSetInfo *DatasourceSet `json:"dataSourceSetInfo,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ObjectType string `json:"objectType"` + PolicyInfo PolicyInfo `json:"policyInfo"` + ProtectionErrorDetails *UserFacingError `json:"protectionErrorDetails,omitempty"` + ProtectionStatus *ProtectionStatusDetails `json:"protectionStatus,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + ValidationType *ValidationType `json:"validationType,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into BackupInstance: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.CurrentProtectionState = decoded.CurrentProtectionState @@ -52,11 +64,12 @@ func (s *BackupInstance) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasourceAuthCredentials"]; ok { - impl, err := unmarshalAuthCredentialsImplementation(v) + impl, err := UnmarshalAuthCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DatasourceAuthCredentials' for 'BackupInstance': %+v", err) } s.DatasourceAuthCredentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_baseresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_baseresourceproperties.go index fcf079323822..9ef7d2eef6bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_baseresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_baseresourceproperties.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BaseResourceProperties interface { + BaseResourceProperties() BaseBaseResourcePropertiesImpl } -// RawBaseResourcePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BaseResourceProperties = BaseBaseResourcePropertiesImpl{} + +type BaseBaseResourcePropertiesImpl struct { + ObjectType ResourcePropertiesObjectType `json:"objectType"` +} + +func (s BaseBaseResourcePropertiesImpl) BaseResourceProperties() BaseBaseResourcePropertiesImpl { + return s +} + +var _ BaseResourceProperties = RawBaseResourcePropertiesImpl{} + +// RawBaseResourcePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBaseResourcePropertiesImpl struct { - Type string - Values map[string]interface{} + baseResourceProperties BaseBaseResourcePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawBaseResourcePropertiesImpl) BaseResourceProperties() BaseBaseResourcePropertiesImpl { + return s.baseResourceProperties } -func unmarshalBaseResourcePropertiesImplementation(input []byte) (BaseResourceProperties, error) { +func UnmarshalBaseResourcePropertiesImplementation(input []byte) (BaseResourceProperties, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalBaseResourcePropertiesImplementation(input []byte) (BaseResourcePr return nil, fmt.Errorf("unmarshaling BaseResourceProperties into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "DefaultResourceProperties") { @@ -44,10 +61,15 @@ func unmarshalBaseResourcePropertiesImplementation(input []byte) (BaseResourcePr return out, nil } - out := RawBaseResourcePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseBaseResourcePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBaseResourcePropertiesImpl: %+v", err) } - return out, nil + + return RawBaseResourcePropertiesImpl{ + baseResourceProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go index 84f49ead22cc..fc701b02154d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go @@ -14,6 +14,14 @@ type BlobBackupDatasourceParameters struct { ContainersList []string `json:"containersList"` // Fields inherited from BackupDatasourceParameters + + ObjectType string `json:"objectType"` +} + +func (s BlobBackupDatasourceParameters) BackupDatasourceParameters() BaseBackupDatasourceParametersImpl { + return BaseBackupDatasourceParametersImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = BlobBackupDatasourceParameters{} @@ -27,9 +35,10 @@ func (s BlobBackupDatasourceParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobBackupDatasourceParameters: %+v", err) } + decoded["objectType"] = "BlobBackupDatasourceParameters" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go index d958127a0de3..80b4acaaadaf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go @@ -16,10 +16,11 @@ type CrossRegionRestoreRequestObject struct { var _ json.Unmarshaler = &CrossRegionRestoreRequestObject{} func (s *CrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) error { - type alias CrossRegionRestoreRequestObject - var decoded alias + var decoded struct { + CrossRegionRestoreDetails CrossRegionRestoreDetails `json:"crossRegionRestoreDetails"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CrossRegionRestoreRequestObject: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.CrossRegionRestoreDetails = decoded.CrossRegionRestoreDetails @@ -30,11 +31,12 @@ func (s *CrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["restoreRequestObject"]; ok { - impl, err := unmarshalAzureBackupRestoreRequestImplementation(v) + impl, err := UnmarshalAzureBackupRestoreRequestImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreRequestObject' for 'CrossRegionRestoreRequestObject': %+v", err) } s.RestoreRequestObject = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasource.go index a8e07a371175..f346089941e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasource.go @@ -22,10 +22,17 @@ type Datasource struct { var _ json.Unmarshaler = &Datasource{} func (s *Datasource) UnmarshalJSON(bytes []byte) error { - type alias Datasource - var decoded alias + var decoded struct { + DatasourceType *string `json:"datasourceType,omitempty"` + ObjectType *string `json:"objectType,omitempty"` + ResourceID string `json:"resourceID"` + ResourceLocation *string `json:"resourceLocation,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Datasource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DatasourceType = decoded.DatasourceType @@ -42,11 +49,12 @@ func (s *Datasource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["resourceProperties"]; ok { - impl, err := unmarshalBaseResourcePropertiesImplementation(v) + impl, err := UnmarshalBaseResourcePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'Datasource': %+v", err) } s.ResourceProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasourceset.go index 537af263c0b5..0c88066e2753 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasourceset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasourceset.go @@ -22,10 +22,17 @@ type DatasourceSet struct { var _ json.Unmarshaler = &DatasourceSet{} func (s *DatasourceSet) UnmarshalJSON(bytes []byte) error { - type alias DatasourceSet - var decoded alias + var decoded struct { + DatasourceType *string `json:"datasourceType,omitempty"` + ObjectType *string `json:"objectType,omitempty"` + ResourceID string `json:"resourceID"` + ResourceLocation *string `json:"resourceLocation,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceType *string `json:"resourceType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatasourceSet: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DatasourceType = decoded.DatasourceType @@ -42,11 +49,12 @@ func (s *DatasourceSet) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["resourceProperties"]; ok { - impl, err := unmarshalBaseResourcePropertiesImplementation(v) + impl, err := UnmarshalBaseResourcePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'DatasourceSet': %+v", err) } s.ResourceProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datastoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datastoreparameters.go index ee57cd90fa32..c1d859acd976 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datastoreparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datastoreparameters.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DataStoreParameters interface { + DataStoreParameters() BaseDataStoreParametersImpl } -// RawDataStoreParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DataStoreParameters = BaseDataStoreParametersImpl{} + +type BaseDataStoreParametersImpl struct { + DataStoreType DataStoreTypes `json:"dataStoreType"` + ObjectType string `json:"objectType"` +} + +func (s BaseDataStoreParametersImpl) DataStoreParameters() BaseDataStoreParametersImpl { + return s +} + +var _ DataStoreParameters = RawDataStoreParametersImpl{} + +// RawDataStoreParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDataStoreParametersImpl struct { - Type string - Values map[string]interface{} + dataStoreParameters BaseDataStoreParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawDataStoreParametersImpl) DataStoreParameters() BaseDataStoreParametersImpl { + return s.dataStoreParameters } -func unmarshalDataStoreParametersImplementation(input []byte) (DataStoreParameters, error) { +func UnmarshalDataStoreParametersImplementation(input []byte) (DataStoreParameters, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalDataStoreParametersImplementation(input []byte) (DataStoreParamete return nil, fmt.Errorf("unmarshaling DataStoreParameters into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureOperationalStoreParameters") { @@ -44,10 +62,15 @@ func unmarshalDataStoreParametersImplementation(input []byte) (DataStoreParamete return out, nil } - out := RawDataStoreParametersImpl{ - Type: value, - Values: temp, + var parent BaseDataStoreParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDataStoreParametersImpl: %+v", err) } - return out, nil + + return RawDataStoreParametersImpl{ + dataStoreParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_defaultresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_defaultresourceproperties.go index adac6099d8b0..6de216a9daa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_defaultresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_defaultresourceproperties.go @@ -13,6 +13,14 @@ var _ BaseResourceProperties = DefaultResourceProperties{} type DefaultResourceProperties struct { // Fields inherited from BaseResourceProperties + + ObjectType ResourcePropertiesObjectType `json:"objectType"` +} + +func (s DefaultResourceProperties) BaseResourceProperties() BaseBaseResourcePropertiesImpl { + return BaseBaseResourcePropertiesImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = DefaultResourceProperties{} @@ -26,9 +34,10 @@ func (s DefaultResourceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DefaultResourceProperties: %+v", err) } + decoded["objectType"] = "DefaultResourceProperties" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go index 5c1b5326ced0..2431e735e7dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ItemLevelRestoreCriteria interface { + ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl } -// RawItemLevelRestoreCriteriaImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ItemLevelRestoreCriteria = BaseItemLevelRestoreCriteriaImpl{} + +type BaseItemLevelRestoreCriteriaImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseItemLevelRestoreCriteriaImpl) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return s +} + +var _ ItemLevelRestoreCriteria = RawItemLevelRestoreCriteriaImpl{} + +// RawItemLevelRestoreCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawItemLevelRestoreCriteriaImpl struct { - Type string - Values map[string]interface{} + itemLevelRestoreCriteria BaseItemLevelRestoreCriteriaImpl + Type string + Values map[string]interface{} +} + +func (s RawItemLevelRestoreCriteriaImpl) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return s.itemLevelRestoreCriteria } -func unmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRestoreCriteria, error) { +func UnmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRestoreCriteria, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRes return nil, fmt.Errorf("unmarshaling ItemLevelRestoreCriteria into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ItemPathBasedRestoreCriteria") { @@ -84,10 +101,15 @@ func unmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRes return out, nil } - out := RawItemLevelRestoreCriteriaImpl{ - Type: value, - Values: temp, + var parent BaseItemLevelRestoreCriteriaImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseItemLevelRestoreCriteriaImpl: %+v", err) } - return out, nil + + return RawItemLevelRestoreCriteriaImpl{ + itemLevelRestoreCriteria: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestoretargetinfo.go index 475d87642124..605e75155bb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestoretargetinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestoretargetinfo.go @@ -17,10 +17,20 @@ type ItemLevelRestoreTargetInfo struct { RestoreCriteria []ItemLevelRestoreCriteria `json:"restoreCriteria"` // Fields inherited from RestoreTargetInfoBase + + ObjectType string `json:"objectType"` RecoveryOption RecoveryOption `json:"recoveryOption"` RestoreLocation *string `json:"restoreLocation,omitempty"` } +func (s ItemLevelRestoreTargetInfo) RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl { + return BaseRestoreTargetInfoBaseImpl{ + ObjectType: s.ObjectType, + RecoveryOption: s.RecoveryOption, + RestoreLocation: s.RestoreLocation, + } +} + var _ json.Marshaler = ItemLevelRestoreTargetInfo{} func (s ItemLevelRestoreTargetInfo) MarshalJSON() ([]byte, error) { @@ -32,9 +42,10 @@ func (s ItemLevelRestoreTargetInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ItemLevelRestoreTargetInfo: %+v", err) } + decoded["objectType"] = "ItemLevelRestoreTargetInfo" encoded, err = json.Marshal(decoded) @@ -48,14 +59,20 @@ func (s ItemLevelRestoreTargetInfo) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ItemLevelRestoreTargetInfo{} func (s *ItemLevelRestoreTargetInfo) UnmarshalJSON(bytes []byte) error { - type alias ItemLevelRestoreTargetInfo - var decoded alias + var decoded struct { + DatasourceInfo Datasource `json:"datasourceInfo"` + DatasourceSetInfo *DatasourceSet `json:"datasourceSetInfo,omitempty"` + ObjectType string `json:"objectType"` + RecoveryOption RecoveryOption `json:"recoveryOption"` + RestoreLocation *string `json:"restoreLocation,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ItemLevelRestoreTargetInfo: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DatasourceInfo = decoded.DatasourceInfo s.DatasourceSetInfo = decoded.DatasourceSetInfo + s.ObjectType = decoded.ObjectType s.RecoveryOption = decoded.RecoveryOption s.RestoreLocation = decoded.RestoreLocation @@ -65,7 +82,7 @@ func (s *ItemLevelRestoreTargetInfo) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasourceAuthCredentials"]; ok { - impl, err := unmarshalAuthCredentialsImplementation(v) + impl, err := UnmarshalAuthCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DatasourceAuthCredentials' for 'ItemLevelRestoreTargetInfo': %+v", err) } @@ -80,7 +97,7 @@ func (s *ItemLevelRestoreTargetInfo) UnmarshalJSON(bytes []byte) error { output := make([]ItemLevelRestoreCriteria, 0) for i, val := range listTemp { - impl, err := unmarshalItemLevelRestoreCriteriaImplementation(val) + impl, err := UnmarshalItemLevelRestoreCriteriaImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'RestoreCriteria' for 'ItemLevelRestoreTargetInfo': %+v", i, err) } @@ -88,5 +105,6 @@ func (s *ItemLevelRestoreTargetInfo) UnmarshalJSON(bytes []byte) error { } s.RestoreCriteria = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go index bd6640be142d..293c8227b06c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go @@ -16,6 +16,14 @@ type ItemPathBasedRestoreCriteria struct { SubItemPathPrefix *[]string `json:"subItemPathPrefix,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s ItemPathBasedRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = ItemPathBasedRestoreCriteria{} @@ -29,9 +37,10 @@ func (s ItemPathBasedRestoreCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ItemPathBasedRestoreCriteria: %+v", err) } + decoded["objectType"] = "ItemPathBasedRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go index 021230e39ac3..fedc5d4bc513 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go @@ -21,6 +21,14 @@ type KubernetesClusterBackupDatasourceParameters struct { SnapshotVolumes bool `json:"snapshotVolumes"` // Fields inherited from BackupDatasourceParameters + + ObjectType string `json:"objectType"` +} + +func (s KubernetesClusterBackupDatasourceParameters) BackupDatasourceParameters() BaseBackupDatasourceParametersImpl { + return BaseBackupDatasourceParametersImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = KubernetesClusterBackupDatasourceParameters{} @@ -34,9 +42,10 @@ func (s KubernetesClusterBackupDatasourceParameters) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KubernetesClusterBackupDatasourceParameters: %+v", err) } + decoded["objectType"] = "KubernetesClusterBackupDatasourceParameters" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go index ab7478006ae9..c39f21cf7dfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go @@ -24,6 +24,14 @@ type KubernetesClusterRestoreCriteria struct { RestoreHookReferences *[]NamespacedNameResource `json:"restoreHookReferences,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s KubernetesClusterRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = KubernetesClusterRestoreCriteria{} @@ -37,9 +45,10 @@ func (s KubernetesClusterRestoreCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KubernetesClusterRestoreCriteria: %+v", err) } + decoded["objectType"] = "KubernetesClusterRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go index b172d3bed60a..b192cf49ac8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go @@ -26,6 +26,14 @@ type KubernetesClusterVaultTierRestoreCriteria struct { StagingStorageAccountId *string `json:"stagingStorageAccountId,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s KubernetesClusterVaultTierRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = KubernetesClusterVaultTierRestoreCriteria{} @@ -39,9 +47,10 @@ func (s KubernetesClusterVaultTierRestoreCriteria) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KubernetesClusterVaultTierRestoreCriteria: %+v", err) } + decoded["objectType"] = "KubernetesClusterVaultTierRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go index 0f3d56cbfeb2..4a0189b1de3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go @@ -15,6 +15,14 @@ type KubernetesPVRestoreCriteria struct { StorageClassName *string `json:"storageClassName,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s KubernetesPVRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = KubernetesPVRestoreCriteria{} @@ -28,9 +36,10 @@ func (s KubernetesPVRestoreCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KubernetesPVRestoreCriteria: %+v", err) } + decoded["objectType"] = "KubernetesPVRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go index d4b08aa1e6fd..a1f6748502fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go @@ -15,6 +15,14 @@ type KubernetesStorageClassRestoreCriteria struct { SelectedStorageClassName *string `json:"selectedStorageClassName,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s KubernetesStorageClassRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = KubernetesStorageClassRestoreCriteria{} @@ -28,9 +36,10 @@ func (s KubernetesStorageClassRestoreCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KubernetesStorageClassRestoreCriteria: %+v", err) } + decoded["objectType"] = "KubernetesStorageClassRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go index 53581d9a9e1c..f32c9b06c651 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OperationExtendedInfo interface { + OperationExtendedInfo() BaseOperationExtendedInfoImpl } -// RawOperationExtendedInfoImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OperationExtendedInfo = BaseOperationExtendedInfoImpl{} + +type BaseOperationExtendedInfoImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseOperationExtendedInfoImpl) OperationExtendedInfo() BaseOperationExtendedInfoImpl { + return s +} + +var _ OperationExtendedInfo = RawOperationExtendedInfoImpl{} + +// RawOperationExtendedInfoImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOperationExtendedInfoImpl struct { - Type string - Values map[string]interface{} + operationExtendedInfo BaseOperationExtendedInfoImpl + Type string + Values map[string]interface{} +} + +func (s RawOperationExtendedInfoImpl) OperationExtendedInfo() BaseOperationExtendedInfoImpl { + return s.operationExtendedInfo } -func unmarshalOperationExtendedInfoImplementation(input []byte) (OperationExtendedInfo, error) { +func UnmarshalOperationExtendedInfoImplementation(input []byte) (OperationExtendedInfo, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalOperationExtendedInfoImplementation(input []byte) (OperationExtend return nil, fmt.Errorf("unmarshaling OperationExtendedInfo into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "OperationJobExtendedInfo") { @@ -44,10 +61,15 @@ func unmarshalOperationExtendedInfoImplementation(input []byte) (OperationExtend return out, nil } - out := RawOperationExtendedInfoImpl{ - Type: value, - Values: temp, + var parent BaseOperationExtendedInfoImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOperationExtendedInfoImpl: %+v", err) } - return out, nil + + return RawOperationExtendedInfoImpl{ + operationExtendedInfo: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go index 59cd3f9ddf64..c0ead370cf2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go @@ -14,6 +14,14 @@ type OperationJobExtendedInfo struct { JobId *string `json:"jobId,omitempty"` // Fields inherited from OperationExtendedInfo + + ObjectType string `json:"objectType"` +} + +func (s OperationJobExtendedInfo) OperationExtendedInfo() BaseOperationExtendedInfoImpl { + return BaseOperationExtendedInfoImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = OperationJobExtendedInfo{} @@ -27,9 +35,10 @@ func (s OperationJobExtendedInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling OperationJobExtendedInfo: %+v", err) } + decoded["objectType"] = "OperationJobExtendedInfo" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go index ba00f440ca81..482f3acf639c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go @@ -30,7 +30,7 @@ func (s *PolicyParameters) UnmarshalJSON(bytes []byte) error { output := make([]BackupDatasourceParameters, 0) for i, val := range listTemp { - impl, err := unmarshalBackupDatasourceParametersImplementation(val) + impl, err := UnmarshalBackupDatasourceParametersImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'BackupDatasourceParametersList' for 'PolicyParameters': %+v", i, err) } @@ -47,7 +47,7 @@ func (s *PolicyParameters) UnmarshalJSON(bytes []byte) error { output := make([]DataStoreParameters, 0) for i, val := range listTemp { - impl, err := unmarshalDataStoreParametersImplementation(val) + impl, err := UnmarshalDataStoreParametersImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DataStoreParametersList' for 'PolicyParameters': %+v", i, err) } @@ -55,5 +55,6 @@ func (s *PolicyParameters) UnmarshalJSON(bytes []byte) error { } s.DataStoreParametersList = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go index c7df0c52c2b9..365518530ec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go @@ -15,6 +15,14 @@ type RangeBasedItemLevelRestoreCriteria struct { MinMatchingValue *string `json:"minMatchingValue,omitempty"` // Fields inherited from ItemLevelRestoreCriteria + + ObjectType string `json:"objectType"` +} + +func (s RangeBasedItemLevelRestoreCriteria) ItemLevelRestoreCriteria() BaseItemLevelRestoreCriteriaImpl { + return BaseItemLevelRestoreCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = RangeBasedItemLevelRestoreCriteria{} @@ -28,9 +36,10 @@ func (s RangeBasedItemLevelRestoreCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RangeBasedItemLevelRestoreCriteria: %+v", err) } + decoded["objectType"] = "RangeBasedItemLevelRestoreCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go index 04fe194025c8..b5cf67220122 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go @@ -14,10 +14,20 @@ type RestoreFilesTargetInfo struct { TargetDetails TargetDetails `json:"targetDetails"` // Fields inherited from RestoreTargetInfoBase + + ObjectType string `json:"objectType"` RecoveryOption RecoveryOption `json:"recoveryOption"` RestoreLocation *string `json:"restoreLocation,omitempty"` } +func (s RestoreFilesTargetInfo) RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl { + return BaseRestoreTargetInfoBaseImpl{ + ObjectType: s.ObjectType, + RecoveryOption: s.RecoveryOption, + RestoreLocation: s.RestoreLocation, + } +} + var _ json.Marshaler = RestoreFilesTargetInfo{} func (s RestoreFilesTargetInfo) MarshalJSON() ([]byte, error) { @@ -29,9 +39,10 @@ func (s RestoreFilesTargetInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RestoreFilesTargetInfo: %+v", err) } + decoded["objectType"] = "RestoreFilesTargetInfo" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go index 23f512f2c31b..c2c0ef5a915a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go @@ -16,10 +16,20 @@ type RestoreTargetInfo struct { DatasourceSetInfo *DatasourceSet `json:"datasourceSetInfo,omitempty"` // Fields inherited from RestoreTargetInfoBase + + ObjectType string `json:"objectType"` RecoveryOption RecoveryOption `json:"recoveryOption"` RestoreLocation *string `json:"restoreLocation,omitempty"` } +func (s RestoreTargetInfo) RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl { + return BaseRestoreTargetInfoBaseImpl{ + ObjectType: s.ObjectType, + RecoveryOption: s.RecoveryOption, + RestoreLocation: s.RestoreLocation, + } +} + var _ json.Marshaler = RestoreTargetInfo{} func (s RestoreTargetInfo) MarshalJSON() ([]byte, error) { @@ -31,9 +41,10 @@ func (s RestoreTargetInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RestoreTargetInfo: %+v", err) } + decoded["objectType"] = "RestoreTargetInfo" encoded, err = json.Marshal(decoded) @@ -47,14 +58,20 @@ func (s RestoreTargetInfo) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &RestoreTargetInfo{} func (s *RestoreTargetInfo) UnmarshalJSON(bytes []byte) error { - type alias RestoreTargetInfo - var decoded alias + var decoded struct { + DatasourceInfo Datasource `json:"datasourceInfo"` + DatasourceSetInfo *DatasourceSet `json:"datasourceSetInfo,omitempty"` + ObjectType string `json:"objectType"` + RecoveryOption RecoveryOption `json:"recoveryOption"` + RestoreLocation *string `json:"restoreLocation,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RestoreTargetInfo: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DatasourceInfo = decoded.DatasourceInfo s.DatasourceSetInfo = decoded.DatasourceSetInfo + s.ObjectType = decoded.ObjectType s.RecoveryOption = decoded.RecoveryOption s.RestoreLocation = decoded.RestoreLocation @@ -64,11 +81,12 @@ func (s *RestoreTargetInfo) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasourceAuthCredentials"]; ok { - impl, err := unmarshalAuthCredentialsImplementation(v) + impl, err := UnmarshalAuthCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DatasourceAuthCredentials' for 'RestoreTargetInfo': %+v", err) } s.DatasourceAuthCredentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go index ce31702dc783..0c38bd0a7233 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RestoreTargetInfoBase interface { + RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl } -// RawRestoreTargetInfoBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RestoreTargetInfoBase = BaseRestoreTargetInfoBaseImpl{} + +type BaseRestoreTargetInfoBaseImpl struct { + ObjectType string `json:"objectType"` + RecoveryOption RecoveryOption `json:"recoveryOption"` + RestoreLocation *string `json:"restoreLocation,omitempty"` +} + +func (s BaseRestoreTargetInfoBaseImpl) RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl { + return s +} + +var _ RestoreTargetInfoBase = RawRestoreTargetInfoBaseImpl{} + +// RawRestoreTargetInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRestoreTargetInfoBaseImpl struct { - Type string - Values map[string]interface{} + restoreTargetInfoBase BaseRestoreTargetInfoBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawRestoreTargetInfoBaseImpl) RestoreTargetInfoBase() BaseRestoreTargetInfoBaseImpl { + return s.restoreTargetInfoBase } -func unmarshalRestoreTargetInfoBaseImplementation(input []byte) (RestoreTargetInfoBase, error) { +func UnmarshalRestoreTargetInfoBaseImplementation(input []byte) (RestoreTargetInfoBase, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalRestoreTargetInfoBaseImplementation(input []byte) (RestoreTargetIn return nil, fmt.Errorf("unmarshaling RestoreTargetInfoBase into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ItemLevelRestoreTargetInfo") { @@ -60,10 +79,15 @@ func unmarshalRestoreTargetInfoBaseImplementation(input []byte) (RestoreTargetIn return out, nil } - out := RawRestoreTargetInfoBaseImpl{ - Type: value, - Values: temp, + var parent BaseRestoreTargetInfoBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRestoreTargetInfoBaseImpl: %+v", err) } - return out, nil + + return RawRestoreTargetInfoBaseImpl{ + restoreTargetInfoBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go index 76f2af98598a..859bcef3249a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go @@ -14,6 +14,14 @@ type SecretStoreBasedAuthCredentials struct { SecretStoreResource *SecretStoreResource `json:"secretStoreResource,omitempty"` // Fields inherited from AuthCredentials + + ObjectType string `json:"objectType"` +} + +func (s SecretStoreBasedAuthCredentials) AuthCredentials() BaseAuthCredentialsImpl { + return BaseAuthCredentialsImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = SecretStoreBasedAuthCredentials{} @@ -27,9 +35,10 @@ func (s SecretStoreBasedAuthCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SecretStoreBasedAuthCredentials: %+v", err) } + decoded["objectType"] = "SecretStoreBasedAuthCredentials" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go index 64c70ca0be32..96030bc1a541 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go @@ -16,10 +16,11 @@ type ValidateCrossRegionRestoreRequestObject struct { var _ json.Unmarshaler = &ValidateCrossRegionRestoreRequestObject{} func (s *ValidateCrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) error { - type alias ValidateCrossRegionRestoreRequestObject - var decoded alias + var decoded struct { + CrossRegionRestoreDetails CrossRegionRestoreDetails `json:"crossRegionRestoreDetails"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ValidateCrossRegionRestoreRequestObject: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.CrossRegionRestoreDetails = decoded.CrossRegionRestoreDetails @@ -30,11 +31,12 @@ func (s *ValidateCrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) er } if v, ok := temp["restoreRequestObject"]; ok { - impl, err := unmarshalAzureBackupRestoreRequestImplementation(v) + impl, err := UnmarshalAzureBackupRestoreRequestImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreRequestObject' for 'ValidateCrossRegionRestoreRequestObject': %+v", err) } s.RestoreRequestObject = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go index e59fe83da414..5a475fbdb0dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go @@ -22,11 +22,12 @@ func (s *ValidateRestoreRequestObject) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["restoreRequestObject"]; ok { - impl, err := unmarshalAzureBackupRestoreRequestImplementation(v) + impl, err := UnmarshalAzureBackupRestoreRequestImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RestoreRequestObject' for 'ValidateRestoreRequestObject': %+v", err) } s.RestoreRequestObject = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go index eada6fa8b12f..af21c5d16cec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go @@ -1,12 +1,10 @@ package backupinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupinstances/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md index 61af8f9f8330..f6b8cbad2c64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies` Documentation -The `backuppolicies` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-01`). +The `backuppolicies` SDK allows for interaction with Azure Resource Manager `dataprotection` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupPolicyValue") +id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupPolicyName") payload := backuppolicies.BaseBackupPolicyResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupPolicyValue") +id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupPolicyName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupPolicyValue") +id := backuppolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "backupPolicyName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backuppolicies.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backuppolicies.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go index 7867fb217ccb..a888bef72635 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go @@ -15,7 +15,7 @@ type BackupPoliciesClient struct { } func NewBackupPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backuppolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backuppolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackupPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go index 567587f55bde..2eaa2e598a3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go @@ -44,7 +44,7 @@ func ParseBackupPolicyID(input string) (*BackupPolicyId, error) { } id := BackupPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupPolicyIDInsensitively(input string) (*BackupPolicyId, error) { } id := BackupPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), - resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultValue"), + resourceids.UserSpecifiedSegment("backupVaultName", "vaultName"), resourceids.StaticSegment("staticBackupPolicies", "backupPolicies", "backupPolicies"), - resourceids.UserSpecifiedSegment("backupPolicyName", "backupPolicyValue"), + resourceids.UserSpecifiedSegment("backupPolicyName", "backupPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go index 630fbdb1a157..96cff8841169 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go @@ -42,7 +42,7 @@ func ParseBackupVaultID(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BackupVaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), - resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultValue"), + resourceids.UserSpecifiedSegment("backupVaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go index fbea2f083fb0..04342e7a5d09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go @@ -49,7 +49,6 @@ func (c BackupPoliciesClient) CreateOrUpdate(ctx context.Context, id BackupPolic var model BaseBackupPolicyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go index 2275adb94b50..1dbecf800518 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go @@ -45,7 +45,6 @@ func (c BackupPoliciesClient) Get(ctx context.Context, id BackupPolicyId) (resul var model BaseBackupPolicyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go index a9aaf47dcb73..fe6ce6d34325 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go @@ -13,7 +13,16 @@ var _ DeleteOption = AbsoluteDeleteOption{} type AbsoluteDeleteOption struct { // Fields inherited from DeleteOption - Duration string `json:"duration"` + + Duration string `json:"duration"` + ObjectType string `json:"objectType"` +} + +func (s AbsoluteDeleteOption) DeleteOption() BaseDeleteOptionImpl { + return BaseDeleteOptionImpl{ + Duration: s.Duration, + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AbsoluteDeleteOption{} @@ -27,9 +36,10 @@ func (s AbsoluteDeleteOption) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AbsoluteDeleteOption: %+v", err) } + decoded["objectType"] = "AbsoluteDeleteOption" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go index 5505a40b8a6c..30cb106ddf1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go @@ -14,6 +14,14 @@ type AdhocBasedTriggerContext struct { TaggingCriteria AdhocBasedTaggingCriteria `json:"taggingCriteria"` // Fields inherited from TriggerContext + + ObjectType string `json:"objectType"` +} + +func (s AdhocBasedTriggerContext) TriggerContext() BaseTriggerContextImpl { + return BaseTriggerContextImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AdhocBasedTriggerContext{} @@ -27,9 +35,10 @@ func (s AdhocBasedTriggerContext) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AdhocBasedTriggerContext: %+v", err) } + decoded["objectType"] = "AdhocBasedTriggerContext" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go index 024401c3d867..6b98b1df1f37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go @@ -14,6 +14,14 @@ type AzureBackupParams struct { BackupType string `json:"backupType"` // Fields inherited from BackupParameters + + ObjectType string `json:"objectType"` +} + +func (s AzureBackupParams) BackupParameters() BaseBackupParametersImpl { + return BaseBackupParametersImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AzureBackupParams{} @@ -27,9 +35,10 @@ func (s AzureBackupParams) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupParams: %+v", err) } + decoded["objectType"] = "AzureBackupParams" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go index 884536bf720b..f0b3fbd29409 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go @@ -16,7 +16,16 @@ type AzureBackupRule struct { Trigger TriggerContext `json:"trigger"` // Fields inherited from BasePolicyRule - Name string `json:"name"` + + Name string `json:"name"` + ObjectType string `json:"objectType"` +} + +func (s AzureBackupRule) BasePolicyRule() BaseBasePolicyRuleImpl { + return BaseBasePolicyRuleImpl{ + Name: s.Name, + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AzureBackupRule{} @@ -30,9 +39,10 @@ func (s AzureBackupRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupRule: %+v", err) } + decoded["objectType"] = "AzureBackupRule" encoded, err = json.Marshal(decoded) @@ -46,14 +56,18 @@ func (s AzureBackupRule) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureBackupRule{} func (s *AzureBackupRule) UnmarshalJSON(bytes []byte) error { - type alias AzureBackupRule - var decoded alias + var decoded struct { + DataStore DataStoreInfoBase `json:"dataStore"` + Name string `json:"name"` + ObjectType string `json:"objectType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureBackupRule: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DataStore = decoded.DataStore s.Name = decoded.Name + s.ObjectType = decoded.ObjectType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -61,7 +75,7 @@ func (s *AzureBackupRule) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["backupParameters"]; ok { - impl, err := unmarshalBackupParametersImplementation(v) + impl, err := UnmarshalBackupParametersImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'BackupParameters' for 'AzureBackupRule': %+v", err) } @@ -69,11 +83,12 @@ func (s *AzureBackupRule) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["trigger"]; ok { - impl, err := unmarshalTriggerContextImplementation(v) + impl, err := UnmarshalTriggerContextImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Trigger' for 'AzureBackupRule': %+v", err) } s.Trigger = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go index 1362ef8628d9..f6c4c671bcc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go @@ -15,7 +15,16 @@ type AzureRetentionRule struct { Lifecycles []SourceLifeCycle `json:"lifecycles"` // Fields inherited from BasePolicyRule - Name string `json:"name"` + + Name string `json:"name"` + ObjectType string `json:"objectType"` +} + +func (s AzureRetentionRule) BasePolicyRule() BaseBasePolicyRuleImpl { + return BaseBasePolicyRuleImpl{ + Name: s.Name, + ObjectType: s.ObjectType, + } } var _ json.Marshaler = AzureRetentionRule{} @@ -29,9 +38,10 @@ func (s AzureRetentionRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureRetentionRule: %+v", err) } + decoded["objectType"] = "AzureRetentionRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go index ae5e3acf7f99..1a9652631594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupCriteria interface { + BackupCriteria() BaseBackupCriteriaImpl } -// RawBackupCriteriaImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BackupCriteria = BaseBackupCriteriaImpl{} + +type BaseBackupCriteriaImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseBackupCriteriaImpl) BackupCriteria() BaseBackupCriteriaImpl { + return s +} + +var _ BackupCriteria = RawBackupCriteriaImpl{} + +// RawBackupCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBackupCriteriaImpl struct { - Type string - Values map[string]interface{} + backupCriteria BaseBackupCriteriaImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupCriteriaImpl) BackupCriteria() BaseBackupCriteriaImpl { + return s.backupCriteria } -func unmarshalBackupCriteriaImplementation(input []byte) (BackupCriteria, error) { +func UnmarshalBackupCriteriaImplementation(input []byte) (BackupCriteria, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalBackupCriteriaImplementation(input []byte) (BackupCriteria, error) return nil, fmt.Errorf("unmarshaling BackupCriteria into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ScheduleBasedBackupCriteria") { @@ -44,10 +61,15 @@ func unmarshalBackupCriteriaImplementation(input []byte) (BackupCriteria, error) return out, nil } - out := RawBackupCriteriaImpl{ - Type: value, - Values: temp, + var parent BaseBackupCriteriaImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupCriteriaImpl: %+v", err) } - return out, nil + + return RawBackupCriteriaImpl{ + backupCriteria: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go index 2cd46e5bbe7d..5df2e7f42c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupParameters interface { + BackupParameters() BaseBackupParametersImpl } -// RawBackupParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BackupParameters = BaseBackupParametersImpl{} + +type BaseBackupParametersImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseBackupParametersImpl) BackupParameters() BaseBackupParametersImpl { + return s +} + +var _ BackupParameters = RawBackupParametersImpl{} + +// RawBackupParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBackupParametersImpl struct { - Type string - Values map[string]interface{} + backupParameters BaseBackupParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawBackupParametersImpl) BackupParameters() BaseBackupParametersImpl { + return s.backupParameters } -func unmarshalBackupParametersImplementation(input []byte) (BackupParameters, error) { +func UnmarshalBackupParametersImplementation(input []byte) (BackupParameters, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalBackupParametersImplementation(input []byte) (BackupParameters, er return nil, fmt.Errorf("unmarshaling BackupParameters into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureBackupParams") { @@ -44,10 +61,15 @@ func unmarshalBackupParametersImplementation(input []byte) (BackupParameters, er return out, nil } - out := RawBackupParametersImpl{ - Type: value, - Values: temp, + var parent BaseBackupParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBackupParametersImpl: %+v", err) } - return out, nil + + return RawBackupParametersImpl{ + backupParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go index 5b770c9a7339..ef0baa7b6ecb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go @@ -14,7 +14,16 @@ type BackupPolicy struct { PolicyRules []BasePolicyRule `json:"policyRules"` // Fields inherited from BaseBackupPolicy + DatasourceTypes []string `json:"datasourceTypes"` + ObjectType string `json:"objectType"` +} + +func (s BackupPolicy) BaseBackupPolicy() BaseBaseBackupPolicyImpl { + return BaseBaseBackupPolicyImpl{ + DatasourceTypes: s.DatasourceTypes, + ObjectType: s.ObjectType, + } } var _ json.Marshaler = BackupPolicy{} @@ -28,9 +37,10 @@ func (s BackupPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BackupPolicy: %+v", err) } + decoded["objectType"] = "BackupPolicy" encoded, err = json.Marshal(decoded) @@ -44,13 +54,16 @@ func (s BackupPolicy) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &BackupPolicy{} func (s *BackupPolicy) UnmarshalJSON(bytes []byte) error { - type alias BackupPolicy - var decoded alias + var decoded struct { + DatasourceTypes []string `json:"datasourceTypes"` + ObjectType string `json:"objectType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into BackupPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DatasourceTypes = decoded.DatasourceTypes + s.ObjectType = decoded.ObjectType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +78,7 @@ func (s *BackupPolicy) UnmarshalJSON(bytes []byte) error { output := make([]BasePolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalBasePolicyRuleImplementation(val) + impl, err := UnmarshalBasePolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'PolicyRules' for 'BackupPolicy': %+v", i, err) } @@ -73,5 +86,6 @@ func (s *BackupPolicy) UnmarshalJSON(bytes []byte) error { } s.PolicyRules = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go index 5da7096ec0c8..a2e6ff5b9d5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BaseBackupPolicy interface { + BaseBackupPolicy() BaseBaseBackupPolicyImpl } -// RawBaseBackupPolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BaseBackupPolicy = BaseBaseBackupPolicyImpl{} + +type BaseBaseBackupPolicyImpl struct { + DatasourceTypes []string `json:"datasourceTypes"` + ObjectType string `json:"objectType"` +} + +func (s BaseBaseBackupPolicyImpl) BaseBackupPolicy() BaseBaseBackupPolicyImpl { + return s +} + +var _ BaseBackupPolicy = RawBaseBackupPolicyImpl{} + +// RawBaseBackupPolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBaseBackupPolicyImpl struct { - Type string - Values map[string]interface{} + baseBackupPolicy BaseBaseBackupPolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawBaseBackupPolicyImpl) BaseBackupPolicy() BaseBaseBackupPolicyImpl { + return s.baseBackupPolicy } -func unmarshalBaseBackupPolicyImplementation(input []byte) (BaseBackupPolicy, error) { +func UnmarshalBaseBackupPolicyImplementation(input []byte) (BaseBackupPolicy, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalBaseBackupPolicyImplementation(input []byte) (BaseBackupPolicy, er return nil, fmt.Errorf("unmarshaling BaseBackupPolicy into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BackupPolicy") { @@ -44,10 +62,15 @@ func unmarshalBaseBackupPolicyImplementation(input []byte) (BaseBackupPolicy, er return out, nil } - out := RawBaseBackupPolicyImpl{ - Type: value, - Values: temp, + var parent BaseBaseBackupPolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBaseBackupPolicyImpl: %+v", err) } - return out, nil + + return RawBaseBackupPolicyImpl{ + baseBackupPolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go index dbc62cc61030..670d83000458 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go @@ -21,10 +21,14 @@ type BaseBackupPolicyResource struct { var _ json.Unmarshaler = &BaseBackupPolicyResource{} func (s *BaseBackupPolicyResource) UnmarshalJSON(bytes []byte) error { - type alias BaseBackupPolicyResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into BaseBackupPolicyResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *BaseBackupPolicyResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalBaseBackupPolicyImplementation(v) + impl, err := UnmarshalBaseBackupPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'BaseBackupPolicyResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go index 2434dc31521d..c448a13228e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BasePolicyRule interface { + BasePolicyRule() BaseBasePolicyRuleImpl } -// RawBasePolicyRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BasePolicyRule = BaseBasePolicyRuleImpl{} + +type BaseBasePolicyRuleImpl struct { + Name string `json:"name"` + ObjectType string `json:"objectType"` +} + +func (s BaseBasePolicyRuleImpl) BasePolicyRule() BaseBasePolicyRuleImpl { + return s +} + +var _ BasePolicyRule = RawBasePolicyRuleImpl{} + +// RawBasePolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBasePolicyRuleImpl struct { - Type string - Values map[string]interface{} + basePolicyRule BaseBasePolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawBasePolicyRuleImpl) BasePolicyRule() BaseBasePolicyRuleImpl { + return s.basePolicyRule } -func unmarshalBasePolicyRuleImplementation(input []byte) (BasePolicyRule, error) { +func UnmarshalBasePolicyRuleImplementation(input []byte) (BasePolicyRule, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalBasePolicyRuleImplementation(input []byte) (BasePolicyRule, error) return nil, fmt.Errorf("unmarshaling BasePolicyRule into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureBackupRule") { @@ -52,10 +70,15 @@ func unmarshalBasePolicyRuleImplementation(input []byte) (BasePolicyRule, error) return out, nil } - out := RawBasePolicyRuleImpl{ - Type: value, - Values: temp, + var parent BaseBasePolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBasePolicyRuleImpl: %+v", err) } - return out, nil + + return RawBasePolicyRuleImpl{ + basePolicyRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go index 38c92a43d50f..de3ff29737c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go @@ -13,6 +13,14 @@ var _ CopyOption = CopyOnExpiryOption{} type CopyOnExpiryOption struct { // Fields inherited from CopyOption + + ObjectType string `json:"objectType"` +} + +func (s CopyOnExpiryOption) CopyOption() BaseCopyOptionImpl { + return BaseCopyOptionImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = CopyOnExpiryOption{} @@ -26,9 +34,10 @@ func (s CopyOnExpiryOption) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CopyOnExpiryOption: %+v", err) } + decoded["objectType"] = "CopyOnExpiryOption" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go index 8015dcb6bfd9..b8e76972b852 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type CopyOption interface { + CopyOption() BaseCopyOptionImpl } -// RawCopyOptionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ CopyOption = BaseCopyOptionImpl{} + +type BaseCopyOptionImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseCopyOptionImpl) CopyOption() BaseCopyOptionImpl { + return s +} + +var _ CopyOption = RawCopyOptionImpl{} + +// RawCopyOptionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawCopyOptionImpl struct { - Type string - Values map[string]interface{} + copyOption BaseCopyOptionImpl + Type string + Values map[string]interface{} +} + +func (s RawCopyOptionImpl) CopyOption() BaseCopyOptionImpl { + return s.copyOption } -func unmarshalCopyOptionImplementation(input []byte) (CopyOption, error) { +func UnmarshalCopyOptionImplementation(input []byte) (CopyOption, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalCopyOptionImplementation(input []byte) (CopyOption, error) { return nil, fmt.Errorf("unmarshaling CopyOption into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "CopyOnExpiryOption") { @@ -60,10 +77,15 @@ func unmarshalCopyOptionImplementation(input []byte) (CopyOption, error) { return out, nil } - out := RawCopyOptionImpl{ - Type: value, - Values: temp, + var parent BaseCopyOptionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseCopyOptionImpl: %+v", err) } - return out, nil + + return RawCopyOptionImpl{ + copyOption: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go index f450054e89a6..e23a6200cb38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go @@ -14,6 +14,14 @@ type CustomCopyOption struct { Duration *string `json:"duration,omitempty"` // Fields inherited from CopyOption + + ObjectType string `json:"objectType"` +} + +func (s CustomCopyOption) CopyOption() BaseCopyOptionImpl { + return BaseCopyOptionImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = CustomCopyOption{} @@ -27,9 +35,10 @@ func (s CustomCopyOption) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CustomCopyOption: %+v", err) } + decoded["objectType"] = "CustomCopyOption" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go index d8ac5dc7882f..26625d33900e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeleteOption interface { + DeleteOption() BaseDeleteOptionImpl } -// RawDeleteOptionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DeleteOption = BaseDeleteOptionImpl{} + +type BaseDeleteOptionImpl struct { + Duration string `json:"duration"` + ObjectType string `json:"objectType"` +} + +func (s BaseDeleteOptionImpl) DeleteOption() BaseDeleteOptionImpl { + return s +} + +var _ DeleteOption = RawDeleteOptionImpl{} + +// RawDeleteOptionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDeleteOptionImpl struct { - Type string - Values map[string]interface{} + deleteOption BaseDeleteOptionImpl + Type string + Values map[string]interface{} +} + +func (s RawDeleteOptionImpl) DeleteOption() BaseDeleteOptionImpl { + return s.deleteOption } -func unmarshalDeleteOptionImplementation(input []byte) (DeleteOption, error) { +func UnmarshalDeleteOptionImplementation(input []byte) (DeleteOption, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalDeleteOptionImplementation(input []byte) (DeleteOption, error) { return nil, fmt.Errorf("unmarshaling DeleteOption into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AbsoluteDeleteOption") { @@ -44,10 +62,15 @@ func unmarshalDeleteOptionImplementation(input []byte) (DeleteOption, error) { return out, nil } - out := RawDeleteOptionImpl{ - Type: value, - Values: temp, + var parent BaseDeleteOptionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDeleteOptionImpl: %+v", err) } - return out, nil + + return RawDeleteOptionImpl{ + deleteOption: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go index a8e54686cc90..8be58faec52b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go @@ -13,6 +13,14 @@ var _ CopyOption = ImmediateCopyOption{} type ImmediateCopyOption struct { // Fields inherited from CopyOption + + ObjectType string `json:"objectType"` +} + +func (s ImmediateCopyOption) CopyOption() BaseCopyOptionImpl { + return BaseCopyOptionImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = ImmediateCopyOption{} @@ -26,9 +34,10 @@ func (s ImmediateCopyOption) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ImmediateCopyOption: %+v", err) } + decoded["objectType"] = "ImmediateCopyOption" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go index 6e2c614f630d..69188ba49622 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go @@ -19,6 +19,14 @@ type ScheduleBasedBackupCriteria struct { WeeksOfTheMonth *[]WeekNumber `json:"weeksOfTheMonth,omitempty"` // Fields inherited from BackupCriteria + + ObjectType string `json:"objectType"` +} + +func (s ScheduleBasedBackupCriteria) BackupCriteria() BaseBackupCriteriaImpl { + return BaseBackupCriteriaImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = ScheduleBasedBackupCriteria{} @@ -32,9 +40,10 @@ func (s ScheduleBasedBackupCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScheduleBasedBackupCriteria: %+v", err) } + decoded["objectType"] = "ScheduleBasedBackupCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go index c7f96a85c130..aee5719cd5cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go @@ -15,6 +15,14 @@ type ScheduleBasedTriggerContext struct { TaggingCriteria []TaggingCriteria `json:"taggingCriteria"` // Fields inherited from TriggerContext + + ObjectType string `json:"objectType"` +} + +func (s ScheduleBasedTriggerContext) TriggerContext() BaseTriggerContextImpl { + return BaseTriggerContextImpl{ + ObjectType: s.ObjectType, + } } var _ json.Marshaler = ScheduleBasedTriggerContext{} @@ -28,9 +36,10 @@ func (s ScheduleBasedTriggerContext) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScheduleBasedTriggerContext: %+v", err) } + decoded["objectType"] = "ScheduleBasedTriggerContext" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go index 7538681c1b23..ca6ba42dcc6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go @@ -17,10 +17,12 @@ type SourceLifeCycle struct { var _ json.Unmarshaler = &SourceLifeCycle{} func (s *SourceLifeCycle) UnmarshalJSON(bytes []byte) error { - type alias SourceLifeCycle - var decoded alias + var decoded struct { + SourceDataStore DataStoreInfoBase `json:"sourceDataStore"` + TargetDataStoreCopySettings *[]TargetCopySetting `json:"targetDataStoreCopySettings,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SourceLifeCycle: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.SourceDataStore = decoded.SourceDataStore @@ -32,11 +34,12 @@ func (s *SourceLifeCycle) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["deleteAfter"]; ok { - impl, err := unmarshalDeleteOptionImplementation(v) + impl, err := UnmarshalDeleteOptionImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DeleteAfter' for 'SourceLifeCycle': %+v", err) } s.DeleteAfter = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go index 71c094c4d324..443406895ee4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go @@ -18,10 +18,13 @@ type TaggingCriteria struct { var _ json.Unmarshaler = &TaggingCriteria{} func (s *TaggingCriteria) UnmarshalJSON(bytes []byte) error { - type alias TaggingCriteria - var decoded alias + var decoded struct { + IsDefault bool `json:"isDefault"` + TagInfo RetentionTag `json:"tagInfo"` + TaggingPriority int64 `json:"taggingPriority"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TaggingCriteria: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.IsDefault = decoded.IsDefault @@ -41,7 +44,7 @@ func (s *TaggingCriteria) UnmarshalJSON(bytes []byte) error { output := make([]BackupCriteria, 0) for i, val := range listTemp { - impl, err := unmarshalBackupCriteriaImplementation(val) + impl, err := UnmarshalBackupCriteriaImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Criteria' for 'TaggingCriteria': %+v", i, err) } @@ -49,5 +52,6 @@ func (s *TaggingCriteria) UnmarshalJSON(bytes []byte) error { } s.Criteria = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go index 2c3e72d496e4..4cdf638ee093 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go @@ -16,10 +16,11 @@ type TargetCopySetting struct { var _ json.Unmarshaler = &TargetCopySetting{} func (s *TargetCopySetting) UnmarshalJSON(bytes []byte) error { - type alias TargetCopySetting - var decoded alias + var decoded struct { + DataStore DataStoreInfoBase `json:"dataStore"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TargetCopySetting: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DataStore = decoded.DataStore @@ -30,11 +31,12 @@ func (s *TargetCopySetting) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["copyAfter"]; ok { - impl, err := unmarshalCopyOptionImplementation(v) + impl, err := UnmarshalCopyOptionImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CopyAfter' for 'TargetCopySetting': %+v", err) } s.CopyAfter = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go index 866643b9b212..b3ed53a64402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TriggerContext interface { + TriggerContext() BaseTriggerContextImpl } -// RawTriggerContextImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TriggerContext = BaseTriggerContextImpl{} + +type BaseTriggerContextImpl struct { + ObjectType string `json:"objectType"` +} + +func (s BaseTriggerContextImpl) TriggerContext() BaseTriggerContextImpl { + return s +} + +var _ TriggerContext = RawTriggerContextImpl{} + +// RawTriggerContextImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTriggerContextImpl struct { - Type string - Values map[string]interface{} + triggerContext BaseTriggerContextImpl + Type string + Values map[string]interface{} +} + +func (s RawTriggerContextImpl) TriggerContext() BaseTriggerContextImpl { + return s.triggerContext } -func unmarshalTriggerContextImplementation(input []byte) (TriggerContext, error) { +func UnmarshalTriggerContextImplementation(input []byte) (TriggerContext, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalTriggerContextImplementation(input []byte) (TriggerContext, error) return nil, fmt.Errorf("unmarshaling TriggerContext into map[string]interface: %+v", err) } - value, ok := temp["objectType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["objectType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AdhocBasedTriggerContext") { @@ -52,10 +69,15 @@ func unmarshalTriggerContextImplementation(input []byte) (TriggerContext, error) return out, nil } - out := RawTriggerContextImpl{ - Type: value, - Values: temp, + var parent BaseTriggerContextImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTriggerContextImpl: %+v", err) } - return out, nil + + return RawTriggerContextImpl{ + triggerContext: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go index 30df912a279d..27e2eac52c01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go @@ -1,12 +1,10 @@ package backuppolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backuppolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backuppolicies/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md index 7e3162863e66..f99807069b3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults` Documentation -The `backupvaults` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-01`). +The `backupvaults` SDK allows for interaction with Azure Resource Manager `dataprotection` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupvaults.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := backupvaults.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") payload := backupvaults.CheckNameAvailabilityRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := backupvaults.BackupVaultResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, backupvaults.DefaultCr ```go ctx := context.TODO() -id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Get(ctx, id) if err != nil { @@ -125,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") +id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := backupvaults.PatchResourceRequestInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go index 7a4dd9321700..57d96b431b5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go @@ -15,7 +15,7 @@ type BackupVaultsClient struct { } func NewBackupVaultsClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupVaultsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backupvaults", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backupvaults", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackupVaultsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go index 037dbb924a04..dd0fb392ab40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go @@ -42,7 +42,7 @@ func ParseBackupVaultID(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBackupVaultIDInsensitively(input string) (*BackupVaultId, error) { } id := BackupVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BackupVaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticBackupVaults", "backupVaults", "backupVaults"), - resourceids.UserSpecifiedSegment("backupVaultName", "backupVaultValue"), + resourceids.UserSpecifiedSegment("backupVaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go index 0a99f41369db..1d5b6d546f71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go index 6e006b786d02..de967ac422df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c BackupVaultsClient) CheckNameAvailability(ctx context.Context, id Provid var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go index 345636a7702f..9ac0e63d1c8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go index 5e1ed9d02581..638bcc8f8ceb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go @@ -45,7 +45,6 @@ func (c BackupVaultsClient) Get(ctx context.Context, id BackupVaultId) (result G var model BackupVaultResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go index aa31cfa58d93..1153481cbaef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go index fa80e7e1c215..a1ab9d3c522f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go @@ -1,12 +1,10 @@ package backupvaults -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupvaults/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupvaults/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md index 5e5686808849..1c3d02e212b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards` Documentation -The `resourceguards` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-01`). +The `resourceguards` SDK allows for interaction with Azure Resource Manager `dataprotection` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetBackupSecurityPINRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetBackupSecurityPINRequestsObjectsComplete(ctx, id) @@ -74,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewGetBackupSecurityPINRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "getBackupSecurityPINRequestValue") +id := resourceguards.NewGetBackupSecurityPINRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultBackupSecurityPINRequestsObject(ctx, id) if err != nil { @@ -90,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewDeleteProtectedItemRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "deleteProtectedItemRequestValue") +id := resourceguards.NewDeleteProtectedItemRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultDeleteProtectedItemRequestsObject(ctx, id) if err != nil { @@ -106,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewDeleteResourceGuardProxyRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "deleteResourceGuardProxyRequestValue") +id := resourceguards.NewDeleteResourceGuardProxyRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultDeleteResourceGuardProxyRequestsObject(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewDisableSoftDeleteRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "disableSoftDeleteRequestValue") +id := resourceguards.NewDisableSoftDeleteRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultDisableSoftDeleteRequestsObject(ctx, id) if err != nil { @@ -138,7 +138,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewUpdateProtectedItemRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "updateProtectedItemRequestValue") +id := resourceguards.NewUpdateProtectedItemRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultUpdateProtectedItemRequestsObject(ctx, id) if err != nil { @@ -154,7 +154,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewUpdateProtectionPolicyRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue", "updateProtectionPolicyRequestValue") +id := resourceguards.NewUpdateProtectionPolicyRequestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName", "requestName") read, err := client.GetDefaultUpdateProtectionPolicyRequestsObject(ctx, id) if err != nil { @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetDeleteProtectedItemRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetDeleteProtectedItemRequestsObjectsComplete(ctx, id) @@ -187,7 +187,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetDeleteResourceGuardProxyRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetDeleteResourceGuardProxyRequestsObjectsComplete(ctx, id) @@ -204,7 +204,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetDisableSoftDeleteRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetDisableSoftDeleteRequestsObjectsComplete(ctx, id) @@ -255,7 +255,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetUpdateProtectedItemRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetUpdateProtectedItemRequestsObjectsComplete(ctx, id) @@ -272,7 +272,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") // alternatively `client.GetUpdateProtectionPolicyRequestsObjects(ctx, id)` can be used to do batched pagination items, err := client.GetUpdateProtectionPolicyRequestsObjectsComplete(ctx, id) @@ -289,7 +289,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") payload := resourceguards.PatchResourceGuardInput{ // ... @@ -310,7 +310,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") +id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardsName") payload := resourceguards.ResourceGuardResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go index 2a79980112d7..0f0913402ff7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go @@ -15,7 +15,7 @@ type ResourceGuardsClient struct { } func NewResourceGuardsClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceGuardsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resourceguards", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resourceguards", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceGuardsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go index 797704c5a136..e76d7b7fdac6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go @@ -44,7 +44,7 @@ func ParseDeleteProtectedItemRequestID(input string) (*DeleteProtectedItemReques } id := DeleteProtectedItemRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeleteProtectedItemRequestIDInsensitively(input string) (*DeleteProtec } id := DeleteProtectedItemRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeleteProtectedItemRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticDeleteProtectedItemRequests", "deleteProtectedItemRequests", "deleteProtectedItemRequests"), - resourceids.UserSpecifiedSegment("deleteProtectedItemRequestName", "deleteProtectedItemRequestValue"), + resourceids.UserSpecifiedSegment("deleteProtectedItemRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go index 698fd773b093..75a630a0cb38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go @@ -44,7 +44,7 @@ func ParseDeleteResourceGuardProxyRequestID(input string) (*DeleteResourceGuardP } id := DeleteResourceGuardProxyRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeleteResourceGuardProxyRequestIDInsensitively(input string) (*DeleteR } id := DeleteResourceGuardProxyRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeleteResourceGuardProxyRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticDeleteResourceGuardProxyRequests", "deleteResourceGuardProxyRequests", "deleteResourceGuardProxyRequests"), - resourceids.UserSpecifiedSegment("deleteResourceGuardProxyRequestName", "deleteResourceGuardProxyRequestValue"), + resourceids.UserSpecifiedSegment("deleteResourceGuardProxyRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go index a4a28e2d3256..86b4338ff508 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go @@ -44,7 +44,7 @@ func ParseDisableSoftDeleteRequestID(input string) (*DisableSoftDeleteRequestId, } id := DisableSoftDeleteRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDisableSoftDeleteRequestIDInsensitively(input string) (*DisableSoftDel } id := DisableSoftDeleteRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DisableSoftDeleteRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticDisableSoftDeleteRequests", "disableSoftDeleteRequests", "disableSoftDeleteRequests"), - resourceids.UserSpecifiedSegment("disableSoftDeleteRequestName", "disableSoftDeleteRequestValue"), + resourceids.UserSpecifiedSegment("disableSoftDeleteRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go index 9975ae3fc137..9b5895ab3e27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go @@ -44,7 +44,7 @@ func ParseGetBackupSecurityPINRequestID(input string) (*GetBackupSecurityPINRequ } id := GetBackupSecurityPINRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGetBackupSecurityPINRequestIDInsensitively(input string) (*GetBackupSe } id := GetBackupSecurityPINRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GetBackupSecurityPINRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticGetBackupSecurityPINRequests", "getBackupSecurityPINRequests", "getBackupSecurityPINRequests"), - resourceids.UserSpecifiedSegment("getBackupSecurityPINRequestName", "getBackupSecurityPINRequestValue"), + resourceids.UserSpecifiedSegment("getBackupSecurityPINRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go index db774ade7375..42898691a609 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go @@ -42,7 +42,7 @@ func ParseResourceGuardID(input string) (*ResourceGuardId, error) { } id := ResourceGuardId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseResourceGuardIDInsensitively(input string) (*ResourceGuardId, error) { } id := ResourceGuardId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ResourceGuardId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go index b49508843a61..70552469040a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go @@ -44,7 +44,7 @@ func ParseUpdateProtectedItemRequestID(input string) (*UpdateProtectedItemReques } id := UpdateProtectedItemRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateProtectedItemRequestIDInsensitively(input string) (*UpdateProtec } id := UpdateProtectedItemRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateProtectedItemRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticUpdateProtectedItemRequests", "updateProtectedItemRequests", "updateProtectedItemRequests"), - resourceids.UserSpecifiedSegment("updateProtectedItemRequestName", "updateProtectedItemRequestValue"), + resourceids.UserSpecifiedSegment("updateProtectedItemRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go index d1a6daf9f64e..f41aa366d349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go @@ -44,7 +44,7 @@ func ParseUpdateProtectionPolicyRequestID(input string) (*UpdateProtectionPolicy } id := UpdateProtectionPolicyRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpdateProtectionPolicyRequestIDInsensitively(input string) (*UpdatePro } id := UpdateProtectionPolicyRequestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpdateProtectionPolicyRequestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), resourceids.StaticSegment("staticResourceGuards", "resourceGuards", "resourceGuards"), - resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardValue"), + resourceids.UserSpecifiedSegment("resourceGuardName", "resourceGuardsName"), resourceids.StaticSegment("staticUpdateProtectionPolicyRequests", "updateProtectionPolicyRequests", "updateProtectionPolicyRequests"), - resourceids.UserSpecifiedSegment("updateProtectionPolicyRequestName", "updateProtectionPolicyRequestValue"), + resourceids.UserSpecifiedSegment("updateProtectionPolicyRequestName", "requestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go index e95a3d77f1bb..8c3fae9b3343 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) Get(ctx context.Context, id ResourceGuardId) (resu var model ResourceGuardResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go index 4638718dc469..c4c17baa63e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultBackupSecurityPINRequestsObject(ctx cont var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go index b3a996b55145..01a918c9ed2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultDeleteProtectedItemRequestsObject(ctx co var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go index 82604a5c9edb..94bb22e07d26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultDeleteResourceGuardProxyRequestsObject(c var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go index e618503da42e..cf1270f04a57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultDisableSoftDeleteRequestsObject(ctx cont var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go index 13158cedebe5..22159bc163fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultUpdateProtectedItemRequestsObject(ctx co var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go index ed3cb61d2f08..a2389d2fd932 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go @@ -45,7 +45,6 @@ func (c ResourceGuardsClient) GetDefaultUpdateProtectionPolicyRequestsObject(ctx var model DppBaseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go index 1c4cf4482c62..0f38b0517b3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go @@ -49,7 +49,6 @@ func (c ResourceGuardsClient) Patch(ctx context.Context, id ResourceGuardId, inp var model ResourceGuardResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go index 1f0339e6424b..c71ad58adca8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go @@ -50,7 +50,6 @@ func (c ResourceGuardsClient) Put(ctx context.Context, id ResourceGuardId, input var model ResourceGuardResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go index 501ce9c5d02d..81caf2256b2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go @@ -1,12 +1,10 @@ package resourceguards -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resourceguards/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resourceguards/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/README.md index f7305bf9a877..cda6efc9cc24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account` Documentation -The `account` SDK allows for interaction with the Azure Resource Manager Service `datashare` (API Version `2019-11-01`). +The `account` SDK allows for interaction with Azure Resource Manager `datashare` (API Version `2019-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := account.Account{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := account.AccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/client.go index 4bcb9151fc16..ca8361d93ef6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/client.go @@ -15,7 +15,7 @@ type AccountClient struct { } func NewAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "account", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "account", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccountClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/id_account.go index 2ac7dbcbfe8e..24f20c972d55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_get.go index 6fc12dff8ca1..50b88c8421d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_get.go @@ -45,7 +45,6 @@ func (c AccountClient) Get(ctx context.Context, id AccountId) (result GetOperati var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_update.go index bfeb0bd2daac..dcc8639fead7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/method_update.go @@ -49,7 +49,6 @@ func (c AccountClient) Update(ctx context.Context, id AccountId, input AccountUp var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/version.go index ceae4cb3a055..6ee8856f384f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account/version.go @@ -1,12 +1,10 @@ package account -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/account/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/account/2019-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/README.md index e6d75823f621..3c9f9f7bbe7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset` Documentation -The `dataset` SDK allows for interaction with the Azure Resource Manager Service `datashare` (API Version `2019-11-01`). +The `dataset` SDK allows for interaction with Azure Resource Manager `datashare` (API Version `2019-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "dataSetValue") +id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "dataSetName") payload := dataset.DataSet{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "dataSetValue") +id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "dataSetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "dataSetValue") +id := dataset.NewDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "dataSetName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataset.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := dataset.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") // alternatively `client.ListByShare(ctx, id, dataset.DefaultListByShareOperationOptions())` can be used to do batched pagination items, err := client.ListByShareComplete(ctx, id, dataset.DefaultListByShareOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/client.go index 13f0f3936d4e..de2af2f4bc56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/client.go @@ -15,7 +15,7 @@ type DataSetClient struct { } func NewDataSetClientWithBaseURI(sdkApi sdkEnv.Api) (*DataSetClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dataset", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dataset", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataSetClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_dataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_dataset.go index fa49264829d9..046c5635a2bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_dataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_dataset.go @@ -46,7 +46,7 @@ func ParseDataSetID(input string) (*DataSetId, error) { } id := DataSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDataSetIDInsensitively(input string) (*DataSetId, error) { } id := DataSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DataSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), resourceids.StaticSegment("staticDataSets", "dataSets", "dataSets"), - resourceids.UserSpecifiedSegment("dataSetName", "dataSetValue"), + resourceids.UserSpecifiedSegment("dataSetName", "dataSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_share.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_share.go index 0919ab0c78d3..9fb062d0550a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_share.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/id_share.go @@ -44,7 +44,7 @@ func ParseShareID(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseShareIDInsensitively(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ShareId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_create.go index cd421171a650..166e70c1e1b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_create.go @@ -15,7 +15,7 @@ import ( type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DataSet + Model DataSet } // Create ... @@ -53,11 +53,11 @@ func (c DataSetClient) Create(ctx context.Context, id DataSetId, input DataSet) if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDataSetImplementation(respObj) + model, err := UnmarshalDataSetImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_get.go index 7b38a7291306..196e988a411b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DataSet + Model DataSet } // Get ... @@ -48,11 +48,11 @@ func (c DataSetClient) Get(ctx context.Context, id DataSetId) (result GetOperati if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDataSetImplementation(respObj) + model, err := UnmarshalDataSetImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go index 0cd5cf0bd963..b53d40106bb4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/method_listbyshare.go @@ -41,6 +41,7 @@ func (o ListByShareOperationOptions) ToHeaders() *client.Headers { func (o ListByShareOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -105,7 +106,7 @@ func (c DataSetClient) ListByShare(ctx context.Context, id ShareId, options List temp := make([]DataSet, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalDataSetImplementation(v) + val, err := UnmarshalDataSetImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for DataSet (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1filedataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1filedataset.go index f5e09903ee48..b4f6929b9709 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1filedataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1filedataset.go @@ -14,9 +14,20 @@ type ADLSGen1FileDataSet struct { Properties ADLSGen1FileProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ADLSGen1FileDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ADLSGen1FileDataSet{} @@ -30,9 +41,10 @@ func (s ADLSGen1FileDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ADLSGen1FileDataSet: %+v", err) } + decoded["kind"] = "AdlsGen1File" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1folderdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1folderdataset.go index 6be08cf392a6..ce1910ea5700 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1folderdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen1folderdataset.go @@ -14,9 +14,20 @@ type ADLSGen1FolderDataSet struct { Properties ADLSGen1FolderProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ADLSGen1FolderDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ADLSGen1FolderDataSet{} @@ -30,9 +41,10 @@ func (s ADLSGen1FolderDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ADLSGen1FolderDataSet: %+v", err) } + decoded["kind"] = "AdlsGen1Folder" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filedataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filedataset.go index d51cce78f580..bc79aafe386b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filedataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filedataset.go @@ -14,9 +14,20 @@ type ADLSGen2FileDataSet struct { Properties ADLSGen2FileProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ADLSGen2FileDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ADLSGen2FileDataSet{} @@ -30,9 +41,10 @@ func (s ADLSGen2FileDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ADLSGen2FileDataSet: %+v", err) } + decoded["kind"] = "AdlsGen2File" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filesystemdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filesystemdataset.go index 527d9d38791d..f86d7e2953f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filesystemdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2filesystemdataset.go @@ -14,9 +14,20 @@ type ADLSGen2FileSystemDataSet struct { Properties ADLSGen2FileSystemProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ADLSGen2FileSystemDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ADLSGen2FileSystemDataSet{} @@ -30,9 +41,10 @@ func (s ADLSGen2FileSystemDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ADLSGen2FileSystemDataSet: %+v", err) } + decoded["kind"] = "AdlsGen2FileSystem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2folderdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2folderdataset.go index bbd0eb960d66..772b4bb7a9a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2folderdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_adlsgen2folderdataset.go @@ -14,9 +14,20 @@ type ADLSGen2FolderDataSet struct { Properties ADLSGen2FolderProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ADLSGen2FolderDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ADLSGen2FolderDataSet{} @@ -30,9 +41,10 @@ func (s ADLSGen2FolderDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ADLSGen2FolderDataSet: %+v", err) } + decoded["kind"] = "AdlsGen2Folder" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobcontainerdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobcontainerdataset.go index 1e24d2f28490..bd8ce0d09590 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobcontainerdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobcontainerdataset.go @@ -14,9 +14,20 @@ type BlobContainerDataSet struct { Properties BlobContainerProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BlobContainerDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = BlobContainerDataSet{} @@ -30,9 +41,10 @@ func (s BlobContainerDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobContainerDataSet: %+v", err) } + decoded["kind"] = "Container" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobdataset.go index b26fb8f16aac..585f4eecb229 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobdataset.go @@ -14,9 +14,20 @@ type BlobDataSet struct { Properties BlobProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BlobDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = BlobDataSet{} @@ -30,9 +41,10 @@ func (s BlobDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobDataSet: %+v", err) } + decoded["kind"] = "Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobfolderdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobfolderdataset.go index 4ab5a200c42e..344659d5ba4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobfolderdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_blobfolderdataset.go @@ -14,9 +14,20 @@ type BlobFolderDataSet struct { Properties BlobFolderProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BlobFolderDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = BlobFolderDataSet{} @@ -30,9 +41,10 @@ func (s BlobFolderDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobFolderDataSet: %+v", err) } + decoded["kind"] = "BlobFolder" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_dataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_dataset.go index 1b6be39fc676..71f1f1f3c147 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_dataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_dataset.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DataSet interface { + DataSet() BaseDataSetImpl } -// RawDataSetImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DataSet = BaseDataSetImpl{} + +type BaseDataSetImpl struct { + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseDataSetImpl) DataSet() BaseDataSetImpl { + return s +} + +var _ DataSet = RawDataSetImpl{} + +// RawDataSetImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDataSetImpl struct { - Type string - Values map[string]interface{} + dataSet BaseDataSetImpl + Type string + Values map[string]interface{} +} + +func (s RawDataSetImpl) DataSet() BaseDataSetImpl { + return s.dataSet } -func unmarshalDataSetImplementation(input []byte) (DataSet, error) { +func UnmarshalDataSetImplementation(input []byte) (DataSet, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalDataSetImplementation(input []byte) (DataSet, error) { return nil, fmt.Errorf("unmarshaling DataSet into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AdlsGen1File") { @@ -132,10 +152,15 @@ func unmarshalDataSetImplementation(input []byte) (DataSet, error) { return out, nil } - out := RawDataSetImpl{ - Type: value, - Values: temp, + var parent BaseDataSetImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDataSetImpl: %+v", err) } - return out, nil + + return RawDataSetImpl{ + dataSet: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustoclusterdataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustoclusterdataset.go index 5383c37db97c..bdad95e2c719 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustoclusterdataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustoclusterdataset.go @@ -14,9 +14,20 @@ type KustoClusterDataSet struct { Properties KustoClusterDataSetProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s KustoClusterDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = KustoClusterDataSet{} @@ -30,9 +41,10 @@ func (s KustoClusterDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KustoClusterDataSet: %+v", err) } + decoded["kind"] = "KustoCluster" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustodatabasedataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustodatabasedataset.go index 9d7c00754d71..0a0e85f8d1ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustodatabasedataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_kustodatabasedataset.go @@ -14,9 +14,20 @@ type KustoDatabaseDataSet struct { Properties KustoDatabaseDataSetProperties `json:"properties"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s KustoDatabaseDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = KustoDatabaseDataSet{} @@ -30,9 +41,10 @@ func (s KustoDatabaseDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KustoDatabaseDataSet: %+v", err) } + decoded["kind"] = "KustoDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldbtabledataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldbtabledataset.go index 4dc4e4bbd88c..fb770ffe2628 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldbtabledataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldbtabledataset.go @@ -14,9 +14,20 @@ type SqlDBTableDataSet struct { Properties *SqlDBTableProperties `json:"properties,omitempty"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s SqlDBTableDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = SqlDBTableDataSet{} @@ -30,9 +41,10 @@ func (s SqlDBTableDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SqlDBTableDataSet: %+v", err) } + decoded["kind"] = "SqlDBTable" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldwtabledataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldwtabledataset.go index f9b8a87f5a2f..19c0904a3994 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldwtabledataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/model_sqldwtabledataset.go @@ -14,9 +14,20 @@ type SqlDWTableDataSet struct { Properties *SqlDWTableProperties `json:"properties,omitempty"` // Fields inherited from DataSet - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataSetKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s SqlDWTableDataSet) DataSet() BaseDataSetImpl { + return BaseDataSetImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = SqlDWTableDataSet{} @@ -30,9 +41,10 @@ func (s SqlDWTableDataSet) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SqlDWTableDataSet: %+v", err) } + decoded["kind"] = "SqlDWTable" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/version.go index 63478e818f61..5c3cd1769611 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset/version.go @@ -1,12 +1,10 @@ package dataset -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dataset/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dataset/2019-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/README.md index f7c387a9d423..1dbcca283476 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share` Documentation -The `share` SDK allows for interaction with the Azure Resource Manager Service `datashare` (API Version `2019-11-01`). +The `share` SDK allows for interaction with Azure Resource Manager `datashare` (API Version `2019-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := share.Share{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := share.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := share.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.ListByAccount(ctx, id, share.DefaultListByAccountOperationOptions())` can be used to do batched pagination items, err := client.ListByAccountComplete(ctx, id, share.DefaultListByAccountOperationOptions()) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := share.ShareSynchronization{ // ... @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") // alternatively `client.ListSynchronizations(ctx, id, share.DefaultListSynchronizationsOperationOptions())` can be used to do batched pagination items, err := client.ListSynchronizationsComplete(ctx, id, share.DefaultListSynchronizationsOperationOptions()) @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue") +id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "providerShareSubscriptionId") read, err := client.ProviderShareSubscriptionsGetByShare(ctx, id) if err != nil { @@ -145,7 +145,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := share.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") // alternatively `client.ProviderShareSubscriptionsListByShare(ctx, id)` can be used to do batched pagination items, err := client.ProviderShareSubscriptionsListByShareComplete(ctx, id) @@ -162,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue") +id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "providerShareSubscriptionId") read, err := client.ProviderShareSubscriptionsReinstate(ctx, id) if err != nil { @@ -178,7 +178,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "providerShareSubscriptionIdValue") +id := share.NewProviderShareSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "providerShareSubscriptionId") if err := client.ProviderShareSubscriptionsRevokeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/client.go index 29d6f0ab432d..8e87ccfac37b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/client.go @@ -15,7 +15,7 @@ type ShareClient struct { } func NewShareClientWithBaseURI(sdkApi sdkEnv.Api) (*ShareClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "share", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "share", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ShareClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_account.go index 3d281b45680d..458c324c110a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_providersharesubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_providersharesubscription.go index 6e6e77c0c13d..8e2052e17f61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_providersharesubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_providersharesubscription.go @@ -46,7 +46,7 @@ func ParseProviderShareSubscriptionID(input string) (*ProviderShareSubscriptionI } id := ProviderShareSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseProviderShareSubscriptionIDInsensitively(input string) (*ProviderShare } id := ProviderShareSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ProviderShareSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), resourceids.StaticSegment("staticProviderShareSubscriptions", "providerShareSubscriptions", "providerShareSubscriptions"), - resourceids.UserSpecifiedSegment("providerShareSubscriptionId", "providerShareSubscriptionIdValue"), + resourceids.UserSpecifiedSegment("providerShareSubscriptionId", "providerShareSubscriptionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_share.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_share.go index b61c357df6ee..559f24979f48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_share.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/id_share.go @@ -44,7 +44,7 @@ func ParseShareID(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseShareIDInsensitively(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ShareId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_create.go index dff4fb47af1a..603dd154f87e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_create.go @@ -50,7 +50,6 @@ func (c ShareClient) Create(ctx context.Context, id ShareId, input Share) (resul var model Share result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_get.go index 6d3900d577cb..3a68737185cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_get.go @@ -45,7 +45,6 @@ func (c ShareClient) Get(ctx context.Context, id ShareId) (result GetOperationRe var model Share result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go index 324c3f2a9e0b..6d33b34ce126 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listbyaccount.go @@ -40,6 +40,7 @@ func (o ListByAccountOperationOptions) ToHeaders() *client.Headers { func (o ListByAccountOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go index 256e50f61ba2..59378063ced5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizationdetails.go @@ -40,6 +40,7 @@ func (o ListSynchronizationDetailsOperationOptions) ToHeaders() *client.Headers func (o ListSynchronizationDetailsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go index e58e9b40b43f..64c4ca19d703 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_listsynchronizations.go @@ -40,6 +40,7 @@ func (o ListSynchronizationsOperationOptions) ToHeaders() *client.Headers { func (o ListSynchronizationsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsgetbyshare.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsgetbyshare.go index 0bdc6697402b..468d67be7b41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsgetbyshare.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsgetbyshare.go @@ -45,7 +45,6 @@ func (c ShareClient) ProviderShareSubscriptionsGetByShare(ctx context.Context, i var model ProviderShareSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsreinstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsreinstate.go index 556891ad05e8..6362809e0366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsreinstate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/method_providersharesubscriptionsreinstate.go @@ -46,7 +46,6 @@ func (c ShareClient) ProviderShareSubscriptionsReinstate(ctx context.Context, id var model ProviderShareSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/version.go index 240f56a7a4db..964669d4b2df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share/version.go @@ -1,12 +1,10 @@ package share -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/share/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/share/2019-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/README.md index effbba5d10dc..657685b09983 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting` Documentation -The `synchronizationsetting` SDK allows for interaction with the Azure Resource Manager Service `datashare` (API Version `2019-11-01`). +The `synchronizationsetting` SDK allows for interaction with Azure Resource Manager `datashare` (API Version `2019-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "synchronizationSettingValue") +id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "synchronizationSettingName") payload := synchronizationsetting.SynchronizationSetting{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "synchronizationSettingValue") +id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "synchronizationSettingName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue", "synchronizationSettingValue") +id := synchronizationsetting.NewSynchronizationSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName", "synchronizationSettingName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := synchronizationsetting.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "shareValue") +id := synchronizationsetting.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") // alternatively `client.ListByShare(ctx, id)` can be used to do batched pagination items, err := client.ListByShareComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/client.go index 52826df26a97..58e759162321 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/client.go @@ -15,7 +15,7 @@ type SynchronizationSettingClient struct { } func NewSynchronizationSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*SynchronizationSettingClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "synchronizationsetting", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "synchronizationsetting", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SynchronizationSettingClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_share.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_share.go index 2dc1978f4a58..00dfff2e3e08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_share.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_share.go @@ -44,7 +44,7 @@ func ParseShareID(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseShareIDInsensitively(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ShareId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_synchronizationsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_synchronizationsetting.go index 60a342571121..da8be4b8aa76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_synchronizationsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/id_synchronizationsetting.go @@ -46,7 +46,7 @@ func ParseSynchronizationSettingID(input string) (*SynchronizationSettingId, err } id := SynchronizationSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSynchronizationSettingIDInsensitively(input string) (*SynchronizationS } id := SynchronizationSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SynchronizationSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDataShare", "Microsoft.DataShare", "Microsoft.DataShare"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), resourceids.StaticSegment("staticSynchronizationSettings", "synchronizationSettings", "synchronizationSettings"), - resourceids.UserSpecifiedSegment("synchronizationSettingName", "synchronizationSettingValue"), + resourceids.UserSpecifiedSegment("synchronizationSettingName", "synchronizationSettingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_create.go index 024a62ba97fd..a064f105c416 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_create.go @@ -15,7 +15,7 @@ import ( type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SynchronizationSetting + Model SynchronizationSetting } // Create ... @@ -53,11 +53,11 @@ func (c SynchronizationSettingClient) Create(ctx context.Context, id Synchroniza if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalSynchronizationSettingImplementation(respObj) + model, err := UnmarshalSynchronizationSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_get.go index 8ac6ea736afe..5c301093f4c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SynchronizationSetting + Model SynchronizationSetting } // Get ... @@ -48,11 +48,11 @@ func (c SynchronizationSettingClient) Get(ctx context.Context, id Synchronizatio if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalSynchronizationSettingImplementation(respObj) + model, err := UnmarshalSynchronizationSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go index 8ae40f376c4d..c3a32491c40d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/method_listbyshare.go @@ -73,7 +73,7 @@ func (c SynchronizationSettingClient) ListByShare(ctx context.Context, id ShareI temp := make([]SynchronizationSetting, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalSynchronizationSettingImplementation(v) + val, err := UnmarshalSynchronizationSettingImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for SynchronizationSetting (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_scheduledsynchronizationsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_scheduledsynchronizationsetting.go index 6a0a42d4229f..682f4ebe4940 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_scheduledsynchronizationsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_scheduledsynchronizationsetting.go @@ -14,9 +14,20 @@ type ScheduledSynchronizationSetting struct { Properties ScheduledSynchronizationSettingProperties `json:"properties"` // Fields inherited from SynchronizationSetting - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind SynchronizationSettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s ScheduledSynchronizationSetting) SynchronizationSetting() BaseSynchronizationSettingImpl { + return BaseSynchronizationSettingImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = ScheduledSynchronizationSetting{} @@ -30,9 +41,10 @@ func (s ScheduledSynchronizationSetting) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScheduledSynchronizationSetting: %+v", err) } + decoded["kind"] = "ScheduleBased" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_synchronizationsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_synchronizationsetting.go index e8dfdd22f394..1e5ed8a5fe22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_synchronizationsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/model_synchronizationsetting.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SynchronizationSetting interface { + SynchronizationSetting() BaseSynchronizationSettingImpl } -// RawSynchronizationSettingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SynchronizationSetting = BaseSynchronizationSettingImpl{} + +type BaseSynchronizationSettingImpl struct { + Id *string `json:"id,omitempty"` + Kind SynchronizationSettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseSynchronizationSettingImpl) SynchronizationSetting() BaseSynchronizationSettingImpl { + return s +} + +var _ SynchronizationSetting = RawSynchronizationSettingImpl{} + +// RawSynchronizationSettingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSynchronizationSettingImpl struct { - Type string - Values map[string]interface{} + synchronizationSetting BaseSynchronizationSettingImpl + Type string + Values map[string]interface{} +} + +func (s RawSynchronizationSettingImpl) SynchronizationSetting() BaseSynchronizationSettingImpl { + return s.synchronizationSetting } -func unmarshalSynchronizationSettingImplementation(input []byte) (SynchronizationSetting, error) { +func UnmarshalSynchronizationSettingImplementation(input []byte) (SynchronizationSetting, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalSynchronizationSettingImplementation(input []byte) (Synchronizatio return nil, fmt.Errorf("unmarshaling SynchronizationSetting into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ScheduleBased") { @@ -44,10 +64,15 @@ func unmarshalSynchronizationSettingImplementation(input []byte) (Synchronizatio return out, nil } - out := RawSynchronizationSettingImpl{ - Type: value, - Values: temp, + var parent BaseSynchronizationSettingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSynchronizationSettingImpl: %+v", err) } - return out, nil + + return RawSynchronizationSettingImpl{ + synchronizationSetting: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/version.go index 194b89c91413..668d0c8db66d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/synchronizationsetting/version.go @@ -1,12 +1,10 @@ package synchronizationsetting -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/synchronizationsetting/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/synchronizationsetting/2019-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md index f5cc43fd110c..cf69602f746d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup` Documentation -The `applicationgroup` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2021-09-03-preview`). +The `applicationgroup` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2021-09-03-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") payload := applicationgroup.ApplicationGroup{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") payload := applicationgroup.ApplicationGroupPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/client.go index b07bf02a25f4..286f253207b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/client.go @@ -15,7 +15,7 @@ type ApplicationGroupClient struct { } func NewApplicationGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgroup", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgroup", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/id_applicationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/id_applicationgroup.go index cc7473a70e09..ac389f7d9d7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/id_applicationgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/id_applicationgroup.go @@ -42,7 +42,7 @@ func ParseApplicationGroupID(input string) (*ApplicationGroupId, error) { } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGroupIDInsensitively(input string) (*ApplicationGroupId, er } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_createorupdate.go index 207f2306a432..d68aa2ad1391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ApplicationGroupClient) CreateOrUpdate(ctx context.Context, id Applicati var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_get.go index 8af1aeae85a4..5f689277e19b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationGroupClient) Get(ctx context.Context, id ApplicationGroupId) var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go index 3de214a8e693..85114a90ac86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go index c34b661ee104..50a6f4185036 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_update.go index 2673570a9a27..503845615c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/method_update.go @@ -49,7 +49,6 @@ func (c ApplicationGroupClient) Update(ctx context.Context, id ApplicationGroupI var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/version.go index abe65319f8b5..425de69192bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/applicationgroup/version.go @@ -1,12 +1,10 @@ package applicationgroup -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-09-03-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgroup/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgroup/2021-09-03-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md index ec377ab9872a..f0bbb61ab105 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool` Documentation -The `hostpool` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2021-09-03-preview`). +The `hostpool` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2021-09-03-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") payload := hostpool.HostPool{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.Delete(ctx, id, hostpool.DefaultDeleteOperationOptions()) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.RetrieveRegistrationToken(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") payload := hostpool.HostPoolPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/client.go index 66a85262985b..e052d6173f9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/client.go @@ -15,7 +15,7 @@ type HostPoolClient struct { } func NewHostPoolClientWithBaseURI(sdkApi sdkEnv.Api) (*HostPoolClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hostpool", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hostpool", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HostPoolClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/id_hostpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/id_hostpool.go index dab797a1553d..e1eb7c7537b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/id_hostpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/id_hostpool.go @@ -42,7 +42,7 @@ func ParseHostPoolID(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id HostPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticHostPools", "hostPools", "hostPools"), - resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolValue"), + resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_createorupdate.go index c990a6de7e63..4256dfa27bb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_createorupdate.go @@ -50,7 +50,6 @@ func (c HostPoolClient) CreateOrUpdate(ctx context.Context, id HostPoolId, input var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go index c0d78cc24b42..d83814eacc1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_delete.go @@ -33,6 +33,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_get.go index 002299ecd96a..1beab20188e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_get.go @@ -45,7 +45,6 @@ func (c HostPoolClient) Get(ctx context.Context, id HostPoolId) (result GetOpera var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_retrieveregistrationtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_retrieveregistrationtoken.go index 6e3d2acc005e..d6ba45ec6624 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_retrieveregistrationtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_retrieveregistrationtoken.go @@ -46,7 +46,6 @@ func (c HostPoolClient) RetrieveRegistrationToken(ctx context.Context, id HostPo var model RegistrationInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_update.go index af6dc0fe82ef..ec302eab0261 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/method_update.go @@ -49,7 +49,6 @@ func (c HostPoolClient) Update(ctx context.Context, id HostPoolId, input HostPoo var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/version.go index 3601ff52ba21..adad28f90197 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/hostpool/version.go @@ -1,12 +1,10 @@ package hostpool -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-09-03-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hostpool/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hostpool/2021-09-03-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md index e93513c3a8a7..1b14cf8438cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace` Documentation -The `workspace` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2021-09-03-preview`). +The `workspace` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2021-09-03-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspace.Workspace{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspace.WorkspacePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/client.go index 183f0254ebd8..ead98c0060b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/client.go @@ -15,7 +15,7 @@ type WorkspaceClient struct { } func NewWorkspaceClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspace", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspace", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/id_workspace.go index d5c85af907d9..f94105bfa0ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_createorupdate.go index 346da474838e..3a6d6d331f27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WorkspaceClient) CreateOrUpdate(ctx context.Context, id WorkspaceId, inp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_get.go index b52f054ada7f..3a673fbc7c2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_get.go @@ -45,7 +45,6 @@ func (c WorkspaceClient) Get(ctx context.Context, id WorkspaceId) (result GetOpe var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_update.go index c527b084b734..f7f12884d0f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/method_update.go @@ -49,7 +49,6 @@ func (c WorkspaceClient) Update(ctx context.Context, id WorkspaceId, input Works var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/version.go index 2337ea8938f7..4787613fd4f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/workspace/version.go @@ -1,12 +1,10 @@ package workspace -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-09-03-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspace/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspace/2021-09-03-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/README.md index 56e5140f0285..8ddcf8857ec1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application` Documentation -The `application` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `application` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "applicationName") payload := application.Application{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "applicationName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "applicationName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := application.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := application.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue") +id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "applicationName") payload := application.ApplicationPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/client.go index c87320630e03..552cea9994d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/client.go @@ -15,7 +15,7 @@ type ApplicationClient struct { } func NewApplicationClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "application", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "application", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_application.go index 7493893a2027..d2582eb3a208 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_application.go @@ -44,7 +44,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "applicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_applicationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_applicationgroup.go index 5cb6591ef0b3..93ce697d10df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_applicationgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/id_applicationgroup.go @@ -42,7 +42,7 @@ func ParseApplicationGroupID(input string) (*ApplicationGroupId, error) { } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGroupIDInsensitively(input string) (*ApplicationGroupId, er } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_createorupdate.go index d990367d8061..b708f0b7f4fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ApplicationClient) CreateOrUpdate(ctx context.Context, id ApplicationId, var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_get.go index 4098c587ba51..288a250a4108 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationClient) Get(ctx context.Context, id ApplicationId) (result Ge var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_update.go index 45a7787c6cc4..4c47958c02e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/method_update.go @@ -49,7 +49,6 @@ func (c ApplicationClient) Update(ctx context.Context, id ApplicationId, input A var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/version.go index 48bb39efae5e..2644053a9884 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application/version.go @@ -1,12 +1,10 @@ package application -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/application/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/application/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md index 79cf91fe42b9..b55b71fb83e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup` Documentation -The `applicationgroup` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `applicationgroup` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") payload := applicationgroup.ApplicationGroup{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := applicationgroup.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") payload := applicationgroup.ApplicationGroupPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/client.go index b07bf02a25f4..286f253207b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/client.go @@ -15,7 +15,7 @@ type ApplicationGroupClient struct { } func NewApplicationGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgroup", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgroup", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/id_applicationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/id_applicationgroup.go index cc7473a70e09..ac389f7d9d7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/id_applicationgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/id_applicationgroup.go @@ -42,7 +42,7 @@ func ParseApplicationGroupID(input string) (*ApplicationGroupId, error) { } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGroupIDInsensitively(input string) (*ApplicationGroupId, er } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_createorupdate.go index 207f2306a432..d68aa2ad1391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ApplicationGroupClient) CreateOrUpdate(ctx context.Context, id Applicati var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_get.go index 8af1aeae85a4..5f689277e19b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationGroupClient) Get(ctx context.Context, id ApplicationGroupId) var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go index 3de214a8e693..85114a90ac86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go index c34b661ee104..50a6f4185036 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_update.go index 2673570a9a27..503845615c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/method_update.go @@ -49,7 +49,6 @@ func (c ApplicationGroupClient) Update(ctx context.Context, id ApplicationGroupI var model ApplicationGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/version.go index 077a0ddc441b..c2b5d6d47c19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/applicationgroup/version.go @@ -1,12 +1,10 @@ package applicationgroup -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgroup/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgroup/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/README.md index 3537dba4c726..df4b290cfa97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop` Documentation -The `desktop` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `desktop` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "desktopValue") +id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "desktopName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := desktop.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue") +id := desktop.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "desktopValue") +id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupName", "desktopName") payload := desktop.DesktopPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/client.go index e1b1dd005ce5..fccabe50eda5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/client.go @@ -15,7 +15,7 @@ type DesktopClient struct { } func NewDesktopClientWithBaseURI(sdkApi sdkEnv.Api) (*DesktopClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "desktop", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "desktop", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DesktopClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_applicationgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_applicationgroup.go index 404609d4ca0f..b3fd93141c99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_applicationgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_applicationgroup.go @@ -42,7 +42,7 @@ func ParseApplicationGroupID(input string) (*ApplicationGroupId, error) { } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGroupIDInsensitively(input string) (*ApplicationGroupId, er } id := ApplicationGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_desktop.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_desktop.go index 9891d38e3211..f0dfc00f4cc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_desktop.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/id_desktop.go @@ -44,7 +44,7 @@ func ParseDesktopID(input string) (*DesktopId, error) { } id := DesktopId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDesktopIDInsensitively(input string) (*DesktopId, error) { } id := DesktopId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DesktopId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticApplicationGroups", "applicationGroups", "applicationGroups"), - resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupValue"), + resourceids.UserSpecifiedSegment("applicationGroupName", "applicationGroupName"), resourceids.StaticSegment("staticDesktops", "desktops", "desktops"), - resourceids.UserSpecifiedSegment("desktopName", "desktopValue"), + resourceids.UserSpecifiedSegment("desktopName", "desktopName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_get.go index 292a37dfaec1..63a8032f34d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_get.go @@ -45,7 +45,6 @@ func (c DesktopClient) Get(ctx context.Context, id DesktopId) (result GetOperati var model Desktop result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_update.go index 6b02d0385a52..5d797f083b7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/method_update.go @@ -49,7 +49,6 @@ func (c DesktopClient) Update(ctx context.Context, id DesktopId, input DesktopPa var model Desktop result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/version.go index c70db4ebaafa..3b8dcf9caf10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/desktop/version.go @@ -1,12 +1,10 @@ package desktop -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/desktop/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/desktop/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md index ce75dc468269..700c15914815 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool` Documentation -The `hostpool` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `hostpool` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") payload := hostpool.HostPool{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.Delete(ctx, id, hostpool.DefaultDeleteOperationOptions()) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") read, err := client.RetrieveRegistrationToken(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := hostpool.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") payload := hostpool.HostPoolPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/client.go index 66a85262985b..e052d6173f9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/client.go @@ -15,7 +15,7 @@ type HostPoolClient struct { } func NewHostPoolClientWithBaseURI(sdkApi sdkEnv.Api) (*HostPoolClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hostpool", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hostpool", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HostPoolClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/id_hostpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/id_hostpool.go index dab797a1553d..e1eb7c7537b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/id_hostpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/id_hostpool.go @@ -42,7 +42,7 @@ func ParseHostPoolID(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id HostPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticHostPools", "hostPools", "hostPools"), - resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolValue"), + resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_createorupdate.go index c990a6de7e63..4256dfa27bb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_createorupdate.go @@ -50,7 +50,6 @@ func (c HostPoolClient) CreateOrUpdate(ctx context.Context, id HostPoolId, input var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go index c0d78cc24b42..d83814eacc1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_delete.go @@ -33,6 +33,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_get.go index 002299ecd96a..1beab20188e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_get.go @@ -45,7 +45,6 @@ func (c HostPoolClient) Get(ctx context.Context, id HostPoolId) (result GetOpera var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_retrieveregistrationtoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_retrieveregistrationtoken.go index 6e3d2acc005e..d6ba45ec6624 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_retrieveregistrationtoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_retrieveregistrationtoken.go @@ -46,7 +46,6 @@ func (c HostPoolClient) RetrieveRegistrationToken(ctx context.Context, id HostPo var model RegistrationInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_update.go index af6dc0fe82ef..ec302eab0261 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/method_update.go @@ -49,7 +49,6 @@ func (c HostPoolClient) Update(ctx context.Context, id HostPoolId, input HostPoo var model HostPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/version.go index 9bfcfbec4690..0eedc95c37cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/hostpool/version.go @@ -1,12 +1,10 @@ package hostpool -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hostpool/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hostpool/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md index 4ba4fa7fc127..c515eb296537 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan` Documentation -The `scalingplan` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `scalingplan` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanValue") +id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanName") payload := scalingplan.ScalingPlan{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanValue") +id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanValue") +id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scalingplan.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := scalingplan.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") // alternatively `client.ListByHostPool(ctx, id)` can be used to do batched pagination items, err := client.ListByHostPoolComplete(ctx, id) @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanValue") +id := scalingplan.NewScalingPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scalingPlanName") payload := scalingplan.ScalingPlanPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/client.go index 9f61c932c45d..e4ef80bb2b37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/client.go @@ -15,7 +15,7 @@ type ScalingPlanClient struct { } func NewScalingPlanClientWithBaseURI(sdkApi sdkEnv.Api) (*ScalingPlanClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scalingplan", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scalingplan", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScalingPlanClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_hostpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_hostpool.go index e07babf38edd..086dd9e1414a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_hostpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_hostpool.go @@ -42,7 +42,7 @@ func ParseHostPoolID(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id HostPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticHostPools", "hostPools", "hostPools"), - resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolValue"), + resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_scalingplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_scalingplan.go index c109bd500464..44f0c4e6d0c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_scalingplan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/id_scalingplan.go @@ -42,7 +42,7 @@ func ParseScalingPlanID(input string) (*ScalingPlanId, error) { } id := ScalingPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScalingPlanIDInsensitively(input string) (*ScalingPlanId, error) { } id := ScalingPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ScalingPlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticScalingPlans", "scalingPlans", "scalingPlans"), - resourceids.UserSpecifiedSegment("scalingPlanName", "scalingPlanValue"), + resourceids.UserSpecifiedSegment("scalingPlanName", "scalingPlanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_create.go index 9d0de3395f49..52557422ed38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_create.go @@ -50,7 +50,6 @@ func (c ScalingPlanClient) Create(ctx context.Context, id ScalingPlanId, input S var model ScalingPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_get.go index 656371a9d066..0bd28e3a4912 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_get.go @@ -45,7 +45,6 @@ func (c ScalingPlanClient) Get(ctx context.Context, id ScalingPlanId) (result Ge var model ScalingPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_update.go index 6e580a64db64..5757e0ebec62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/method_update.go @@ -49,7 +49,6 @@ func (c ScalingPlanClient) Update(ctx context.Context, id ScalingPlanId, input S var model ScalingPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/version.go index 2e79c42b7746..3946cbd0cfbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/scalingplan/version.go @@ -1,12 +1,10 @@ package scalingplan -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scalingplan/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scalingplan/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/README.md index 942434ee4ab5..eed9b35a067d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost` Documentation -The `sessionhost` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `sessionhost` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "sessionHostValue") +id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName", "sessionHostName") read, err := client.Delete(ctx, id, sessionhost.DefaultDeleteOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "sessionHostValue") +id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName", "sessionHostName") read, err := client.Get(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sessionhost.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue") +id := sessionhost.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -73,7 +73,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "sessionHostValue") +id := sessionhost.NewSessionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName", "sessionHostName") payload := sessionhost.SessionHostPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/client.go index 0ea9ae0befcd..ced1537db503 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/client.go @@ -15,7 +15,7 @@ type SessionHostClient struct { } func NewSessionHostClientWithBaseURI(sdkApi sdkEnv.Api) (*SessionHostClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sessionhost", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sessionhost", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SessionHostClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_hostpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_hostpool.go index 71402210a516..5ff508f76434 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_hostpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_hostpool.go @@ -42,7 +42,7 @@ func ParseHostPoolID(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error) { } id := HostPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id HostPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticHostPools", "hostPools", "hostPools"), - resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolValue"), + resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_sessionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_sessionhost.go index 2f48874e2791..487a32218fd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_sessionhost.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/id_sessionhost.go @@ -44,7 +44,7 @@ func ParseSessionHostID(input string) (*SessionHostId, error) { } id := SessionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSessionHostIDInsensitively(input string) (*SessionHostId, error) { } id := SessionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SessionHostId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticHostPools", "hostPools", "hostPools"), - resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolValue"), + resourceids.UserSpecifiedSegment("hostPoolName", "hostPoolName"), resourceids.StaticSegment("staticSessionHosts", "sessionHosts", "sessionHosts"), - resourceids.UserSpecifiedSegment("sessionHostName", "sessionHostValue"), + resourceids.UserSpecifiedSegment("sessionHostName", "sessionHostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go index e62625d7a675..9eebfcf3a869 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_delete.go @@ -33,6 +33,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_get.go index d419b6d876d7..32d3a452e0b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_get.go @@ -45,7 +45,6 @@ func (c SessionHostClient) Get(ctx context.Context, id SessionHostId) (result Ge var model SessionHost result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go index cff5fcae1239..01d50994dfd5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/method_update.go @@ -34,6 +34,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c SessionHostClient) Update(ctx context.Context, id SessionHostId, input S var model SessionHost result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/version.go index 083d3bb712a8..10535b225685 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/sessionhost/version.go @@ -1,12 +1,10 @@ package sessionhost -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sessionhost/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sessionhost/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md index 74b582357264..d1630ee10793 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace` Documentation -The `workspace` SDK allows for interaction with the Azure Resource Manager Service `desktopvirtualization` (API Version `2022-02-10-preview`). +The `workspace` SDK allows for interaction with Azure Resource Manager `desktopvirtualization` (API Version `2022-02-10-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspace.Workspace{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspace.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspace.WorkspacePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/client.go index 183f0254ebd8..ead98c0060b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/client.go @@ -15,7 +15,7 @@ type WorkspaceClient struct { } func NewWorkspaceClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspace", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspace", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/id_workspace.go index d5c85af907d9..f94105bfa0ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDesktopVirtualization", "Microsoft.DesktopVirtualization", "Microsoft.DesktopVirtualization"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_createorupdate.go index 346da474838e..3a6d6d331f27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WorkspaceClient) CreateOrUpdate(ctx context.Context, id WorkspaceId, inp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_get.go index b52f054ada7f..3a673fbc7c2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_get.go @@ -45,7 +45,6 @@ func (c WorkspaceClient) Get(ctx context.Context, id WorkspaceId) (result GetOpe var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_update.go index c527b084b734..f7f12884d0f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/method_update.go @@ -49,7 +49,6 @@ func (c WorkspaceClient) Update(ctx context.Context, id WorkspaceId, input Works var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/version.go index 537513b53d9c..f0d7fb2e5b62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/workspace/version.go @@ -1,12 +1,10 @@ package workspace -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-10-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspace/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspace/2022-02-10-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/README.md index 3675658dbbb6..b411e7ebf8b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections` Documentation -The `attachednetworkconnections` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `attachednetworkconnections` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := attachednetworkconnections.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := attachednetworkconnections.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.AttachedNetworksListByDevCenter(ctx, id, attachednetworkconnections.DefaultAttachedNetworksListByDevCenterOperationOptions())` can be used to do batched pagination items, err := client.AttachedNetworksListByDevCenterComplete(ctx, id, attachednetworkconnections.DefaultAttachedNetworksListByDevCenterOperationOptions()) @@ -41,7 +41,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := attachednetworkconnections.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := attachednetworkconnections.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") // alternatively `client.AttachedNetworksListByProject(ctx, id, attachednetworkconnections.DefaultAttachedNetworksListByProjectOperationOptions())` can be used to do batched pagination items, err := client.AttachedNetworksListByProjectComplete(ctx, id, attachednetworkconnections.DefaultAttachedNetworksListByProjectOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/client.go index c047bb519e24..22e37780469e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/client.go @@ -15,7 +15,7 @@ type AttachedNetworkConnectionsClient struct { } func NewAttachedNetworkConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*AttachedNetworkConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "attachednetworkconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "attachednetworkconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AttachedNetworkConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_devcenter.go index abbb0c60e931..1797105fabef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_project.go index e81d45a99479..9866b3377f67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/id_project.go @@ -42,7 +42,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go index a98a300e3cd5..33befb6558b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbydevcenter.go @@ -39,6 +39,7 @@ func (o AttachedNetworksListByDevCenterOperationOptions) ToHeaders() *client.Hea func (o AttachedNetworksListByDevCenterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go index 8ed8d644a8e7..9b9a721d6dc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/method_attachednetworkslistbyproject.go @@ -39,6 +39,7 @@ func (o AttachedNetworksListByProjectOperationOptions) ToHeaders() *client.Heade func (o AttachedNetworksListByProjectOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/version.go index 14f4bd4f6341..4bdaf8d6f445 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/attachednetworkconnections/version.go @@ -1,12 +1,10 @@ package attachednetworkconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/attachednetworkconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/attachednetworkconnections/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/README.md index 9b1d8b24a779..f731cc1f601a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs` Documentation -The `catalogs` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `catalogs` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "catalogValue") +id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "catalogName") payload := catalogs.Catalog{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "catalogValue") +id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "catalogName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "catalogValue") +id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "catalogName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := catalogs.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := catalogs.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.ListByDevCenter(ctx, id, catalogs.DefaultListByDevCenterOperationOptions())` can be used to do batched pagination items, err := client.ListByDevCenterComplete(ctx, id, catalogs.DefaultListByDevCenterOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "catalogValue") +id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "catalogName") if err := client.SyncThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.SyncThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "catalogValue") +id := catalogs.NewCatalogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "catalogName") payload := catalogs.CatalogUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/client.go index fe6ad53cdd77..04da2fd7083d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/client.go @@ -15,7 +15,7 @@ type CatalogsClient struct { } func NewCatalogsClientWithBaseURI(sdkApi sdkEnv.Api) (*CatalogsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "catalogs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "catalogs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CatalogsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_catalog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_catalog.go index 89cc204d1b95..c86db22f6ce8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_catalog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_catalog.go @@ -44,7 +44,7 @@ func ParseCatalogID(input string) (*CatalogId, error) { } id := CatalogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCatalogIDInsensitively(input string) (*CatalogId, error) { } id := CatalogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CatalogId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticCatalogs", "catalogs", "catalogs"), - resourceids.UserSpecifiedSegment("catalogName", "catalogValue"), + resourceids.UserSpecifiedSegment("catalogName", "catalogName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_devcenter.go index 84ea034ca14a..53ddaf074561 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_get.go index dd2b5cd1a63b..a9e775d92139 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_get.go @@ -45,7 +45,6 @@ func (c CatalogsClient) Get(ctx context.Context, id CatalogId) (result GetOperat var model Catalog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go index 4a27fe873519..787b93ff40ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/method_listbydevcenter.go @@ -39,6 +39,7 @@ func (o ListByDevCenterOperationOptions) ToHeaders() *client.Headers { func (o ListByDevCenterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/version.go index 731d6a0f86f9..9e2d35786936 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/catalogs/version.go @@ -1,12 +1,10 @@ package catalogs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/catalogs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/catalogs/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/README.md index d0a1f775d416..0bd6cf931bd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability` Documentation -The `checknameavailability` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `checknameavailability` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/client.go index 9991e58a5184..777c8ea9e9f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/client.go @@ -15,7 +15,7 @@ type CheckNameAvailabilityClient struct { } func NewCheckNameAvailabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckNameAvailabilityClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "checknameavailability", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "checknameavailability", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CheckNameAvailabilityClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/method_execute.go index 6fb99dc8a931..0a1721e423f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/method_execute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/method_execute.go @@ -51,7 +51,6 @@ func (c CheckNameAvailabilityClient) Execute(ctx context.Context, id commonids.S var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/version.go index afd1e580d3cc..7a996ea06c28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/checknameavailability/version.go @@ -1,12 +1,10 @@ package checknameavailability -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/checknameavailability/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/checknameavailability/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/README.md index 47015df35aea..04985cc7b376 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions` Documentation -The `devboxdefinitions` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `devboxdefinitions` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "devBoxDefinitionValue") +id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "devBoxDefinitionName") payload := devboxdefinitions.DevBoxDefinition{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "devBoxDefinitionValue") +id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "devBoxDefinitionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "devBoxDefinitionValue") +id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "devBoxDefinitionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devboxdefinitions.NewDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "devBoxDefinitionValue") +id := devboxdefinitions.NewDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "devBoxDefinitionName") read, err := client.GetByProject(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := devboxdefinitions.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := devboxdefinitions.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.ListByDevCenter(ctx, id)` can be used to do batched pagination items, err := client.ListByDevCenterComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devboxdefinitions.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := devboxdefinitions.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") // alternatively `client.ListByProject(ctx, id)` can be used to do batched pagination items, err := client.ListByProjectComplete(ctx, id) @@ -119,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "devBoxDefinitionValue") +id := devboxdefinitions.NewDevCenterDevBoxDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "devBoxDefinitionName") payload := devboxdefinitions.DevBoxDefinitionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/client.go index 42eb06cd5796..7b3b15a18971 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/client.go @@ -15,7 +15,7 @@ type DevBoxDefinitionsClient struct { } func NewDevBoxDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*DevBoxDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "devboxdefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "devboxdefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DevBoxDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devboxdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devboxdefinition.go index c242fe1a895b..eccd5c705864 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devboxdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devboxdefinition.go @@ -44,7 +44,7 @@ func ParseDevBoxDefinitionID(input string) (*DevBoxDefinitionId, error) { } id := DevBoxDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDevBoxDefinitionIDInsensitively(input string) (*DevBoxDefinitionId, er } id := DevBoxDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DevBoxDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticDevBoxDefinitions", "devBoxDefinitions", "devBoxDefinitions"), - resourceids.UserSpecifiedSegment("devBoxDefinitionName", "devBoxDefinitionValue"), + resourceids.UserSpecifiedSegment("devBoxDefinitionName", "devBoxDefinitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenter.go index 5182c247a8a7..8550e29e4faa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenterdevboxdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenterdevboxdefinition.go index 1199cf94b878..d727b3fdc2e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenterdevboxdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_devcenterdevboxdefinition.go @@ -44,7 +44,7 @@ func ParseDevCenterDevBoxDefinitionID(input string) (*DevCenterDevBoxDefinitionI } id := DevCenterDevBoxDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDevCenterDevBoxDefinitionIDInsensitively(input string) (*DevCenterDevB } id := DevCenterDevBoxDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DevCenterDevBoxDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticDevBoxDefinitions", "devBoxDefinitions", "devBoxDefinitions"), - resourceids.UserSpecifiedSegment("devBoxDefinitionName", "devBoxDefinitionValue"), + resourceids.UserSpecifiedSegment("devBoxDefinitionName", "devBoxDefinitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_project.go index c300dfe1cbee..149fdd67ef0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/id_project.go @@ -42,7 +42,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_get.go index 4797f572dfe6..2f39e85e0223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_get.go @@ -45,7 +45,6 @@ func (c DevBoxDefinitionsClient) Get(ctx context.Context, id DevCenterDevBoxDefi var model DevBoxDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_getbyproject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_getbyproject.go index 1cc47c3e4ff4..79887f3fe964 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_getbyproject.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/method_getbyproject.go @@ -45,7 +45,6 @@ func (c DevBoxDefinitionsClient) GetByProject(ctx context.Context, id DevBoxDefi var model DevBoxDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/version.go index 2baa98c8be95..2023f5794b23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devboxdefinitions/version.go @@ -1,12 +1,10 @@ package devboxdefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/devboxdefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/devboxdefinitions/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/README.md index 9474fc620905..560909a4cebd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters` Documentation -The `devcenters` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `devcenters` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") payload := devcenters.DevCenter{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := devcenters.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") payload := devcenters.DevCenterUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/client.go index 166e4043995c..c5128fc89ff5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/client.go @@ -15,7 +15,7 @@ type DevCentersClient struct { } func NewDevCentersClientWithBaseURI(sdkApi sdkEnv.Api) (*DevCentersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "devcenters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "devcenters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DevCentersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/id_devcenter.go index 09ec8eb0df5c..a3c3755cfed9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_get.go index 663743225813..8dbc8b9921ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_get.go @@ -45,7 +45,6 @@ func (c DevCentersClient) Get(ctx context.Context, id DevCenterId) (result GetOp var model DevCenter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go index d2d4412b9991..67cdc0090d12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go index 30b65d648e44..d82f9855b56d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/model_devcenterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/model_devcenterproperties.go index 03fd772de97e..8715461f7019 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/model_devcenterproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/model_devcenterproperties.go @@ -1,5 +1,10 @@ package devcenters +import ( + "encoding/json" + "fmt" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -7,3 +12,28 @@ type DevCenterProperties struct { DevCenterUri *string `json:"devCenterUri,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` } + +var _ json.Marshaler = DevCenterProperties{} + +func (s DevCenterProperties) MarshalJSON() ([]byte, error) { + type wrapper DevCenterProperties + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling DevCenterProperties: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling DevCenterProperties: %+v", err) + } + + delete(decoded, "devCenterUri") + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling DevCenterProperties: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/version.go index e84d0c95c4b3..19086c2f45e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/devcenters/version.go @@ -1,12 +1,10 @@ package devcenters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/devcenters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/devcenters/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/README.md index ff3ddb0b884c..6bbeb3c03420 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes` Documentation -The `environmenttypes` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `environmenttypes` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "environmentTypeValue") +id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "environmentTypeName") payload := environmenttypes.EnvironmentType{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "environmentTypeValue") +id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "environmentTypeName") read, err := client.EnvironmentTypesDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "environmentTypeValue") +id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "environmentTypeName") read, err := client.EnvironmentTypesGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := environmenttypes.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.EnvironmentTypesListByDevCenter(ctx, id, environmenttypes.DefaultEnvironmentTypesListByDevCenterOperationOptions())` can be used to do batched pagination items, err := client.EnvironmentTypesListByDevCenterComplete(ctx, id, environmenttypes.DefaultEnvironmentTypesListByDevCenterOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "environmentTypeValue") +id := environmenttypes.NewDevCenterEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "environmentTypeName") payload := environmenttypes.EnvironmentTypeUpdate{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewAllowedEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "allowedEnvironmentTypeValue") +id := environmenttypes.NewAllowedEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "environmentTypeName") read, err := client.ProjectAllowedEnvironmentTypesGet(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := environmenttypes.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") // alternatively `client.ProjectAllowedEnvironmentTypesList(ctx, id, environmenttypes.DefaultProjectAllowedEnvironmentTypesListOperationOptions())` can be used to do batched pagination items, err := client.ProjectAllowedEnvironmentTypesListComplete(ctx, id, environmenttypes.DefaultProjectAllowedEnvironmentTypesListOperationOptions()) @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "environmentTypeValue") +id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "environmentTypeName") payload := environmenttypes.ProjectEnvironmentType{ // ... @@ -169,7 +169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "environmentTypeValue") +id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "environmentTypeName") read, err := client.ProjectEnvironmentTypesDelete(ctx, id) if err != nil { @@ -185,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "environmentTypeValue") +id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "environmentTypeName") read, err := client.ProjectEnvironmentTypesGet(ctx, id) if err != nil { @@ -201,7 +201,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environmenttypes.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := environmenttypes.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") // alternatively `client.ProjectEnvironmentTypesList(ctx, id, environmenttypes.DefaultProjectEnvironmentTypesListOperationOptions())` can be used to do batched pagination items, err := client.ProjectEnvironmentTypesListComplete(ctx, id, environmenttypes.DefaultProjectEnvironmentTypesListOperationOptions()) @@ -218,7 +218,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "environmentTypeValue") +id := environmenttypes.NewEnvironmentTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "environmentTypeName") payload := environmenttypes.ProjectEnvironmentTypeUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/client.go index 9e3aa2ec5dbc..482a804ae1bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/client.go @@ -15,7 +15,7 @@ type EnvironmentTypesClient struct { } func NewEnvironmentTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*EnvironmentTypesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "environmenttypes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "environmenttypes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EnvironmentTypesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_allowedenvironmenttype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_allowedenvironmenttype.go index 88ef0bedcda8..215741c4b78e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_allowedenvironmenttype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_allowedenvironmenttype.go @@ -44,7 +44,7 @@ func ParseAllowedEnvironmentTypeID(input string) (*AllowedEnvironmentTypeId, err } id := AllowedEnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAllowedEnvironmentTypeIDInsensitively(input string) (*AllowedEnvironme } id := AllowedEnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AllowedEnvironmentTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticAllowedEnvironmentTypes", "allowedEnvironmentTypes", "allowedEnvironmentTypes"), - resourceids.UserSpecifiedSegment("allowedEnvironmentTypeName", "allowedEnvironmentTypeValue"), + resourceids.UserSpecifiedSegment("allowedEnvironmentTypeName", "environmentTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenter.go index 78b083817497..10f408c73129 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenterenvironmenttype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenterenvironmenttype.go index c44828f9c027..99f8498949f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenterenvironmenttype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_devcenterenvironmenttype.go @@ -44,7 +44,7 @@ func ParseDevCenterEnvironmentTypeID(input string) (*DevCenterEnvironmentTypeId, } id := DevCenterEnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDevCenterEnvironmentTypeIDInsensitively(input string) (*DevCenterEnvir } id := DevCenterEnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DevCenterEnvironmentTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticEnvironmentTypes", "environmentTypes", "environmentTypes"), - resourceids.UserSpecifiedSegment("environmentTypeName", "environmentTypeValue"), + resourceids.UserSpecifiedSegment("environmentTypeName", "environmentTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_environmenttype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_environmenttype.go index e2afb524d60b..f3bbfc81f0dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_environmenttype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_environmenttype.go @@ -44,7 +44,7 @@ func ParseEnvironmentTypeID(input string) (*EnvironmentTypeId, error) { } id := EnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEnvironmentTypeIDInsensitively(input string) (*EnvironmentTypeId, erro } id := EnvironmentTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EnvironmentTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticEnvironmentTypes", "environmentTypes", "environmentTypes"), - resourceids.UserSpecifiedSegment("environmentTypeName", "environmentTypeValue"), + resourceids.UserSpecifiedSegment("environmentTypeName", "environmentTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_project.go index 9fa8662f8a6a..532a7f7fed50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/id_project.go @@ -42,7 +42,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypescreateorupdate.go index ad08694847b3..d5813601ee58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypescreateorupdate.go @@ -49,7 +49,6 @@ func (c EnvironmentTypesClient) EnvironmentTypesCreateOrUpdate(ctx context.Conte var model EnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesget.go index ac45221fa842..b56268a689dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesget.go @@ -45,7 +45,6 @@ func (c EnvironmentTypesClient) EnvironmentTypesGet(ctx context.Context, id DevC var model EnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go index 8485ff457867..3d4443690216 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypeslistbydevcenter.go @@ -39,6 +39,7 @@ func (o EnvironmentTypesListByDevCenterOperationOptions) ToHeaders() *client.Hea func (o EnvironmentTypesListByDevCenterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesupdate.go index 563d3525a9a5..7b1f1d9b8368 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_environmenttypesupdate.go @@ -49,7 +49,6 @@ func (c EnvironmentTypesClient) EnvironmentTypesUpdate(ctx context.Context, id D var model EnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypesget.go index 2a6485602156..5cb5a1a54861 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypesget.go @@ -45,7 +45,6 @@ func (c EnvironmentTypesClient) ProjectAllowedEnvironmentTypesGet(ctx context.Co var model AllowedEnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go index 2508c2e2c221..5dff24249336 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectallowedenvironmenttypeslist.go @@ -39,6 +39,7 @@ func (o ProjectAllowedEnvironmentTypesListOperationOptions) ToHeaders() *client. func (o ProjectAllowedEnvironmentTypesListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypescreateorupdate.go index 520953f44c19..cf8fd196a514 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypescreateorupdate.go @@ -49,7 +49,6 @@ func (c EnvironmentTypesClient) ProjectEnvironmentTypesCreateOrUpdate(ctx contex var model ProjectEnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesget.go index 9b790b8dccd8..9ebf1ab14f83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesget.go @@ -45,7 +45,6 @@ func (c EnvironmentTypesClient) ProjectEnvironmentTypesGet(ctx context.Context, var model ProjectEnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go index 789e6b691605..62d3d2abc509 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypeslist.go @@ -39,6 +39,7 @@ func (o ProjectEnvironmentTypesListOperationOptions) ToHeaders() *client.Headers func (o ProjectEnvironmentTypesListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesupdate.go index e4505a1a71f3..058d1cfad9c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/method_projectenvironmenttypesupdate.go @@ -49,7 +49,6 @@ func (c EnvironmentTypesClient) ProjectEnvironmentTypesUpdate(ctx context.Contex var model ProjectEnvironmentType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/version.go index 619d049a442c..5f3e898ef9fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/environmenttypes/version.go @@ -1,12 +1,10 @@ package environmenttypes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/environmenttypes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/environmenttypes/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/README.md index d4ebc8a1ee56..0392aeb35975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries` Documentation -The `galleries` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `galleries` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue") +id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName") payload := galleries.Gallery{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue") +id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue") +id := galleries.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := galleries.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := galleries.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.ListByDevCenter(ctx, id, galleries.DefaultListByDevCenterOperationOptions())` can be used to do batched pagination items, err := client.ListByDevCenterComplete(ctx, id, galleries.DefaultListByDevCenterOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/client.go index 624f4aaf60a2..d9db0ae13ba2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/client.go @@ -15,7 +15,7 @@ type GalleriesClient struct { } func NewGalleriesClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "galleries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "galleries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GalleriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_devcenter.go index 895a4c60ac75..c388a0a8c88f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_gallery.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_gallery.go index 3e3d9f6e8097..fbaa9b16a453 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_gallery.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/id_gallery.go @@ -44,7 +44,7 @@ func ParseGalleryID(input string) (*GalleryId, error) { } id := GalleryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGalleryIDInsensitively(input string) (*GalleryId, error) { } id := GalleryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GalleryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_get.go index 5262914c2686..9273b0c4efe0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_get.go @@ -45,7 +45,6 @@ func (c GalleriesClient) Get(ctx context.Context, id GalleryId) (result GetOpera var model Gallery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go index 792ad276ecbf..6d53af352124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/method_listbydevcenter.go @@ -39,6 +39,7 @@ func (o ListByDevCenterOperationOptions) ToHeaders() *client.Headers { func (o ListByDevCenterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/version.go index 12a47bfd2f01..0aefa1d770e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/galleries/version.go @@ -1,12 +1,10 @@ package galleries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/galleries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/galleries/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/README.md index 740d711776d6..07375d140366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images` Documentation -The `images` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `images` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue", "imageValue") +id := images.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName", "imageName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := images.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue") +id := images.NewDevCenterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName") // alternatively `client.ListByDevCenter(ctx, id, images.DefaultListByDevCenterOperationOptions())` can be used to do batched pagination items, err := client.ListByDevCenterComplete(ctx, id, images.DefaultListByDevCenterOperationOptions()) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := images.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue") +id := images.NewGalleryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName") // alternatively `client.ListByGallery(ctx, id, images.DefaultListByGalleryOperationOptions())` can be used to do batched pagination items, err := client.ListByGalleryComplete(ctx, id, images.DefaultListByGalleryOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/client.go index efdeb17e082f..1732ff320573 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/client.go @@ -15,7 +15,7 @@ type ImagesClient struct { } func NewImagesClientWithBaseURI(sdkApi sdkEnv.Api) (*ImagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "images", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "images", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ImagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_devcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_devcenter.go index 947b67408639..050c793f539e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_devcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_devcenter.go @@ -42,7 +42,7 @@ func ParseDevCenterID(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDevCenterIDInsensitively(input string) (*DevCenterId, error) { } id := DevCenterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DevCenterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_gallery.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_gallery.go index e5c9bca8d4ef..e535e5c5437d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_gallery.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_gallery.go @@ -44,7 +44,7 @@ func ParseGalleryID(input string) (*GalleryId, error) { } id := GalleryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGalleryIDInsensitively(input string) (*GalleryId, error) { } id := GalleryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GalleryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_image.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_image.go index 7aaad3ee1ce1..ca05b1ee255b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_image.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/id_image.go @@ -46,7 +46,7 @@ func ParseImageID(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseImageIDInsensitively(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "imageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_get.go index 07d56032538b..09e04752f35f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_get.go @@ -45,7 +45,6 @@ func (c ImagesClient) Get(ctx context.Context, id ImageId) (result GetOperationR var model Image result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go index 2fcf6e1d00ee..39dc321ab59a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbydevcenter.go @@ -39,6 +39,7 @@ func (o ListByDevCenterOperationOptions) ToHeaders() *client.Headers { func (o ListByDevCenterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go index 65bc7c9a7710..59afe52da50d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/method_listbygallery.go @@ -39,6 +39,7 @@ func (o ListByGalleryOperationOptions) ToHeaders() *client.Headers { func (o ListByGalleryOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/version.go index 4a630389019c..ecca2d30483a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/images/version.go @@ -1,12 +1,10 @@ package images -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/images/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/images/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/README.md index 2619ef35f955..1bab32a1aba6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions` Documentation -The `imageversions` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `imageversions` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := imageversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue", "imageValue", "versionValue") +id := imageversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName", "imageName", "versionName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := imageversions.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterValue", "galleryValue", "imageValue") +id := imageversions.NewImageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "devCenterName", "galleryName", "imageName") // alternatively `client.ListByImage(ctx, id)` can be used to do batched pagination items, err := client.ListByImageComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/client.go index e7f72638c737..7a3a0578fb21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/client.go @@ -15,7 +15,7 @@ type ImageVersionsClient struct { } func NewImageVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ImageVersionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "imageversions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "imageversions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ImageVersionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_image.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_image.go index b953534db0c9..a3d4c8512f97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_image.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_image.go @@ -46,7 +46,7 @@ func ParseImageID(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseImageIDInsensitively(input string) (*ImageId, error) { } id := ImageId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ImageId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "imageName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_version.go index 25e6c7c01d3a..a3def14d89bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/id_version.go @@ -48,7 +48,7 @@ func ParseVersionID(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseVersionIDInsensitively(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id VersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticDevCenters", "devCenters", "devCenters"), - resourceids.UserSpecifiedSegment("devCenterName", "devCenterValue"), + resourceids.UserSpecifiedSegment("devCenterName", "devCenterName"), resourceids.StaticSegment("staticGalleries", "galleries", "galleries"), - resourceids.UserSpecifiedSegment("galleryName", "galleryValue"), + resourceids.UserSpecifiedSegment("galleryName", "galleryName"), resourceids.StaticSegment("staticImages", "images", "images"), - resourceids.UserSpecifiedSegment("imageName", "imageValue"), + resourceids.UserSpecifiedSegment("imageName", "imageName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "versionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/method_get.go index 4a32465bcd37..9bf2d63c7586 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/method_get.go @@ -45,7 +45,6 @@ func (c ImageVersionsClient) Get(ctx context.Context, id VersionId) (result GetO var model ImageVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/version.go index bbf6792c987b..32eb71b24aca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/imageversions/version.go @@ -1,12 +1,10 @@ package imageversions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/imageversions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/imageversions/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/README.md index 6e5eb37ca2b9..f7ca43a317e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection` Documentation -The `networkconnection` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `networkconnection` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkconnection.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnection.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -41,7 +41,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkconnection.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnection.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") if err := client.RunHealthChecksThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/client.go index c4b7f5032ee2..05a1f1617228 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/client.go @@ -15,7 +15,7 @@ type NetworkConnectionClient struct { } func NewNetworkConnectionClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkConnectionClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkconnection", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkconnection", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkConnectionClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/id_networkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/id_networkconnection.go index 17430cdaa666..45c23d916bb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/id_networkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/id_networkconnection.go @@ -42,7 +42,7 @@ func ParseNetworkConnectionID(input string) (*NetworkConnectionId, error) { } id := NetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkConnectionIDInsensitively(input string) (*NetworkConnectionId, } id := NetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticNetworkConnections", "networkConnections", "networkConnections"), - resourceids.UserSpecifiedSegment("networkConnectionName", "networkConnectionValue"), + resourceids.UserSpecifiedSegment("networkConnectionName", "networkConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/version.go index 11698adda075..c46b04f878da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnection/version.go @@ -1,12 +1,10 @@ package networkconnection -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkconnection/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkconnection/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/README.md index 2368936c6b1b..b92f6541b537 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections` Documentation -The `networkconnections` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `networkconnections` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") payload := networkconnections.NetworkConnection{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") read, err := client.GetHealthDetails(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") // alternatively `client.ListHealthDetails(ctx, id)` can be used to do batched pagination items, err := client.ListHealthDetailsComplete(ctx, id) @@ -137,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionValue") +id := networkconnections.NewNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkConnectionName") payload := networkconnections.NetworkConnectionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/client.go index b8ed056a3382..9bcd63ef6198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/client.go @@ -15,7 +15,7 @@ type NetworkConnectionsClient struct { } func NewNetworkConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/id_networkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/id_networkconnection.go index b7e0cfe5a584..43c576ba6746 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/id_networkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/id_networkconnection.go @@ -42,7 +42,7 @@ func ParseNetworkConnectionID(input string) (*NetworkConnectionId, error) { } id := NetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkConnectionIDInsensitively(input string) (*NetworkConnectionId, } id := NetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticNetworkConnections", "networkConnections", "networkConnections"), - resourceids.UserSpecifiedSegment("networkConnectionName", "networkConnectionValue"), + resourceids.UserSpecifiedSegment("networkConnectionName", "networkConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_get.go index fbc2a39d16db..17cc6351f14c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_get.go @@ -45,7 +45,6 @@ func (c NetworkConnectionsClient) Get(ctx context.Context, id NetworkConnectionI var model NetworkConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_gethealthdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_gethealthdetails.go index ae0a8f73ead9..e709cc3d2066 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_gethealthdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/method_gethealthdetails.go @@ -46,7 +46,6 @@ func (c NetworkConnectionsClient) GetHealthDetails(ctx context.Context, id Netwo var model HealthCheckStatusDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/version.go index 6bb022f8d058..f2960df26f15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/networkconnections/version.go @@ -1,12 +1,10 @@ package networkconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkconnections/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/README.md index db4c979a0de3..b130eb3a4acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools` Documentation -The `pools` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `pools` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") payload := pools.Pool{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pools.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := pools.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") // alternatively `client.ListByProject(ctx, id)` can be used to do batched pagination items, err := client.ListByProjectComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") if err := client.RunHealthChecksThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.RunHealthChecksThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := pools.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") payload := pools.PoolUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/client.go index ea65f5527d9d..5860764dffe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/client.go @@ -15,7 +15,7 @@ type PoolsClient struct { } func NewPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*PoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "pools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "pools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_pool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_pool.go index 6fd5d90ebce9..6a69bf96e35a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_pool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_pool.go @@ -44,7 +44,7 @@ func ParsePoolID(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePoolIDInsensitively(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticPools", "pools", "pools"), - resourceids.UserSpecifiedSegment("poolName", "poolValue"), + resourceids.UserSpecifiedSegment("poolName", "poolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_project.go index 18461e64d142..dc3d13cc6ee3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/id_project.go @@ -42,7 +42,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/method_get.go index f74c4fdbca98..8947bf1c25fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/method_get.go @@ -45,7 +45,6 @@ func (c PoolsClient) Get(ctx context.Context, id PoolId) (result GetOperationRes var model Pool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/version.go index 93fbf2419e79..5d363f0bdbbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/pools/version.go @@ -1,12 +1,10 @@ package pools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/pools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/pools/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/README.md index 9bc17f99e29a..981eb1bd1ec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects` Documentation -The `projects` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `projects` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") payload := projects.Project{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName") payload := projects.ProjectUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/client.go index f862a93697cd..78ad23b0856f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/client.go @@ -15,7 +15,7 @@ type ProjectsClient struct { } func NewProjectsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProjectsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "projects", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "projects", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProjectsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/id_project.go index 35bb5544405d..37929dc162d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/id_project.go @@ -42,7 +42,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_get.go index b37e667ef3db..98e1f02f1882 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_get.go @@ -45,7 +45,6 @@ func (c ProjectsClient) Get(ctx context.Context, id ProjectId) (result GetOperat var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go index ea09446344a5..97acd1334054 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go index 4a003a1da89d..e7ffcb8b3f5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go index 8db7e192d065..038f676c0256 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/model_projectproperties.go @@ -1,5 +1,10 @@ package projects +import ( + "encoding/json" + "fmt" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -10,3 +15,28 @@ type ProjectProperties struct { MaxDevBoxesPerUser *int64 `json:"maxDevBoxesPerUser,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` } + +var _ json.Marshaler = ProjectProperties{} + +func (s ProjectProperties) MarshalJSON() ([]byte, error) { + type wrapper ProjectProperties + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ProjectProperties: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ProjectProperties: %+v", err) + } + + delete(decoded, "devCenterUri") + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ProjectProperties: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/version.go index ff69b7aa9ea4..1b821460ca79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/projects/version.go @@ -1,12 +1,10 @@ package projects -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/projects/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/projects/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/README.md index 140afe992c16..b05985c670b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules` Documentation -The `schedules` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `schedules` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue", "scheduleValue") +id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName", "scheduleName") payload := schedules.Schedule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue", "scheduleValue") +id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName", "scheduleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue", "scheduleValue") +id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName", "scheduleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedules.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue") +id := schedules.NewPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName") // alternatively `client.ListByPool(ctx, id)` can be used to do batched pagination items, err := client.ListByPoolComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectValue", "poolValue", "scheduleValue") +id := schedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "projectName", "poolName", "scheduleName") payload := schedules.ScheduleUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/client.go index 36a9b3c9f6fd..f00be22a71d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/client.go @@ -15,7 +15,7 @@ type SchedulesClient struct { } func NewSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "schedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "schedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_pool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_pool.go index 4d77bd727a5f..37e0b4b29e07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_pool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_pool.go @@ -44,7 +44,7 @@ func ParsePoolID(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePoolIDInsensitively(input string) (*PoolId, error) { } id := PoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticPools", "pools", "pools"), - resourceids.UserSpecifiedSegment("poolName", "poolValue"), + resourceids.UserSpecifiedSegment("poolName", "poolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_schedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_schedule.go index ff47cab2c4c3..5705d9452c3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_schedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/id_schedule.go @@ -46,7 +46,7 @@ func ParseScheduleID(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseScheduleIDInsensitively(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticPools", "pools", "pools"), - resourceids.UserSpecifiedSegment("poolName", "poolValue"), + resourceids.UserSpecifiedSegment("poolName", "poolName"), resourceids.StaticSegment("staticSchedules", "schedules", "schedules"), - resourceids.UserSpecifiedSegment("scheduleName", "scheduleValue"), + resourceids.UserSpecifiedSegment("scheduleName", "scheduleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/method_get.go index c92229c96c5b..6325280a1b4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/method_get.go @@ -45,7 +45,6 @@ func (c SchedulesClient) Get(ctx context.Context, id ScheduleId) (result GetOper var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/version.go index 31ed8d82c7db..b06e6159dafd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/schedules/version.go @@ -1,12 +1,10 @@ package schedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/schedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/schedules/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/README.md index d23503beb33f..fdbdc15c6b41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus` Documentation -The `skus` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `skus` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/client.go index d2fbc1d3af0b..0a133f4bbca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/client.go @@ -15,7 +15,7 @@ type SKUsClient struct { } func NewSKUsClientWithBaseURI(sdkApi sdkEnv.Api) (*SKUsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "skus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "skus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SKUsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/version.go index 6b9ba0488141..0849f057eca9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/skus/version.go @@ -1,12 +1,10 @@ package skus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/skus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/skus/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/README.md index eac30c867b2a..539780157d2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages` Documentation -The `usages` SDK allows for interaction with the Azure Resource Manager Service `devcenter` (API Version `2023-04-01`). +The `usages` SDK allows for interaction with Azure Resource Manager `devcenter` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListByLocation(ctx, id)` can be used to do batched pagination items, err := client.ListByLocationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/client.go index 772d6a5be35b..5b6ce18413b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/client.go @@ -15,7 +15,7 @@ type UsagesClient struct { } func NewUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*UsagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "usages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "usages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UsagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/id_location.go index 4f6ba3944038..5a93fab23d6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevCenter", "Microsoft.DevCenter", "Microsoft.DevCenter"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/version.go index 31971f4c0483..9fb609e17e2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devcenter/2023-04-01/usages/version.go @@ -1,12 +1,10 @@ package usages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/usages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/usages/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md index a8e7fb57f0e2..20d90bf5e1c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate` Documentation -The `dpscertificate` SDK allows for interaction with the Azure Resource Manager Service `deviceprovisioningservices` (API Version `2022-02-05`). +The `dpscertificate` SDK allows for interaction with Azure Resource Manager `deviceprovisioningservices` (API Version `2022-02-05`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "certificateValue") +id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "certificateName") payload := dpscertificate.CertificateResponse{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "certificateValue") +id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "certificateName") read, err := client.Delete(ctx, id, dpscertificate.DefaultDeleteOperationOptions()) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "certificateValue") +id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "certificateName") read, err := client.GenerateVerificationCode(ctx, id, dpscertificate.DefaultGenerateVerificationCodeOperationOptions()) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "certificateValue") +id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "certificateName") read, err := client.Get(ctx, id, dpscertificate.DefaultGetOperationOptions()) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") read, err := client.List(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "certificateValue") +id := dpscertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "certificateName") payload := dpscertificate.VerificationCodeRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/client.go index 1af80c5ab79b..65d9ca93e708 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/client.go @@ -15,7 +15,7 @@ type DpsCertificateClient struct { } func NewDpsCertificateClientWithBaseURI(sdkApi sdkEnv.Api) (*DpsCertificateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dpscertificate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dpscertificate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DpsCertificateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/id_certificate.go index 0d6aef7533a4..5c5bd5db8f92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevices", "Microsoft.Devices", "Microsoft.Devices"), resourceids.StaticSegment("staticProvisioningServices", "provisioningServices", "provisioningServices"), - resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceValue"), + resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go index 3797134fbb91..3f22d6b3275c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c DpsCertificateClient) CreateOrUpdate(ctx context.Context, id Certificate var model CertificateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go index 0a5fa9755289..1a2b963a9fad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_delete.go @@ -43,6 +43,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go index fcc97b0e4725..b8d4d0d8b5b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_generateverificationcode.go @@ -44,6 +44,7 @@ func (o GenerateVerificationCodeOperationOptions) ToHeaders() *client.Headers { func (o GenerateVerificationCodeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -105,7 +106,6 @@ func (c DpsCertificateClient) GenerateVerificationCode(ctx context.Context, id C var model VerificationCodeResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go index dee3f63b2748..84eda9a4de2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c DpsCertificateClient) Get(ctx context.Context, id CertificateId, options var model CertificateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_list.go index 493dc04e4540..ee386d799955 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_list.go @@ -47,7 +47,6 @@ func (c DpsCertificateClient) List(ctx context.Context, id commonids.Provisionin var model CertificateListDescription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go index 7980b41d1eb5..d18ff4ce4d9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/method_verifycertificate.go @@ -44,6 +44,7 @@ func (o VerifyCertificateOperationOptions) ToHeaders() *client.Headers { func (o VerifyCertificateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -109,7 +110,6 @@ func (c DpsCertificateClient) VerifyCertificate(ctx context.Context, id Certific var model CertificateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/version.go index 0bc6b1be837b..061c8c0aae29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/dpscertificate/version.go @@ -1,12 +1,10 @@ package dpscertificate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-05" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dpscertificate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dpscertificate/2022-02-05" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md index 47bb02e22e9d..d3feeb6f923b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource` Documentation -The `iotdpsresource` SDK allows for interaction with the Azure Resource Manager Service `deviceprovisioningservices` (API Version `2022-02-05`). +The `iotdpsresource` SDK allows for interaction with Azure Resource Manager `deviceprovisioningservices` (API Version `2022-02-05`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") payload := iotdpsresource.ProvisioningServiceDescription{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "privateEndpointConnectionValue") +id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") payload := iotdpsresource.PrivateEndpointConnection{ // ... @@ -80,7 +80,7 @@ if err := client.CreateOrUpdatePrivateEndpointConnectionThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -92,7 +92,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "privateEndpointConnectionValue") +id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -104,7 +104,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "privateEndpointConnectionValue") +id := iotdpsresource.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") read, err := client.GetPrivateEndpointConnection(ctx, id) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotdpsresource.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "groupIdValue") +id := iotdpsresource.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "groupId") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -186,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") // alternatively `client.ListKeys(ctx, id)` can be used to do batched pagination items, err := client.ListKeysComplete(ctx, id) @@ -203,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotdpsresource.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue", "keyValue") +id := iotdpsresource.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName", "keyName") read, err := client.ListKeysForKeyName(ctx, id) if err != nil { @@ -219,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") read, err := client.ListPrivateEndpointConnections(ctx, id) if err != nil { @@ -235,7 +235,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") read, err := client.ListPrivateLinkResources(ctx, id) if err != nil { @@ -251,7 +251,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") // alternatively `client.ListValidSkus(ctx, id)` can be used to do batched pagination items, err := client.ListValidSkusComplete(ctx, id) @@ -268,7 +268,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceValue") +id := commonids.NewProvisioningServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "provisioningServiceName") payload := iotdpsresource.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/client.go index eec3ab0d6247..d3d98b56a65a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/client.go @@ -15,7 +15,7 @@ type IotDpsResourceClient struct { } func NewIotDpsResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*IotDpsResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "iotdpsresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "iotdpsresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IotDpsResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_key.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_key.go index b43c0c530059..1ccee80ed636 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_key.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_key.go @@ -44,7 +44,7 @@ func ParseKeyID(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseKeyIDInsensitively(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id KeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevices", "Microsoft.Devices", "Microsoft.Devices"), resourceids.StaticSegment("staticProvisioningServices", "provisioningServices", "provisioningServices"), - resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceValue"), + resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privateendpointconnection.go index c788366a3aa6..fb4b102b577a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevices", "Microsoft.Devices", "Microsoft.Devices"), resourceids.StaticSegment("staticProvisioningServices", "provisioningServices", "provisioningServices"), - resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceValue"), + resourceids.UserSpecifiedSegment("provisioningServiceName", "resourceName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privatelinkresource.go index 34daa61cf4e9..e39fa412d872 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/id_privatelinkresource.go @@ -44,7 +44,7 @@ func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error) { } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResource } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevices", "Microsoft.Devices", "Microsoft.Devices"), resourceids.StaticSegment("staticProvisioningServices", "provisioningServices", "provisioningServices"), - resourceids.UserSpecifiedSegment("provisioningServiceName", "provisioningServiceValue"), + resourceids.UserSpecifiedSegment("provisioningServiceName", "resourceName"), resourceids.StaticSegment("staticPrivateLinkResources", "privateLinkResources", "privateLinkResources"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_checkprovisioningservicenameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_checkprovisioningservicenameavailability.go index 9bd1d9fc8212..07697d5fb989 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_checkprovisioningservicenameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_checkprovisioningservicenameavailability.go @@ -51,7 +51,6 @@ func (c IotDpsResourceClient) CheckProvisioningServiceNameAvailability(ctx conte var model NameAvailabilityInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_get.go index 2e09ec6da4ab..bf5fd8033324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_get.go @@ -46,7 +46,6 @@ func (c IotDpsResourceClient) Get(ctx context.Context, id commonids.Provisioning var model ProvisioningServiceDescription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivateendpointconnection.go index 86653e3fa151..d83d68382827 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivateendpointconnection.go @@ -45,7 +45,6 @@ func (c IotDpsResourceClient) GetPrivateEndpointConnection(ctx context.Context, var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivatelinkresources.go index 0bf5d70f1fbd..3dbaeb365b23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_getprivatelinkresources.go @@ -45,7 +45,6 @@ func (c IotDpsResourceClient) GetPrivateLinkResources(ctx context.Context, id Pr var model GroupIdInformation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeysforkeyname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeysforkeyname.go index 8666e67a73e5..46b620778f1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeysforkeyname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listkeysforkeyname.go @@ -46,7 +46,6 @@ func (c IotDpsResourceClient) ListKeysForKeyName(ctx context.Context, id KeyId) var model SharedAccessSignatureAuthorizationRuleAccessRightsDescription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivateendpointconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivateendpointconnections.go index 273a592a8bd1..a2dd0ec74c62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivateendpointconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivateendpointconnections.go @@ -47,7 +47,6 @@ func (c IotDpsResourceClient) ListPrivateEndpointConnections(ctx context.Context var model []PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivatelinkresources.go index 53c7e6d4c548..327915a5d894 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/method_listprivatelinkresources.go @@ -47,7 +47,6 @@ func (c IotDpsResourceClient) ListPrivateLinkResources(ctx context.Context, id c var model PrivateLinkResources result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/version.go index 4f3f68eb4603..2049ece3928a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceprovisioningservices/2022-02-05/iotdpsresource/version.go @@ -1,12 +1,10 @@ package iotdpsresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-05" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/iotdpsresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/iotdpsresource/2022-02-05" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md index 7c7c995c2f3f..55c589e1a7c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates` Documentation -The `deviceupdates` SDK allows for interaction with the Azure Resource Manager Service `deviceupdate` (API Version `2022-10-01`). +The `deviceupdates` SDK allows for interaction with Azure Resource Manager `deviceupdate` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := deviceupdates.Account{ // ... @@ -42,7 +42,7 @@ if err := client.AccountsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsHead(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := deviceupdates.AccountUpdate{ // ... @@ -158,7 +158,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "instanceValue") +id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "instanceName") payload := deviceupdates.Instance{ // ... @@ -175,7 +175,7 @@ if err := client.InstancesCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "instanceValue") +id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "instanceName") if err := client.InstancesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -187,7 +187,7 @@ if err := client.InstancesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "instanceValue") +id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "instanceName") read, err := client.InstancesGet(ctx, id) if err != nil { @@ -203,7 +203,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "instanceValue") +id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "instanceName") read, err := client.InstancesHead(ctx, id) if err != nil { @@ -219,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := deviceupdates.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.InstancesListByAccount(ctx, id)` can be used to do batched pagination items, err := client.InstancesListByAccountComplete(ctx, id) @@ -236,7 +236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "instanceValue") +id := deviceupdates.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "instanceName") payload := deviceupdates.TagUpdate{ // ... @@ -257,7 +257,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewPrivateEndpointConnectionProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "privateEndpointConnectionProxyIdValue") +id := deviceupdates.NewPrivateEndpointConnectionProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "privateEndpointConnectionProxyId") payload := deviceupdates.PrivateEndpointUpdate{ // ... @@ -278,7 +278,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deviceupdates.NewPrivateEndpointConnectionProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "privateEndpointConnectionProxyIdValue") +id := deviceupdates.NewPrivateEndpointConnectionProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "privateEndpointConnectionProxyId") payload := deviceupdates.PrivateEndpointConnectionProxy{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/client.go index d90b56d6a349..93ff29b915d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/client.go @@ -15,7 +15,7 @@ type DeviceupdatesClient struct { } func NewDeviceupdatesClientWithBaseURI(sdkApi sdkEnv.Api) (*DeviceupdatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deviceupdates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deviceupdates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeviceupdatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_account.go index 8eed3e36e387..b5b065af966e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDeviceUpdate", "Microsoft.DeviceUpdate", "Microsoft.DeviceUpdate"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_instance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_instance.go index 2a06e933332c..f737c986cb8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_instance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_instance.go @@ -44,7 +44,7 @@ func ParseInstanceID(input string) (*InstanceId, error) { } id := InstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInstanceIDInsensitively(input string) (*InstanceId, error) { } id := InstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDeviceUpdate", "Microsoft.DeviceUpdate", "Microsoft.DeviceUpdate"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), + resourceids.UserSpecifiedSegment("instanceName", "instanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_privateendpointconnectionproxy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_privateendpointconnectionproxy.go index 6c1049274b8c..d8c5b2ac1f29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_privateendpointconnectionproxy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/id_privateendpointconnectionproxy.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionProxyID(input string) (*PrivateEndpointConnec } id := PrivateEndpointConnectionProxyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionProxyIDInsensitively(input string) (*PrivateE } id := PrivateEndpointConnectionProxyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionProxyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDeviceUpdate", "Microsoft.DeviceUpdate", "Microsoft.DeviceUpdate"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticPrivateEndpointConnectionProxies", "privateEndpointConnectionProxies", "privateEndpointConnectionProxies"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionProxyId", "privateEndpointConnectionProxyIdValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionProxyId", "privateEndpointConnectionProxyId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountsget.go index c37aaa48d6a0..2b290a67c4d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_accountsget.go @@ -45,7 +45,6 @@ func (c DeviceupdatesClient) AccountsGet(ctx context.Context, id AccountId) (res var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_checknameavailability.go index b5e679fd3276..abab13c3ae77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c DeviceupdatesClient) CheckNameAvailability(ctx context.Context, id commo var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesget.go index da98e5b716eb..1259d55e811e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesget.go @@ -45,7 +45,6 @@ func (c DeviceupdatesClient) InstancesGet(ctx context.Context, id InstanceId) (r var model Instance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesupdate.go index 26958bc3e99f..c772e5c1cb26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/method_instancesupdate.go @@ -49,7 +49,6 @@ func (c DeviceupdatesClient) InstancesUpdate(ctx context.Context, id InstanceId, var model Instance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/version.go index 2f121c3227dd..418460c3e73b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/deviceupdate/2022-10-01/deviceupdates/version.go @@ -1,12 +1,10 @@ package deviceupdates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deviceupdates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deviceupdates/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/README.md index 412a02f7d5b0..b49d2d79ccbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules` Documentation -The `globalschedules` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `globalschedules` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := globalschedules.Schedule{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.ExecuteThenPoll(ctx, id); err != nil { // handle the error @@ -74,7 +74,7 @@ if err := client.ExecuteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.Get(ctx, id, globalschedules.DefaultGetOperationOptions()) if err != nil { @@ -124,7 +124,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := globalschedules.RetargetScheduleProperties{ // ... @@ -141,7 +141,7 @@ if err := client.RetargetThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduleValue") +id := globalschedules.NewScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := globalschedules.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/client.go index 5a4f8bada2ec..91976e98a7ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/client.go @@ -15,7 +15,7 @@ type GlobalSchedulesClient struct { } func NewGlobalSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*GlobalSchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "globalschedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "globalschedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GlobalSchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/id_schedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/id_schedule.go index e0d1c7ef74ba..9390ae73d13b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/id_schedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/id_schedule.go @@ -42,7 +42,7 @@ func ParseScheduleID(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScheduleIDInsensitively(input string) (*ScheduleId, error) { } id := ScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticSchedules", "schedules", "schedules"), - resourceids.UserSpecifiedSegment("scheduleName", "scheduleValue"), + resourceids.UserSpecifiedSegment("scheduleName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_createorupdate.go index edc63b43c835..7b1cf1c2e268 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c GlobalSchedulesClient) CreateOrUpdate(ctx context.Context, id ScheduleId var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go index 5a5441a7dcd8..8b52a9584611 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c GlobalSchedulesClient) Get(ctx context.Context, id ScheduleId, options G var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go index 260f09a35fe9..f190657b7260 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbyresourcegroup.go @@ -43,6 +43,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go index 710adf67e22d..8a3d80c03ad2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_listbysubscription.go @@ -43,6 +43,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_update.go index 9f1371b156d5..090c8120625e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/method_update.go @@ -49,7 +49,6 @@ func (c GlobalSchedulesClient) Update(ctx context.Context, id ScheduleId, input var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/version.go index 23c34b84f6e1..df8aeadf7a50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/globalschedules/version.go @@ -1,12 +1,10 @@ package globalschedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/globalschedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/globalschedules/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/README.md index 99c9de4594c0..80efee7570a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs` Documentation -The `labs` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `labs` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.ClaimAnyVMThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.ClaimAnyVMThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.LabVirtualMachineCreationParameter{ // ... @@ -54,7 +54,7 @@ if err := client.CreateEnvironmentThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.Lab{ // ... @@ -71,7 +71,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.ExportResourceUsageParameters{ // ... @@ -100,7 +100,7 @@ if err := client.ExportResourceUsageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.GenerateUploadUriParameter{ // ... @@ -121,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.Get(ctx, id, labs.DefaultGetOperationOptions()) if err != nil { @@ -137,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.ImportLabVirtualMachineRequest{ // ... @@ -188,7 +188,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.ListVhds(ctx, id)` can be used to do batched pagination items, err := client.ListVhdsComplete(ctx, id) @@ -205,7 +205,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := labs.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := labs.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/client.go index b22489088f41..0b9316a6aaee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/client.go @@ -15,7 +15,7 @@ type LabsClient struct { } func NewLabsClientWithBaseURI(sdkApi sdkEnv.Api) (*LabsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "labs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "labs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LabsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/id_lab.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/id_lab.go index d77f1f317584..1f23313cbb3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/id_lab.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/id_lab.go @@ -42,7 +42,7 @@ func ParseLabID(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLabIDInsensitively(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LabId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_generateuploaduri.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_generateuploaduri.go index 8621611bc1fa..ef5c038055ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_generateuploaduri.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_generateuploaduri.go @@ -50,7 +50,6 @@ func (c LabsClient) GenerateUploadUri(ctx context.Context, id LabId, input Gener var model GenerateUploadUriResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_get.go index 894d9288302a..5d98d8bf7d0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LabsClient) Get(ctx context.Context, id LabId, options GetOperationOptio var model Lab result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go index 1d7a75cd0ce3..86a519ae639c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbyresourcegroup.go @@ -43,6 +43,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go index 2eef6907401a..56c942ef8243 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_listbysubscription.go @@ -43,6 +43,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_update.go index 19ca6b89b14e..b2093fce9d08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/method_update.go @@ -49,7 +49,6 @@ func (c LabsClient) Update(ctx context.Context, id LabId, input UpdateResource) var model Lab result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/version.go index 1b30b0db761f..4100e5333116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/labs/version.go @@ -1,12 +1,10 @@ package labs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/labs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/labs/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/README.md index d773bfb76ab6..1b8496e53230 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies` Documentation -The `policies` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `policies` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "policySetValue", "policyValue") +id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "policySetName", "name") payload := policies.Policy{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "policySetValue", "policyValue") +id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "policySetName", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "policySetValue", "policyValue") +id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "policySetName", "name") read, err := client.Get(ctx, id, policies.DefaultGetOperationOptions()) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policies.NewPolicySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "policySetValue") +id := policies.NewPolicySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "policySetName") // alternatively `client.List(ctx, id, policies.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, policies.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "policySetValue", "policyValue") +id := policies.NewPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "policySetName", "name") payload := policies.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/client.go index 76d2cca9fb62..aa2cda46eb23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/client.go @@ -15,7 +15,7 @@ type PoliciesClient struct { } func NewPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*PoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "policies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "policies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policy.go index 648284b8ec58..b2cd2d2f2441 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policy.go @@ -46,7 +46,7 @@ func ParsePolicyID(input string) (*PolicyId, error) { } id := PolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePolicyIDInsensitively(input string) (*PolicyId, error) { } id := PolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "labName"), resourceids.StaticSegment("staticPolicySets", "policySets", "policySets"), - resourceids.UserSpecifiedSegment("policySetName", "policySetValue"), + resourceids.UserSpecifiedSegment("policySetName", "policySetName"), resourceids.StaticSegment("staticPolicies", "policies", "policies"), - resourceids.UserSpecifiedSegment("policyName", "policyValue"), + resourceids.UserSpecifiedSegment("policyName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policyset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policyset.go index 43d0657e3ca6..0fbe14d191de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policyset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/id_policyset.go @@ -44,7 +44,7 @@ func ParsePolicySetID(input string) (*PolicySetId, error) { } id := PolicySetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePolicySetIDInsensitively(input string) (*PolicySetId, error) { } id := PolicySetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PolicySetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "labName"), resourceids.StaticSegment("staticPolicySets", "policySets", "policySets"), - resourceids.UserSpecifiedSegment("policySetName", "policySetValue"), + resourceids.UserSpecifiedSegment("policySetName", "policySetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_createorupdate.go index 1f38a02871a8..018276d61363 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_createorupdate.go @@ -50,7 +50,6 @@ func (c PoliciesClient) CreateOrUpdate(ctx context.Context, id PolicyId, input P var model Policy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_get.go index ea46a7e01303..0dcafc8f36ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PoliciesClient) Get(ctx context.Context, id PolicyId, options GetOperati var model Policy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_list.go index 789e43c7c741..c2b0a30d4e82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_update.go index 4b74aa21d45a..2de0259d359f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/method_update.go @@ -49,7 +49,6 @@ func (c PoliciesClient) Update(ctx context.Context, id PolicyId, input UpdateRes var model Policy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/version.go index 202eae233936..8dde4ade6aca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/policies/version.go @@ -1,12 +1,10 @@ package policies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/policies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/policies/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/README.md index 19e566dfb4ce..38b75e0c9959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules` Documentation -The `schedules` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `schedules` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := schedules.Schedule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.ExecuteThenPoll(ctx, id); err != nil { // handle the error @@ -73,7 +73,7 @@ if err := client.ExecuteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.Get(ctx, id, schedules.DefaultGetOperationOptions()) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schedules.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := schedules.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.List(ctx, id, schedules.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, schedules.DefaultListOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") // alternatively `client.ListApplicable(ctx, id)` can be used to do batched pagination items, err := client.ListApplicableComplete(ctx, id) @@ -123,7 +123,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "scheduleValue") +id := schedules.NewLabScheduleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := schedules.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/client.go index 36a9b3c9f6fd..f00be22a71d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/client.go @@ -15,7 +15,7 @@ type SchedulesClient struct { } func NewSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "schedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "schedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_lab.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_lab.go index 06c3c5e09ebf..afaa0ae50b95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_lab.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_lab.go @@ -42,7 +42,7 @@ func ParseLabID(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLabIDInsensitively(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LabId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_labschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_labschedule.go index 5cddd948806b..c765a1d5e947 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_labschedule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/id_labschedule.go @@ -44,7 +44,7 @@ func ParseLabScheduleID(input string) (*LabScheduleId, error) { } id := LabScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLabScheduleIDInsensitively(input string) (*LabScheduleId, error) { } id := LabScheduleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LabScheduleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "labName"), resourceids.StaticSegment("staticSchedules", "schedules", "schedules"), - resourceids.UserSpecifiedSegment("scheduleName", "scheduleValue"), + resourceids.UserSpecifiedSegment("scheduleName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_createorupdate.go index ce4e9db872d7..e3b013f920f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SchedulesClient) CreateOrUpdate(ctx context.Context, id LabScheduleId, i var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_get.go index 157c3f02de5a..21856b2466f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SchedulesClient) Get(ctx context.Context, id LabScheduleId, options GetO var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_list.go index e1e1629428a4..8996c061d0a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_update.go index 96261ff1a113..e63b06bcf35d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/method_update.go @@ -49,7 +49,6 @@ func (c SchedulesClient) Update(ctx context.Context, id LabScheduleId, input Upd var model Schedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/version.go index 1455add5ff96..e77673618e83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/schedules/version.go @@ -1,12 +1,10 @@ package schedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/schedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/schedules/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/README.md index de49926dd036..e9c785cfa521 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines` Documentation -The `virtualmachines` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `virtualmachines` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.DataDiskProperties{ // ... @@ -41,7 +41,7 @@ if err := client.AddDataDiskThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.ApplyArtifactsRequest{ // ... @@ -58,7 +58,7 @@ if err := client.ApplyArtifactsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.ClaimThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.ClaimThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.LabVirtualMachine{ // ... @@ -87,7 +87,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +99,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.DetachDataDiskProperties{ // ... @@ -116,7 +116,7 @@ if err := client.DetachDataDiskThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.Get(ctx, id, virtualmachines.DefaultGetOperationOptions()) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.GetRdpFileContents(ctx, id) if err != nil { @@ -148,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := virtualmachines.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.List(ctx, id, virtualmachines.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualmachines.DefaultListOperationOptions()) @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.ListApplicableSchedules(ctx, id) if err != nil { @@ -181,7 +181,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.RedeployThenPoll(ctx, id); err != nil { // handle the error @@ -193,7 +193,7 @@ if err := client.RedeployThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.ResizeLabVirtualMachineProperties{ // ... @@ -210,7 +210,7 @@ if err := client.ResizeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -222,7 +222,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -234,7 +234,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -246,7 +246,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.TransferDisksThenPoll(ctx, id); err != nil { // handle the error @@ -258,7 +258,7 @@ if err := client.TransferDisksThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.UnClaimThenPoll(ctx, id); err != nil { // handle the error @@ -270,7 +270,7 @@ if err := client.UnClaimThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualMachineValue") +id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualmachines.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/client.go index 29f57e611e83..511271064362 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/client.go @@ -15,7 +15,7 @@ type VirtualMachinesClient struct { } func NewVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_lab.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_lab.go index fb32449530fa..c0754323725a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_lab.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_lab.go @@ -42,7 +42,7 @@ func ParseLabID(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLabIDInsensitively(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LabId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_virtualmachine.go index 81b8c3f1b6cb..0c9ba26ad6e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/id_virtualmachine.go @@ -44,7 +44,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "labName"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go index e7a04cfe4ec1..4b2cd379af25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId, opt var model LabVirtualMachine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_getrdpfilecontents.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_getrdpfilecontents.go index 1fd9ea56e1e0..782285814c8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_getrdpfilecontents.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_getrdpfilecontents.go @@ -46,7 +46,6 @@ func (c VirtualMachinesClient) GetRdpFileContents(ctx context.Context, id Virtua var model RdpConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go index 1cdf1f74d372..7bb0e92009cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_listapplicableschedules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_listapplicableschedules.go index b985a02779f1..a25b7501b74d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_listapplicableschedules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_listapplicableschedules.go @@ -46,7 +46,6 @@ func (c VirtualMachinesClient) ListApplicableSchedules(ctx context.Context, id V var model ApplicableSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_update.go index 0992abfa741d..83aac6a51745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/method_update.go @@ -49,7 +49,6 @@ func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, var model LabVirtualMachine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/version.go index 06c8127876ee..be6acd871d72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualmachines/version.go @@ -1,12 +1,10 @@ package virtualmachines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachines/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/README.md index ed6e3b6baf10..d50b248fc3b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks` Documentation -The `virtualnetworks` SDK allows for interaction with the Azure Resource Manager Service `devtestlab` (API Version `2018-09-15`). +The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `devtestlab` (API Version `2018-09-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualnetworks.VirtualNetwork{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue") +id := virtualnetworks.NewLabID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.List(ctx, id, virtualnetworks.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualnetworks.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labValue", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "labName", "name") payload := virtualnetworks.UpdateResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/client.go index 15c346279f67..9acbb6c10272 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/client.go @@ -15,7 +15,7 @@ type VirtualNetworksClient struct { } func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_lab.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_lab.go index 7e18698bab6a..5977b26c6b96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_lab.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_lab.go @@ -42,7 +42,7 @@ func ParseLabID(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLabIDInsensitively(input string) (*LabId, error) { } id := LabId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LabId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_virtualnetwork.go index 510874a744d0..6e84cd8efda8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_virtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/id_virtualnetwork.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkID(input string) (*VirtualNetworkId, error) { } id := VirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkIDInsensitively(input string) (*VirtualNetworkId, error) } id := VirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDevTestLab", "Microsoft.DevTestLab", "Microsoft.DevTestLab"), resourceids.StaticSegment("staticLabs", "labs", "labs"), - resourceids.UserSpecifiedSegment("labName", "labValue"), + resourceids.UserSpecifiedSegment("labName", "labName"), resourceids.StaticSegment("staticVirtualNetworks", "virtualNetworks", "virtualNetworks"), - resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkValue"), + resourceids.UserSpecifiedSegment("virtualNetworkName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go index 9e9262872fc5..0197701ed585 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id VirtualNetworkId, opt var model VirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go index 8d0feb63478c..47f7292eefc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_update.go index 8dfa93a78f7f..c7eccf1c8488 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/method_update.go @@ -49,7 +49,6 @@ func (c VirtualNetworksClient) Update(ctx context.Context, id VirtualNetworkId, var model VirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/version.go index 97df3a33087e..c2a032bb82b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/devtestlab/2018-09-15/virtualnetworks/version.go @@ -1,12 +1,10 @@ package virtualnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-09-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworks/2018-09-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md index 2bcd548bebb1..b5e10c3207f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance` Documentation -The `digitaltwinsinstance` SDK allows for interaction with the Azure Resource Manager Service `digitaltwins` (API Version `2023-01-31`). +The `digitaltwinsinstance` SDK allows for interaction with Azure Resource Manager `digitaltwins` (API Version `2023-01-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := digitaltwinsinstance.DigitalTwinsDescription{ // ... @@ -42,7 +42,7 @@ if err := client.DigitalTwinsCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DigitalTwinsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DigitalTwinsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.DigitalTwinsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := digitaltwinsinstance.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := digitaltwinsinstance.DigitalTwinsPatchDescription{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/client.go index 59ef06127ded..6491ca355db8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/client.go @@ -15,7 +15,7 @@ type DigitalTwinsInstanceClient struct { } func NewDigitalTwinsInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*DigitalTwinsInstanceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "digitaltwinsinstance", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "digitaltwinsinstance", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DigitalTwinsInstanceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/id_digitaltwinsinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/id_digitaltwinsinstance.go index 1cb9ebed92c4..13fb7902ef43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/id_digitaltwinsinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/id_digitaltwinsinstance.go @@ -42,7 +42,7 @@ func ParseDigitalTwinsInstanceID(input string) (*DigitalTwinsInstanceId, error) } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDigitalTwinsInstanceIDInsensitively(input string) (*DigitalTwinsInstan } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DigitalTwinsInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDigitalTwins", "Microsoft.DigitalTwins", "Microsoft.DigitalTwins"), resourceids.StaticSegment("staticDigitalTwinsInstances", "digitalTwinsInstances", "digitalTwinsInstances"), - resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "digitalTwinsInstanceValue"), + resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinsget.go index 38f7e0e3b058..26bcd243999c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/method_digitaltwinsget.go @@ -45,7 +45,6 @@ func (c DigitalTwinsInstanceClient) DigitalTwinsGet(ctx context.Context, id Digi var model DigitalTwinsDescription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/version.go index 0285c99e16db..3283e1dd22ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/digitaltwinsinstance/version.go @@ -1,12 +1,10 @@ package digitaltwinsinstance -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/digitaltwinsinstance/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/digitaltwinsinstance/2023-01-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/README.md index 3fc6fa1ba932..925f6cdd1495 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints` Documentation -The `endpoints` SDK allows for interaction with the Azure Resource Manager Service `digitaltwins` (API Version `2023-01-31`). +The `endpoints` SDK allows for interaction with Azure Resource Manager `digitaltwins` (API Version `2023-01-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "endpointName") payload := endpoints.DigitalTwinsEndpointResource{ // ... @@ -41,7 +41,7 @@ if err := client.DigitalTwinsEndpointCreateOrUpdateThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "endpointName") if err := client.DigitalTwinsEndpointDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DigitalTwinsEndpointDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "endpointName") read, err := client.DigitalTwinsEndpointGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := endpoints.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.DigitalTwinsEndpointList(ctx, id)` can be used to do batched pagination items, err := client.DigitalTwinsEndpointListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/client.go index 5f6c4ea9eceb..754a364cd33a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/client.go @@ -15,7 +15,7 @@ type EndpointsClient struct { } func NewEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*EndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "endpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "endpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_digitaltwinsinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_digitaltwinsinstance.go index ac949c7fe553..dcbaf9d7de85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_digitaltwinsinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_digitaltwinsinstance.go @@ -42,7 +42,7 @@ func ParseDigitalTwinsInstanceID(input string) (*DigitalTwinsInstanceId, error) } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDigitalTwinsInstanceIDInsensitively(input string) (*DigitalTwinsInstan } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DigitalTwinsInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDigitalTwins", "Microsoft.DigitalTwins", "Microsoft.DigitalTwins"), resourceids.StaticSegment("staticDigitalTwinsInstances", "digitalTwinsInstances", "digitalTwinsInstances"), - resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "digitalTwinsInstanceValue"), + resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_endpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_endpoint.go index 95253c53f3a1..5e4ce62b394b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_endpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/id_endpoint.go @@ -44,7 +44,7 @@ func ParseEndpointID(input string) (*EndpointId, error) { } id := EndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEndpointIDInsensitively(input string) (*EndpointId, error) { } id := EndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDigitalTwins", "Microsoft.DigitalTwins", "Microsoft.DigitalTwins"), resourceids.StaticSegment("staticDigitalTwinsInstances", "digitalTwinsInstances", "digitalTwinsInstances"), - resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "digitalTwinsInstanceValue"), + resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "resourceName"), resourceids.StaticSegment("staticEndpoints", "endpoints", "endpoints"), - resourceids.UserSpecifiedSegment("endpointName", "endpointValue"), + resourceids.UserSpecifiedSegment("endpointName", "endpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointget.go index 815a1cb74ad4..c314ee9b679a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/method_digitaltwinsendpointget.go @@ -45,7 +45,6 @@ func (c EndpointsClient) DigitalTwinsEndpointGet(ctx context.Context, id Endpoin var model DigitalTwinsEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresource.go index 201558e7f741..4ee24ba6168c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresource.go @@ -21,10 +21,14 @@ type DigitalTwinsEndpointResource struct { var _ json.Unmarshaler = &DigitalTwinsEndpointResource{} func (s *DigitalTwinsEndpointResource) UnmarshalJSON(bytes []byte) error { - type alias DigitalTwinsEndpointResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DigitalTwinsEndpointResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *DigitalTwinsEndpointResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalDigitalTwinsEndpointResourcePropertiesImplementation(v) + impl, err := UnmarshalDigitalTwinsEndpointResourcePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'DigitalTwinsEndpointResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresourceproperties.go index e5658b7bbb2c..5fc41a95ee7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresourceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_digitaltwinsendpointresourceproperties.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DigitalTwinsEndpointResourceProperties interface { + DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl } -// RawDigitalTwinsEndpointResourcePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DigitalTwinsEndpointResourceProperties = BaseDigitalTwinsEndpointResourcePropertiesImpl{} + +type BaseDigitalTwinsEndpointResourcePropertiesImpl struct { + AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` + CreatedTime *string `json:"createdTime,omitempty"` + DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` + DeadLetterUri *string `json:"deadLetterUri,omitempty"` + EndpointType EndpointType `json:"endpointType"` + Identity *ManagedIdentityReference `json:"identity,omitempty"` + ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty"` +} + +func (s BaseDigitalTwinsEndpointResourcePropertiesImpl) DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl { + return s +} + +var _ DigitalTwinsEndpointResourceProperties = RawDigitalTwinsEndpointResourcePropertiesImpl{} + +// RawDigitalTwinsEndpointResourcePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDigitalTwinsEndpointResourcePropertiesImpl struct { - Type string - Values map[string]interface{} + digitalTwinsEndpointResourceProperties BaseDigitalTwinsEndpointResourcePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawDigitalTwinsEndpointResourcePropertiesImpl) DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl { + return s.digitalTwinsEndpointResourceProperties } -func unmarshalDigitalTwinsEndpointResourcePropertiesImplementation(input []byte) (DigitalTwinsEndpointResourceProperties, error) { +func UnmarshalDigitalTwinsEndpointResourcePropertiesImplementation(input []byte) (DigitalTwinsEndpointResourceProperties, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalDigitalTwinsEndpointResourcePropertiesImplementation(input []byte) return nil, fmt.Errorf("unmarshaling DigitalTwinsEndpointResourceProperties into map[string]interface: %+v", err) } - value, ok := temp["endpointType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["endpointType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "EventGrid") { @@ -60,10 +83,15 @@ func unmarshalDigitalTwinsEndpointResourcePropertiesImplementation(input []byte) return out, nil } - out := RawDigitalTwinsEndpointResourcePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseDigitalTwinsEndpointResourcePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDigitalTwinsEndpointResourcePropertiesImpl: %+v", err) } - return out, nil + + return RawDigitalTwinsEndpointResourcePropertiesImpl{ + digitalTwinsEndpointResourceProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventgrid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventgrid.go index cfcddbebc2dd..facf1ca9ebcd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventgrid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventgrid.go @@ -19,14 +19,28 @@ type EventGrid struct { TopicEndpoint string `json:"TopicEndpoint"` // Fields inherited from DigitalTwinsEndpointResourceProperties + AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` DeadLetterUri *string `json:"deadLetterUri,omitempty"` + EndpointType EndpointType `json:"endpointType"` Identity *ManagedIdentityReference `json:"identity,omitempty"` ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty"` } +func (s EventGrid) DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl { + return BaseDigitalTwinsEndpointResourcePropertiesImpl{ + AuthenticationType: s.AuthenticationType, + CreatedTime: s.CreatedTime, + DeadLetterSecret: s.DeadLetterSecret, + DeadLetterUri: s.DeadLetterUri, + EndpointType: s.EndpointType, + Identity: s.Identity, + ProvisioningState: s.ProvisioningState, + } +} + func (o *EventGrid) GetCreatedTimeAsTime() (*time.Time, error) { if o.CreatedTime == nil { return nil, nil @@ -50,9 +64,10 @@ func (s EventGrid) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventGrid: %+v", err) } + decoded["endpointType"] = "EventGrid" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventhub.go index 3c3b69dbd2d3..65f2eac58f07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_eventhub.go @@ -20,14 +20,28 @@ type EventHub struct { EntityPath *string `json:"entityPath,omitempty"` // Fields inherited from DigitalTwinsEndpointResourceProperties + AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` DeadLetterUri *string `json:"deadLetterUri,omitempty"` + EndpointType EndpointType `json:"endpointType"` Identity *ManagedIdentityReference `json:"identity,omitempty"` ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty"` } +func (s EventHub) DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl { + return BaseDigitalTwinsEndpointResourcePropertiesImpl{ + AuthenticationType: s.AuthenticationType, + CreatedTime: s.CreatedTime, + DeadLetterSecret: s.DeadLetterSecret, + DeadLetterUri: s.DeadLetterUri, + EndpointType: s.EndpointType, + Identity: s.Identity, + ProvisioningState: s.ProvisioningState, + } +} + func (o *EventHub) GetCreatedTimeAsTime() (*time.Time, error) { if o.CreatedTime == nil { return nil, nil @@ -51,9 +65,10 @@ func (s EventHub) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHub: %+v", err) } + decoded["endpointType"] = "EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_servicebus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_servicebus.go index 3e73205aa8c2..213cce670646 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_servicebus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/model_servicebus.go @@ -20,14 +20,28 @@ type ServiceBus struct { SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"` // Fields inherited from DigitalTwinsEndpointResourceProperties + AuthenticationType *AuthenticationType `json:"authenticationType,omitempty"` CreatedTime *string `json:"createdTime,omitempty"` DeadLetterSecret *string `json:"deadLetterSecret,omitempty"` DeadLetterUri *string `json:"deadLetterUri,omitempty"` + EndpointType EndpointType `json:"endpointType"` Identity *ManagedIdentityReference `json:"identity,omitempty"` ProvisioningState *EndpointProvisioningState `json:"provisioningState,omitempty"` } +func (s ServiceBus) DigitalTwinsEndpointResourceProperties() BaseDigitalTwinsEndpointResourcePropertiesImpl { + return BaseDigitalTwinsEndpointResourcePropertiesImpl{ + AuthenticationType: s.AuthenticationType, + CreatedTime: s.CreatedTime, + DeadLetterSecret: s.DeadLetterSecret, + DeadLetterUri: s.DeadLetterUri, + EndpointType: s.EndpointType, + Identity: s.Identity, + ProvisioningState: s.ProvisioningState, + } +} + func (o *ServiceBus) GetCreatedTimeAsTime() (*time.Time, error) { if o.CreatedTime == nil { return nil, nil @@ -51,9 +65,10 @@ func (s ServiceBus) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBus: %+v", err) } + decoded["endpointType"] = "ServiceBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/version.go index 9e40048e4c76..f16255ce4210 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/endpoints/version.go @@ -1,12 +1,10 @@ package endpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/endpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/endpoints/2023-01-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/README.md index cf7e7191908e..432ec7d7b9d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections` Documentation -The `timeseriesdatabaseconnections` SDK allows for interaction with the Azure Resource Manager Service `digitaltwins` (API Version `2023-01-31`). +The `timeseriesdatabaseconnections` SDK allows for interaction with Azure Resource Manager `digitaltwins` (API Version `2023-01-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "timeSeriesDatabaseConnectionValue") +id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "timeSeriesDatabaseConnectionName") payload := timeseriesdatabaseconnections.TimeSeriesDatabaseConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "timeSeriesDatabaseConnectionValue") +id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "timeSeriesDatabaseConnectionName") if err := client.DeleteThenPoll(ctx, id, timeseriesdatabaseconnections.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, timeseriesdatabaseconnections.DefaultDe ```go ctx := context.TODO() -id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue", "timeSeriesDatabaseConnectionValue") +id := timeseriesdatabaseconnections.NewTimeSeriesDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "timeSeriesDatabaseConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := timeseriesdatabaseconnections.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "digitalTwinsInstanceValue") +id := timeseriesdatabaseconnections.NewDigitalTwinsInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/client.go index 456d7d8540a7..5496e8a07b71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/client.go @@ -15,7 +15,7 @@ type TimeSeriesDatabaseConnectionsClient struct { } func NewTimeSeriesDatabaseConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*TimeSeriesDatabaseConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "timeseriesdatabaseconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "timeseriesdatabaseconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TimeSeriesDatabaseConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_digitaltwinsinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_digitaltwinsinstance.go index 13d037601342..7bad479c1c18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_digitaltwinsinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_digitaltwinsinstance.go @@ -42,7 +42,7 @@ func ParseDigitalTwinsInstanceID(input string) (*DigitalTwinsInstanceId, error) } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDigitalTwinsInstanceIDInsensitively(input string) (*DigitalTwinsInstan } id := DigitalTwinsInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DigitalTwinsInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDigitalTwins", "Microsoft.DigitalTwins", "Microsoft.DigitalTwins"), resourceids.StaticSegment("staticDigitalTwinsInstances", "digitalTwinsInstances", "digitalTwinsInstances"), - resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "digitalTwinsInstanceValue"), + resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_timeseriesdatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_timeseriesdatabaseconnection.go index f1474cb643b7..047031ea15fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_timeseriesdatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/id_timeseriesdatabaseconnection.go @@ -44,7 +44,7 @@ func ParseTimeSeriesDatabaseConnectionID(input string) (*TimeSeriesDatabaseConne } id := TimeSeriesDatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTimeSeriesDatabaseConnectionIDInsensitively(input string) (*TimeSeries } id := TimeSeriesDatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TimeSeriesDatabaseConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDigitalTwins", "Microsoft.DigitalTwins", "Microsoft.DigitalTwins"), resourceids.StaticSegment("staticDigitalTwinsInstances", "digitalTwinsInstances", "digitalTwinsInstances"), - resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "digitalTwinsInstanceValue"), + resourceids.UserSpecifiedSegment("digitalTwinsInstanceName", "resourceName"), resourceids.StaticSegment("staticTimeSeriesDatabaseConnections", "timeSeriesDatabaseConnections", "timeSeriesDatabaseConnections"), - resourceids.UserSpecifiedSegment("timeSeriesDatabaseConnectionName", "timeSeriesDatabaseConnectionValue"), + resourceids.UserSpecifiedSegment("timeSeriesDatabaseConnectionName", "timeSeriesDatabaseConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go index a1472cd43c82..b70cbfa6f8f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_delete.go @@ -37,6 +37,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_get.go index 05b2313ec96a..ae0b761eac0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/method_get.go @@ -45,7 +45,6 @@ func (c TimeSeriesDatabaseConnectionsClient) Get(ctx context.Context, id TimeSer var model TimeSeriesDatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_azuredataexplorerconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_azuredataexplorerconnectionproperties.go index fe9d4f49f55b..eccdf65c0b67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_azuredataexplorerconnectionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_azuredataexplorerconnectionproperties.go @@ -24,10 +24,20 @@ type AzureDataExplorerConnectionProperties struct { RecordPropertyAndItemRemovals *bool `json:"recordPropertyAndItemRemovals,omitempty"` // Fields inherited from TimeSeriesDatabaseConnectionProperties + + ConnectionType ConnectionType `json:"connectionType"` Identity *ManagedIdentityReference `json:"identity,omitempty"` ProvisioningState *TimeSeriesDatabaseConnectionState `json:"provisioningState,omitempty"` } +func (s AzureDataExplorerConnectionProperties) TimeSeriesDatabaseConnectionProperties() BaseTimeSeriesDatabaseConnectionPropertiesImpl { + return BaseTimeSeriesDatabaseConnectionPropertiesImpl{ + ConnectionType: s.ConnectionType, + Identity: s.Identity, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = AzureDataExplorerConnectionProperties{} func (s AzureDataExplorerConnectionProperties) MarshalJSON() ([]byte, error) { @@ -39,9 +49,10 @@ func (s AzureDataExplorerConnectionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataExplorerConnectionProperties: %+v", err) } + decoded["connectionType"] = "AzureDataExplorer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnection.go index 226e00f4919b..858676c728a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnection.go @@ -21,10 +21,14 @@ type TimeSeriesDatabaseConnection struct { var _ json.Unmarshaler = &TimeSeriesDatabaseConnection{} func (s *TimeSeriesDatabaseConnection) UnmarshalJSON(bytes []byte) error { - type alias TimeSeriesDatabaseConnection - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TimeSeriesDatabaseConnection: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *TimeSeriesDatabaseConnection) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(v) + impl, err := UnmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'TimeSeriesDatabaseConnection': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnectionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnectionproperties.go index d0f36d4a4930..9c561966177c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnectionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/model_timeseriesdatabaseconnectionproperties.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TimeSeriesDatabaseConnectionProperties interface { + TimeSeriesDatabaseConnectionProperties() BaseTimeSeriesDatabaseConnectionPropertiesImpl } -// RawTimeSeriesDatabaseConnectionPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TimeSeriesDatabaseConnectionProperties = BaseTimeSeriesDatabaseConnectionPropertiesImpl{} + +type BaseTimeSeriesDatabaseConnectionPropertiesImpl struct { + ConnectionType ConnectionType `json:"connectionType"` + Identity *ManagedIdentityReference `json:"identity,omitempty"` + ProvisioningState *TimeSeriesDatabaseConnectionState `json:"provisioningState,omitempty"` +} + +func (s BaseTimeSeriesDatabaseConnectionPropertiesImpl) TimeSeriesDatabaseConnectionProperties() BaseTimeSeriesDatabaseConnectionPropertiesImpl { + return s +} + +var _ TimeSeriesDatabaseConnectionProperties = RawTimeSeriesDatabaseConnectionPropertiesImpl{} + +// RawTimeSeriesDatabaseConnectionPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTimeSeriesDatabaseConnectionPropertiesImpl struct { - Type string - Values map[string]interface{} + timeSeriesDatabaseConnectionProperties BaseTimeSeriesDatabaseConnectionPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawTimeSeriesDatabaseConnectionPropertiesImpl) TimeSeriesDatabaseConnectionProperties() BaseTimeSeriesDatabaseConnectionPropertiesImpl { + return s.timeSeriesDatabaseConnectionProperties } -func unmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(input []byte) (TimeSeriesDatabaseConnectionProperties, error) { +func UnmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(input []byte) (TimeSeriesDatabaseConnectionProperties, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(input []byte) return nil, fmt.Errorf("unmarshaling TimeSeriesDatabaseConnectionProperties into map[string]interface: %+v", err) } - value, ok := temp["connectionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["connectionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureDataExplorer") { @@ -44,10 +63,15 @@ func unmarshalTimeSeriesDatabaseConnectionPropertiesImplementation(input []byte) return out, nil } - out := RawTimeSeriesDatabaseConnectionPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseTimeSeriesDatabaseConnectionPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTimeSeriesDatabaseConnectionPropertiesImpl: %+v", err) } - return out, nil + + return RawTimeSeriesDatabaseConnectionPropertiesImpl{ + timeSeriesDatabaseConnectionProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/version.go index a3f006ae21a3..e77e4187c959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/digitaltwins/2023-01-31/timeseriesdatabaseconnections/version.go @@ -1,12 +1,10 @@ package timeseriesdatabaseconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/timeseriesdatabaseconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/timeseriesdatabaseconnections/2023-01-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/README.md index 99188677a47c..81bad9d549ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns` Documentation -The `dns` SDK allows for interaction with the Azure Resource Manager Service `dns` (API Version `2018-05-01`). +The `dns` SDK allows for interaction with Azure Resource Manager `dns` (API Version `2018-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/client.go index 00ded5781b45..db3d9ec45fa4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/client.go @@ -15,7 +15,7 @@ type DnsClient struct { } func NewDnsClientWithBaseURI(sdkApi sdkEnv.Api) (*DnsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dns", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dns", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DnsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/method_resourcereferencegetbytargetresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/method_resourcereferencegetbytargetresources.go index 218143920a38..0009df1c1315 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/method_resourcereferencegetbytargetresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/method_resourcereferencegetbytargetresources.go @@ -51,7 +51,6 @@ func (c DnsClient) ResourceReferenceGetByTargetResources(ctx context.Context, id var model DnsResourceReferenceResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/version.go index dee2e101b8e3..b3a1c232b5a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/dns/version.go @@ -1,12 +1,10 @@ package dns -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dns/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dns/2018-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/README.md index 99f2fceade27..1ef09c825136 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets` Documentation -The `recordsets` SDK allows for interaction with the Azure Resource Manager Service `dns` (API Version `2018-05-01`). +The `recordsets` SDK allows for interaction with Azure Resource Manager `dns` (API Version `2018-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName", "A", "relativeRecordSetName") payload := recordsets.RecordSet{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName", "A", "relativeRecordSetName") read, err := client.Delete(ctx, id, recordsets.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName", "A", "relativeRecordSetName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := recordsets.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") // alternatively `client.ListAllByDnsZone(ctx, id, recordsets.DefaultListAllByDnsZoneOperationOptions())` can be used to do batched pagination items, err := client.ListAllByDnsZoneComplete(ctx, id, recordsets.DefaultListAllByDnsZoneOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recordsets.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := recordsets.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") // alternatively `client.ListByDnsZone(ctx, id, recordsets.DefaultListByDnsZoneOperationOptions())` can be used to do batched pagination items, err := client.ListByDnsZoneComplete(ctx, id, recordsets.DefaultListByDnsZoneOperationOptions()) @@ -111,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recordsets.NewZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue", "A") +id := recordsets.NewZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName", "A") // alternatively `client.ListByType(ctx, id, recordsets.DefaultListByTypeOperationOptions())` can be used to do batched pagination items, err := client.ListByTypeComplete(ctx, id, recordsets.DefaultListByTypeOperationOptions()) @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName", "A", "relativeRecordSetName") payload := recordsets.RecordSet{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/client.go index 18ff6ef4956e..dc9e1a5c168d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/client.go @@ -15,7 +15,7 @@ type RecordSetsClient struct { } func NewRecordSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*RecordSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "recordsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "recordsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RecordSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_dnszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_dnszone.go index 1a7867601025..cc2d449ccbf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_dnszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_dnszone.go @@ -42,7 +42,7 @@ func ParseDnsZoneID(input string) (*DnsZoneId, error) { } id := DnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsZoneIDInsensitively(input string) (*DnsZoneId, error) { } id := DnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsZones", "dnsZones", "dnsZones"), - resourceids.UserSpecifiedSegment("dnsZoneName", "dnsZoneValue"), + resourceids.UserSpecifiedSegment("dnsZoneName", "zoneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_recordtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_recordtype.go index 8a9dd2f53d4d..2efddaeeaca0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_recordtype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_recordtype.go @@ -46,7 +46,7 @@ func ParseRecordTypeID(input string) (*RecordTypeId, error) { } id := RecordTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRecordTypeIDInsensitively(input string) (*RecordTypeId, error) { } id := RecordTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,9 +135,9 @@ func (id RecordTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsZones", "dnsZones", "dnsZones"), - resourceids.UserSpecifiedSegment("dnsZoneName", "dnsZoneValue"), + resourceids.UserSpecifiedSegment("dnsZoneName", "zoneName"), resourceids.ConstantSegment("recordType", PossibleValuesForRecordType(), "A"), - resourceids.UserSpecifiedSegment("relativeRecordSetName", "relativeRecordSetValue"), + resourceids.UserSpecifiedSegment("relativeRecordSetName", "relativeRecordSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_zone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_zone.go index f51b3246a416..e912608f2af8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_zone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/id_zone.go @@ -44,7 +44,7 @@ func ParseZoneID(input string) (*ZoneId, error) { } id := ZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseZoneIDInsensitively(input string) (*ZoneId, error) { } id := ZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id ZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsZones", "dnsZones", "dnsZones"), - resourceids.UserSpecifiedSegment("dnsZoneName", "dnsZoneValue"), + resourceids.UserSpecifiedSegment("dnsZoneName", "zoneName"), resourceids.ConstantSegment("recordType", PossibleValuesForRecordType(), "A"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go index da283847699b..261e33677c0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c RecordSetsClient) CreateOrUpdate(ctx context.Context, id RecordTypeId, i var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_delete.go index bac259d0f30d..cd48363f8003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_get.go index 4cea33700541..67d36e44a1e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_get.go @@ -45,7 +45,6 @@ func (c RecordSetsClient) Get(ctx context.Context, id RecordTypeId) (result GetO var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go index fb39799f39d8..187a86d79389 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listallbydnszone.go @@ -40,6 +40,7 @@ func (o ListAllByDnsZoneOperationOptions) ToHeaders() *client.Headers { func (o ListAllByDnsZoneOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go index 53bbafa4eb4e..27ec3690cf6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbydnszone.go @@ -40,6 +40,7 @@ func (o ListByDnsZoneOperationOptions) ToHeaders() *client.Headers { func (o ListByDnsZoneOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go index 8931452b9f19..86817caf8ce7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_listbytype.go @@ -40,6 +40,7 @@ func (o ListByTypeOperationOptions) ToHeaders() *client.Headers { func (o ListByTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_update.go index def3737e6646..f5d3687ece99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c RecordSetsClient) Update(ctx context.Context, id RecordTypeId, input Rec var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/version.go index 691500e20078..9fd6a2d70378 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/recordsets/version.go @@ -1,12 +1,10 @@ package recordsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/recordsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/recordsets/2018-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/README.md index c64b5a68bf46..64d377a963fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones` Documentation -The `zones` SDK allows for interaction with the Azure Resource Manager Service `dns` (API Version `2018-05-01`). +The `zones` SDK allows for interaction with Azure Resource Manager `dns` (API Version `2018-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") payload := zones.Zone{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") if err := client.DeleteThenPoll(ctx, id, zones.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id, zones.DefaultDeleteOperationOptions()); ```go ctx := context.TODO() -id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsZoneValue") +id := zones.NewDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "zoneName") payload := zones.ZoneUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/client.go index fd24f82359fd..6ebb05929734 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/client.go @@ -15,7 +15,7 @@ type ZonesClient struct { } func NewZonesClientWithBaseURI(sdkApi sdkEnv.Api) (*ZonesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "zones", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "zones", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ZonesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/id_dnszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/id_dnszone.go index bb57276d5991..211308a108bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/id_dnszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/id_dnszone.go @@ -42,7 +42,7 @@ func ParseDnsZoneID(input string) (*DnsZoneId, error) { } id := DnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsZoneIDInsensitively(input string) (*DnsZoneId, error) { } id := DnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsZones", "dnsZones", "dnsZones"), - resourceids.UserSpecifiedSegment("dnsZoneName", "dnsZoneValue"), + resourceids.UserSpecifiedSegment("dnsZoneName", "zoneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_createorupdate.go index c778cdd95d18..49fbfd68db90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c ZonesClient) CreateOrUpdate(ctx context.Context, id DnsZoneId, input Zon var model Zone result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_delete.go index a56b7a1b796d..1a7de15564ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_get.go index 1596a0f561bf..985a441d1c5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_get.go @@ -45,7 +45,6 @@ func (c ZonesClient) Get(ctx context.Context, id DnsZoneId) (result GetOperation var model Zone result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_list.go index 3668b92d34df..75d6571a50f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go index b5b4df3a980e..29df62cef251 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_update.go index 1188fed264b6..1fecfd55d9eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ZonesClient) Update(ctx context.Context, id DnsZoneId, input ZoneUpdate, var model Zone result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/version.go index 97c17a20e3aa..85e99788c0a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dns/2018-05-01/zones/version.go @@ -1,12 +1,10 @@ package zones -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/zones/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/zones/2018-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md index 00ec99fe93e5..7d3e6c825ec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets` Documentation -The `dnsforwardingrulesets` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `dnsforwardingrulesets` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") payload := dnsforwardingrulesets.DnsForwardingRuleset{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, dnsforwardingrulesets. ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") if err := client.DeleteThenPoll(ctx, id, dnsforwardingrulesets.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, dnsforwardingrulesets.DefaultDeleteOper ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.ListByVirtualNetwork(ctx, id, dnsforwardingrulesets.DefaultListByVirtualNetworkOperationOptions())` can be used to do batched pagination items, err := client.ListByVirtualNetworkComplete(ctx, id, dnsforwardingrulesets.DefaultListByVirtualNetworkOperationOptions()) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := dnsforwardingrulesets.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") payload := dnsforwardingrulesets.DnsForwardingRulesetPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/client.go index 08bd02cb4ef6..73e6f7c7d9ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/client.go @@ -15,7 +15,7 @@ type DnsForwardingRulesetsClient struct { } func NewDnsForwardingRulesetsClientWithBaseURI(sdkApi sdkEnv.Api) (*DnsForwardingRulesetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dnsforwardingrulesets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dnsforwardingrulesets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DnsForwardingRulesetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/id_dnsforwardingruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/id_dnsforwardingruleset.go index 87db52972672..e395f63e6c7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/id_dnsforwardingruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/id_dnsforwardingruleset.go @@ -42,7 +42,7 @@ func ParseDnsForwardingRulesetID(input string) (*DnsForwardingRulesetId, error) } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsForwardingRulesetIDInsensitively(input string) (*DnsForwardingRules } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsForwardingRulesetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsForwardingRulesets", "dnsForwardingRulesets", "dnsForwardingRulesets"), - resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetValue"), + resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go index 3d6c4a2373db..10a7e797dde6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go index a8f0bfab4c8e..39432e2ee572 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_get.go index 0d172c6a6fd1..f51a8d51d904 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_get.go @@ -45,7 +45,6 @@ func (c DnsForwardingRulesetsClient) Get(ctx context.Context, id DnsForwardingRu var model DnsForwardingRuleset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go index 6afbb99977a6..5440f0fa713a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go index 5fb302c8449c..881d28ac5e83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go index 93de0e5a47dd..b62d8934933f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_listbyvirtualnetwork.go @@ -40,6 +40,7 @@ func (o ListByVirtualNetworkOperationOptions) ToHeaders() *client.Headers { func (o ListByVirtualNetworkOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go index 63d1f23e5285..79b4f485af8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/version.go index e950d8d82c82..190a81707ffe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsforwardingrulesets/version.go @@ -1,12 +1,10 @@ package dnsforwardingrulesets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dnsforwardingrulesets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dnsforwardingrulesets/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md index 9a5596cf10f9..791b2ac412ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers` Documentation -The `dnsresolvers` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `dnsresolvers` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") payload := dnsresolvers.DnsResolver{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, dnsresolvers.DefaultCr ```go ctx := context.TODO() -id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") if err := client.DeleteThenPoll(ctx, id, dnsresolvers.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, dnsresolvers.DefaultDeleteOperationOpti ```go ctx := context.TODO() -id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.ListByVirtualNetwork(ctx, id, dnsresolvers.DefaultListByVirtualNetworkOperationOptions())` can be used to do batched pagination items, err := client.ListByVirtualNetworkComplete(ctx, id, dnsresolvers.DefaultListByVirtualNetworkOperationOptions()) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := dnsresolvers.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") payload := dnsresolvers.DnsResolverPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/client.go index ad847df0f62f..c394ee38d2cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/client.go @@ -15,7 +15,7 @@ type DnsResolversClient struct { } func NewDnsResolversClientWithBaseURI(sdkApi sdkEnv.Api) (*DnsResolversClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dnsresolvers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dnsresolvers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DnsResolversClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/id_dnsresolver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/id_dnsresolver.go index 3d3d8474f66f..2673abe41806 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/id_dnsresolver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/id_dnsresolver.go @@ -42,7 +42,7 @@ func ParseDnsResolverID(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsResolverIDInsensitively(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsResolverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsResolvers", "dnsResolvers", "dnsResolvers"), - resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverValue"), + resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go index 454e8754e8b3..364ce6bc73ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go index 57d05da743f6..a0a7c136f36b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_get.go index 53bef285e707..29fb597df97f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_get.go @@ -45,7 +45,6 @@ func (c DnsResolversClient) Get(ctx context.Context, id DnsResolverId) (result G var model DnsResolver result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go index d9530c48f11b..b4f19a3a5dfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go index c5b524e452af..5fbcbbef88c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go index 0202c6bd9a77..02ec5695882f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_listbyvirtualnetwork.go @@ -40,6 +40,7 @@ func (o ListByVirtualNetworkOperationOptions) ToHeaders() *client.Headers { func (o ListByVirtualNetworkOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go index 8095368065bf..89e0f57804d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/version.go index 25bfcfa0f5f8..eb095ffd2b1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/dnsresolvers/version.go @@ -1,12 +1,10 @@ package dnsresolvers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dnsresolvers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dnsresolvers/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/README.md index e5e3ebb49575..b962cfb125d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules` Documentation -The `forwardingrules` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `forwardingrules` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "forwardingRuleValue") +id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "forwardingRuleName") payload := forwardingrules.ForwardingRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "forwardingRuleValue") +id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "forwardingRuleName") read, err := client.Delete(ctx, id, forwardingrules.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "forwardingRuleValue") +id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "forwardingRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := forwardingrules.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := forwardingrules.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") // alternatively `client.List(ctx, id, forwardingrules.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, forwardingrules.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "forwardingRuleValue") +id := forwardingrules.NewForwardingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "forwardingRuleName") payload := forwardingrules.ForwardingRulePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/client.go index 9584b566cb6a..5b99731f66bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/client.go @@ -15,7 +15,7 @@ type ForwardingRulesClient struct { } func NewForwardingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*ForwardingRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "forwardingrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "forwardingrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ForwardingRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_dnsforwardingruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_dnsforwardingruleset.go index d5e9c27efc7e..21e6f853bc56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_dnsforwardingruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_dnsforwardingruleset.go @@ -42,7 +42,7 @@ func ParseDnsForwardingRulesetID(input string) (*DnsForwardingRulesetId, error) } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsForwardingRulesetIDInsensitively(input string) (*DnsForwardingRules } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsForwardingRulesetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsForwardingRulesets", "dnsForwardingRulesets", "dnsForwardingRulesets"), - resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetValue"), + resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_forwardingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_forwardingrule.go index 5dab3f2fd7a6..00d193eba1be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_forwardingrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/id_forwardingrule.go @@ -44,7 +44,7 @@ func ParseForwardingRuleID(input string) (*ForwardingRuleId, error) { } id := ForwardingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseForwardingRuleIDInsensitively(input string) (*ForwardingRuleId, error) } id := ForwardingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ForwardingRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsForwardingRulesets", "dnsForwardingRulesets", "dnsForwardingRulesets"), - resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetValue"), + resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetName"), resourceids.StaticSegment("staticForwardingRules", "forwardingRules", "forwardingRules"), - resourceids.UserSpecifiedSegment("forwardingRuleName", "forwardingRuleValue"), + resourceids.UserSpecifiedSegment("forwardingRuleName", "forwardingRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go index b3fcc356dd4d..ef40afa0cd95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c ForwardingRulesClient) CreateOrUpdate(ctx context.Context, id Forwarding var model ForwardingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go index a86e8a34c7e8..96fab02ca69a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_get.go index b17e06fb08b4..683e77c63a46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_get.go @@ -45,7 +45,6 @@ func (c ForwardingRulesClient) Get(ctx context.Context, id ForwardingRuleId) (re var model ForwardingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go index c63f871e8ce5..3feba0c9ec73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go index 791adfcfb7de..7d23c91b9be0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ForwardingRulesClient) Update(ctx context.Context, id ForwardingRuleId, var model ForwardingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/version.go index 05035cafd471..242a3a0a4d00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/forwardingrules/version.go @@ -1,12 +1,10 @@ package forwardingrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/forwardingrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/forwardingrules/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/README.md index 2d0e862d4d7f..da03fda226ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints` Documentation -The `inboundendpoints` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `inboundendpoints` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue") +id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "inboundEndpointName") payload := inboundendpoints.InboundEndpoint{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, inboundendpoints.Defau ```go ctx := context.TODO() -id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue") +id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "inboundEndpointName") if err := client.DeleteThenPoll(ctx, id, inboundendpoints.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, inboundendpoints.DefaultDeleteOperation ```go ctx := context.TODO() -id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue") +id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "inboundEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inboundendpoints.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := inboundendpoints.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") // alternatively `client.List(ctx, id, inboundendpoints.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, inboundendpoints.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "inboundEndpointValue") +id := inboundendpoints.NewInboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "inboundEndpointName") payload := inboundendpoints.InboundEndpointPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/client.go index e2243baf4af7..d66322f00f11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/client.go @@ -15,7 +15,7 @@ type InboundEndpointsClient struct { } func NewInboundEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*InboundEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "inboundendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "inboundendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating InboundEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_dnsresolver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_dnsresolver.go index ff368fdcbe98..417baab7ae57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_dnsresolver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_dnsresolver.go @@ -42,7 +42,7 @@ func ParseDnsResolverID(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsResolverIDInsensitively(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsResolverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsResolvers", "dnsResolvers", "dnsResolvers"), - resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverValue"), + resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_inboundendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_inboundendpoint.go index f2621fc1e18d..0ec314863904 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_inboundendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/id_inboundendpoint.go @@ -44,7 +44,7 @@ func ParseInboundEndpointID(input string) (*InboundEndpointId, error) { } id := InboundEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInboundEndpointIDInsensitively(input string) (*InboundEndpointId, erro } id := InboundEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InboundEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsResolvers", "dnsResolvers", "dnsResolvers"), - resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverValue"), + resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverName"), resourceids.StaticSegment("staticInboundEndpoints", "inboundEndpoints", "inboundEndpoints"), - resourceids.UserSpecifiedSegment("inboundEndpointName", "inboundEndpointValue"), + resourceids.UserSpecifiedSegment("inboundEndpointName", "inboundEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go index 37bafd6306f8..64642fa340aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go index 2faab3aa8462..8505b20c5f62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_get.go index a41a70c3a843..345973a488db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_get.go @@ -45,7 +45,6 @@ func (c InboundEndpointsClient) Get(ctx context.Context, id InboundEndpointId) ( var model InboundEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go index 7146d101779b..ca722de57d5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go index 7b6e8dc464d9..da5c738c318f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/version.go index e9d4b395fa35..1236f3791689 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/inboundendpoints/version.go @@ -1,12 +1,10 @@ package inboundendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/inboundendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/inboundendpoints/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/README.md index decbfa9be159..bc893caf8a72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints` Documentation -The `outboundendpoints` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `outboundendpoints` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "outboundEndpointValue") +id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "outboundEndpointName") payload := outboundendpoints.OutboundEndpoint{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, outboundendpoints.Defa ```go ctx := context.TODO() -id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "outboundEndpointValue") +id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "outboundEndpointName") if err := client.DeleteThenPoll(ctx, id, outboundendpoints.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, outboundendpoints.DefaultDeleteOperatio ```go ctx := context.TODO() -id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "outboundEndpointValue") +id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "outboundEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outboundendpoints.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue") +id := outboundendpoints.NewDnsResolverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName") // alternatively `client.List(ctx, id, outboundendpoints.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, outboundendpoints.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverValue", "outboundEndpointValue") +id := outboundendpoints.NewOutboundEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsResolverName", "outboundEndpointName") payload := outboundendpoints.OutboundEndpointPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/client.go index 6ddaee617519..8fbc9e23001c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/client.go @@ -15,7 +15,7 @@ type OutboundEndpointsClient struct { } func NewOutboundEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*OutboundEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "outboundendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "outboundendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OutboundEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_dnsresolver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_dnsresolver.go index 49997e1cd69a..0f3ba3a2ad48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_dnsresolver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_dnsresolver.go @@ -42,7 +42,7 @@ func ParseDnsResolverID(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsResolverIDInsensitively(input string) (*DnsResolverId, error) { } id := DnsResolverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsResolverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsResolvers", "dnsResolvers", "dnsResolvers"), - resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverValue"), + resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_outboundendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_outboundendpoint.go index 9dbe380c9092..a96a8a300f5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_outboundendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/id_outboundendpoint.go @@ -44,7 +44,7 @@ func ParseOutboundEndpointID(input string) (*OutboundEndpointId, error) { } id := OutboundEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOutboundEndpointIDInsensitively(input string) (*OutboundEndpointId, er } id := OutboundEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OutboundEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsResolvers", "dnsResolvers", "dnsResolvers"), - resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverValue"), + resourceids.UserSpecifiedSegment("dnsResolverName", "dnsResolverName"), resourceids.StaticSegment("staticOutboundEndpoints", "outboundEndpoints", "outboundEndpoints"), - resourceids.UserSpecifiedSegment("outboundEndpointName", "outboundEndpointValue"), + resourceids.UserSpecifiedSegment("outboundEndpointName", "outboundEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go index aec013644a9b..1eed061313dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go index 2f787452f64d..daec853c8878 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_get.go index b0a5a51ed304..913303c72f17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_get.go @@ -45,7 +45,6 @@ func (c OutboundEndpointsClient) Get(ctx context.Context, id OutboundEndpointId) var model OutboundEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go index 23f09bfc5e03..b96b088ca007 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go index 2ae21a7d4753..08d4d904e5e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/version.go index bb5d161890e3..faf54d5de4b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/outboundendpoints/version.go @@ -1,12 +1,10 @@ package outboundendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/outboundendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/outboundendpoints/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/README.md index 26cac3858874..7ac179eb6cb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks` Documentation -The `virtualnetworklinks` SDK allows for interaction with the Azure Resource Manager Service `dnsresolver` (API Version `2022-07-01`). +The `virtualnetworklinks` SDK allows for interaction with Azure Resource Manager `dnsresolver` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "virtualNetworkLinkName") payload := virtualnetworklinks.VirtualNetworkLink{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworklinks.De ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "virtualNetworkLinkName") if err := client.DeleteThenPoll(ctx, id, virtualnetworklinks.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualnetworklinks.DefaultDeleteOperat ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "virtualNetworkLinkName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworklinks.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue") +id := virtualnetworklinks.NewDnsForwardingRulesetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName") // alternatively `client.List(ctx, id, virtualnetworklinks.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualnetworklinks.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dnsForwardingRulesetName", "virtualNetworkLinkName") payload := virtualnetworklinks.VirtualNetworkLinkPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/client.go index 69e2bb7e2f11..f81f0abd63a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/client.go @@ -15,7 +15,7 @@ type VirtualNetworkLinksClient struct { } func NewVirtualNetworkLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkLinksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworklinks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworklinks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkLinksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_dnsforwardingruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_dnsforwardingruleset.go index 55d2444cee0b..bc6a5b0288a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_dnsforwardingruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_dnsforwardingruleset.go @@ -42,7 +42,7 @@ func ParseDnsForwardingRulesetID(input string) (*DnsForwardingRulesetId, error) } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDnsForwardingRulesetIDInsensitively(input string) (*DnsForwardingRules } id := DnsForwardingRulesetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DnsForwardingRulesetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsForwardingRulesets", "dnsForwardingRulesets", "dnsForwardingRulesets"), - resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetValue"), + resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_virtualnetworklink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_virtualnetworklink.go index 9cca0e21074e..48d70a271f75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_virtualnetworklink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/id_virtualnetworklink.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkLinkID(input string) (*VirtualNetworkLinkId, error) { } id := VirtualNetworkLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkLinkIDInsensitively(input string) (*VirtualNetworkLinkId } id := VirtualNetworkLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDnsForwardingRulesets", "dnsForwardingRulesets", "dnsForwardingRulesets"), - resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetValue"), + resourceids.UserSpecifiedSegment("dnsForwardingRulesetName", "dnsForwardingRulesetName"), resourceids.StaticSegment("staticVirtualNetworkLinks", "virtualNetworkLinks", "virtualNetworkLinks"), - resourceids.UserSpecifiedSegment("virtualNetworkLinkName", "virtualNetworkLinkValue"), + resourceids.UserSpecifiedSegment("virtualNetworkLinkName", "virtualNetworkLinkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go index c6bc6fe55175..8f62fdb509bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go index d170aa216a1b..655a60540de4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_get.go index 27873563fafb..c3d4a23300c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkLinksClient) Get(ctx context.Context, id VirtualNetworkLin var model VirtualNetworkLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go index 98123878eac9..6384fef9ffa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go index 1e1a06de2698..6d19c45beafc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/version.go index ad92cdffda34..3bcbeab06569 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dnsresolver/2022-07-01/virtualnetworklinks/version.go @@ -1,12 +1,10 @@ package virtualnetworklinks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworklinks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworklinks/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/README.md index 6eea80a7ed06..88c6f06f4068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource` Documentation -The `monitorsresource` SDK allows for interaction with the Azure Resource Manager Service `elastic` (API Version `2023-06-01`). +The `monitorsresource` SDK allows for interaction with Azure Resource Manager `elastic` (API Version `2023-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitorsresource.ElasticMonitorResource{ // ... @@ -42,7 +42,7 @@ if err := client.MonitorsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") if err := client.MonitorsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.MonitorsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.MonitorsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitorsresource.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitorsresource.ElasticMonitorResourceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/client.go index be6f7acb94b4..5e8ae38cadab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/client.go @@ -15,7 +15,7 @@ type MonitorsResourceClient struct { } func NewMonitorsResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "monitorsresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "monitorsresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MonitorsResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/id_monitor.go index 815b17016f74..6f6166478887 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElastic", "Microsoft.Elastic", "Microsoft.Elastic"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsget.go index f2e6c29cd088..82247400b1bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsget.go @@ -45,7 +45,6 @@ func (c MonitorsResourceClient) MonitorsGet(ctx context.Context, id MonitorId) ( var model ElasticMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsupdate.go index 571324a755da..01012e27e88c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/method_monitorsupdate.go @@ -49,7 +49,6 @@ func (c MonitorsResourceClient) MonitorsUpdate(ctx context.Context, id MonitorId var model ElasticMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/version.go index 55e2321d8fb8..07f1820a044f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/monitorsresource/version.go @@ -1,12 +1,10 @@ package monitorsresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/monitorsresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/monitorsresource/2023-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/README.md index 9e7c2787680e..b263a67e7623 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules` Documentation -The `rules` SDK allows for interaction with the Azure Resource Manager Service `elastic` (API Version `2023-06-01`). +The `rules` SDK allows for interaction with Azure Resource Manager `elastic` (API Version `2023-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") payload := rules.MonitoringTagRules{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") if err := client.TagRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.TagRulesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := rules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") read, err := client.TagRulesGet(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := rules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.TagRulesList(ctx, id)` can be used to do batched pagination items, err := client.TagRulesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/client.go index d145cf8c38ad..ee5a5154cef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/client.go @@ -15,7 +15,7 @@ type RulesClient struct { } func NewRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "rules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "rules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_monitor.go index 92796420eb86..e31035b9290b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElastic", "Microsoft.Elastic", "Microsoft.Elastic"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_tagrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_tagrule.go index ae68440b2716..6aa67e798ed4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_tagrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/id_tagrule.go @@ -44,7 +44,7 @@ func ParseTagRuleID(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTagRuleIDInsensitively(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TagRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElastic", "Microsoft.Elastic", "Microsoft.Elastic"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), resourceids.StaticSegment("staticTagRules", "tagRules", "tagRules"), - resourceids.UserSpecifiedSegment("tagRuleName", "tagRuleValue"), + resourceids.UserSpecifiedSegment("tagRuleName", "ruleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulescreateorupdate.go index fcb1b93a265c..5ddded602cea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulescreateorupdate.go @@ -49,7 +49,6 @@ func (c RulesClient) TagRulesCreateOrUpdate(ctx context.Context, id TagRuleId, i var model MonitoringTagRules result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulesget.go index 680b675fa8bd..86d73a88c565 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/method_tagrulesget.go @@ -45,7 +45,6 @@ func (c RulesClient) TagRulesGet(ctx context.Context, id TagRuleId) (result TagR var model MonitoringTagRules result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/version.go index 6802d0f6a137..037b2fd0eb3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elastic/2023-06-01/rules/version.go @@ -1,12 +1,10 @@ package rules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/rules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/rules/2023-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/README.md index 7d7db5eeb459..49bf240e5be4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan` Documentation -The `elasticsan` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `elasticsan` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/client.go index 07d3c911fda4..305b677249f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/client.go @@ -15,7 +15,7 @@ type ElasticSanClient struct { } func NewElasticSanClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticSanClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "elasticsan", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "elasticsan", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ElasticSanClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/version.go index 53f9c751641d..284f548bea99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsan/version.go @@ -1,12 +1,10 @@ package elasticsan -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/elasticsan/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/elasticsan/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/README.md index ac2dcc31fab2..e3630567f69c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans` Documentation -The `elasticsans` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `elasticsans` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") payload := elasticsans.ElasticSan{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := elasticsans.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") payload := elasticsans.ElasticSanUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/client.go index 7d53b7b8f80d..7e549be7f227 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/client.go @@ -15,7 +15,7 @@ type ElasticSansClient struct { } func NewElasticSansClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticSansClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "elasticsans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "elasticsans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ElasticSansClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/id_elasticsan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/id_elasticsan.go index 96c3b243a419..c15507ef0b66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/id_elasticsan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/id_elasticsan.go @@ -42,7 +42,7 @@ func ParseElasticSanID(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseElasticSanIDInsensitively(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ElasticSanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/method_get.go index 6d49cae4fd62..885d070fb62f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/method_get.go @@ -45,7 +45,6 @@ func (c ElasticSansClient) Get(ctx context.Context, id ElasticSanId) (result Get var model ElasticSan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/version.go index 7442b5b1eea3..d7a85727eb44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsans/version.go @@ -1,12 +1,10 @@ package elasticsans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/elasticsans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/elasticsans/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md index b7f55753fed5..70e4bb28a623 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus` Documentation -The `elasticsanskus` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `elasticsanskus` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/client.go index d4389823bcdc..009c76c1c7d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/client.go @@ -15,7 +15,7 @@ type ElasticSanSkusClient struct { } func NewElasticSanSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticSanSkusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "elasticsanskus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "elasticsanskus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ElasticSanSkusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go index 6dd24ff9f5db..f16c7058f3f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/method_skuslist.go @@ -40,6 +40,7 @@ func (o SkusListOperationOptions) ToHeaders() *client.Headers { func (o SkusListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/version.go index 6fe29bd763f1..1a6fdc668b70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/elasticsanskus/version.go @@ -1,12 +1,10 @@ package elasticsanskus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/elasticsanskus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/elasticsanskus/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/README.md index 5d3309525e9c..2b00c6fb3104 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := privateendpointconnections.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_elasticsan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_elasticsan.go index 5a773a2db21a..c311fe8353f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_elasticsan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_elasticsan.go @@ -42,7 +42,7 @@ func ParseElasticSanID(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseElasticSanIDInsensitively(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ElasticSanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_privateendpointconnection.go index df03de06af6a..1d21261e03f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/version.go index 9e2a36fc3502..5963c7d52f20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/README.md index 479b5d741723..0da45896c6a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := privatelinkresources.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") // alternatively `client.ListByElasticSan(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticSanComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/id_elasticsan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/id_elasticsan.go index 0d188449dfda..cf6aaff67920 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/id_elasticsan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/id_elasticsan.go @@ -42,7 +42,7 @@ func ParseElasticSanID(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseElasticSanIDInsensitively(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ElasticSanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/version.go index d020bb9e164e..80e78c9dced0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/README.md index d034d1f85c5a..24c7b2f9b5d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `snapshots` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "snapshotName") payload := snapshots.Snapshot{ // ... @@ -41,7 +41,7 @@ if err := client.VolumeSnapshotsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "snapshotName") if err := client.VolumeSnapshotsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.VolumeSnapshotsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "snapshotName") read, err := client.VolumeSnapshotsGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := snapshots.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") // alternatively `client.VolumeSnapshotsListByVolumeGroup(ctx, id, snapshots.DefaultVolumeSnapshotsListByVolumeGroupOperationOptions())` can be used to do batched pagination items, err := client.VolumeSnapshotsListByVolumeGroupComplete(ctx, id, snapshots.DefaultVolumeSnapshotsListByVolumeGroupOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/client.go index 620b7900eab7..678a64470aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/client.go @@ -15,7 +15,7 @@ type SnapshotsClient struct { } func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_snapshot.go index 3811be351d14..aba3763ebe8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_snapshot.go @@ -46,7 +46,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotName", "snapshotValue"), + resourceids.UserSpecifiedSegment("snapshotName", "snapshotName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_volumegroup.go index 11de129a31d4..881eb0f010f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_volumegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/id_volumegroup.go @@ -44,7 +44,7 @@ func ParseVolumeGroupID(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVolumeGroupIDInsensitively(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VolumeGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotsget.go index 2eeb02debe8a..b32c4c0ec89e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotsget.go @@ -45,7 +45,6 @@ func (c SnapshotsClient) VolumeSnapshotsGet(ctx context.Context, id SnapshotId) var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go index 44fdd973eed4..36a122316b51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/method_volumesnapshotslistbyvolumegroup.go @@ -39,6 +39,7 @@ func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToHeaders() *client.He func (o VolumeSnapshotsListByVolumeGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/version.go index 49ad4ca9628e..1089e0b7ca29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/snapshots/version.go @@ -1,12 +1,10 @@ package snapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshots/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/README.md index 1d5d9e9404d9..441d9d85f0a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups` Documentation -The `volumegroups` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `volumegroups` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") payload := volumegroups.VolumeGroup{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumegroups.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue") +id := volumegroups.NewElasticSanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName") // alternatively `client.ListByElasticSan(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticSanComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") payload := volumegroups.VolumeGroupUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/client.go index a117e697f045..580e5ac9fb80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/client.go @@ -15,7 +15,7 @@ type VolumeGroupsClient struct { } func NewVolumeGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumeGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumeGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_elasticsan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_elasticsan.go index ac771fd8c566..55984b5e5912 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_elasticsan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_elasticsan.go @@ -42,7 +42,7 @@ func ParseElasticSanID(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseElasticSanIDInsensitively(input string) (*ElasticSanId, error) { } id := ElasticSanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ElasticSanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_volumegroup.go index b242907ec555..fca665a77967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_volumegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/id_volumegroup.go @@ -44,7 +44,7 @@ func ParseVolumeGroupID(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVolumeGroupIDInsensitively(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VolumeGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/method_get.go index f0ba94aae02b..6e78fa5996ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/method_get.go @@ -45,7 +45,6 @@ func (c VolumeGroupsClient) Get(ctx context.Context, id VolumeGroupId) (result G var model VolumeGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/version.go index 6f019279ed6f..9a9273c92e02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumegroups/version.go @@ -1,12 +1,10 @@ package volumegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumegroups/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/README.md index b8aee90bfe59..f130ba8a1e04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes` Documentation -The `volumes` SDK allows for interaction with the Azure Resource Manager Service `elasticsan` (API Version `2023-01-01`). +The `volumes` SDK allows for interaction with Azure Resource Manager `elasticsan` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "volumeName") payload := volumes.Volume{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "volumeName") if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions() ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "volumeName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumes.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue") +id := volumes.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName") // alternatively `client.ListByVolumeGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByVolumeGroupComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanValue", "volumeGroupValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "elasticSanName", "volumeGroupName", "volumeName") payload := volumes.VolumeUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/client.go index 9f34fb4a6eb1..6ead8cc3e7dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/client.go @@ -15,7 +15,7 @@ type VolumesClient struct { } func NewVolumesClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volume.go index 5d0095734b81..d92045dfd2ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volume.go @@ -46,7 +46,7 @@ func ParseVolumeID(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VolumeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volumegroup.go index 788010600c08..104c2c74beaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volumegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/id_volumegroup.go @@ -44,7 +44,7 @@ func ParseVolumeGroupID(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVolumeGroupIDInsensitively(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VolumeGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftElasticSan", "Microsoft.ElasticSan", "Microsoft.ElasticSan"), resourceids.StaticSegment("staticElasticSans", "elasticSans", "elasticSans"), - resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanValue"), + resourceids.UserSpecifiedSegment("elasticSanName", "elasticSanName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go index 1ba07cae1c02..9c7e25c3a2c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_delete.go @@ -42,6 +42,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_get.go index a62cc7f84a3e..1f99d9518184 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/method_get.go @@ -45,7 +45,6 @@ func (c VolumesClient) Get(ctx context.Context, id VolumeId) (result GetOperatio var model Volume result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/version.go index 419311084b80..7a4ff5ba3c86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/elasticsan/2023-01-01/volumes/version.go @@ -1,12 +1,10 @@ package volumes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumes/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/README.md index 3206ffa94b33..65e72a3a300c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels` Documentation -The `channels` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `channels` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue", "channelValue") +id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName", "channelName") payload := channels.Channel{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue", "channelValue") +id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName", "channelName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue", "channelValue") +id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName", "channelName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue", "channelValue") +id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName", "channelName") read, err := client.GetFullUrl(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := channels.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := channels.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") // alternatively `client.ListByPartnerNamespace(ctx, id, channels.DefaultListByPartnerNamespaceOperationOptions())` can be used to do batched pagination items, err := client.ListByPartnerNamespaceComplete(ctx, id, channels.DefaultListByPartnerNamespaceOperationOptions()) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue", "channelValue") +id := channels.NewChannelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName", "channelName") payload := channels.ChannelUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/client.go index c799cab7747e..290347d0c94a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/client.go @@ -15,7 +15,7 @@ type ChannelsClient struct { } func NewChannelsClientWithBaseURI(sdkApi sdkEnv.Api) (*ChannelsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "channels", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "channels", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ChannelsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_channel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_channel.go index 47d572c4d7bf..55f2f06029a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_channel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_channel.go @@ -44,7 +44,7 @@ func ParseChannelID(input string) (*ChannelId, error) { } id := ChannelId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseChannelIDInsensitively(input string) (*ChannelId, error) { } id := ChannelId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ChannelId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerNamespaces", "partnerNamespaces", "partnerNamespaces"), - resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceValue"), + resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceName"), resourceids.StaticSegment("staticChannels", "channels", "channels"), - resourceids.UserSpecifiedSegment("channelName", "channelValue"), + resourceids.UserSpecifiedSegment("channelName", "channelName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_partnernamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_partnernamespace.go index 351e10a9a0bb..5316cec4903e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_partnernamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/id_partnernamespace.go @@ -42,7 +42,7 @@ func ParsePartnerNamespaceID(input string) (*PartnerNamespaceId, error) { } id := PartnerNamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePartnerNamespaceIDInsensitively(input string) (*PartnerNamespaceId, er } id := PartnerNamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PartnerNamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerNamespaces", "partnerNamespaces", "partnerNamespaces"), - resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceValue"), + resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_createorupdate.go index a4c40e770013..e1c08155b09b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ChannelsClient) CreateOrUpdate(ctx context.Context, id ChannelId, input var model Channel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_get.go index eeb0504e9311..9e5b1011b1aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_get.go @@ -45,7 +45,6 @@ func (c ChannelsClient) Get(ctx context.Context, id ChannelId) (result GetOperat var model Channel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_getfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_getfullurl.go index d720e485a8da..cdf119d69dc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_getfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_getfullurl.go @@ -46,7 +46,6 @@ func (c ChannelsClient) GetFullUrl(ctx context.Context, id ChannelId) (result Ge var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go index 49c21e5d8213..6f34425b3b11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/method_listbypartnernamespace.go @@ -40,6 +40,7 @@ func (o ListByPartnerNamespaceOperationOptions) ToHeaders() *client.Headers { func (o ListByPartnerNamespaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/version.go index 976b5183f7fc..65805050c5e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/channels/version.go @@ -1,12 +1,10 @@ package channels -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/channels/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/channels/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/README.md index 420ca80bc18c..c36d6dfff91f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains` Documentation -The `domains` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `domains` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") payload := domains.Domain{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") read, err := client.ListSharedAccessKeys(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") payload := domains.DomainRegenerateKeyRequest{ // ... @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domains.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") payload := domains.DomainUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/client.go index 2ce822d248f2..59ee394333f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/client.go @@ -15,7 +15,7 @@ type DomainsClient struct { } func NewDomainsClientWithBaseURI(sdkApi sdkEnv.Api) (*DomainsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "domains", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "domains", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DomainsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/id_domain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/id_domain.go index 5c8d8f83ca86..ce7272fb2cee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/id_domain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/id_domain.go @@ -42,7 +42,7 @@ func ParseDomainID(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDomainIDInsensitively(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_get.go index b35fd82d944d..20619dde9a01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_get.go @@ -45,7 +45,6 @@ func (c DomainsClient) Get(ctx context.Context, id DomainId) (result GetOperatio var model Domain result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go index b793c81e83cc..1dd8ee85e00a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go index 9f6e9c9d05ba..fec98f9d04ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listsharedaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listsharedaccesskeys.go index ce2010520a4a..d0396a6c73d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listsharedaccesskeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_listsharedaccesskeys.go @@ -46,7 +46,6 @@ func (c DomainsClient) ListSharedAccessKeys(ctx context.Context, id DomainId) (r var model DomainSharedAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_regeneratekey.go index 9e3ed3bff683..d5a87a91b795 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c DomainsClient) RegenerateKey(ctx context.Context, id DomainId, input Dom var model DomainSharedAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_domainproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_domainproperties.go index 2e088ddd161c..c475650d534d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_domainproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_domainproperties.go @@ -26,10 +26,21 @@ type DomainProperties struct { var _ json.Unmarshaler = &DomainProperties{} func (s *DomainProperties) UnmarshalJSON(bytes []byte) error { - type alias DomainProperties - var decoded alias + var decoded struct { + AutoCreateTopicWithFirstSubscription *bool `json:"autoCreateTopicWithFirstSubscription,omitempty"` + AutoDeleteTopicWithLastSubscription *bool `json:"autoDeleteTopicWithLastSubscription,omitempty"` + DataResidencyBoundary *DataResidencyBoundary `json:"dataResidencyBoundary,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + Endpoint *string `json:"endpoint,omitempty"` + InboundIPRules *[]InboundIPRule `json:"inboundIpRules,omitempty"` + InputSchema *InputSchema `json:"inputSchema,omitempty"` + MetricResourceId *string `json:"metricResourceId,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *DomainProvisioningState `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DomainProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AutoCreateTopicWithFirstSubscription = decoded.AutoCreateTopicWithFirstSubscription @@ -50,11 +61,12 @@ func (s *DomainProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["inputSchemaMapping"]; ok { - impl, err := unmarshalInputSchemaMappingImplementation(v) + impl, err := UnmarshalInputSchemaMappingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'InputSchemaMapping' for 'DomainProperties': %+v", err) } s.InputSchemaMapping = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_inputschemamapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_inputschemamapping.go index 2b57ba9fbd0e..2393a1a5da54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_inputschemamapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_inputschemamapping.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InputSchemaMapping interface { + InputSchemaMapping() BaseInputSchemaMappingImpl } -// RawInputSchemaMappingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InputSchemaMapping = BaseInputSchemaMappingImpl{} + +type BaseInputSchemaMappingImpl struct { + InputSchemaMappingType InputSchemaMappingType `json:"inputSchemaMappingType"` +} + +func (s BaseInputSchemaMappingImpl) InputSchemaMapping() BaseInputSchemaMappingImpl { + return s +} + +var _ InputSchemaMapping = RawInputSchemaMappingImpl{} + +// RawInputSchemaMappingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInputSchemaMappingImpl struct { - Type string - Values map[string]interface{} + inputSchemaMapping BaseInputSchemaMappingImpl + Type string + Values map[string]interface{} +} + +func (s RawInputSchemaMappingImpl) InputSchemaMapping() BaseInputSchemaMappingImpl { + return s.inputSchemaMapping } -func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping, error) { +func UnmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping return nil, fmt.Errorf("unmarshaling InputSchemaMapping into map[string]interface: %+v", err) } - value, ok := temp["inputSchemaMappingType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["inputSchemaMappingType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Json") { @@ -44,10 +61,15 @@ func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping return out, nil } - out := RawInputSchemaMappingImpl{ - Type: value, - Values: temp, + var parent BaseInputSchemaMappingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInputSchemaMappingImpl: %+v", err) } - return out, nil + + return RawInputSchemaMappingImpl{ + inputSchemaMapping: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_jsoninputschemamapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_jsoninputschemamapping.go index c1d94f844f6d..a80861d3351f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_jsoninputschemamapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/model_jsoninputschemamapping.go @@ -14,6 +14,14 @@ type JsonInputSchemaMapping struct { Properties *JsonInputSchemaMappingProperties `json:"properties,omitempty"` // Fields inherited from InputSchemaMapping + + InputSchemaMappingType InputSchemaMappingType `json:"inputSchemaMappingType"` +} + +func (s JsonInputSchemaMapping) InputSchemaMapping() BaseInputSchemaMappingImpl { + return BaseInputSchemaMappingImpl{ + InputSchemaMappingType: s.InputSchemaMappingType, + } } var _ json.Marshaler = JsonInputSchemaMapping{} @@ -27,9 +35,10 @@ func (s JsonInputSchemaMapping) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonInputSchemaMapping: %+v", err) } + decoded["inputSchemaMappingType"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/version.go index 68c79b7329b5..d88e984a6a13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domains/version.go @@ -1,12 +1,10 @@ package domains -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/domains/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/domains/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/README.md index 1c5a121566a0..55758dd0ae6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics` Documentation -The `domaintopics` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `domaintopics` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue") +id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName") if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue") +id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -48,7 +48,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue") +id := domaintopics.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName") read, err := client.Get(ctx, id) if err != nil { @@ -64,7 +64,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := domaintopics.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := domaintopics.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") // alternatively `client.ListByDomain(ctx, id, domaintopics.DefaultListByDomainOperationOptions())` can be used to do batched pagination items, err := client.ListByDomainComplete(ctx, id, domaintopics.DefaultListByDomainOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/client.go index 2bff1850d616..318ac595a535 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/client.go @@ -15,7 +15,7 @@ type DomainTopicsClient struct { } func NewDomainTopicsClientWithBaseURI(sdkApi sdkEnv.Api) (*DomainTopicsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "domaintopics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "domaintopics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DomainTopicsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domain.go index 22c236988d07..dc4fb6658aac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domain.go @@ -42,7 +42,7 @@ func ParseDomainID(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDomainIDInsensitively(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domaintopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domaintopic.go index 27aa0dd6e777..53a7fb5f72a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domaintopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/id_domaintopic.go @@ -44,7 +44,7 @@ func ParseDomainTopicID(input string) (*DomainTopicId, error) { } id := DomainTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDomainTopicIDInsensitively(input string) (*DomainTopicId, error) { } id := DomainTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DomainTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_get.go index 8b38c7d97660..459635b2b03a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_get.go @@ -45,7 +45,6 @@ func (c DomainTopicsClient) Get(ctx context.Context, id DomainTopicId) (result G var model DomainTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go index 4651caedf5b6..602ea38f29b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/method_listbydomain.go @@ -40,6 +40,7 @@ func (o ListByDomainOperationOptions) ToHeaders() *client.Headers { func (o ListByDomainOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/version.go index eb66803e4e23..46ed139eee16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/domaintopics/version.go @@ -1,12 +1,10 @@ package domaintopics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/domaintopics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/domaintopics/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md index 1d5ac47e6887..2845e5859417 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions` Documentation -The `eventsubscriptions` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `eventsubscriptions` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -71,7 +71,7 @@ if err := client.DomainEventSubscriptionsCreateOrUpdateThenPoll(ctx, id, payload ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") if err := client.DomainEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.DomainEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") read, err := client.DomainEventSubscriptionsGet(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") read, err := client.DomainEventSubscriptionsGetDeliveryAttributes(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") read, err := client.DomainEventSubscriptionsGetFullUrl(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue") +id := eventsubscriptions.NewDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName") // alternatively `client.DomainEventSubscriptionsList(ctx, id, eventsubscriptions.DefaultDomainEventSubscriptionsListOperationOptions())` can be used to do batched pagination items, err := client.DomainEventSubscriptionsListComplete(ctx, id, eventsubscriptions.DefaultDomainEventSubscriptionsListOperationOptions()) @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "eventSubscriptionValue") +id := eventsubscriptions.NewDomainEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... @@ -165,7 +165,7 @@ if err := client.DomainEventSubscriptionsUpdateThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -182,7 +182,7 @@ if err := client.DomainTopicEventSubscriptionsCreateOrUpdateThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") if err := client.DomainTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -194,7 +194,7 @@ if err := client.DomainTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != ni ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") read, err := client.DomainTopicEventSubscriptionsGet(ctx, id) if err != nil { @@ -210,7 +210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") read, err := client.DomainTopicEventSubscriptionsGetDeliveryAttributes(ctx, id) if err != nil { @@ -226,7 +226,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") read, err := client.DomainTopicEventSubscriptionsGetFullUrl(ctx, id) if err != nil { @@ -242,7 +242,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue") +id := eventsubscriptions.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName") // alternatively `client.DomainTopicEventSubscriptionsList(ctx, id, eventsubscriptions.DefaultDomainTopicEventSubscriptionsListOperationOptions())` can be used to do batched pagination items, err := client.DomainTopicEventSubscriptionsListComplete(ctx, id, eventsubscriptions.DefaultDomainTopicEventSubscriptionsListOperationOptions()) @@ -259,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... @@ -276,7 +276,7 @@ if err := client.DomainTopicEventSubscriptionsUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") read, err := client.Get(ctx, id) if err != nil { @@ -292,7 +292,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") read, err := client.GetDeliveryAttributes(ctx, id) if err != nil { @@ -308,7 +308,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") read, err := client.GetFullUrl(ctx, id) if err != nil { @@ -324,7 +324,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainValue", "topicValue") +id := eventsubscriptions.NewDomainTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "domainName", "topicName") // alternatively `client.ListByDomainTopic(ctx, id, eventsubscriptions.DefaultListByDomainTopicOperationOptions())` can be used to do batched pagination items, err := client.ListByDomainTopicComplete(ctx, id, eventsubscriptions.DefaultListByDomainTopicOperationOptions()) @@ -375,7 +375,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewResourceGroupProviderTopicTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicTypeValue") +id := eventsubscriptions.NewResourceGroupProviderTopicTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicTypeName") // alternatively `client.ListGlobalByResourceGroupForTopicType(ctx, id, eventsubscriptions.DefaultListGlobalByResourceGroupForTopicTypeOperationOptions())` can be used to do batched pagination items, err := client.ListGlobalByResourceGroupForTopicTypeComplete(ctx, id, eventsubscriptions.DefaultListGlobalByResourceGroupForTopicTypeOperationOptions()) @@ -409,7 +409,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewProviderTopicTypeID("12345678-1234-9876-4563-123456789012", "topicTypeValue") +id := eventsubscriptions.NewProviderTopicTypeID("12345678-1234-9876-4563-123456789012", "topicTypeName") // alternatively `client.ListGlobalBySubscriptionForTopicType(ctx, id, eventsubscriptions.DefaultListGlobalBySubscriptionForTopicTypeOperationOptions())` can be used to do batched pagination items, err := client.ListGlobalBySubscriptionForTopicTypeComplete(ctx, id, eventsubscriptions.DefaultListGlobalBySubscriptionForTopicTypeOperationOptions()) @@ -426,7 +426,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := eventsubscriptions.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.ListRegionalByResourceGroup(ctx, id, eventsubscriptions.DefaultListRegionalByResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListRegionalByResourceGroupComplete(ctx, id, eventsubscriptions.DefaultListRegionalByResourceGroupOperationOptions()) @@ -443,7 +443,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewProviderLocationTopicTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "topicTypeValue") +id := eventsubscriptions.NewProviderLocationTopicTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location", "topicTypeName") // alternatively `client.ListRegionalByResourceGroupForTopicType(ctx, id, eventsubscriptions.DefaultListRegionalByResourceGroupForTopicTypeOperationOptions())` can be used to do batched pagination items, err := client.ListRegionalByResourceGroupForTopicTypeComplete(ctx, id, eventsubscriptions.DefaultListRegionalByResourceGroupForTopicTypeOperationOptions()) @@ -460,7 +460,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := eventsubscriptions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListRegionalBySubscription(ctx, id, eventsubscriptions.DefaultListRegionalBySubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListRegionalBySubscriptionComplete(ctx, id, eventsubscriptions.DefaultListRegionalBySubscriptionOperationOptions()) @@ -477,7 +477,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewLocationTopicTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "topicTypeValue") +id := eventsubscriptions.NewLocationTopicTypeID("12345678-1234-9876-4563-123456789012", "location", "topicTypeName") // alternatively `client.ListRegionalBySubscriptionForTopicType(ctx, id, eventsubscriptions.DefaultListRegionalBySubscriptionForTopicTypeOperationOptions())` can be used to do batched pagination items, err := client.ListRegionalBySubscriptionForTopicTypeComplete(ctx, id, eventsubscriptions.DefaultListRegionalBySubscriptionForTopicTypeOperationOptions()) @@ -494,7 +494,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -511,7 +511,7 @@ if err := client.PartnerTopicEventSubscriptionsCreateOrUpdateThenPoll(ctx, id, p ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") if err := client.PartnerTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -523,7 +523,7 @@ if err := client.PartnerTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != n ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") read, err := client.PartnerTopicEventSubscriptionsGet(ctx, id) if err != nil { @@ -539,7 +539,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") read, err := client.PartnerTopicEventSubscriptionsGetDeliveryAttributes(ctx, id) if err != nil { @@ -555,7 +555,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") read, err := client.PartnerTopicEventSubscriptionsGetFullUrl(ctx, id) if err != nil { @@ -571,7 +571,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := eventsubscriptions.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") // alternatively `client.PartnerTopicEventSubscriptionsListByPartnerTopic(ctx, id, eventsubscriptions.DefaultPartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions())` can be used to do batched pagination items, err := client.PartnerTopicEventSubscriptionsListByPartnerTopicComplete(ctx, id, eventsubscriptions.DefaultPartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions()) @@ -588,7 +588,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewPartnerTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... @@ -605,7 +605,7 @@ if err := client.PartnerTopicEventSubscriptionsUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -622,7 +622,7 @@ if err := client.SystemTopicEventSubscriptionsCreateOrUpdateThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") if err := client.SystemTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -634,7 +634,7 @@ if err := client.SystemTopicEventSubscriptionsDeleteThenPoll(ctx, id); err != ni ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") read, err := client.SystemTopicEventSubscriptionsGet(ctx, id) if err != nil { @@ -650,7 +650,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") read, err := client.SystemTopicEventSubscriptionsGetDeliveryAttributes(ctx, id) if err != nil { @@ -666,7 +666,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") read, err := client.SystemTopicEventSubscriptionsGetFullUrl(ctx, id) if err != nil { @@ -682,7 +682,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue") +id := eventsubscriptions.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName") // alternatively `client.SystemTopicEventSubscriptionsListBySystemTopic(ctx, id, eventsubscriptions.DefaultSystemTopicEventSubscriptionsListBySystemTopicOperationOptions())` can be used to do batched pagination items, err := client.SystemTopicEventSubscriptionsListBySystemTopicComplete(ctx, id, eventsubscriptions.DefaultSystemTopicEventSubscriptionsListBySystemTopicOperationOptions()) @@ -699,7 +699,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewSystemTopicEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... @@ -716,7 +716,7 @@ if err := client.SystemTopicEventSubscriptionsUpdateThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscription{ // ... @@ -733,7 +733,7 @@ if err := client.TopicEventSubscriptionsCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") if err := client.TopicEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -745,7 +745,7 @@ if err := client.TopicEventSubscriptionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") read, err := client.TopicEventSubscriptionsGet(ctx, id) if err != nil { @@ -761,7 +761,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") read, err := client.TopicEventSubscriptionsGetDeliveryAttributes(ctx, id) if err != nil { @@ -777,7 +777,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") read, err := client.TopicEventSubscriptionsGetFullUrl(ctx, id) if err != nil { @@ -793,7 +793,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsubscriptions.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := eventsubscriptions.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") // alternatively `client.TopicEventSubscriptionsList(ctx, id, eventsubscriptions.DefaultTopicEventSubscriptionsListOperationOptions())` can be used to do batched pagination items, err := client.TopicEventSubscriptionsListComplete(ctx, id, eventsubscriptions.DefaultTopicEventSubscriptionsListOperationOptions()) @@ -810,7 +810,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue", "eventSubscriptionValue") +id := eventsubscriptions.NewEventSubscriptionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... @@ -827,7 +827,7 @@ if err := client.TopicEventSubscriptionsUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionValue") +id := eventsubscriptions.NewScopedEventSubscriptionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "eventSubscriptionName") payload := eventsubscriptions.EventSubscriptionUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/client.go index 0e948364c6c3..f6530b8d1cb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/client.go @@ -15,7 +15,7 @@ type EventSubscriptionsClient struct { } func NewEventSubscriptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*EventSubscriptionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "eventsubscriptions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "eventsubscriptions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EventSubscriptionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domain.go index 787f917cf801..aed2958f16ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domain.go @@ -42,7 +42,7 @@ func ParseDomainID(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDomainIDInsensitively(input string) (*DomainId, error) { } id := DomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaineventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaineventsubscription.go index e0074d9db09c..63a7e66a7f87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaineventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaineventsubscription.go @@ -44,7 +44,7 @@ func ParseDomainEventSubscriptionID(input string) (*DomainEventSubscriptionId, e } id := DomainEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDomainEventSubscriptionIDInsensitively(input string) (*DomainEventSubs } id := DomainEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DomainEventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaintopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaintopic.go index 229332cb2433..737d98cc27f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaintopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_domaintopic.go @@ -44,7 +44,7 @@ func ParseDomainTopicID(input string) (*DomainTopicId, error) { } id := DomainTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDomainTopicIDInsensitively(input string) (*DomainTopicId, error) { } id := DomainTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DomainTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_eventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_eventsubscription.go index e55608680630..60756dea6e41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_eventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_eventsubscription.go @@ -44,7 +44,7 @@ func ParseEventSubscriptionID(input string) (*EventSubscriptionId, error) { } id := EventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEventSubscriptionIDInsensitively(input string) (*EventSubscriptionId, } id := EventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_location.go index 4b7f13eaa807..75607e8104d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_locationtopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_locationtopictype.go index 37ffb1a0a27c..1b6c5dc58092 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_locationtopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_locationtopictype.go @@ -42,7 +42,7 @@ func ParseLocationTopicTypeID(input string) (*LocationTopicTypeId, error) { } id := LocationTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocationTopicTypeIDInsensitively(input string) (*LocationTopicTypeId, } id := LocationTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id LocationTopicTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticTopicTypes", "topicTypes", "topicTypes"), - resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeValue"), + resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopic.go index 29fe44ab6dfe..4597c2882c6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopic.go @@ -42,7 +42,7 @@ func ParsePartnerTopicID(input string) (*PartnerTopicId, error) { } id := PartnerTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePartnerTopicIDInsensitively(input string) (*PartnerTopicId, error) { } id := PartnerTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PartnerTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerTopics", "partnerTopics", "partnerTopics"), - resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicValue"), + resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopiceventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopiceventsubscription.go index ddfaebbf5407..ec167791a88c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopiceventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_partnertopiceventsubscription.go @@ -44,7 +44,7 @@ func ParsePartnerTopicEventSubscriptionID(input string) (*PartnerTopicEventSubsc } id := PartnerTopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePartnerTopicEventSubscriptionIDInsensitively(input string) (*PartnerTo } id := PartnerTopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PartnerTopicEventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerTopics", "partnerTopics", "partnerTopics"), - resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicValue"), + resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicName"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocation.go index 9443dff760ec..f2b7c1490a4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocationtopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocationtopictype.go index d899252130d4..60cbe3dee8fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocationtopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providerlocationtopictype.go @@ -44,7 +44,7 @@ func ParseProviderLocationTopicTypeID(input string) (*ProviderLocationTopicTypeI } id := ProviderLocationTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProviderLocationTopicTypeIDInsensitively(input string) (*ProviderLocat } id := ProviderLocationTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProviderLocationTopicTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticTopicTypes", "topicTypes", "topicTypes"), - resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeValue"), + resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providertopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providertopictype.go index e2bc4876d002..046af65fabbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providertopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_providertopictype.go @@ -40,7 +40,7 @@ func ParseProviderTopicTypeID(input string) (*ProviderTopicTypeId, error) { } id := ProviderTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviderTopicTypeIDInsensitively(input string) (*ProviderTopicTypeId, } id := ProviderTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ProviderTopicTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopicTypes", "topicTypes", "topicTypes"), - resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeValue"), + resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_resourcegroupprovidertopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_resourcegroupprovidertopictype.go index ceaccf7d225b..645cb23ed321 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_resourcegroupprovidertopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_resourcegroupprovidertopictype.go @@ -42,7 +42,7 @@ func ParseResourceGroupProviderTopicTypeID(input string) (*ResourceGroupProvider } id := ResourceGroupProviderTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseResourceGroupProviderTopicTypeIDInsensitively(input string) (*Resource } id := ResourceGroupProviderTopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ResourceGroupProviderTopicTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopicTypes", "topicTypes", "topicTypes"), - resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeValue"), + resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_scopedeventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_scopedeventsubscription.go index 6ed2211b03b4..eef2d1366968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_scopedeventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_scopedeventsubscription.go @@ -40,7 +40,7 @@ func ParseScopedEventSubscriptionID(input string) (*ScopedEventSubscriptionId, e } id := ScopedEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedEventSubscriptionIDInsensitively(input string) (*ScopedEventSubs } id := ScopedEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedEventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopic.go index a4eb499e4d2d..fa124e02f00d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopic.go @@ -42,7 +42,7 @@ func ParseSystemTopicID(input string) (*SystemTopicId, error) { } id := SystemTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSystemTopicIDInsensitively(input string) (*SystemTopicId, error) { } id := SystemTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SystemTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticSystemTopics", "systemTopics", "systemTopics"), - resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicValue"), + resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopiceventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopiceventsubscription.go index acba0c454121..35a56eb91ebc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopiceventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_systemtopiceventsubscription.go @@ -44,7 +44,7 @@ func ParseSystemTopicEventSubscriptionID(input string) (*SystemTopicEventSubscri } id := SystemTopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSystemTopicEventSubscriptionIDInsensitively(input string) (*SystemTopi } id := SystemTopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SystemTopicEventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticSystemTopics", "systemTopics", "systemTopics"), - resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicValue"), + resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicName"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topic.go index 3bd4c281bb33..5c1eac8da884 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topic.go @@ -42,7 +42,7 @@ func ParseTopicID(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTopicIDInsensitively(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topiceventsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topiceventsubscription.go index d8969bcbd5db..9c4f85006a4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topiceventsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/id_topiceventsubscription.go @@ -46,7 +46,7 @@ func ParseTopicEventSubscriptionID(input string) (*TopicEventSubscriptionId, err } id := TopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseTopicEventSubscriptionIDInsensitively(input string) (*TopicEventSubscr } id := TopicEventSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id TopicEventSubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticDomains", "domains", "domains"), - resourceids.UserSpecifiedSegment("domainName", "domainValue"), + resourceids.UserSpecifiedSegment("domainName", "domainName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticEventSubscriptions", "eventSubscriptions", "eventSubscriptions"), - resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionValue"), + resourceids.UserSpecifiedSegment("eventSubscriptionName", "eventSubscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsget.go index fc4a22816c73..8abe120a8d7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsget.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) DomainEventSubscriptionsGet(ctx context.Contex var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetdeliveryattributes.go index 43be5abe0f10..464ff65aaa13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) DomainEventSubscriptionsGetDeliveryAttributes( var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetfullurl.go index 9ae6056e5722..b8b6b82fddd8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionsgetfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) DomainEventSubscriptionsGetFullUrl(ctx context var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go index 420045209247..dcc354207422 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaineventsubscriptionslist.go @@ -40,6 +40,7 @@ func (o DomainEventSubscriptionsListOperationOptions) ToHeaders() *client.Header func (o DomainEventSubscriptionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsget.go index 81fcdc52e472..a496e0d5793f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsget.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsGet(ctx context.C var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetdeliveryattributes.go index e86151c60ea4..65d110b3922b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsGetDeliveryAttrib var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetfullurl.go index f2c901e30553..84a30dceed8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionsgetfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) DomainTopicEventSubscriptionsGetFullUrl(ctx co var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go index 8e3ffb34d28b..84b2781e70e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_domaintopiceventsubscriptionslist.go @@ -40,6 +40,7 @@ func (o DomainTopicEventSubscriptionsListOperationOptions) ToHeaders() *client.H func (o DomainTopicEventSubscriptionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_get.go index 8f4e1bb89cf6..b982da8fa2de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_get.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) Get(ctx context.Context, id ScopedEventSubscri var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getdeliveryattributes.go index 07b422dfe34f..aca7d4625f9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) GetDeliveryAttributes(ctx context.Context, id var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getfullurl.go index e86dc536f301..e4cc73567158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_getfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) GetFullUrl(ctx context.Context, id ScopedEvent var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go index 4a638a74722a..77f20ec33f8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbydomaintopic.go @@ -40,6 +40,7 @@ func (o ListByDomainTopicOperationOptions) ToHeaders() *client.Headers { func (o ListByDomainTopicOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go index 8b99a4bb3fa2..66595c904cbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listbyresource.go @@ -41,6 +41,7 @@ func (o ListByResourceOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go index fb150fef62f1..82cf428472d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListGlobalByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListGlobalByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go index 219a6798cab6..57b43607c045 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbyresourcegroupfortopictype.go @@ -40,6 +40,7 @@ func (o ListGlobalByResourceGroupForTopicTypeOperationOptions) ToHeaders() *clie func (o ListGlobalByResourceGroupForTopicTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go index f90051169bf9..c05d2b8888b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscription.go @@ -41,6 +41,7 @@ func (o ListGlobalBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListGlobalBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go index acef93478849..426fd647d00f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listglobalbysubscriptionfortopictype.go @@ -40,6 +40,7 @@ func (o ListGlobalBySubscriptionForTopicTypeOperationOptions) ToHeaders() *clien func (o ListGlobalBySubscriptionForTopicTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go index 6c25ecd8ec55..a99e33b7d4e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListRegionalByResourceGroupOperationOptions) ToHeaders() *client.Headers func (o ListRegionalByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go index eb5cb67bd6b0..716d6f2ef64a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbyresourcegroupfortopictype.go @@ -40,6 +40,7 @@ func (o ListRegionalByResourceGroupForTopicTypeOperationOptions) ToHeaders() *cl func (o ListRegionalByResourceGroupForTopicTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go index 1ca5c1df4b34..31412a13dad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscription.go @@ -40,6 +40,7 @@ func (o ListRegionalBySubscriptionOperationOptions) ToHeaders() *client.Headers func (o ListRegionalBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go index bf76a2493488..4780656ef038 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_listregionalbysubscriptionfortopictype.go @@ -40,6 +40,7 @@ func (o ListRegionalBySubscriptionForTopicTypeOperationOptions) ToHeaders() *cli func (o ListRegionalBySubscriptionForTopicTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsget.go index 95a2272a743b..ad5a9c33b042 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsget.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsGet(ctx context. var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetdeliveryattributes.go index 735f29a1d7fa..2ff0454a1256 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsGetDeliveryAttri var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetfullurl.go index 2a7eaa97fb9b..c94e3c6dadd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionsgetfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) PartnerTopicEventSubscriptionsGetFullUrl(ctx c var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go index 873f970532fc..0520c02d803b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_partnertopiceventsubscriptionslistbypartnertopic.go @@ -40,6 +40,7 @@ func (o PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) ToHead func (o PartnerTopicEventSubscriptionsListByPartnerTopicOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsget.go index cdc5a2f4de7c..e0572e8aa339 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsget.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsGet(ctx context.C var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetdeliveryattributes.go index f2e0fd63275e..02c699f89588 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsGetDeliveryAttrib var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetfullurl.go index 2465d121fd24..ec8d05a2ad35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionsgetfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) SystemTopicEventSubscriptionsGetFullUrl(ctx co var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go index 5428359059b1..cada08d49729 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_systemtopiceventsubscriptionslistbysystemtopic.go @@ -40,6 +40,7 @@ func (o SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) ToHeader func (o SystemTopicEventSubscriptionsListBySystemTopicOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsget.go index c3bd2e6b42d6..e2ecec909533 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsget.go @@ -45,7 +45,6 @@ func (c EventSubscriptionsClient) TopicEventSubscriptionsGet(ctx context.Context var model EventSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetdeliveryattributes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetdeliveryattributes.go index 8e703714f9dd..2b43490726fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetdeliveryattributes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetdeliveryattributes.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) TopicEventSubscriptionsGetDeliveryAttributes(c var model DeliveryAttributeListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetfullurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetfullurl.go index ff481e4d08dc..998c1474a037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetfullurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionsgetfullurl.go @@ -46,7 +46,6 @@ func (c EventSubscriptionsClient) TopicEventSubscriptionsGetFullUrl(ctx context. var model EventSubscriptionFullUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go index fd1ace3bff7e..64d05922a74c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/method_topiceventsubscriptionslist.go @@ -40,6 +40,7 @@ func (o TopicEventSubscriptionsListOperationOptions) ToHeaders() *client.Headers func (o TopicEventSubscriptionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_advancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_advancedfilter.go index 9b667278529c..bac4b2cacb8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_advancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_advancedfilter.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AdvancedFilter interface { + AdvancedFilter() BaseAdvancedFilterImpl } -// RawAdvancedFilterImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AdvancedFilter = BaseAdvancedFilterImpl{} + +type BaseAdvancedFilterImpl struct { + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s BaseAdvancedFilterImpl) AdvancedFilter() BaseAdvancedFilterImpl { + return s +} + +var _ AdvancedFilter = RawAdvancedFilterImpl{} + +// RawAdvancedFilterImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAdvancedFilterImpl struct { - Type string - Values map[string]interface{} + advancedFilter BaseAdvancedFilterImpl + Type string + Values map[string]interface{} +} + +func (s RawAdvancedFilterImpl) AdvancedFilter() BaseAdvancedFilterImpl { + return s.advancedFilter } -func unmarshalAdvancedFilterImplementation(input []byte) (AdvancedFilter, error) { +func UnmarshalAdvancedFilterImplementation(input []byte) (AdvancedFilter, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalAdvancedFilterImplementation(input []byte) (AdvancedFilter, error) return nil, fmt.Errorf("unmarshaling AdvancedFilter into map[string]interface: %+v", err) } - value, ok := temp["operatorType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["operatorType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "BoolEquals") { @@ -188,10 +206,15 @@ func unmarshalAdvancedFilterImplementation(input []byte) (AdvancedFilter, error) return out, nil } - out := RawAdvancedFilterImpl{ - Type: value, - Values: temp, + var parent BaseAdvancedFilterImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAdvancedFilterImpl: %+v", err) } - return out, nil + + return RawAdvancedFilterImpl{ + advancedFilter: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestination.go index d580a1e37227..d403033e2916 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestination.go @@ -14,6 +14,14 @@ type AzureFunctionEventSubscriptionDestination struct { Properties *AzureFunctionEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s AzureFunctionEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = AzureFunctionEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s AzureFunctionEventSubscriptionDestination) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFunctionEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "AzureFunction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestinationproperties.go index 38c0e10c1938..59a5d746b183 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_azurefunctioneventsubscriptiondestinationproperties.go @@ -18,10 +18,13 @@ type AzureFunctionEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &AzureFunctionEventSubscriptionDestinationProperties{} func (s *AzureFunctionEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias AzureFunctionEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + MaxEventsPerBatch *int64 `json:"maxEventsPerBatch,omitempty"` + PreferredBatchSizeInKilobytes *int64 `json:"preferredBatchSizeInKilobytes,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureFunctionEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.MaxEventsPerBatch = decoded.MaxEventsPerBatch @@ -41,7 +44,7 @@ func (s *AzureFunctionEventSubscriptionDestinationProperties) UnmarshalJSON(byte output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'AzureFunctionEventSubscriptionDestinationProperties': %+v", i, err) } @@ -49,5 +52,6 @@ func (s *AzureFunctionEventSubscriptionDestinationProperties) UnmarshalJSON(byte } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_boolequalsadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_boolequalsadvancedfilter.go index fc35dd630b7e..1fc50edfc6ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_boolequalsadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_boolequalsadvancedfilter.go @@ -14,7 +14,16 @@ type BoolEqualsAdvancedFilter struct { Value *bool `json:"value,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s BoolEqualsAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = BoolEqualsAdvancedFilter{} @@ -28,9 +37,10 @@ func (s BoolEqualsAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BoolEqualsAdvancedFilter: %+v", err) } + decoded["operatorType"] = "BoolEquals" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterdestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterdestination.go index b445f359655b..89300acf399d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterdestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterdestination.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeadLetterDestination interface { + DeadLetterDestination() BaseDeadLetterDestinationImpl } -// RawDeadLetterDestinationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DeadLetterDestination = BaseDeadLetterDestinationImpl{} + +type BaseDeadLetterDestinationImpl struct { + EndpointType DeadLetterEndPointType `json:"endpointType"` +} + +func (s BaseDeadLetterDestinationImpl) DeadLetterDestination() BaseDeadLetterDestinationImpl { + return s +} + +var _ DeadLetterDestination = RawDeadLetterDestinationImpl{} + +// RawDeadLetterDestinationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDeadLetterDestinationImpl struct { - Type string - Values map[string]interface{} + deadLetterDestination BaseDeadLetterDestinationImpl + Type string + Values map[string]interface{} +} + +func (s RawDeadLetterDestinationImpl) DeadLetterDestination() BaseDeadLetterDestinationImpl { + return s.deadLetterDestination } -func unmarshalDeadLetterDestinationImplementation(input []byte) (DeadLetterDestination, error) { +func UnmarshalDeadLetterDestinationImplementation(input []byte) (DeadLetterDestination, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalDeadLetterDestinationImplementation(input []byte) (DeadLetterDesti return nil, fmt.Errorf("unmarshaling DeadLetterDestination into map[string]interface: %+v", err) } - value, ok := temp["endpointType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["endpointType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "StorageBlob") { @@ -44,10 +61,15 @@ func unmarshalDeadLetterDestinationImplementation(input []byte) (DeadLetterDesti return out, nil } - out := RawDeadLetterDestinationImpl{ - Type: value, - Values: temp, + var parent BaseDeadLetterDestinationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDeadLetterDestinationImpl: %+v", err) } - return out, nil + + return RawDeadLetterDestinationImpl{ + deadLetterDestination: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterwithresourceidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterwithresourceidentity.go index 68884c87f6bd..6a0fd3522f53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterwithresourceidentity.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deadletterwithresourceidentity.go @@ -16,10 +16,11 @@ type DeadLetterWithResourceIdentity struct { var _ json.Unmarshaler = &DeadLetterWithResourceIdentity{} func (s *DeadLetterWithResourceIdentity) UnmarshalJSON(bytes []byte) error { - type alias DeadLetterWithResourceIdentity - var decoded alias + var decoded struct { + Identity *EventSubscriptionIdentity `json:"identity,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DeadLetterWithResourceIdentity: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Identity = decoded.Identity @@ -30,11 +31,12 @@ func (s *DeadLetterWithResourceIdentity) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["deadLetterDestination"]; ok { - impl, err := unmarshalDeadLetterDestinationImplementation(v) + impl, err := UnmarshalDeadLetterDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DeadLetterDestination' for 'DeadLetterWithResourceIdentity': %+v", err) } s.DeadLetterDestination = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributelistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributelistresult.go index 1fc05481f8c5..c3d891b99901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributelistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributelistresult.go @@ -29,7 +29,7 @@ func (s *DeliveryAttributeListResult) UnmarshalJSON(bytes []byte) error { output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'DeliveryAttributeListResult': %+v", i, err) } @@ -37,5 +37,6 @@ func (s *DeliveryAttributeListResult) UnmarshalJSON(bytes []byte) error { } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributemapping.go index 317188346aa1..38cfe05e8d6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributemapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliveryattributemapping.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeliveryAttributeMapping interface { + DeliveryAttributeMapping() BaseDeliveryAttributeMappingImpl } -// RawDeliveryAttributeMappingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DeliveryAttributeMapping = BaseDeliveryAttributeMappingImpl{} + +type BaseDeliveryAttributeMappingImpl struct { + Name *string `json:"name,omitempty"` + Type DeliveryAttributeMappingType `json:"type"` +} + +func (s BaseDeliveryAttributeMappingImpl) DeliveryAttributeMapping() BaseDeliveryAttributeMappingImpl { + return s +} + +var _ DeliveryAttributeMapping = RawDeliveryAttributeMappingImpl{} + +// RawDeliveryAttributeMappingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDeliveryAttributeMappingImpl struct { - Type string - Values map[string]interface{} + deliveryAttributeMapping BaseDeliveryAttributeMappingImpl + Type string + Values map[string]interface{} +} + +func (s RawDeliveryAttributeMappingImpl) DeliveryAttributeMapping() BaseDeliveryAttributeMappingImpl { + return s.deliveryAttributeMapping } -func unmarshalDeliveryAttributeMappingImplementation(input []byte) (DeliveryAttributeMapping, error) { +func UnmarshalDeliveryAttributeMappingImplementation(input []byte) (DeliveryAttributeMapping, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalDeliveryAttributeMappingImplementation(input []byte) (DeliveryAttr return nil, fmt.Errorf("unmarshaling DeliveryAttributeMapping into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Dynamic") { @@ -52,10 +70,15 @@ func unmarshalDeliveryAttributeMappingImplementation(input []byte) (DeliveryAttr return out, nil } - out := RawDeliveryAttributeMappingImpl{ - Type: value, - Values: temp, + var parent BaseDeliveryAttributeMappingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDeliveryAttributeMappingImpl: %+v", err) } - return out, nil + + return RawDeliveryAttributeMappingImpl{ + deliveryAttributeMapping: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliverywithresourceidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliverywithresourceidentity.go index 23396094acd8..a0b24ab1ff6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliverywithresourceidentity.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_deliverywithresourceidentity.go @@ -16,10 +16,11 @@ type DeliveryWithResourceIdentity struct { var _ json.Unmarshaler = &DeliveryWithResourceIdentity{} func (s *DeliveryWithResourceIdentity) UnmarshalJSON(bytes []byte) error { - type alias DeliveryWithResourceIdentity - var decoded alias + var decoded struct { + Identity *EventSubscriptionIdentity `json:"identity,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DeliveryWithResourceIdentity: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Identity = decoded.Identity @@ -30,11 +31,12 @@ func (s *DeliveryWithResourceIdentity) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["destination"]; ok { - impl, err := unmarshalEventSubscriptionDestinationImplementation(v) + impl, err := UnmarshalEventSubscriptionDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Destination' for 'DeliveryWithResourceIdentity': %+v", err) } s.Destination = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_dynamicdeliveryattributemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_dynamicdeliveryattributemapping.go index d7af26c8335b..5937dd8a0b35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_dynamicdeliveryattributemapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_dynamicdeliveryattributemapping.go @@ -14,7 +14,16 @@ type DynamicDeliveryAttributeMapping struct { Properties *DynamicDeliveryAttributeMappingProperties `json:"properties,omitempty"` // Fields inherited from DeliveryAttributeMapping - Name *string `json:"name,omitempty"` + + Name *string `json:"name,omitempty"` + Type DeliveryAttributeMappingType `json:"type"` +} + +func (s DynamicDeliveryAttributeMapping) DeliveryAttributeMapping() BaseDeliveryAttributeMappingImpl { + return BaseDeliveryAttributeMappingImpl{ + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = DynamicDeliveryAttributeMapping{} @@ -28,9 +37,10 @@ func (s DynamicDeliveryAttributeMapping) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DynamicDeliveryAttributeMapping: %+v", err) } + decoded["type"] = "Dynamic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestination.go index b1a7a97c1283..3fe1b5de2122 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestination.go @@ -14,6 +14,14 @@ type EventHubEventSubscriptionDestination struct { Properties *EventHubEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s EventHubEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = EventHubEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s EventHubEventSubscriptionDestination) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestinationproperties.go index 57d8d8163740..28d9c1a8beff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventhubeventsubscriptiondestinationproperties.go @@ -16,10 +16,11 @@ type EventHubEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &EventHubEventSubscriptionDestinationProperties{} func (s *EventHubEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias EventHubEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + ResourceId *string `json:"resourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into EventHubEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ResourceId = decoded.ResourceId @@ -37,7 +38,7 @@ func (s *EventHubEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []b output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'EventHubEventSubscriptionDestinationProperties': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *EventHubEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []b } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptiondestination.go index b190369064fe..221150946fc9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptiondestination.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventSubscriptionDestination interface { + EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl } -// RawEventSubscriptionDestinationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventSubscriptionDestination = BaseEventSubscriptionDestinationImpl{} + +type BaseEventSubscriptionDestinationImpl struct { + EndpointType EndpointType `json:"endpointType"` +} + +func (s BaseEventSubscriptionDestinationImpl) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return s +} + +var _ EventSubscriptionDestination = RawEventSubscriptionDestinationImpl{} + +// RawEventSubscriptionDestinationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventSubscriptionDestinationImpl struct { - Type string - Values map[string]interface{} + eventSubscriptionDestination BaseEventSubscriptionDestinationImpl + Type string + Values map[string]interface{} +} + +func (s RawEventSubscriptionDestinationImpl) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return s.eventSubscriptionDestination } -func unmarshalEventSubscriptionDestinationImplementation(input []byte) (EventSubscriptionDestination, error) { +func UnmarshalEventSubscriptionDestinationImplementation(input []byte) (EventSubscriptionDestination, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalEventSubscriptionDestinationImplementation(input []byte) (EventSub return nil, fmt.Errorf("unmarshaling EventSubscriptionDestination into map[string]interface: %+v", err) } - value, ok := temp["endpointType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["endpointType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureFunction") { @@ -92,10 +109,15 @@ func unmarshalEventSubscriptionDestinationImplementation(input []byte) (EventSub return out, nil } - out := RawEventSubscriptionDestinationImpl{ - Type: value, - Values: temp, + var parent BaseEventSubscriptionDestinationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventSubscriptionDestinationImpl: %+v", err) } - return out, nil + + return RawEventSubscriptionDestinationImpl{ + eventSubscriptionDestination: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionfilter.go index 2bb6ec93a102..7bc807aae727 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionfilter.go @@ -20,10 +20,15 @@ type EventSubscriptionFilter struct { var _ json.Unmarshaler = &EventSubscriptionFilter{} func (s *EventSubscriptionFilter) UnmarshalJSON(bytes []byte) error { - type alias EventSubscriptionFilter - var decoded alias + var decoded struct { + EnableAdvancedFilteringOnArrays *bool `json:"enableAdvancedFilteringOnArrays,omitempty"` + IncludedEventTypes *[]string `json:"includedEventTypes,omitempty"` + IsSubjectCaseSensitive *bool `json:"isSubjectCaseSensitive,omitempty"` + SubjectBeginsWith *string `json:"subjectBeginsWith,omitempty"` + SubjectEndsWith *string `json:"subjectEndsWith,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into EventSubscriptionFilter: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.EnableAdvancedFilteringOnArrays = decoded.EnableAdvancedFilteringOnArrays @@ -45,7 +50,7 @@ func (s *EventSubscriptionFilter) UnmarshalJSON(bytes []byte) error { output := make([]AdvancedFilter, 0) for i, val := range listTemp { - impl, err := unmarshalAdvancedFilterImplementation(val) + impl, err := UnmarshalAdvancedFilterImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'AdvancedFilters' for 'EventSubscriptionFilter': %+v", i, err) } @@ -53,5 +58,6 @@ func (s *EventSubscriptionFilter) UnmarshalJSON(bytes []byte) error { } s.AdvancedFilters = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionproperties.go index 567ad97d79af..6c535fb12566 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionproperties.go @@ -40,10 +40,19 @@ func (o *EventSubscriptionProperties) SetExpirationTimeUtcAsTime(input time.Time var _ json.Unmarshaler = &EventSubscriptionProperties{} func (s *EventSubscriptionProperties) UnmarshalJSON(bytes []byte) error { - type alias EventSubscriptionProperties - var decoded alias + var decoded struct { + DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentity `json:"deadLetterWithResourceIdentity,omitempty"` + DeliveryWithResourceIdentity *DeliveryWithResourceIdentity `json:"deliveryWithResourceIdentity,omitempty"` + EventDeliverySchema *EventDeliverySchema `json:"eventDeliverySchema,omitempty"` + ExpirationTimeUtc *string `json:"expirationTimeUtc,omitempty"` + Filter *EventSubscriptionFilter `json:"filter,omitempty"` + Labels *[]string `json:"labels,omitempty"` + ProvisioningState *EventSubscriptionProvisioningState `json:"provisioningState,omitempty"` + RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` + Topic *string `json:"topic,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into EventSubscriptionProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DeadLetterWithResourceIdentity = decoded.DeadLetterWithResourceIdentity @@ -62,7 +71,7 @@ func (s *EventSubscriptionProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["deadLetterDestination"]; ok { - impl, err := unmarshalDeadLetterDestinationImplementation(v) + impl, err := UnmarshalDeadLetterDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DeadLetterDestination' for 'EventSubscriptionProperties': %+v", err) } @@ -70,11 +79,12 @@ func (s *EventSubscriptionProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["destination"]; ok { - impl, err := unmarshalEventSubscriptionDestinationImplementation(v) + impl, err := UnmarshalEventSubscriptionDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Destination' for 'EventSubscriptionProperties': %+v", err) } s.Destination = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionupdateparameters.go index 72f70f8b4d92..f780ca1a8814 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_eventsubscriptionupdateparameters.go @@ -38,10 +38,17 @@ func (o *EventSubscriptionUpdateParameters) SetExpirationTimeUtcAsTime(input tim var _ json.Unmarshaler = &EventSubscriptionUpdateParameters{} func (s *EventSubscriptionUpdateParameters) UnmarshalJSON(bytes []byte) error { - type alias EventSubscriptionUpdateParameters - var decoded alias + var decoded struct { + DeadLetterWithResourceIdentity *DeadLetterWithResourceIdentity `json:"deadLetterWithResourceIdentity,omitempty"` + DeliveryWithResourceIdentity *DeliveryWithResourceIdentity `json:"deliveryWithResourceIdentity,omitempty"` + EventDeliverySchema *EventDeliverySchema `json:"eventDeliverySchema,omitempty"` + ExpirationTimeUtc *string `json:"expirationTimeUtc,omitempty"` + Filter *EventSubscriptionFilter `json:"filter,omitempty"` + Labels *[]string `json:"labels,omitempty"` + RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into EventSubscriptionUpdateParameters: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DeadLetterWithResourceIdentity = decoded.DeadLetterWithResourceIdentity @@ -58,7 +65,7 @@ func (s *EventSubscriptionUpdateParameters) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["deadLetterDestination"]; ok { - impl, err := unmarshalDeadLetterDestinationImplementation(v) + impl, err := UnmarshalDeadLetterDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'DeadLetterDestination' for 'EventSubscriptionUpdateParameters': %+v", err) } @@ -66,11 +73,12 @@ func (s *EventSubscriptionUpdateParameters) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["destination"]; ok { - impl, err := unmarshalEventSubscriptionDestinationImplementation(v) + impl, err := UnmarshalEventSubscriptionDestinationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Destination' for 'EventSubscriptionUpdateParameters': %+v", err) } s.Destination = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestination.go index 53f4b550d28e..527e83ec7456 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestination.go @@ -14,6 +14,14 @@ type HybridConnectionEventSubscriptionDestination struct { Properties *HybridConnectionEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s HybridConnectionEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = HybridConnectionEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s HybridConnectionEventSubscriptionDestination) MarshalJSON() ([]byte, err } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HybridConnectionEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "HybridConnection" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestinationproperties.go index 246fe52a4437..a207393abadc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_hybridconnectioneventsubscriptiondestinationproperties.go @@ -16,10 +16,11 @@ type HybridConnectionEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &HybridConnectionEventSubscriptionDestinationProperties{} func (s *HybridConnectionEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias HybridConnectionEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + ResourceId *string `json:"resourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into HybridConnectionEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ResourceId = decoded.ResourceId @@ -37,7 +38,7 @@ func (s *HybridConnectionEventSubscriptionDestinationProperties) UnmarshalJSON(b output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'HybridConnectionEventSubscriptionDestinationProperties': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *HybridConnectionEventSubscriptionDestinationProperties) UnmarshalJSON(b } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnotnulladvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnotnulladvancedfilter.go index 46438113a688..94c99dc7473b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnotnulladvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnotnulladvancedfilter.go @@ -13,7 +13,16 @@ var _ AdvancedFilter = IsNotNullAdvancedFilter{} type IsNotNullAdvancedFilter struct { // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s IsNotNullAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = IsNotNullAdvancedFilter{} @@ -27,9 +36,10 @@ func (s IsNotNullAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IsNotNullAdvancedFilter: %+v", err) } + decoded["operatorType"] = "IsNotNull" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnullorundefinedadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnullorundefinedadvancedfilter.go index bd5ffc5807b3..15784423f76a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnullorundefinedadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_isnullorundefinedadvancedfilter.go @@ -13,7 +13,16 @@ var _ AdvancedFilter = IsNullOrUndefinedAdvancedFilter{} type IsNullOrUndefinedAdvancedFilter struct { // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s IsNullOrUndefinedAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = IsNullOrUndefinedAdvancedFilter{} @@ -27,9 +36,10 @@ func (s IsNullOrUndefinedAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IsNullOrUndefinedAdvancedFilter: %+v", err) } + decoded["operatorType"] = "IsNullOrUndefined" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanadvancedfilter.go index 849099788543..0e62571ac894 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanadvancedfilter.go @@ -14,7 +14,16 @@ type NumberGreaterThanAdvancedFilter struct { Value *float64 `json:"value,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberGreaterThanAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberGreaterThanAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberGreaterThanAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberGreaterThanAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberGreaterThan" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanorequalsadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanorequalsadvancedfilter.go index 65713cba2eb4..d9a9276b6822 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanorequalsadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbergreaterthanorequalsadvancedfilter.go @@ -14,7 +14,16 @@ type NumberGreaterThanOrEqualsAdvancedFilter struct { Value *float64 `json:"value,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberGreaterThanOrEqualsAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberGreaterThanOrEqualsAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberGreaterThanOrEqualsAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberGreaterThanOrEqualsAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberGreaterThanOrEquals" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinadvancedfilter.go index 211f9800a91e..11c8b08cfb35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinadvancedfilter.go @@ -14,7 +14,16 @@ type NumberInAdvancedFilter struct { Values *[]float64 `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberInAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberInAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberInAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberInAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberIn" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinrangeadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinrangeadvancedfilter.go index 1d3a5ea97742..6bb34b77724a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinrangeadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberinrangeadvancedfilter.go @@ -14,7 +14,16 @@ type NumberInRangeAdvancedFilter struct { Values *[][]float64 `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberInRangeAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberInRangeAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberInRangeAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberInRangeAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberInRange" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanadvancedfilter.go index 1cb7714062a9..42c3700ac69c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanadvancedfilter.go @@ -14,7 +14,16 @@ type NumberLessThanAdvancedFilter struct { Value *float64 `json:"value,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberLessThanAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberLessThanAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberLessThanAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberLessThanAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberLessThan" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanorequalsadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanorequalsadvancedfilter.go index 3863059df164..9a2b17d16f92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanorequalsadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numberlessthanorequalsadvancedfilter.go @@ -14,7 +14,16 @@ type NumberLessThanOrEqualsAdvancedFilter struct { Value *float64 `json:"value,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberLessThanOrEqualsAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberLessThanOrEqualsAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberLessThanOrEqualsAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberLessThanOrEqualsAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberLessThanOrEquals" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinadvancedfilter.go index 495b6bbeae40..418b3d8f875a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinadvancedfilter.go @@ -14,7 +14,16 @@ type NumberNotInAdvancedFilter struct { Values *[]float64 `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberNotInAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberNotInAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberNotInAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberNotInAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberNotIn" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinrangeadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinrangeadvancedfilter.go index 943c558903f3..46d863fc1330 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinrangeadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_numbernotinrangeadvancedfilter.go @@ -14,7 +14,16 @@ type NumberNotInRangeAdvancedFilter struct { Values *[][]float64 `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s NumberNotInRangeAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = NumberNotInRangeAdvancedFilter{} @@ -28,9 +37,10 @@ func (s NumberNotInRangeAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NumberNotInRangeAdvancedFilter: %+v", err) } + decoded["operatorType"] = "NumberNotInRange" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestination.go index 8b63b7498508..72f55364e534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestination.go @@ -14,6 +14,14 @@ type ServiceBusQueueEventSubscriptionDestination struct { Properties *ServiceBusQueueEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s ServiceBusQueueEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = ServiceBusQueueEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s ServiceBusQueueEventSubscriptionDestination) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusQueueEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "ServiceBusQueue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestinationproperties.go index abb0204b430f..ad7cd894e026 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebusqueueeventsubscriptiondestinationproperties.go @@ -16,10 +16,11 @@ type ServiceBusQueueEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &ServiceBusQueueEventSubscriptionDestinationProperties{} func (s *ServiceBusQueueEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias ServiceBusQueueEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + ResourceId *string `json:"resourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServiceBusQueueEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ResourceId = decoded.ResourceId @@ -37,7 +38,7 @@ func (s *ServiceBusQueueEventSubscriptionDestinationProperties) UnmarshalJSON(by output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'ServiceBusQueueEventSubscriptionDestinationProperties': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *ServiceBusQueueEventSubscriptionDestinationProperties) UnmarshalJSON(by } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestination.go index a3b47d8a5b58..d67b1efcfe08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestination.go @@ -14,6 +14,14 @@ type ServiceBusTopicEventSubscriptionDestination struct { Properties *ServiceBusTopicEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s ServiceBusTopicEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = ServiceBusTopicEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s ServiceBusTopicEventSubscriptionDestination) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusTopicEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "ServiceBusTopic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestinationproperties.go index 30e8fa6cb26d..f74c221a9b10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_servicebustopiceventsubscriptiondestinationproperties.go @@ -16,10 +16,11 @@ type ServiceBusTopicEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &ServiceBusTopicEventSubscriptionDestinationProperties{} func (s *ServiceBusTopicEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias ServiceBusTopicEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + ResourceId *string `json:"resourceId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServiceBusTopicEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ResourceId = decoded.ResourceId @@ -37,7 +38,7 @@ func (s *ServiceBusTopicEventSubscriptionDestinationProperties) UnmarshalJSON(by output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'ServiceBusTopicEventSubscriptionDestinationProperties': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *ServiceBusTopicEventSubscriptionDestinationProperties) UnmarshalJSON(by } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_staticdeliveryattributemapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_staticdeliveryattributemapping.go index efc11b99fa14..4fc1df9149ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_staticdeliveryattributemapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_staticdeliveryattributemapping.go @@ -14,7 +14,16 @@ type StaticDeliveryAttributeMapping struct { Properties *StaticDeliveryAttributeMappingProperties `json:"properties,omitempty"` // Fields inherited from DeliveryAttributeMapping - Name *string `json:"name,omitempty"` + + Name *string `json:"name,omitempty"` + Type DeliveryAttributeMappingType `json:"type"` +} + +func (s StaticDeliveryAttributeMapping) DeliveryAttributeMapping() BaseDeliveryAttributeMappingImpl { + return BaseDeliveryAttributeMappingImpl{ + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = StaticDeliveryAttributeMapping{} @@ -28,9 +37,10 @@ func (s StaticDeliveryAttributeMapping) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StaticDeliveryAttributeMapping: %+v", err) } + decoded["type"] = "Static" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storageblobdeadletterdestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storageblobdeadletterdestination.go index 7c184d520ac8..7e213ea8a146 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storageblobdeadletterdestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storageblobdeadletterdestination.go @@ -14,6 +14,14 @@ type StorageBlobDeadLetterDestination struct { Properties *StorageBlobDeadLetterDestinationProperties `json:"properties,omitempty"` // Fields inherited from DeadLetterDestination + + EndpointType DeadLetterEndPointType `json:"endpointType"` +} + +func (s StorageBlobDeadLetterDestination) DeadLetterDestination() BaseDeadLetterDestinationImpl { + return BaseDeadLetterDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = StorageBlobDeadLetterDestination{} @@ -27,9 +35,10 @@ func (s StorageBlobDeadLetterDestination) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StorageBlobDeadLetterDestination: %+v", err) } + decoded["endpointType"] = "StorageBlob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storagequeueeventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storagequeueeventsubscriptiondestination.go index 6c86f8a335b2..af2903591293 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storagequeueeventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_storagequeueeventsubscriptiondestination.go @@ -14,6 +14,14 @@ type StorageQueueEventSubscriptionDestination struct { Properties *StorageQueueEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s StorageQueueEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = StorageQueueEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s StorageQueueEventSubscriptionDestination) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StorageQueueEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "StorageQueue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringbeginswithadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringbeginswithadvancedfilter.go index cafeef394332..d412ed24c13d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringbeginswithadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringbeginswithadvancedfilter.go @@ -14,7 +14,16 @@ type StringBeginsWithAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringBeginsWithAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringBeginsWithAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringBeginsWithAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringBeginsWithAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringBeginsWith" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringcontainsadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringcontainsadvancedfilter.go index 3a3d26979391..077f690d5b42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringcontainsadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringcontainsadvancedfilter.go @@ -14,7 +14,16 @@ type StringContainsAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringContainsAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringContainsAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringContainsAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringContainsAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringContains" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringendswithadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringendswithadvancedfilter.go index aedb41f4e0db..77f0887e5728 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringendswithadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringendswithadvancedfilter.go @@ -14,7 +14,16 @@ type StringEndsWithAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringEndsWithAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringEndsWithAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringEndsWithAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringEndsWithAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringEndsWith" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringinadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringinadvancedfilter.go index d0fd2071fff0..4b435ee7948e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringinadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringinadvancedfilter.go @@ -14,7 +14,16 @@ type StringInAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringInAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringInAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringInAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringInAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringIn" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotbeginswithadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotbeginswithadvancedfilter.go index cbc797c37f3e..0d7ef2e6a3ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotbeginswithadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotbeginswithadvancedfilter.go @@ -14,7 +14,16 @@ type StringNotBeginsWithAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringNotBeginsWithAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringNotBeginsWithAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringNotBeginsWithAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringNotBeginsWithAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringNotBeginsWith" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotcontainsadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotcontainsadvancedfilter.go index 8a20e0daf71b..cc4bc2b6083e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotcontainsadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotcontainsadvancedfilter.go @@ -14,7 +14,16 @@ type StringNotContainsAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringNotContainsAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringNotContainsAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringNotContainsAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringNotContainsAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringNotContains" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotendswithadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotendswithadvancedfilter.go index c892f63ac367..f68d914687ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotendswithadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotendswithadvancedfilter.go @@ -14,7 +14,16 @@ type StringNotEndsWithAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringNotEndsWithAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringNotEndsWithAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringNotEndsWithAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringNotEndsWithAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringNotEndsWith" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotinadvancedfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotinadvancedfilter.go index da8aeb09107b..265f6abcd459 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotinadvancedfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_stringnotinadvancedfilter.go @@ -14,7 +14,16 @@ type StringNotInAdvancedFilter struct { Values *[]string `json:"values,omitempty"` // Fields inherited from AdvancedFilter - Key *string `json:"key,omitempty"` + + Key *string `json:"key,omitempty"` + OperatorType AdvancedFilterOperatorType `json:"operatorType"` +} + +func (s StringNotInAdvancedFilter) AdvancedFilter() BaseAdvancedFilterImpl { + return BaseAdvancedFilterImpl{ + Key: s.Key, + OperatorType: s.OperatorType, + } } var _ json.Marshaler = StringNotInAdvancedFilter{} @@ -28,9 +37,10 @@ func (s StringNotInAdvancedFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StringNotInAdvancedFilter: %+v", err) } + decoded["operatorType"] = "StringNotIn" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestination.go index a64dd7ca0b4d..ddc2526a9883 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestination.go @@ -14,6 +14,14 @@ type WebHookEventSubscriptionDestination struct { Properties *WebHookEventSubscriptionDestinationProperties `json:"properties,omitempty"` // Fields inherited from EventSubscriptionDestination + + EndpointType EndpointType `json:"endpointType"` +} + +func (s WebHookEventSubscriptionDestination) EventSubscriptionDestination() BaseEventSubscriptionDestinationImpl { + return BaseEventSubscriptionDestinationImpl{ + EndpointType: s.EndpointType, + } } var _ json.Marshaler = WebHookEventSubscriptionDestination{} @@ -27,9 +35,10 @@ func (s WebHookEventSubscriptionDestination) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WebHookEventSubscriptionDestination: %+v", err) } + decoded["endpointType"] = "WebHook" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestinationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestinationproperties.go index 8750d501e7c2..4423a50123d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestinationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/model_webhookeventsubscriptiondestinationproperties.go @@ -21,10 +21,16 @@ type WebHookEventSubscriptionDestinationProperties struct { var _ json.Unmarshaler = &WebHookEventSubscriptionDestinationProperties{} func (s *WebHookEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []byte) error { - type alias WebHookEventSubscriptionDestinationProperties - var decoded alias + var decoded struct { + AzureActiveDirectoryApplicationIdOrUri *string `json:"azureActiveDirectoryApplicationIdOrUri,omitempty"` + AzureActiveDirectoryTenantId *string `json:"azureActiveDirectoryTenantId,omitempty"` + EndpointBaseUrl *string `json:"endpointBaseUrl,omitempty"` + EndpointUrl *string `json:"endpointUrl,omitempty"` + MaxEventsPerBatch *int64 `json:"maxEventsPerBatch,omitempty"` + PreferredBatchSizeInKilobytes *int64 `json:"preferredBatchSizeInKilobytes,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into WebHookEventSubscriptionDestinationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AzureActiveDirectoryApplicationIdOrUri = decoded.AzureActiveDirectoryApplicationIdOrUri @@ -47,7 +53,7 @@ func (s *WebHookEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []by output := make([]DeliveryAttributeMapping, 0) for i, val := range listTemp { - impl, err := unmarshalDeliveryAttributeMappingImplementation(val) + impl, err := UnmarshalDeliveryAttributeMappingImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'DeliveryAttributeMappings' for 'WebHookEventSubscriptionDestinationProperties': %+v", i, err) } @@ -55,5 +61,6 @@ func (s *WebHookEventSubscriptionDestinationProperties) UnmarshalJSON(bytes []by } s.DeliveryAttributeMappings = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/version.go index 541a329e2f2d..879265b9262e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/eventsubscriptions/version.go @@ -1,12 +1,10 @@ package eventsubscriptions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/eventsubscriptions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/eventsubscriptions/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md index 71a77a1ad16b..4889b462bb6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations` Documentation -The `partnerconfigurations` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `partnerconfigurations` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/client.go index db4c4a6d68cc..81cf545e1ec1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/client.go @@ -15,7 +15,7 @@ type PartnerConfigurationsClient struct { } func NewPartnerConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "partnerconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "partnerconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PartnerConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_authorizepartner.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_authorizepartner.go index 8510613024ab..9aec03662a69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_authorizepartner.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_authorizepartner.go @@ -51,7 +51,6 @@ func (c PartnerConfigurationsClient) AuthorizePartner(ctx context.Context, id co var model PartnerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_get.go index e890871327ef..0796ab24f3dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_get.go @@ -47,7 +47,6 @@ func (c PartnerConfigurationsClient) Get(ctx context.Context, id commonids.Resou var model PartnerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go index b2664083fe28..caae9105d47b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_unauthorizepartner.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_unauthorizepartner.go index b026a3ff31ac..3cd55d4ec162 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_unauthorizepartner.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/method_unauthorizepartner.go @@ -51,7 +51,6 @@ func (c PartnerConfigurationsClient) UnauthorizePartner(ctx context.Context, id var model PartnerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/version.go index 5d3682c58305..f9c4c1954f9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerconfigurations/version.go @@ -1,12 +1,10 @@ package partnerconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/partnerconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/partnerconfigurations/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md index 0760b0da528b..077c2b949b67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces` Documentation -The `partnernamespaces` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `partnernamespaces` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") payload := partnernamespaces.PartnerNamespace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") read, err := client.ListSharedAccessKeys(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") payload := partnernamespaces.PartnerNamespaceRegenerateKeyRequest{ // ... @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceValue") +id := partnernamespaces.NewPartnerNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerNamespaceName") payload := partnernamespaces.PartnerNamespaceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/client.go index 68a21b05d235..40674d529366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/client.go @@ -15,7 +15,7 @@ type PartnerNamespacesClient struct { } func NewPartnerNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerNamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "partnernamespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "partnernamespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PartnerNamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/id_partnernamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/id_partnernamespace.go index e66057836e11..52b4b97e5f94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/id_partnernamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/id_partnernamespace.go @@ -42,7 +42,7 @@ func ParsePartnerNamespaceID(input string) (*PartnerNamespaceId, error) { } id := PartnerNamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePartnerNamespaceIDInsensitively(input string) (*PartnerNamespaceId, er } id := PartnerNamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PartnerNamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerNamespaces", "partnerNamespaces", "partnerNamespaces"), - resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceValue"), + resourceids.UserSpecifiedSegment("partnerNamespaceName", "partnerNamespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_get.go index 56f09544bb37..45402e218ea6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_get.go @@ -45,7 +45,6 @@ func (c PartnerNamespacesClient) Get(ctx context.Context, id PartnerNamespaceId) var model PartnerNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go index 73f19ca4eea3..eeeae0918ce8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go index 5cea56ba9bb5..9235eeafa60c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listsharedaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listsharedaccesskeys.go index 3680bb6ae514..bd97b786430b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listsharedaccesskeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_listsharedaccesskeys.go @@ -46,7 +46,6 @@ func (c PartnerNamespacesClient) ListSharedAccessKeys(ctx context.Context, id Pa var model PartnerNamespaceSharedAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_regeneratekey.go index 13f92c982509..c3f2c53ae539 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c PartnerNamespacesClient) RegenerateKey(ctx context.Context, id PartnerNa var model PartnerNamespaceSharedAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/version.go index 3e21a4eae3ca..c8912a32fdf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnernamespaces/version.go @@ -1,12 +1,10 @@ package partnernamespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/partnernamespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/partnernamespaces/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md index af6860eca20a..380822c78456 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations` Documentation -The `partnerregistrations` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `partnerregistrations` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationValue") +id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationName") payload := partnerregistrations.PartnerRegistration{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationValue") +id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationValue") +id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationValue") +id := partnerregistrations.NewPartnerRegistrationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerRegistrationName") payload := partnerregistrations.PartnerRegistrationUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/client.go index 470bfd1ed468..9316809223e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/client.go @@ -15,7 +15,7 @@ type PartnerRegistrationsClient struct { } func NewPartnerRegistrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerRegistrationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "partnerregistrations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "partnerregistrations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PartnerRegistrationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/id_partnerregistration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/id_partnerregistration.go index ce773bf8bcc0..b791ec05a610 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/id_partnerregistration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/id_partnerregistration.go @@ -42,7 +42,7 @@ func ParsePartnerRegistrationID(input string) (*PartnerRegistrationId, error) { } id := PartnerRegistrationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePartnerRegistrationIDInsensitively(input string) (*PartnerRegistration } id := PartnerRegistrationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PartnerRegistrationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerRegistrations", "partnerRegistrations", "partnerRegistrations"), - resourceids.UserSpecifiedSegment("partnerRegistrationName", "partnerRegistrationValue"), + resourceids.UserSpecifiedSegment("partnerRegistrationName", "partnerRegistrationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_get.go index a309e2f0ed64..9ce71c0d73fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_get.go @@ -45,7 +45,6 @@ func (c PartnerRegistrationsClient) Get(ctx context.Context, id PartnerRegistrat var model PartnerRegistration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go index 8da1cb23a341..58f932178c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go index 921b13c6f9a0..ce73d0dd1687 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/version.go index ccd45ded50b3..bfb99cd4c52c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnerregistrations/version.go @@ -1,12 +1,10 @@ package partnerregistrations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/partnerregistrations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/partnerregistrations/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/README.md index 54cf99f36e93..a425a5db1a21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics` Documentation -The `partnertopics` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `partnertopics` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") read, err := client.Activate(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") payload := partnertopics.PartnerTopic{ // ... @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") read, err := client.Deactivate(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -90,7 +90,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") read, err := client.Get(ctx, id) if err != nil { @@ -140,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicValue") +id := partnertopics.NewPartnerTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "partnerTopicName") payload := partnertopics.PartnerTopicUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/client.go index d2c0336576d7..bcd943f6ed42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/client.go @@ -15,7 +15,7 @@ type PartnerTopicsClient struct { } func NewPartnerTopicsClientWithBaseURI(sdkApi sdkEnv.Api) (*PartnerTopicsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "partnertopics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "partnertopics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PartnerTopicsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/id_partnertopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/id_partnertopic.go index ffdf93e176f4..0a6717cbcc05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/id_partnertopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/id_partnertopic.go @@ -42,7 +42,7 @@ func ParsePartnerTopicID(input string) (*PartnerTopicId, error) { } id := PartnerTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePartnerTopicIDInsensitively(input string) (*PartnerTopicId, error) { } id := PartnerTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PartnerTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticPartnerTopics", "partnerTopics", "partnerTopics"), - resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicValue"), + resourceids.UserSpecifiedSegment("partnerTopicName", "partnerTopicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_activate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_activate.go index d99c89ffc49d..4d9e014d7698 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_activate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_activate.go @@ -46,7 +46,6 @@ func (c PartnerTopicsClient) Activate(ctx context.Context, id PartnerTopicId) (r var model PartnerTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_createorupdate.go index b3cc284c092f..53a4eaf88ac2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_createorupdate.go @@ -50,7 +50,6 @@ func (c PartnerTopicsClient) CreateOrUpdate(ctx context.Context, id PartnerTopic var model PartnerTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_deactivate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_deactivate.go index 704ce7b2bebd..ab85fadf7657 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_deactivate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_deactivate.go @@ -46,7 +46,6 @@ func (c PartnerTopicsClient) Deactivate(ctx context.Context, id PartnerTopicId) var model PartnerTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_get.go index 166a4bfa628b..5094544062c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_get.go @@ -45,7 +45,6 @@ func (c PartnerTopicsClient) Get(ctx context.Context, id PartnerTopicId) (result var model PartnerTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go index 0ffc6566a8c5..db8ceac0a173 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go index 1ed231e02adf..2c2e237ecb97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_update.go index 223499933b6b..8ca89640fdc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/method_update.go @@ -50,7 +50,6 @@ func (c PartnerTopicsClient) Update(ctx context.Context, id PartnerTopicId, inpu var model PartnerTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/version.go index 73726a16ff42..a185c41ae451 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/partnertopics/version.go @@ -1,12 +1,10 @@ package partnertopics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/partnertopics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/partnertopics/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md index 31757855bb62..efa9dcc26912 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionValue") +id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionValue") +id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionValue") +id := privateendpointconnections.NewScopedPrivateEndpointConnectionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/id_scopedprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/id_scopedprivateendpointconnection.go index b55d668d2948..03decd9278dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/id_scopedprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/id_scopedprivateendpointconnection.go @@ -40,7 +40,7 @@ func ParseScopedPrivateEndpointConnectionID(input string) (*ScopedPrivateEndpoin } id := ScopedPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedPrivateEndpointConnectionIDInsensitively(input string) (*ScopedP } id := ScopedPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -104,7 +104,7 @@ func (id ScopedPrivateEndpointConnectionId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.ScopeSegment("scope", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_get.go index 09cecb3eae57..45b77d598e51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id ScopedPriv var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go index 4218ee362a8e..0d9f6dc402d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/method_listbyresource.go @@ -41,6 +41,7 @@ func (o ListByResourceOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/version.go index a4902e85da6f..07a554d614db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md index 6d7df9ddf2a8..c3edcbebcd78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewScopedPrivateLinkResourceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateLinkResourceValue") +id := privatelinkresources.NewScopedPrivateLinkResourceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "privateLinkResourceName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/id_scopedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/id_scopedprivatelinkresource.go index 96ed69d7f63f..9a4f82730a48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/id_scopedprivatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/id_scopedprivatelinkresource.go @@ -40,7 +40,7 @@ func ParseScopedPrivateLinkResourceID(input string) (*ScopedPrivateLinkResourceI } id := ScopedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedPrivateLinkResourceIDInsensitively(input string) (*ScopedPrivate } id := ScopedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -104,7 +104,7 @@ func (id ScopedPrivateLinkResourceId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.ScopeSegment("scope", "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group"), resourceids.StaticSegment("staticPrivateLinkResources", "privateLinkResources", "privateLinkResources"), - resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceValue"), + resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_get.go index 3bd66c971905..c0806e78490b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkResourcesClient) Get(ctx context.Context, id ScopedPrivateLin var model PrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go index 9f9dcd497073..22c7e564645e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/method_listbyresource.go @@ -41,6 +41,7 @@ func (o ListByResourceOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/version.go index bc15fa9531dc..0b84ef7441bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/README.md index 5f0f80ac7ff0..73417f3e3ad8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics` Documentation -The `systemtopics` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `systemtopics` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue") +id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName") payload := systemtopics.SystemTopic{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue") +id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue") +id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicValue") +id := systemtopics.NewSystemTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "systemTopicName") payload := systemtopics.SystemTopicUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/client.go index a75eb9984513..1f5eedc71cc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/client.go @@ -15,7 +15,7 @@ type SystemTopicsClient struct { } func NewSystemTopicsClientWithBaseURI(sdkApi sdkEnv.Api) (*SystemTopicsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "systemtopics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "systemtopics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SystemTopicsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/id_systemtopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/id_systemtopic.go index bfa75efa5004..afcf21986e81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/id_systemtopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/id_systemtopic.go @@ -42,7 +42,7 @@ func ParseSystemTopicID(input string) (*SystemTopicId, error) { } id := SystemTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSystemTopicIDInsensitively(input string) (*SystemTopicId, error) { } id := SystemTopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SystemTopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticSystemTopics", "systemTopics", "systemTopics"), - resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicValue"), + resourceids.UserSpecifiedSegment("systemTopicName", "systemTopicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_get.go index a8da6a2fc6ac..f0f012d6dc54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_get.go @@ -45,7 +45,6 @@ func (c SystemTopicsClient) Get(ctx context.Context, id SystemTopicId) (result G var model SystemTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go index 04b5a7090c95..7cee84affee4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go index 5424d6f67ffe..62bf8570ec20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/version.go index bcc24d7df563..9e04dd47e467 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/systemtopics/version.go @@ -1,12 +1,10 @@ package systemtopics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/systemtopics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/systemtopics/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/README.md index 72d13bb1f715..7a7808cd534a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics` Documentation -The `topics` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `topics` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") payload := topics.Topic{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") read, err := client.Get(ctx, id) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") read, err := client.ListSharedAccessKeys(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") payload := topics.TopicRegenerateKeyRequest{ // ... @@ -169,7 +169,7 @@ if err := client.RegenerateKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "topicName") payload := topics.TopicUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/client.go index 0e7b8385566a..f2c8eb0e68f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/client.go @@ -15,7 +15,7 @@ type TopicsClient struct { } func NewTopicsClientWithBaseURI(sdkApi sdkEnv.Api) (*TopicsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "topics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "topics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TopicsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/id_topic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/id_topic.go index 7996a9099d51..1a7462f08f64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/id_topic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/id_topic.go @@ -42,7 +42,7 @@ func ParseTopicID(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTopicIDInsensitively(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_extensiontopicsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_extensiontopicsget.go index e56b3e7ed5a2..8d869bc61851 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_extensiontopicsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_extensiontopicsget.go @@ -47,7 +47,6 @@ func (c TopicsClient) ExtensionTopicsGet(ctx context.Context, id commonids.Scope var model ExtensionTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_get.go index a276dae11328..1ed48937e124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_get.go @@ -45,7 +45,6 @@ func (c TopicsClient) Get(ctx context.Context, id TopicId) (result GetOperationR var model Topic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go index b322ef0d4af2..480c5a71121c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go index a4f4ebfc3346..f8fbb741012a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listeventtypes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listeventtypes.go index 9ad02baea36f..01a233da4819 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listeventtypes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listeventtypes.go @@ -47,7 +47,6 @@ func (c TopicsClient) ListEventTypes(ctx context.Context, id commonids.ScopeId) var model EventTypesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listsharedaccesskeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listsharedaccesskeys.go index 926e9ba12564..6e5480db9ca5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listsharedaccesskeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/method_listsharedaccesskeys.go @@ -46,7 +46,6 @@ func (c TopicsClient) ListSharedAccessKeys(ctx context.Context, id TopicId) (res var model TopicSharedAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_inputschemamapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_inputschemamapping.go index ea5cba6d2c9b..bba9ec3c65d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_inputschemamapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_inputschemamapping.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InputSchemaMapping interface { + InputSchemaMapping() BaseInputSchemaMappingImpl } -// RawInputSchemaMappingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InputSchemaMapping = BaseInputSchemaMappingImpl{} + +type BaseInputSchemaMappingImpl struct { + InputSchemaMappingType InputSchemaMappingType `json:"inputSchemaMappingType"` +} + +func (s BaseInputSchemaMappingImpl) InputSchemaMapping() BaseInputSchemaMappingImpl { + return s +} + +var _ InputSchemaMapping = RawInputSchemaMappingImpl{} + +// RawInputSchemaMappingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInputSchemaMappingImpl struct { - Type string - Values map[string]interface{} + inputSchemaMapping BaseInputSchemaMappingImpl + Type string + Values map[string]interface{} +} + +func (s RawInputSchemaMappingImpl) InputSchemaMapping() BaseInputSchemaMappingImpl { + return s.inputSchemaMapping } -func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping, error) { +func UnmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping return nil, fmt.Errorf("unmarshaling InputSchemaMapping into map[string]interface: %+v", err) } - value, ok := temp["inputSchemaMappingType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["inputSchemaMappingType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Json") { @@ -44,10 +61,15 @@ func unmarshalInputSchemaMappingImplementation(input []byte) (InputSchemaMapping return out, nil } - out := RawInputSchemaMappingImpl{ - Type: value, - Values: temp, + var parent BaseInputSchemaMappingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInputSchemaMappingImpl: %+v", err) } - return out, nil + + return RawInputSchemaMappingImpl{ + inputSchemaMapping: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_jsoninputschemamapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_jsoninputschemamapping.go index 84c4a5583442..70db15710f93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_jsoninputschemamapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_jsoninputschemamapping.go @@ -14,6 +14,14 @@ type JsonInputSchemaMapping struct { Properties *JsonInputSchemaMappingProperties `json:"properties,omitempty"` // Fields inherited from InputSchemaMapping + + InputSchemaMappingType InputSchemaMappingType `json:"inputSchemaMappingType"` +} + +func (s JsonInputSchemaMapping) InputSchemaMapping() BaseInputSchemaMappingImpl { + return BaseInputSchemaMappingImpl{ + InputSchemaMappingType: s.InputSchemaMappingType, + } } var _ json.Marshaler = JsonInputSchemaMapping{} @@ -27,9 +35,10 @@ func (s JsonInputSchemaMapping) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonInputSchemaMapping: %+v", err) } + decoded["inputSchemaMappingType"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_topicproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_topicproperties.go index a3535a25f074..c2638d095dae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_topicproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/model_topicproperties.go @@ -24,10 +24,19 @@ type TopicProperties struct { var _ json.Unmarshaler = &TopicProperties{} func (s *TopicProperties) UnmarshalJSON(bytes []byte) error { - type alias TopicProperties - var decoded alias + var decoded struct { + DataResidencyBoundary *DataResidencyBoundary `json:"dataResidencyBoundary,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + Endpoint *string `json:"endpoint,omitempty"` + InboundIPRules *[]InboundIPRule `json:"inboundIpRules,omitempty"` + InputSchema *InputSchema `json:"inputSchema,omitempty"` + MetricResourceId *string `json:"metricResourceId,omitempty"` + PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` + ProvisioningState *TopicProvisioningState `json:"provisioningState,omitempty"` + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TopicProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DataResidencyBoundary = decoded.DataResidencyBoundary @@ -46,11 +55,12 @@ func (s *TopicProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["inputSchemaMapping"]; ok { - impl, err := unmarshalInputSchemaMappingImplementation(v) + impl, err := UnmarshalInputSchemaMappingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'InputSchemaMapping' for 'TopicProperties': %+v", err) } s.InputSchemaMapping = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/version.go index d9dbf6fc1b87..9e62ad4ce42e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topics/version.go @@ -1,12 +1,10 @@ package topics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/topics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/topics/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/README.md index bc9ec3ae8750..96db359b2c28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes` Documentation -The `topictypes` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `topictypes` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := topictypes.NewTopicTypeID("topicTypeValue") +id := topictypes.NewTopicTypeID("topicTypeName") read, err := client.Get(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topictypes.NewTopicTypeID("topicTypeValue") +id := topictypes.NewTopicTypeID("topicTypeName") read, err := client.ListEventTypes(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/client.go index 9e6399829c2b..9eec8fac04e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/client.go @@ -15,7 +15,7 @@ type TopicTypesClient struct { } func NewTopicTypesClientWithBaseURI(sdkApi sdkEnv.Api) (*TopicTypesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "topictypes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "topictypes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TopicTypesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/id_topictype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/id_topictype.go index f860b13cb3b0..a4eab60d606d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/id_topictype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/id_topictype.go @@ -38,7 +38,7 @@ func ParseTopicTypeID(input string) (*TopicTypeId, error) { } id := TopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseTopicTypeIDInsensitively(input string) (*TopicTypeId, error) { } id := TopicTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id TopicTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticTopicTypes", "topicTypes", "topicTypes"), - resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeValue"), + resourceids.UserSpecifiedSegment("topicTypeName", "topicTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_get.go index c1c6fbcdd6bb..42a4be1a6139 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_get.go @@ -45,7 +45,6 @@ func (c TopicTypesClient) Get(ctx context.Context, id TopicTypeId) (result GetOp var model TopicTypeInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_list.go index 99aaa9f68307..66897dde08b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_list.go @@ -45,7 +45,6 @@ func (c TopicTypesClient) List(ctx context.Context) (result ListOperationRespons var model TopicTypesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_listeventtypes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_listeventtypes.go index b5bfb44e665e..ef68b52949ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_listeventtypes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/method_listeventtypes.go @@ -46,7 +46,6 @@ func (c TopicTypesClient) ListEventTypes(ctx context.Context, id TopicTypeId) (r var model EventTypesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/version.go index 20fe5050ae3c..4316fef34b42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/topictypes/version.go @@ -1,12 +1,10 @@ package topictypes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/topictypes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/topictypes/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/README.md index 3dc794ef5eba..d1ed3478183a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners` Documentation -The `verifiedpartners` SDK allows for interaction with the Azure Resource Manager Service `eventgrid` (API Version `2022-06-15`). +The `verifiedpartners` SDK allows for interaction with Azure Resource Manager `eventgrid` (API Version `2022-06-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := verifiedpartners.NewVerifiedPartnerID("verifiedPartnerValue") +id := verifiedpartners.NewVerifiedPartnerID("verifiedPartnerName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/client.go index 576b4f91baa3..83e155cec736 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/client.go @@ -15,7 +15,7 @@ type VerifiedPartnersClient struct { } func NewVerifiedPartnersClientWithBaseURI(sdkApi sdkEnv.Api) (*VerifiedPartnersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "verifiedpartners", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "verifiedpartners", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VerifiedPartnersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/id_verifiedpartner.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/id_verifiedpartner.go index d9f85e122f9b..40216bd13d6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/id_verifiedpartner.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/id_verifiedpartner.go @@ -38,7 +38,7 @@ func ParseVerifiedPartnerID(input string) (*VerifiedPartnerId, error) { } id := VerifiedPartnerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseVerifiedPartnerIDInsensitively(input string) (*VerifiedPartnerId, erro } id := VerifiedPartnerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id VerifiedPartnerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventGrid", "Microsoft.EventGrid", "Microsoft.EventGrid"), resourceids.StaticSegment("staticVerifiedPartners", "verifiedPartners", "verifiedPartners"), - resourceids.UserSpecifiedSegment("verifiedPartnerName", "verifiedPartnerValue"), + resourceids.UserSpecifiedSegment("verifiedPartnerName", "verifiedPartnerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_get.go index 67eed1527ad9..8f4806ee2eaf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_get.go @@ -45,7 +45,6 @@ func (c VerifiedPartnersClient) Get(ctx context.Context, id VerifiedPartnerId) ( var model VerifiedPartner result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go index 9229769b5dcc..589d1c19cd07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/version.go index edb63626af61..e65cf350b47e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventgrid/2022-06-15/verifiedpartners/version.go @@ -1,12 +1,10 @@ package verifiedpartners -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/verifiedpartners/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/verifiedpartners/2022-06-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/README.md index 12828dc9f5b4..09c4f19676c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs` Documentation -The `authorizationruleseventhubs` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `authorizationruleseventhubs` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "authorizationRuleValue") +id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "authorizationRuleName") payload := authorizationruleseventhubs.AuthorizationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationruleseventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue") +id := authorizationruleseventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName") // alternatively `client.EventHubsListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.EventHubsListAuthorizationRulesComplete(ctx, id) @@ -62,7 +62,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "authorizationRuleValue") +id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "authorizationRuleName") read, err := client.EventHubsListKeys(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "authorizationRuleValue") +id := authorizationruleseventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "authorizationRuleName") payload := authorizationruleseventhubs.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/client.go index e4948fc5469a..161bee080894 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/client.go @@ -15,7 +15,7 @@ type AuthorizationRulesEventHubsClient struct { } func NewAuthorizationRulesEventHubsClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationRulesEventHubsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "authorizationruleseventhubs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "authorizationruleseventhubs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AuthorizationRulesEventHubsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhub.go index f1dc368be032..b09c0c4f4289 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhub.go @@ -44,7 +44,7 @@ func ParseEventhubID(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEventhubIDInsensitively(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EventhubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhubauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhubauthorizationrule.go index 6db74e71a5e7..a954ec8d9bbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhubauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/id_eventhubauthorizationrule.go @@ -46,7 +46,7 @@ func ParseEventhubAuthorizationRuleID(input string) (*EventhubAuthorizationRuleI } id := EventhubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseEventhubAuthorizationRuleIDInsensitively(input string) (*EventhubAutho } id := EventhubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id EventhubAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubscreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubscreateorupdateauthorizationrule.go index 62dc4f20f07e..b67ea413d331 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubscreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubscreateorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c AuthorizationRulesEventHubsClient) EventHubsCreateOrUpdateAuthorizationR var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistkeys.go index e8d8356dcbe4..3736fb60af87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubslistkeys.go @@ -46,7 +46,6 @@ func (c AuthorizationRulesEventHubsClient) EventHubsListKeys(ctx context.Context var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubsregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubsregeneratekeys.go index 5405f29972ff..ae319d8af5d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubsregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/method_eventhubsregeneratekeys.go @@ -50,7 +50,6 @@ func (c AuthorizationRulesEventHubsClient) EventHubsRegenerateKeys(ctx context.C var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/version.go index 1cc434f71c18..497d24a1a3a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationruleseventhubs/version.go @@ -1,12 +1,10 @@ package authorizationruleseventhubs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/authorizationruleseventhubs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/authorizationruleseventhubs/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/README.md index b3e9317162f4..7a190bf93771 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces` Documentation -The `authorizationrulesnamespaces` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `authorizationrulesnamespaces` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := authorizationrulesnamespaces.AuthorizationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesDeleteAuthorizationRule(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesGetAuthorizationRule(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := authorizationrulesnamespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.NamespacesListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.NamespacesListAuthorizationRulesComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesListKeys(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := authorizationrulesnamespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := authorizationrulesnamespaces.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/client.go index 3fd1fec54e07..f0609cabf8dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/client.go @@ -15,7 +15,7 @@ type AuthorizationRulesNamespacesClient struct { } func NewAuthorizationRulesNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationRulesNamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "authorizationrulesnamespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "authorizationrulesnamespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AuthorizationRulesNamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_authorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_authorizationrule.go index 8dcf155f45b5..dfac6f762ee7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_authorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_authorizationrule.go @@ -44,7 +44,7 @@ func ParseAuthorizationRuleID(input string) (*AuthorizationRuleId, error) { } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationRuleIDInsensitively(input string) (*AuthorizationRuleId, } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_namespace.go index b72d8ea4f837..8a64e34ded06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacescreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacescreateorupdateauthorizationrule.go index 9f1a975a1be1..3ef30ef03d43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacescreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacescreateorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c AuthorizationRulesNamespacesClient) NamespacesCreateOrUpdateAuthorizatio var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesgetauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesgetauthorizationrule.go index 8b4cbd363c9c..2a002461d3f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesgetauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesgetauthorizationrule.go @@ -45,7 +45,6 @@ func (c AuthorizationRulesNamespacesClient) NamespacesGetAuthorizationRule(ctx c var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistkeys.go index f39b8d0b401a..2f8ded0314b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespaceslistkeys.go @@ -46,7 +46,6 @@ func (c AuthorizationRulesNamespacesClient) NamespacesListKeys(ctx context.Conte var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesregeneratekeys.go index c48e9382b586..d8b5e25c6920 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/method_namespacesregeneratekeys.go @@ -50,7 +50,6 @@ func (c AuthorizationRulesNamespacesClient) NamespacesRegenerateKeys(ctx context var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/version.go index 5e1f0bd26e30..3ecfd8d27363 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesnamespaces/version.go @@ -1,12 +1,10 @@ package authorizationrulesnamespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/authorizationrulesnamespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/authorizationrulesnamespaces/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/README.md index 68e31c8b7198..3558b22335c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs` Documentation -The `checknameavailabilitydisasterrecoveryconfigs` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `checknameavailabilitydisasterrecoveryconfigs` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailabilitydisasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := checknameavailabilitydisasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := checknameavailabilitydisasterrecoveryconfigs.CheckNameAvailabilityParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/client.go index af4ddbb61a57..69999edea530 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/client.go @@ -15,7 +15,7 @@ type CheckNameAvailabilityDisasterRecoveryConfigsClient struct { } func NewCheckNameAvailabilityDisasterRecoveryConfigsClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckNameAvailabilityDisasterRecoveryConfigsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "checknameavailabilitydisasterrecoveryconfigs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "checknameavailabilitydisasterrecoveryconfigs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CheckNameAvailabilityDisasterRecoveryConfigsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/id_namespace.go index bc1291f8c9ff..5008988e6e32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/method_disasterrecoveryconfigschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/method_disasterrecoveryconfigschecknameavailability.go index 5473c47cadc6..9f6acd206ad5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/method_disasterrecoveryconfigschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/method_disasterrecoveryconfigschecknameavailability.go @@ -50,7 +50,6 @@ func (c CheckNameAvailabilityDisasterRecoveryConfigsClient) DisasterRecoveryConf var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/version.go index 091375ae905e..5a6a1cdc257d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/checknameavailabilitydisasterrecoveryconfigs/version.go @@ -1,12 +1,10 @@ package checknameavailabilitydisasterrecoveryconfigs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/checknameavailabilitydisasterrecoveryconfigs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/checknameavailabilitydisasterrecoveryconfigs/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/README.md index d7e5b405dd36..d3872dee440f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups` Documentation -The `consumergroups` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `consumergroups` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "consumerGroupValue") +id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "consumerGroupName") payload := consumergroups.ConsumerGroup{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "consumerGroupValue") +id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "consumerGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "consumerGroupValue") +id := consumergroups.NewConsumerGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "consumerGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := consumergroups.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue") +id := consumergroups.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName") // alternatively `client.ListByEventHub(ctx, id, consumergroups.DefaultListByEventHubOperationOptions())` can be used to do batched pagination items, err := client.ListByEventHubComplete(ctx, id, consumergroups.DefaultListByEventHubOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/client.go index 281884beac75..7444b7e4dba3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/client.go @@ -15,7 +15,7 @@ type ConsumerGroupsClient struct { } func NewConsumerGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConsumerGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "consumergroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "consumergroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConsumerGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_consumergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_consumergroup.go index 329b7ddecade..c3fe87d11363 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_consumergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_consumergroup.go @@ -46,7 +46,7 @@ func ParseConsumerGroupID(input string) (*ConsumerGroupId, error) { } id := ConsumerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseConsumerGroupIDInsensitively(input string) (*ConsumerGroupId, error) { } id := ConsumerGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ConsumerGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), resourceids.StaticSegment("staticConsumerGroups", "consumerGroups", "consumerGroups"), - resourceids.UserSpecifiedSegment("consumerGroupName", "consumerGroupValue"), + resourceids.UserSpecifiedSegment("consumerGroupName", "consumerGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_eventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_eventhub.go index e46fab2839aa..5275e9100608 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_eventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/id_eventhub.go @@ -44,7 +44,7 @@ func ParseEventhubID(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEventhubIDInsensitively(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EventhubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_createorupdate.go index cbc5c7952119..c7932a1636c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_createorupdate.go @@ -49,7 +49,6 @@ func (c ConsumerGroupsClient) CreateOrUpdate(ctx context.Context, id ConsumerGro var model ConsumerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_get.go index d69274329480..3ff1cc35f5f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_get.go @@ -45,7 +45,6 @@ func (c ConsumerGroupsClient) Get(ctx context.Context, id ConsumerGroupId) (resu var model ConsumerGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go index d3112958e5ec..f57687df614c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/method_listbyeventhub.go @@ -40,6 +40,7 @@ func (o ListByEventHubOperationOptions) ToHeaders() *client.Headers { func (o ListByEventHubOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/version.go index 5451c2853110..2426c0b037fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/consumergroups/version.go @@ -1,12 +1,10 @@ package consumergroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/consumergroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/consumergroups/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/README.md index a3e4321690d0..8a5a33a93fc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs` Documentation -The `disasterrecoveryconfigs` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `disasterrecoveryconfigs` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.BreakPairing(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") payload := disasterrecoveryconfigs.ArmDisasterRecovery{ // ... @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.Delete(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.FailOver(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.Get(ctx, id) if err != nil { @@ -109,7 +109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/client.go index d3041d193c24..90cf91aa7962 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/client.go @@ -15,7 +15,7 @@ type DisasterRecoveryConfigsClient struct { } func NewDisasterRecoveryConfigsClientWithBaseURI(sdkApi sdkEnv.Api) (*DisasterRecoveryConfigsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "disasterrecoveryconfigs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "disasterrecoveryconfigs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DisasterRecoveryConfigsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_disasterrecoveryconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_disasterrecoveryconfig.go index 97af75a4949f..2ce346426762 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_disasterrecoveryconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_disasterrecoveryconfig.go @@ -44,7 +44,7 @@ func ParseDisasterRecoveryConfigID(input string) (*DisasterRecoveryConfigId, err } id := DisasterRecoveryConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDisasterRecoveryConfigIDInsensitively(input string) (*DisasterRecovery } id := DisasterRecoveryConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DisasterRecoveryConfigId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticDisasterRecoveryConfigs", "disasterRecoveryConfigs", "disasterRecoveryConfigs"), - resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "disasterRecoveryConfigValue"), + resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "alias"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_namespace.go index c6072db6e656..89dd57dd601e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_createorupdate.go index c3af61b71424..e1eee1022dbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, id Di var model ArmDisasterRecovery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_get.go index 2f089dba4766..70681ee49028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/method_get.go @@ -45,7 +45,6 @@ func (c DisasterRecoveryConfigsClient) Get(ctx context.Context, id DisasterRecov var model ArmDisasterRecovery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/version.go index fc3d33fb5bea..5c56282b391b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/disasterrecoveryconfigs/version.go @@ -1,12 +1,10 @@ package disasterrecoveryconfigs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/disasterrecoveryconfigs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/disasterrecoveryconfigs/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/README.md index 1dbaa3108174..fe8da8c1c9eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs` Documentation -The `eventhubs` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `eventhubs` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue") +id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName") payload := eventhubs.Eventhub{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue") +id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "authorizationRuleValue") +id := eventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "authorizationRuleName") read, err := client.DeleteAuthorizationRule(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue") +id := eventhubs.NewEventhubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "eventhubValue", "authorizationRuleValue") +id := eventhubs.NewEventhubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "eventHubName", "authorizationRuleName") read, err := client.GetAuthorizationRule(ctx, id) if err != nil { @@ -109,7 +109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventhubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := eventhubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListByNamespace(ctx, id, eventhubs.DefaultListByNamespaceOperationOptions())` can be used to do batched pagination items, err := client.ListByNamespaceComplete(ctx, id, eventhubs.DefaultListByNamespaceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/client.go index e26a15560d53..abaf098b4836 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/client.go @@ -15,7 +15,7 @@ type EventHubsClient struct { } func NewEventHubsClientWithBaseURI(sdkApi sdkEnv.Api) (*EventHubsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "eventhubs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "eventhubs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EventHubsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhub.go index b890ac51accf..d7cc33529d56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhub.go @@ -44,7 +44,7 @@ func ParseEventhubID(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEventhubIDInsensitively(input string) (*EventhubId, error) { } id := EventhubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EventhubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhubauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhubauthorizationrule.go index f3c87103c722..7fdece21bff9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhubauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_eventhubauthorizationrule.go @@ -46,7 +46,7 @@ func ParseEventhubAuthorizationRuleID(input string) (*EventhubAuthorizationRuleI } id := EventhubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseEventhubAuthorizationRuleIDInsensitively(input string) (*EventhubAutho } id := EventhubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id EventhubAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticEventhubs", "eventhubs", "eventhubs"), - resourceids.UserSpecifiedSegment("eventhubName", "eventhubValue"), + resourceids.UserSpecifiedSegment("eventhubName", "eventHubName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_namespace.go index 85ac87987f62..99849d46a51b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_createorupdate.go index 419d0817f0d3..cc7de19af4fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_createorupdate.go @@ -49,7 +49,6 @@ func (c EventHubsClient) CreateOrUpdate(ctx context.Context, id EventhubId, inpu var model Eventhub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_get.go index b0ec86f62c64..9f7b72ff8571 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_get.go @@ -45,7 +45,6 @@ func (c EventHubsClient) Get(ctx context.Context, id EventhubId) (result GetOper var model Eventhub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_getauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_getauthorizationrule.go index 8b48d6f724ca..b2aaca5e1dd5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_getauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_getauthorizationrule.go @@ -45,7 +45,6 @@ func (c EventHubsClient) GetAuthorizationRule(ctx context.Context, id EventhubAu var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go index e146faa0cea6..47ddb8f48995 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/method_listbynamespace.go @@ -40,6 +40,7 @@ func (o ListByNamespaceOperationOptions) ToHeaders() *client.Headers { func (o ListByNamespaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/version.go index 724db00da13b..50919eb6a751 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubs/version.go @@ -1,12 +1,10 @@ package eventhubs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/eventhubs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/eventhubs/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md index 10e7db236453..4fc22835bd86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters` Documentation -The `eventhubsclusters` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `eventhubsclusters` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := eventhubsclusters.Cluster{ // ... @@ -42,7 +42,7 @@ if err := client.ClustersCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.ClustersDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ClustersDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ClustersGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := eventhubsclusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := eventhubsclusters.Cluster{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/client.go index 0f1f025c69b7..af8d5bc629c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/client.go @@ -15,7 +15,7 @@ type EventHubsClustersClient struct { } func NewEventHubsClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*EventHubsClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "eventhubsclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "eventhubsclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EventHubsClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/id_cluster.go index 9136f11408b0..dcd79aa24183 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clustersget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clustersget.go index 44eea50cf2f8..e50c86757cf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clustersget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/method_clustersget.go @@ -45,7 +45,6 @@ func (c EventHubsClustersClient) ClustersGet(ctx context.Context, id ClusterId) var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/version.go index 568cb6bb5812..d34fa24633ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/eventhubsclusters/version.go @@ -1,12 +1,10 @@ package eventhubsclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/eventhubsclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/eventhubsclusters/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/README.md index a95334397d06..4d81d6e6dd33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces` Documentation -The `namespaces` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `namespaces` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.EHNamespace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.EHNamespace{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/client.go index c0bca4870e18..6a91c8e7de9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/client.go @@ -15,7 +15,7 @@ type NamespacesClient struct { } func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/id_namespace.go index cf0f434b7668..c172784d4900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_get.go index e072408e1d55..9e035952ce24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_get.go @@ -45,7 +45,6 @@ func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOp var model EHNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_update.go index 18f0883d8c9e..50f2245b7161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/method_update.go @@ -51,7 +51,6 @@ func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input EHNa var model EHNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/version.go index e7fef9f37bd3..6851872c2b7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/namespaces/version.go @@ -1,12 +1,10 @@ package namespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespaces/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/README.md index d99f7603309d..bec1351ea304 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets` Documentation -The `networkrulesets` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `networkrulesets` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := networkrulesets.NetworkRuleSet{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.NamespacesGetNetworkRuleSet(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := networkrulesets.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.NamespacesListNetworkRuleSet(ctx, id)` can be used to do batched pagination items, err := client.NamespacesListNetworkRuleSetComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/client.go index c1cba65adc45..71516b9dd8ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/client.go @@ -15,7 +15,7 @@ type NetworkRuleSetsClient struct { } func NewNetworkRuleSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkRuleSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkrulesets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkrulesets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkRuleSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/id_namespace.go index 6d9e1484a0a3..753ef7ff8cbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacescreateorupdatenetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacescreateorupdatenetworkruleset.go index e7bd64cf7ebb..1cab3444aada 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacescreateorupdatenetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacescreateorupdatenetworkruleset.go @@ -50,7 +50,6 @@ func (c NetworkRuleSetsClient) NamespacesCreateOrUpdateNetworkRuleSet(ctx contex var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacesgetnetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacesgetnetworkruleset.go index fd290370baaf..ce9ae93d3cee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacesgetnetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/method_namespacesgetnetworkruleset.go @@ -46,7 +46,6 @@ func (c NetworkRuleSetsClient) NamespacesGetNetworkRuleSet(ctx context.Context, var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/version.go index 69601b6725c7..84f2bcff2b1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/networkrulesets/version.go @@ -1,12 +1,10 @@ package networkrulesets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkrulesets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkrulesets/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/README.md index 86a8c4bfcaa9..13a805018945 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry` Documentation -The `schemaregistry` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2021-11-01`). +The `schemaregistry` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "schemaGroupValue") +id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "schemaGroupName") payload := schemaregistry.SchemaGroup{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "schemaGroupValue") +id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "schemaGroupName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "schemaGroupValue") +id := schemaregistry.NewSchemaGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "schemaGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := schemaregistry.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := schemaregistry.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListByNamespace(ctx, id, schemaregistry.DefaultListByNamespaceOperationOptions())` can be used to do batched pagination items, err := client.ListByNamespaceComplete(ctx, id, schemaregistry.DefaultListByNamespaceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/client.go index 438259d21c61..31bb7a8df1aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/client.go @@ -15,7 +15,7 @@ type SchemaRegistryClient struct { } func NewSchemaRegistryClientWithBaseURI(sdkApi sdkEnv.Api) (*SchemaRegistryClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "schemaregistry", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "schemaregistry", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SchemaRegistryClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_namespace.go index 5a7bd5e0a7f4..bf57f268d310 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_schemagroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_schemagroup.go index 7b1a62913bcb..e3b8440694d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_schemagroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/id_schemagroup.go @@ -44,7 +44,7 @@ func ParseSchemaGroupID(input string) (*SchemaGroupId, error) { } id := SchemaGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSchemaGroupIDInsensitively(input string) (*SchemaGroupId, error) { } id := SchemaGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SchemaGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticSchemaGroups", "schemaGroups", "schemaGroups"), - resourceids.UserSpecifiedSegment("schemaGroupName", "schemaGroupValue"), + resourceids.UserSpecifiedSegment("schemaGroupName", "schemaGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_createorupdate.go index 0228945098c9..3d3617326f7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_createorupdate.go @@ -49,7 +49,6 @@ func (c SchemaRegistryClient) CreateOrUpdate(ctx context.Context, id SchemaGroup var model SchemaGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_get.go index e5a451155cd9..30dbfa4ba5c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_get.go @@ -45,7 +45,6 @@ func (c SchemaRegistryClient) Get(ctx context.Context, id SchemaGroupId) (result var model SchemaGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go index de10e8b42f6f..1310cfbcf3b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/method_listbynamespace.go @@ -40,6 +40,7 @@ func (o ListByNamespaceOperationOptions) ToHeaders() *client.Headers { func (o ListByNamespaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/version.go index a26769283928..eace0e5b7e03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/schemaregistry/version.go @@ -1,12 +1,10 @@ package schemaregistry -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/schemaregistry/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/schemaregistry/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md index e1eaf5581094..66078463e382 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces` Documentation -The `namespaces` SDK allows for interaction with the Azure Resource Manager Service `eventhub` (API Version `2022-01-01-preview`). +The `namespaces` SDK allows for interaction with Azure Resource Manager `eventhub` (API Version `2022-01-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.EHNamespace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.EHNamespace{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/client.go index c0bca4870e18..6a91c8e7de9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/client.go @@ -15,7 +15,7 @@ type NamespacesClient struct { } func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/id_namespace.go index cf0f434b7668..c172784d4900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftEventHub", "Microsoft.EventHub", "Microsoft.EventHub"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_get.go index e072408e1d55..9e035952ce24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_get.go @@ -45,7 +45,6 @@ func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOp var model EHNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_update.go index 18f0883d8c9e..50f2245b7161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/method_update.go @@ -51,7 +51,6 @@ func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input EHNa var model EHNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/version.go index c7efc2b68fa9..9fd656eff158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/namespaces/version.go @@ -1,12 +1,10 @@ package namespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespaces/2022-01-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/README.md index 245f8d300e00..ecdbe7900e76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations` Documentation -The `customlocations` SDK allows for interaction with the Azure Resource Manager Service `extendedlocation` (API Version `2021-08-15`). +The `customlocations` SDK allows for interaction with Azure Resource Manager `extendedlocation` (API Version `2021-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customLocationValue") +id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := customlocations.CustomLocation{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customLocationValue") +id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customLocationValue") +id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customLocationValue") +id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.ListEnabledResourceTypes(ctx, id)` can be used to do batched pagination items, err := client.ListEnabledResourceTypesComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customLocationValue") +id := customlocations.NewCustomLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := customlocations.PatchableCustomLocations{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/client.go index bd1bcb809a51..a02841fb11dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/client.go @@ -15,7 +15,7 @@ type CustomLocationsClient struct { } func NewCustomLocationsClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomLocationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "customlocations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "customlocations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CustomLocationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/id_customlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/id_customlocation.go index 0381e8f070d4..f3c7b6facef8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/id_customlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/id_customlocation.go @@ -42,7 +42,7 @@ func ParseCustomLocationID(input string) (*CustomLocationId, error) { } id := CustomLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCustomLocationIDInsensitively(input string) (*CustomLocationId, error) } id := CustomLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CustomLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftExtendedLocation", "Microsoft.ExtendedLocation", "Microsoft.ExtendedLocation"), resourceids.StaticSegment("staticCustomLocations", "customLocations", "customLocations"), - resourceids.UserSpecifiedSegment("customLocationName", "customLocationValue"), + resourceids.UserSpecifiedSegment("customLocationName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_get.go index d9cfd4a36ec5..1c5e3333c3cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_get.go @@ -45,7 +45,6 @@ func (c CustomLocationsClient) Get(ctx context.Context, id CustomLocationId) (re var model CustomLocation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_update.go index 71e3cb7f0576..90f5532510b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/method_update.go @@ -49,7 +49,6 @@ func (c CustomLocationsClient) Update(ctx context.Context, id CustomLocationId, var model CustomLocation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/version.go index efff5cadda05..7e90b8c389a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/extendedlocation/2021-08-15/customlocations/version.go @@ -1,12 +1,10 @@ package customlocations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/customlocations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/customlocations/2021-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/README.md index 5fbee8f50e9d..1e8f054ac106 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers` Documentation -The `fluidrelaycontainers` SDK allows for interaction with the Azure Resource Manager Service `fluidrelay` (API Version `2022-05-26`). +The `fluidrelaycontainers` SDK allows for interaction with Azure Resource Manager `fluidrelay` (API Version `2022-05-26`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fluidrelaycontainers.NewFluidRelayContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue", "fluidRelayContainerValue") +id := fluidrelaycontainers.NewFluidRelayContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName", "fluidRelayContainerName") read, err := client.Delete(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelaycontainers.NewFluidRelayContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue", "fluidRelayContainerValue") +id := fluidrelaycontainers.NewFluidRelayContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName", "fluidRelayContainerName") read, err := client.Get(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelaycontainers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelaycontainers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") // alternatively `client.ListByFluidRelayServers(ctx, id)` can be used to do batched pagination items, err := client.ListByFluidRelayServersComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/client.go index 35e08773b19e..7a0da793216e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/client.go @@ -15,7 +15,7 @@ type FluidRelayContainersClient struct { } func NewFluidRelayContainersClientWithBaseURI(sdkApi sdkEnv.Api) (*FluidRelayContainersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fluidrelaycontainers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fluidrelaycontainers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FluidRelayContainersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelaycontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelaycontainer.go index 0b7e413866b4..d6d53188bf7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelaycontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelaycontainer.go @@ -44,7 +44,7 @@ func ParseFluidRelayContainerID(input string) (*FluidRelayContainerId, error) { } id := FluidRelayContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFluidRelayContainerIDInsensitively(input string) (*FluidRelayContainer } id := FluidRelayContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FluidRelayContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftFluidRelay", "Microsoft.FluidRelay", "Microsoft.FluidRelay"), resourceids.StaticSegment("staticFluidRelayServers", "fluidRelayServers", "fluidRelayServers"), - resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerValue"), + resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerName"), resourceids.StaticSegment("staticFluidRelayContainers", "fluidRelayContainers", "fluidRelayContainers"), - resourceids.UserSpecifiedSegment("fluidRelayContainerName", "fluidRelayContainerValue"), + resourceids.UserSpecifiedSegment("fluidRelayContainerName", "fluidRelayContainerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelayserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelayserver.go index 04fd733c3c12..55b6354913d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelayserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/id_fluidrelayserver.go @@ -42,7 +42,7 @@ func ParseFluidRelayServerID(input string) (*FluidRelayServerId, error) { } id := FluidRelayServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFluidRelayServerIDInsensitively(input string) (*FluidRelayServerId, er } id := FluidRelayServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FluidRelayServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftFluidRelay", "Microsoft.FluidRelay", "Microsoft.FluidRelay"), resourceids.StaticSegment("staticFluidRelayServers", "fluidRelayServers", "fluidRelayServers"), - resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerValue"), + resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_get.go index 2fe48eb0cea8..885eeb1398a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/method_get.go @@ -45,7 +45,6 @@ func (c FluidRelayContainersClient) Get(ctx context.Context, id FluidRelayContai var model FluidRelayContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/version.go index b5d8c8f84670..e284ae9f3316 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelaycontainers/version.go @@ -1,12 +1,10 @@ package fluidrelaycontainers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-26" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fluidrelaycontainers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fluidrelaycontainers/2022-05-26" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md index 8a5e0a2e9ea9..03a173adcef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers` Documentation -The `fluidrelayservers` SDK allows for interaction with the Azure Resource Manager Service `fluidrelay` (API Version `2022-05-26`). +The `fluidrelayservers` SDK allows for interaction with Azure Resource Manager `fluidrelay` (API Version `2022-05-26`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") payload := fluidrelayservers.FluidRelayServer{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") read, err := client.GetKeys(ctx, id) if err != nil { @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -144,7 +144,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") payload := fluidrelayservers.RegenerateKeyRequest{ // ... @@ -165,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerValue") +id := fluidrelayservers.NewFluidRelayServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "fluidRelayServerName") payload := fluidrelayservers.FluidRelayServerUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/client.go index 5c0518ef60bc..c3c98061264a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/client.go @@ -15,7 +15,7 @@ type FluidRelayServersClient struct { } func NewFluidRelayServersClientWithBaseURI(sdkApi sdkEnv.Api) (*FluidRelayServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fluidrelayservers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fluidrelayservers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FluidRelayServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/id_fluidrelayserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/id_fluidrelayserver.go index 17a3074d4f83..0e984b2e731a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/id_fluidrelayserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/id_fluidrelayserver.go @@ -42,7 +42,7 @@ func ParseFluidRelayServerID(input string) (*FluidRelayServerId, error) { } id := FluidRelayServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFluidRelayServerIDInsensitively(input string) (*FluidRelayServerId, er } id := FluidRelayServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FluidRelayServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftFluidRelay", "Microsoft.FluidRelay", "Microsoft.FluidRelay"), resourceids.StaticSegment("staticFluidRelayServers", "fluidRelayServers", "fluidRelayServers"), - resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerValue"), + resourceids.UserSpecifiedSegment("fluidRelayServerName", "fluidRelayServerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_createorupdate.go index 94cf95373a4e..3d440aa5f391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_createorupdate.go @@ -49,7 +49,6 @@ func (c FluidRelayServersClient) CreateOrUpdate(ctx context.Context, id FluidRel var model FluidRelayServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_get.go index 2807d3896a6e..8b4b441e00eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_get.go @@ -45,7 +45,6 @@ func (c FluidRelayServersClient) Get(ctx context.Context, id FluidRelayServerId) var model FluidRelayServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_getkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_getkeys.go index 3d9b34413947..f1792c4c1d5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_getkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_getkeys.go @@ -46,7 +46,6 @@ func (c FluidRelayServersClient) GetKeys(ctx context.Context, id FluidRelayServe var model FluidRelayServerKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listkeys.go index e18ffd033a9c..295507462d32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_listkeys.go @@ -46,7 +46,6 @@ func (c FluidRelayServersClient) ListKeys(ctx context.Context, id FluidRelayServ var model FluidRelayServerKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_regeneratekey.go index 572bfd1c4044..1995fc3a4812 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c FluidRelayServersClient) RegenerateKey(ctx context.Context, id FluidRela var model FluidRelayServerKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_update.go index bb290d42c5cc..784c9497a949 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/method_update.go @@ -49,7 +49,6 @@ func (c FluidRelayServersClient) Update(ctx context.Context, id FluidRelayServer var model FluidRelayServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/version.go index 7664a0458cc0..02430b0c5a23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/fluidrelay/2022-05-26/fluidrelayservers/version.go @@ -1,12 +1,10 @@ package fluidrelayservers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-26" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fluidrelayservers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fluidrelayservers/2022-05-26" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md index f14178634306..8434571862e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies` Documentation -The `webapplicationfirewallpolicies` SDK allows for interaction with the Azure Resource Manager Service `frontdoor` (API Version `2020-04-01`). +The `webapplicationfirewallpolicies` SDK allows for interaction with Azure Resource Manager `frontdoor` (API Version `2020-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") payload := webapplicationfirewallpolicies.WebApplicationFirewallPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.PoliciesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") if err := client.PoliciesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.PoliciesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewFrontDoorWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") read, err := client.PoliciesGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/constants.go index 8d9e4d211218..24816afee99e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/constants.go @@ -1,6 +1,8 @@ package webapplicationfirewallpolicies -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/id_frontdoorwebapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/id_frontdoorwebapplicationfirewallpolicy.go index 1276a6077213..4219ee8c438f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/id_frontdoorwebapplicationfirewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/id_frontdoorwebapplicationfirewallpolicy.go @@ -42,7 +42,7 @@ func ParseFrontDoorWebApplicationFirewallPolicyID(input string) (*FrontDoorWebAp } id := FrontDoorWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFrontDoorWebApplicationFirewallPolicyIDInsensitively(input string) (*F } id := FrontDoorWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FrontDoorWebApplicationFirewallPolicyId) Segments() []resourceids.Segme resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFrontDoorWebApplicationFirewallPolicies", "frontDoorWebApplicationFirewallPolicies", "frontDoorWebApplicationFirewallPolicies"), - resourceids.UserSpecifiedSegment("frontDoorWebApplicationFirewallPolicyName", "frontDoorWebApplicationFirewallPolicyValue"), + resourceids.UserSpecifiedSegment("frontDoorWebApplicationFirewallPolicyName", "policyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/version.go index c984baf093ad..0b32e637517a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-04-01/webapplicationfirewallpolicies/version.go @@ -1,12 +1,10 @@ package webapplicationfirewallpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webapplicationfirewallpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webapplicationfirewallpolicies/2020-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/README.md index 0e3913668d64..a47ae6d3ad34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors` Documentation -The `frontdoors` SDK allows for interaction with the Azure Resource Manager Service `frontdoor` (API Version `2020-05-01`). +The `frontdoors` SDK allows for interaction with Azure Resource Manager `frontdoor` (API Version `2020-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") payload := frontdoors.FrontDoor{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") payload := frontdoors.PurgeParameters{ // ... @@ -71,7 +71,7 @@ if err := client.EndpointsPurgeContentThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "frontendEndpointValue") +id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "frontendEndpointName") if err := client.FrontendEndpointsDisableHTTPSThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.FrontendEndpointsDisableHTTPSThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "frontendEndpointValue") +id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "frontendEndpointName") payload := frontdoors.CustomHTTPSConfiguration{ // ... @@ -100,7 +100,7 @@ if err := client.FrontendEndpointsEnableHTTPSThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "frontendEndpointValue") +id := frontdoors.NewFrontendEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "frontendEndpointName") read, err := client.FrontendEndpointsGet(ctx, id) if err != nil { @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") // alternatively `client.FrontendEndpointsListByFrontDoor(ctx, id)` can be used to do batched pagination items, err := client.FrontendEndpointsListByFrontDoorComplete(ctx, id) @@ -133,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") read, err := client.Get(ctx, id) if err != nil { @@ -183,7 +183,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "rulesEngineValue") +id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "rulesEngineName") payload := frontdoors.RulesEngine{ // ... @@ -200,7 +200,7 @@ if err := client.RulesEnginesCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "rulesEngineValue") +id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "rulesEngineName") if err := client.RulesEnginesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -212,7 +212,7 @@ if err := client.RulesEnginesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue", "rulesEngineValue") +id := frontdoors.NewRulesEngineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName", "rulesEngineName") read, err := client.RulesEnginesGet(ctx, id) if err != nil { @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") // alternatively `client.RulesEnginesListByFrontDoor(ctx, id)` can be used to do batched pagination items, err := client.RulesEnginesListByFrontDoorComplete(ctx, id) @@ -245,7 +245,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorValue") +id := frontdoors.NewFrontDoorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "frontDoorName") payload := frontdoors.ValidateCustomDomainInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/constants.go index 0e93ac2ded14..4d789b0851d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/constants.go @@ -1,6 +1,8 @@ package frontdoors -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontdoor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontdoor.go index 7124ad8cffe8..8948218b8b08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontdoor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontdoor.go @@ -42,7 +42,7 @@ func ParseFrontDoorID(input string) (*FrontDoorId, error) { } id := FrontDoorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFrontDoorIDInsensitively(input string) (*FrontDoorId, error) { } id := FrontDoorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FrontDoorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFrontDoors", "frontDoors", "frontDoors"), - resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorValue"), + resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontendendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontendendpoint.go index 0568a0297a9c..8c5db06c6f81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontendendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_frontendendpoint.go @@ -44,7 +44,7 @@ func ParseFrontendEndpointID(input string) (*FrontendEndpointId, error) { } id := FrontendEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFrontendEndpointIDInsensitively(input string) (*FrontendEndpointId, er } id := FrontendEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FrontendEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFrontDoors", "frontDoors", "frontDoors"), - resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorValue"), + resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorName"), resourceids.StaticSegment("staticFrontendEndpoints", "frontendEndpoints", "frontendEndpoints"), - resourceids.UserSpecifiedSegment("frontendEndpointName", "frontendEndpointValue"), + resourceids.UserSpecifiedSegment("frontendEndpointName", "frontendEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_rulesengine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_rulesengine.go index 5018c2ef3b8e..27224ea37e98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_rulesengine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/id_rulesengine.go @@ -44,7 +44,7 @@ func ParseRulesEngineID(input string) (*RulesEngineId, error) { } id := RulesEngineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRulesEngineIDInsensitively(input string) (*RulesEngineId, error) { } id := RulesEngineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RulesEngineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFrontDoors", "frontDoors", "frontDoors"), - resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorValue"), + resourceids.UserSpecifiedSegment("frontDoorName", "frontDoorName"), resourceids.StaticSegment("staticRulesEngines", "rulesEngines", "rulesEngines"), - resourceids.UserSpecifiedSegment("rulesEngineName", "rulesEngineValue"), + resourceids.UserSpecifiedSegment("rulesEngineName", "rulesEngineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_forwardingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_forwardingconfiguration.go index 858e6e8fc0dd..f4670fbfb759 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_forwardingconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_forwardingconfiguration.go @@ -17,6 +17,14 @@ type ForwardingConfiguration struct { ForwardingProtocol *FrontDoorForwardingProtocol `json:"forwardingProtocol,omitempty"` // Fields inherited from RouteConfiguration + + OdataType string `json:"@odata.type"` +} + +func (s ForwardingConfiguration) RouteConfiguration() BaseRouteConfigurationImpl { + return BaseRouteConfigurationImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = ForwardingConfiguration{} @@ -30,9 +38,10 @@ func (s ForwardingConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ForwardingConfiguration: %+v", err) } + decoded["@odata.type"] = "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_redirectconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_redirectconfiguration.go index 78e9991c0202..8d3f96b336a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_redirectconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_redirectconfiguration.go @@ -19,6 +19,14 @@ type RedirectConfiguration struct { RedirectType *FrontDoorRedirectType `json:"redirectType,omitempty"` // Fields inherited from RouteConfiguration + + OdataType string `json:"@odata.type"` +} + +func (s RedirectConfiguration) RouteConfiguration() BaseRouteConfigurationImpl { + return BaseRouteConfigurationImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = RedirectConfiguration{} @@ -32,9 +40,10 @@ func (s RedirectConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RedirectConfiguration: %+v", err) } + decoded["@odata.type"] = "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routeconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routeconfiguration.go index b619f9137552..4fff7968bbdb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routeconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routeconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RouteConfiguration interface { + RouteConfiguration() BaseRouteConfigurationImpl } -// RawRouteConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RouteConfiguration = BaseRouteConfigurationImpl{} + +type BaseRouteConfigurationImpl struct { + OdataType string `json:"@odata.type"` +} + +func (s BaseRouteConfigurationImpl) RouteConfiguration() BaseRouteConfigurationImpl { + return s +} + +var _ RouteConfiguration = RawRouteConfigurationImpl{} + +// RawRouteConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRouteConfigurationImpl struct { - Type string - Values map[string]interface{} + routeConfiguration BaseRouteConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawRouteConfigurationImpl) RouteConfiguration() BaseRouteConfigurationImpl { + return s.routeConfiguration } -func unmarshalRouteConfigurationImplementation(input []byte) (RouteConfiguration, error) { +func UnmarshalRouteConfigurationImplementation(input []byte) (RouteConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRouteConfigurationImplementation(input []byte) (RouteConfiguration return nil, fmt.Errorf("unmarshaling RouteConfiguration into map[string]interface: %+v", err) } - value, ok := temp["@odata.type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["@odata.type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration") { @@ -52,10 +69,15 @@ func unmarshalRouteConfigurationImplementation(input []byte) (RouteConfiguration return out, nil } - out := RawRouteConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseRouteConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRouteConfigurationImpl: %+v", err) } - return out, nil + + return RawRouteConfigurationImpl{ + routeConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routingruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routingruleproperties.go index cd1c1e3ef45f..1f2953accb2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routingruleproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_routingruleproperties.go @@ -22,10 +22,17 @@ type RoutingRuleProperties struct { var _ json.Unmarshaler = &RoutingRuleProperties{} func (s *RoutingRuleProperties) UnmarshalJSON(bytes []byte) error { - type alias RoutingRuleProperties - var decoded alias + var decoded struct { + AcceptedProtocols *[]FrontDoorProtocol `json:"acceptedProtocols,omitempty"` + EnabledState *RoutingRuleEnabledState `json:"enabledState,omitempty"` + FrontendEndpoints *[]SubResource `json:"frontendEndpoints,omitempty"` + PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` + ResourceState *FrontDoorResourceState `json:"resourceState,omitempty"` + RulesEngine *SubResource `json:"rulesEngine,omitempty"` + WebApplicationFirewallPolicyLink *RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink `json:"webApplicationFirewallPolicyLink,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RoutingRuleProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AcceptedProtocols = decoded.AcceptedProtocols @@ -42,11 +49,12 @@ func (s *RoutingRuleProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["routeConfiguration"]; ok { - impl, err := unmarshalRouteConfigurationImplementation(v) + impl, err := UnmarshalRouteConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RouteConfiguration' for 'RoutingRuleProperties': %+v", err) } s.RouteConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_rulesengineaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_rulesengineaction.go index 382ac7083fc2..80e25e94ba71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_rulesengineaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/model_rulesengineaction.go @@ -17,10 +17,12 @@ type RulesEngineAction struct { var _ json.Unmarshaler = &RulesEngineAction{} func (s *RulesEngineAction) UnmarshalJSON(bytes []byte) error { - type alias RulesEngineAction - var decoded alias + var decoded struct { + RequestHeaderActions *[]HeaderAction `json:"requestHeaderActions,omitempty"` + ResponseHeaderActions *[]HeaderAction `json:"responseHeaderActions,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RulesEngineAction: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.RequestHeaderActions = decoded.RequestHeaderActions @@ -32,11 +34,12 @@ func (s *RulesEngineAction) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["routeConfigurationOverride"]; ok { - impl, err := unmarshalRouteConfigurationImplementation(v) + impl, err := UnmarshalRouteConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RouteConfigurationOverride' for 'RulesEngineAction': %+v", err) } s.RouteConfigurationOverride = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/version.go index 5d48a1072d21..e1089a315340 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/frontdoor/2020-05-01/frontdoors/version.go @@ -1,12 +1,10 @@ package frontdoors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/frontdoors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/frontdoors/2020-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md index d53385fa183a..d6a86692cb4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods` Documentation -The `graphservicesprods` SDK allows for interaction with the Azure Resource Manager Service `graphservices` (API Version `2023-04-13`). +The `graphservicesprods` SDK allows for interaction with Azure Resource Manager `graphservices` (API Version `2023-04-13`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := graphservicesprods.AccountResource{ // ... @@ -42,7 +42,7 @@ if err := client.AccountsCreateAndUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.AccountsDelete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.AccountsGet(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := graphservicesprods.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := graphservicesprods.TagUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/client.go index 3be0f9ce027e..74ee0cc84aa2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/client.go @@ -15,7 +15,7 @@ type GraphservicesprodsClient struct { } func NewGraphservicesprodsClientWithBaseURI(sdkApi sdkEnv.Api) (*GraphservicesprodsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "graphservicesprods", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "graphservicesprods", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GraphservicesprodsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/id_account.go index 8dd8feafd071..d4cf4ea01801 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftGraphServices", "Microsoft.GraphServices", "Microsoft.GraphServices"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsget.go index 63e7e46d9a36..076941f519ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsget.go @@ -45,7 +45,6 @@ func (c GraphservicesprodsClient) AccountsGet(ctx context.Context, id AccountId) var model AccountResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsupdate.go index fa07b586506e..6a4b96d5c16a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/method_accountsupdate.go @@ -49,7 +49,6 @@ func (c GraphservicesprodsClient) AccountsUpdate(ctx context.Context, id Account var model AccountResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/version.go index dfc7690c7e03..5ad844fd325e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/graphservices/2023-04-13/graphservicesprods/version.go @@ -1,12 +1,10 @@ package graphservicesprods -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-13" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/graphservicesprods/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/graphservicesprods/2023-04-13" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md index cedf7cd69d68..4118fbb43022 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments` Documentation -The `guestconfigurationassignments` SDK allows for interaction with the Azure Resource Manager Service `guestconfiguration` (API Version `2020-06-25`). +The `guestconfigurationassignments` SDK allows for interaction with Azure Resource Manager `guestconfiguration` (API Version `2020-06-25`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue") +id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "guestConfigurationAssignmentName") payload := guestconfigurationassignments.GuestConfigurationAssignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue") +id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "guestConfigurationAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "guestConfigurationAssignmentValue") +id := guestconfigurationassignments.NewProviders2GuestConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName", "guestConfigurationAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := guestconfigurationassignments.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue") +id := guestconfigurationassignments.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/client.go index 11ae93809246..8989493663d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/client.go @@ -15,7 +15,7 @@ type GuestConfigurationAssignmentsClient struct { } func NewGuestConfigurationAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestConfigurationAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "guestconfigurationassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "guestconfigurationassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GuestConfigurationAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_providers2guestconfigurationassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_providers2guestconfigurationassignment.go index eb4fb012dcf6..ab2cd9331f7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_providers2guestconfigurationassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_providers2guestconfigurationassignment.go @@ -44,7 +44,7 @@ func ParseProviders2GuestConfigurationAssignmentID(input string) (*Providers2Gue } id := Providers2GuestConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProviders2GuestConfigurationAssignmentIDInsensitively(input string) (* } id := Providers2GuestConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id Providers2GuestConfigurationAssignmentId) Segments() []resourceids.Segm resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftGuestConfiguration", "Microsoft.GuestConfiguration", "Microsoft.GuestConfiguration"), resourceids.StaticSegment("staticGuestConfigurationAssignments", "guestConfigurationAssignments", "guestConfigurationAssignments"), - resourceids.UserSpecifiedSegment("guestConfigurationAssignmentName", "guestConfigurationAssignmentValue"), + resourceids.UserSpecifiedSegment("guestConfigurationAssignmentName", "guestConfigurationAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_virtualmachine.go index 518671670190..00ac34e0642e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/id_virtualmachine.go @@ -42,7 +42,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_createorupdate.go index 63386004c3ab..1acb26da730b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_createorupdate.go @@ -50,7 +50,6 @@ func (c GuestConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, var model GuestConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_get.go index 57dab0fd3c91..e384e2b15e87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_get.go @@ -45,7 +45,6 @@ func (c GuestConfigurationAssignmentsClient) Get(ctx context.Context, id Provide var model GuestConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_list.go index 0eeeea6d1c9e..5d810e462cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_list.go @@ -46,7 +46,6 @@ func (c GuestConfigurationAssignmentsClient) List(ctx context.Context, id Virtua var model GuestConfigurationAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_rglist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_rglist.go index 7ad15ef21c4b..72091aaca581 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_rglist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_rglist.go @@ -48,7 +48,6 @@ func (c GuestConfigurationAssignmentsClient) RGList(ctx context.Context, id comm var model GuestConfigurationAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_subscriptionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_subscriptionlist.go index 79d697751d43..cd434739d990 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_subscriptionlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/method_subscriptionlist.go @@ -48,7 +48,6 @@ func (c GuestConfigurationAssignmentsClient) SubscriptionList(ctx context.Contex var model GuestConfigurationAssignmentList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/version.go index 6c08c30d9828..17fc56b9fc0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/guestconfiguration/2020-06-25/guestconfigurationassignments/version.go @@ -1,12 +1,10 @@ package guestconfigurationassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-06-25" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/guestconfigurationassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/guestconfigurationassignments/2020-06-25" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md index 5c34de7260d8..80de954a427f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms` Documentation -The `dedicatedhsms` SDK allows for interaction with the Azure Resource Manager Service `hardwaresecuritymodules` (API Version `2021-11-30`). +The `dedicatedhsms` SDK allows for interaction with Azure Resource Manager `hardwaresecuritymodules` (API Version `2021-11-30`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedHSMValue") +id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := dedicatedhsms.DedicatedHsm{ // ... @@ -42,7 +42,7 @@ if err := client.DedicatedHsmCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedHSMValue") +id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.DedicatedHsmDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DedicatedHsmDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedHSMValue") +id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.DedicatedHsmGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedHSMValue") +id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.DedicatedHsmListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.DedicatedHsmListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedHSMValue") +id := dedicatedhsms.NewDedicatedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := dedicatedhsms.DedicatedHsmPatchParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/client.go index b8b62118f0bc..feb05e5b6a72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/client.go @@ -15,7 +15,7 @@ type DedicatedHsmsClient struct { } func NewDedicatedHsmsClientWithBaseURI(sdkApi sdkEnv.Api) (*DedicatedHsmsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dedicatedhsms", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dedicatedhsms", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DedicatedHsmsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/id_dedicatedhsm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/id_dedicatedhsm.go index 0e8b51049729..1097105e86f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/id_dedicatedhsm.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/id_dedicatedhsm.go @@ -42,7 +42,7 @@ func ParseDedicatedHSMID(input string) (*DedicatedHSMId, error) { } id := DedicatedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDedicatedHSMIDInsensitively(input string) (*DedicatedHSMId, error) { } id := DedicatedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DedicatedHSMId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHardwareSecurityModules", "Microsoft.HardwareSecurityModules", "Microsoft.HardwareSecurityModules"), resourceids.StaticSegment("staticDedicatedHSMs", "dedicatedHSMs", "dedicatedHSMs"), - resourceids.UserSpecifiedSegment("dedicatedHSMName", "dedicatedHSMValue"), + resourceids.UserSpecifiedSegment("dedicatedHSMName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmget.go index 3f524919e58a..6c7b39a8d557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmget.go @@ -45,7 +45,6 @@ func (c DedicatedHsmsClient) DedicatedHsmGet(ctx context.Context, id DedicatedHS var model DedicatedHsm result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go index 437035b7daf4..95c1c48ce738 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbyresourcegroup.go @@ -40,6 +40,7 @@ func (o DedicatedHsmListByResourceGroupOperationOptions) ToHeaders() *client.Hea func (o DedicatedHsmListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go index 1b227703e622..d4df6ae7c14b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/method_dedicatedhsmlistbysubscription.go @@ -40,6 +40,7 @@ func (o DedicatedHsmListBySubscriptionOperationOptions) ToHeaders() *client.Head func (o DedicatedHsmListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/version.go index 1dfbb967b27e..ea4a4475242f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hardwaresecuritymodules/2021-11-30/dedicatedhsms/version.go @@ -1,12 +1,10 @@ package dedicatedhsms -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-30" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dedicatedhsms/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dedicatedhsms/2021-11-30" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/README.md index 10c4e4fdbaf9..998b61b1f896 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications` Documentation -The `applications` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `applications` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "applicationName") payload := applications.Application{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "applicationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "applicationName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/client.go index f4ad56ad4d27..01d1c5a1e052 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/client.go @@ -15,7 +15,7 @@ type ApplicationsClient struct { } func NewApplicationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/id_application.go index eb1b16c8c76a..3c30c3d3a929 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/id_application.go @@ -44,7 +44,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "applicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/method_get.go index f15c3c0bf9f9..5eb8a2355bef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationsClient) Get(ctx context.Context, id ApplicationId) (result G var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/version.go index c45ea554e121..d912a2ee4d60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/applications/version.go @@ -1,12 +1,10 @@ package applications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applications/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/README.md index d5121b45b789..5d9f3c25ce35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `clusters` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterCreateParametersExtended{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ExecuteScriptActionParameters{ // ... @@ -71,7 +71,7 @@ if err := client.ExecuteScriptActionsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.GetGatewaySettings(ctx, id) if err != nil { @@ -137,7 +137,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterResizeParameters{ // ... @@ -154,7 +154,7 @@ if err := client.ResizeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterDiskEncryptionParameters{ // ... @@ -171,7 +171,7 @@ if err := client.RotateDiskEncryptionKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterPatchParameters{ // ... @@ -192,7 +192,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.AutoscaleConfigurationUpdateParameter{ // ... @@ -209,7 +209,7 @@ if err := client.UpdateAutoScaleConfigurationThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.UpdateGatewaySettingsParameters{ // ... @@ -226,7 +226,7 @@ if err := client.UpdateGatewaySettingsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.UpdateClusterIdentityCertificateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_get.go index 0a09f2c6cd0f..919eac5f9da7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_get.go @@ -46,7 +46,6 @@ func (c ClustersClient) Get(ctx context.Context, id commonids.HDInsightClusterId var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_getgatewaysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_getgatewaysettings.go index b51901a3c3be..36302c5e2784 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_getgatewaysettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_getgatewaysettings.go @@ -47,7 +47,6 @@ func (c ClustersClient) GetGatewaySettings(ctx context.Context, id commonids.HDI var model GatewaySettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_update.go index cd283d4c493c..bd0448655d17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/method_update.go @@ -50,7 +50,6 @@ func (c ClustersClient) Update(ctx context.Context, id commonids.HDInsightCluste var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/version.go index 99c68bbf7754..192c56cd2e5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/README.md index 04c99200f8c8..93dc1303085b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `configurations` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.List(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") var payload map[string]string if err := client.UpdateThenPoll(ctx, id, payload); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/client.go index 3ced22d176bb..f927d73df196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/client.go @@ -15,7 +15,7 @@ type ConfigurationsClient struct { } func NewConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/id_configuration.go index 30f4ded8d4a8..2dd84d677e60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_get.go index 9fad4c707b62..beeb10cf2372 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) Get(ctx context.Context, id ConfigurationId) (resu var model map[string]string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_list.go index 03c02af94801..589e341c813c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/method_list.go @@ -47,7 +47,6 @@ func (c ConfigurationsClient) List(ctx context.Context, id commonids.HDInsightCl var model ClusterConfigurations result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/version.go index d5ec5102c441..2e08fe82e904 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/configurations/version.go @@ -1,12 +1,10 @@ package configurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurations/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/README.md index cb87e80d23c4..572b0a0d5132 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions` Documentation -The `extensions` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `extensions` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "extensionName") payload := extensions.Extension{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "extensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DisableAzureMonitorThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { // handle the error @@ -78,7 +78,7 @@ if err := client.DisableMonitoringThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := extensions.AzureMonitorRequest{ // ... @@ -95,7 +95,7 @@ if err := client.EnableAzureMonitorThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := extensions.ClusterMonitoringRequest{ // ... @@ -112,7 +112,7 @@ if err := client.EnableMonitoringThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "extensionValue") +id := extensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "extensionName") read, err := client.Get(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.GetAzureMonitorStatus(ctx, id) if err != nil { @@ -144,7 +144,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.GetMonitoringStatus(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/client.go index 44725ac0e846..682e82667080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/client.go @@ -15,7 +15,7 @@ type ExtensionsClient struct { } func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "extensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "extensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/id_extension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/id_extension.go index ecf63cf79f9f..d0e1c9671901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/id_extension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/id_extension.go @@ -44,7 +44,7 @@ func ParseExtensionID(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExtensionIDInsensitively(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "extensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_get.go index 6fea38894edf..49470c83a61c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_get.go @@ -45,7 +45,6 @@ func (c ExtensionsClient) Get(ctx context.Context, id ExtensionId) (result GetOp var model ClusterMonitoringResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getazuremonitorstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getazuremonitorstatus.go index f034befb9f21..a67577341eb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getazuremonitorstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getazuremonitorstatus.go @@ -47,7 +47,6 @@ func (c ExtensionsClient) GetAzureMonitorStatus(ctx context.Context, id commonid var model AzureMonitorResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getmonitoringstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getmonitoringstatus.go index 01c294bb17b3..8191415455fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getmonitoringstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/method_getmonitoringstatus.go @@ -47,7 +47,6 @@ func (c ExtensionsClient) GetMonitoringStatus(ctx context.Context, id commonids. var model ClusterMonitoringResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/version.go index 008c1ff52429..aca4efcd1c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/extensions/version.go @@ -1,12 +1,10 @@ package extensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/extensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/extensions/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md index ffedf57ea2db..f86255a2bc66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/id_privateendpointconnection.go index f6e3501af5e7..e2b0e6f756ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/version.go index 0d17055f179a..84f32b5d3b08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md index 15fba1f58b3a..43c18782dcf6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateLinkResourceValue") +id := privatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateLinkResourceName") read, err := client.Get(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/id_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/id_privatelinkresource.go index 365d4b38f98a..c3d6def98169 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/id_privatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/id_privatelinkresource.go @@ -44,7 +44,7 @@ func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error) { } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResource } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPrivateLinkResources", "privateLinkResources", "privateLinkResources"), - resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceValue"), + resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_get.go index f265d7c640ab..4fe261461813 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkResourcesClient) Get(ctx context.Context, id PrivateLinkResou var model PrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_listbycluster.go index f63fc0406906..3d3d2200e7b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/method_listbycluster.go @@ -47,7 +47,6 @@ func (c PrivateLinkResourcesClient) ListByCluster(ctx context.Context, id common var model PrivateLinkResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/version.go index 4ee29f52669e..cb4b4960d6ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/client.go index 1b9c9beb2acb..a5b6b3f8f89d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/client.go @@ -15,7 +15,7 @@ type PromoteClient struct { } func NewPromoteClientWithBaseURI(sdkApi sdkEnv.Api) (*PromoteClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "promote", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "promote", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PromoteClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/id_scriptexecutionhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/id_scriptexecutionhistory.go index c1311218fc59..512fb044bb41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/id_scriptexecutionhistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/id_scriptexecutionhistory.go @@ -44,7 +44,7 @@ func ParseScriptExecutionHistoryID(input string) (*ScriptExecutionHistoryId, err } id := ScriptExecutionHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScriptExecutionHistoryIDInsensitively(input string) (*ScriptExecutionH } id := ScriptExecutionHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScriptExecutionHistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticScriptExecutionHistory", "scriptExecutionHistory", "scriptExecutionHistory"), - resourceids.UserSpecifiedSegment("scriptExecutionId", "scriptExecutionIdValue"), + resourceids.UserSpecifiedSegment("scriptExecutionId", "scriptExecutionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/version.go index 5120da2263a5..b9ef9245aa46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/promote/version.go @@ -1,12 +1,10 @@ package promote -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/promote/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/promote/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/README.md index df6e59b0050e..e87114e16c74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions` Documentation -The `regions` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `regions` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := regions.NameAvailabilityCheckRequestParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationsGetCapabilities(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationsListBillingSpecs(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.LocationsListUsages(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := regions.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := regions.ClusterCreateRequestValidationParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/client.go index cf8027ad9e12..64e234bef941 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/client.go @@ -15,7 +15,7 @@ type RegionsClient struct { } func NewRegionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RegionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "regions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "regions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/id_location.go index b33830b248bc..2f8088492a37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationschecknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationschecknameavailability.go index cc65edb2c844..90e340330c2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationschecknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationschecknameavailability.go @@ -50,7 +50,6 @@ func (c RegionsClient) LocationsCheckNameAvailability(ctx context.Context, id Lo var model NameAvailabilityCheckResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsgetcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsgetcapabilities.go index 13b192e55823..0a89ad9095b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsgetcapabilities.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsgetcapabilities.go @@ -46,7 +46,6 @@ func (c RegionsClient) LocationsGetCapabilities(ctx context.Context, id Location var model CapabilitiesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistbillingspecs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistbillingspecs.go index d5f73e161833..0cc2888fe2cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistbillingspecs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistbillingspecs.go @@ -46,7 +46,6 @@ func (c RegionsClient) LocationsListBillingSpecs(ctx context.Context, id Locatio var model BillingResponseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistusages.go index d731ee1fe6bf..c6b3dd503a93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationslistusages.go @@ -46,7 +46,6 @@ func (c RegionsClient) LocationsListUsages(ctx context.Context, id LocationId) ( var model UsagesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsvalidateclustercreaterequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsvalidateclustercreaterequest.go index b39422afc5bb..e0b5b4b9edf1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsvalidateclustercreaterequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/method_locationsvalidateclustercreaterequest.go @@ -50,7 +50,6 @@ func (c RegionsClient) LocationsValidateClusterCreateRequest(ctx context.Context var model ClusterCreateValidationResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/version.go index e9f2343225d0..0fe1dcc76a88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/regions/version.go @@ -1,12 +1,10 @@ package regions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/regions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/regions/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/README.md index fb519a1bccfa..dfa4412d00c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions` Documentation -The `scriptactions` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `scriptactions` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scriptactions.NewScriptActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "scriptActionValue") +id := scriptactions.NewScriptActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "scriptName") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/client.go index 6d46261fc0c7..80092b9affed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/client.go @@ -15,7 +15,7 @@ type ScriptActionsClient struct { } func NewScriptActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptActionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scriptactions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scriptactions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScriptActionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/id_scriptaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/id_scriptaction.go index 2cc2a99e2d2d..f554fca07d63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/id_scriptaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/id_scriptaction.go @@ -44,7 +44,7 @@ func ParseScriptActionID(input string) (*ScriptActionId, error) { } id := ScriptActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScriptActionIDInsensitively(input string) (*ScriptActionId, error) { } id := ScriptActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScriptActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticScriptActions", "scriptActions", "scriptActions"), - resourceids.UserSpecifiedSegment("scriptActionName", "scriptActionValue"), + resourceids.UserSpecifiedSegment("scriptActionName", "scriptName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/version.go index 2afd4b19cde4..14a7acfa5e02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptactions/version.go @@ -1,12 +1,10 @@ package scriptactions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scriptactions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scriptactions/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md index e7d6aa1ff46a..e5f24f9be949 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory` Documentation -The `scriptexecutionhistory` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `scriptexecutionhistory` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scriptexecutionhistory.NewScriptExecutionHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "scriptExecutionIdValue") +id := scriptexecutionhistory.NewScriptExecutionHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "scriptExecutionId") read, err := client.ScriptActionsGetExecutionDetail(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/client.go index bfe9d6db50b0..26ec566cf86a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/client.go @@ -15,7 +15,7 @@ type ScriptExecutionHistoryClient struct { } func NewScriptExecutionHistoryClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptExecutionHistoryClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scriptexecutionhistory", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scriptexecutionhistory", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScriptExecutionHistoryClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/id_scriptexecutionhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/id_scriptexecutionhistory.go index 002457c647c4..643ed5dbbf43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/id_scriptexecutionhistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/id_scriptexecutionhistory.go @@ -44,7 +44,7 @@ func ParseScriptExecutionHistoryID(input string) (*ScriptExecutionHistoryId, err } id := ScriptExecutionHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScriptExecutionHistoryIDInsensitively(input string) (*ScriptExecutionH } id := ScriptExecutionHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScriptExecutionHistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHDInsight", "Microsoft.HDInsight", "Microsoft.HDInsight"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticScriptExecutionHistory", "scriptExecutionHistory", "scriptExecutionHistory"), - resourceids.UserSpecifiedSegment("scriptExecutionId", "scriptExecutionIdValue"), + resourceids.UserSpecifiedSegment("scriptExecutionId", "scriptExecutionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_scriptactionsgetexecutiondetail.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_scriptactionsgetexecutiondetail.go index 91705d726d9f..a5be762852b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_scriptactionsgetexecutiondetail.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/method_scriptactionsgetexecutiondetail.go @@ -45,7 +45,6 @@ func (c ScriptExecutionHistoryClient) ScriptActionsGetExecutionDetail(ctx contex var model RuntimeScriptActionDetail result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/version.go index 5334462a1b1d..042d9dcb94b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/scriptexecutionhistory/version.go @@ -1,12 +1,10 @@ package scriptexecutionhistory -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scriptexecutionhistory/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scriptexecutionhistory/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md index 6c89fe05f2dc..864a2ddf1205 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines` Documentation -The `virtualmachines` SDK allows for interaction with the Azure Resource Manager Service `hdinsight` (API Version `2021-06-01`). +The `virtualmachines` SDK allows for interaction with Azure Resource Manager `hdinsight` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ListHosts(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewHDInsightClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") var payload []string if err := client.RestartHostsThenPoll(ctx, id, payload); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/client.go index 29f57e611e83..511271064362 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/client.go @@ -15,7 +15,7 @@ type VirtualMachinesClient struct { } func NewVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/method_listhosts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/method_listhosts.go index 1d9bfdfaf477..9d4c7ca31929 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/method_listhosts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/method_listhosts.go @@ -47,7 +47,6 @@ func (c VirtualMachinesClient) ListHosts(ctx context.Context, id commonids.HDIns var model []HostInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/version.go index d74c3c040d92..0ad5d528d3dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hdinsight/2021-06-01/virtualmachines/version.go @@ -1,12 +1,10 @@ package virtualmachines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachines/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/README.md index b34448c38ad6..8cd387d8d3a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots` Documentation -The `healthbots` SDK allows for interaction with the Azure Resource Manager Service `healthbot` (API Version `2022-08-08`). +The `healthbots` SDK allows for interaction with Azure Resource Manager `healthbot` (API Version `2022-08-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") payload := healthbots.HealthBot{ // ... @@ -42,7 +42,7 @@ if err := client.BotsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") if err := client.BotsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.BotsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") read, err := client.BotsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") read, err := client.BotsListSecrets(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") read, err := client.BotsRegenerateApiJwtSecret(ctx, id) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "healthBotValue") +id := healthbots.NewHealthBotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "botName") payload := healthbots.HealthBotUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/client.go index e9e7114f787e..d2980657b16a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/client.go @@ -15,7 +15,7 @@ type HealthbotsClient struct { } func NewHealthbotsClientWithBaseURI(sdkApi sdkEnv.Api) (*HealthbotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "healthbots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "healthbots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HealthbotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/id_healthbot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/id_healthbot.go index 214acbb3af97..2b70abd9066d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/id_healthbot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/id_healthbot.go @@ -42,7 +42,7 @@ func ParseHealthBotID(input string) (*HealthBotId, error) { } id := HealthBotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseHealthBotIDInsensitively(input string) (*HealthBotId, error) { } id := HealthBotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id HealthBotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthBot", "Microsoft.HealthBot", "Microsoft.HealthBot"), resourceids.StaticSegment("staticHealthBots", "healthBots", "healthBots"), - resourceids.UserSpecifiedSegment("healthBotName", "healthBotValue"), + resourceids.UserSpecifiedSegment("healthBotName", "botName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsget.go index ef6ce7016677..a2042a46af68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsget.go @@ -45,7 +45,6 @@ func (c HealthbotsClient) BotsGet(ctx context.Context, id HealthBotId) (result B var model HealthBot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botslistsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botslistsecrets.go index 08584f7e135a..8d41e7ca3a5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botslistsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botslistsecrets.go @@ -46,7 +46,6 @@ func (c HealthbotsClient) BotsListSecrets(ctx context.Context, id HealthBotId) ( var model HealthBotKeysResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsregenerateapijwtsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsregenerateapijwtsecret.go index 4a0a1cc430b9..1b21cc4533b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsregenerateapijwtsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/method_botsregenerateapijwtsecret.go @@ -46,7 +46,6 @@ func (c HealthbotsClient) BotsRegenerateApiJwtSecret(ctx context.Context, id Hea var model HealthBotKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/version.go index a360fdba3b24..2a639abd99d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthbot/2022-08-08/healthbots/version.go @@ -1,12 +1,10 @@ package healthbots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/healthbots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/healthbots/2022-08-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/README.md index eb9fbad640e6..d56d3a16bf33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices` Documentation -The `fhirservices` SDK allows for interaction with the Azure Resource Manager Service `healthcareapis` (API Version `2022-12-01`). +The `fhirservices` SDK allows for interaction with Azure Resource Manager `healthcareapis` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "fhirServiceValue") +id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "fhirServiceName") payload := fhirservices.FhirService{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "fhirServiceValue") +id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "fhirServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "fhirServiceValue") +id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "fhirServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fhirservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := fhirservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ListByWorkspace(ctx, id)` can be used to do batched pagination items, err := client.ListByWorkspaceComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "fhirServiceValue") +id := fhirservices.NewFhirServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "fhirServiceName") payload := fhirservices.FhirServicePatchResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/client.go index 6b9652e4e99f..0037c1ea2921 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/client.go @@ -15,7 +15,7 @@ type FhirServicesClient struct { } func NewFhirServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*FhirServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fhirservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fhirservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FhirServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_fhirservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_fhirservice.go index 9b841b2a9f13..0a878fc528d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_fhirservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_fhirservice.go @@ -44,7 +44,7 @@ func ParseFhirServiceID(input string) (*FhirServiceId, error) { } id := FhirServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFhirServiceIDInsensitively(input string) (*FhirServiceId, error) { } id := FhirServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FhirServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticFhirServices", "fhirServices", "fhirServices"), - resourceids.UserSpecifiedSegment("fhirServiceName", "fhirServiceValue"), + resourceids.UserSpecifiedSegment("fhirServiceName", "fhirServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_workspace.go index cfde2dd54229..ab5cbfbcceb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/method_get.go index 6a1236983271..affe8f34b5c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/method_get.go @@ -45,7 +45,6 @@ func (c FhirServicesClient) Get(ctx context.Context, id FhirServiceId) (result G var model FhirService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/version.go index c65dc16b6181..15f14571c9c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/fhirservices/version.go @@ -1,12 +1,10 @@ package fhirservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fhirservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fhirservices/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/README.md index a419dfe525ca..08cf4eb90428 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors` Documentation -The `iotconnectors` SDK allows for interaction with the Azure Resource Manager Service `healthcareapis` (API Version `2022-12-01`). +The `iotconnectors` SDK allows for interaction with Azure Resource Manager `healthcareapis` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue") +id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName") payload := iotconnectors.IotConnector{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue") +id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue") +id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName") // alternatively `client.FhirDestinationsListByIotConnector(ctx, id)` can be used to do batched pagination items, err := client.FhirDestinationsListByIotConnectorComplete(ctx, id) @@ -70,7 +70,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue") +id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue") +id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName", "fhirDestinationName") payload := iotconnectors.IotFhirDestination{ // ... @@ -103,7 +103,7 @@ if err := client.IotConnectorFhirDestinationCreateOrUpdateThenPoll(ctx, id, payl ```go ctx := context.TODO() -id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue") +id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName", "fhirDestinationName") if err := client.IotConnectorFhirDestinationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -115,7 +115,7 @@ if err := client.IotConnectorFhirDestinationDeleteThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue", "fhirDestinationValue") +id := iotconnectors.NewFhirDestinationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName", "fhirDestinationName") read, err := client.IotConnectorFhirDestinationGet(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := iotconnectors.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := iotconnectors.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ListByWorkspace(ctx, id)` can be used to do batched pagination items, err := client.ListByWorkspaceComplete(ctx, id) @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "iotConnectorValue") +id := iotconnectors.NewIotConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "iotConnectorName") payload := iotconnectors.IotConnectorPatchResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/client.go index dcb9444b36e4..1ef0df0df3ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/client.go @@ -15,7 +15,7 @@ type IotConnectorsClient struct { } func NewIotConnectorsClientWithBaseURI(sdkApi sdkEnv.Api) (*IotConnectorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "iotconnectors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "iotconnectors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IotConnectorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_fhirdestination.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_fhirdestination.go index f6442c6c00c2..d431f50bbf6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_fhirdestination.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_fhirdestination.go @@ -46,7 +46,7 @@ func ParseFhirDestinationID(input string) (*FhirDestinationId, error) { } id := FhirDestinationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseFhirDestinationIDInsensitively(input string) (*FhirDestinationId, erro } id := FhirDestinationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id FhirDestinationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticIotConnectors", "iotConnectors", "iotConnectors"), - resourceids.UserSpecifiedSegment("iotConnectorName", "iotConnectorValue"), + resourceids.UserSpecifiedSegment("iotConnectorName", "iotConnectorName"), resourceids.StaticSegment("staticFhirDestinations", "fhirDestinations", "fhirDestinations"), - resourceids.UserSpecifiedSegment("fhirDestinationName", "fhirDestinationValue"), + resourceids.UserSpecifiedSegment("fhirDestinationName", "fhirDestinationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_iotconnector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_iotconnector.go index 4fe1656dd97a..f6dcf9fba34d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_iotconnector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_iotconnector.go @@ -44,7 +44,7 @@ func ParseIotConnectorID(input string) (*IotConnectorId, error) { } id := IotConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseIotConnectorIDInsensitively(input string) (*IotConnectorId, error) { } id := IotConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id IotConnectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticIotConnectors", "iotConnectors", "iotConnectors"), - resourceids.UserSpecifiedSegment("iotConnectorName", "iotConnectorValue"), + resourceids.UserSpecifiedSegment("iotConnectorName", "iotConnectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_workspace.go index a1bfb6070dc6..2d9f2a62429c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_get.go index 940659c59c5f..99c8170cf84d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_get.go @@ -45,7 +45,6 @@ func (c IotConnectorsClient) Get(ctx context.Context, id IotConnectorId) (result var model IotConnector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_iotconnectorfhirdestinationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_iotconnectorfhirdestinationget.go index a218bc967b57..3ca82b9782c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_iotconnectorfhirdestinationget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/method_iotconnectorfhirdestinationget.go @@ -45,7 +45,6 @@ func (c IotConnectorsClient) IotConnectorFhirDestinationGet(ctx context.Context, var model IotFhirDestination result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/version.go index ce121bcb1e4d..b6fab4eb929d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/iotconnectors/version.go @@ -1,12 +1,10 @@ package iotconnectors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/iotconnectors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/iotconnectors/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/README.md index 28c445c68b2e..813e6edf5c75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource` Documentation -The `resource` SDK allows for interaction with the Azure Resource Manager Service `healthcareapis` (API Version `2022-12-01`). +The `resource` SDK allows for interaction with Azure Resource Manager `healthcareapis` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := resource.ServicesDescription{ // ... @@ -41,7 +41,7 @@ if err := client.ServicesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.ServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ServicesGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceValue") +id := resource.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := resource.ServicesPatchDescription{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/client.go index 9e33b0443e66..672e189b06ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/client.go @@ -15,7 +15,7 @@ type ResourceClient struct { } func NewResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/id_service.go index 66245b7158c4..928a209ac590 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/id_service.go @@ -42,7 +42,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/method_servicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/method_servicesget.go index e62723b2cd3d..008f266d8ea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/method_servicesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/method_servicesget.go @@ -45,7 +45,6 @@ func (c ResourceClient) ServicesGet(ctx context.Context, id ServiceId) (result S var model ServicesDescription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/version.go index 87d278fb9e11..e38572b297d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2022-12-01/resource/version.go @@ -1,12 +1,10 @@ package resource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resource/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/README.md index 7268380520de..25b074bf7a14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices` Documentation -The `dicomservices` SDK allows for interaction with the Azure Resource Manager Service `healthcareapis` (API Version `2024-03-31`). +The `dicomservices` SDK allows for interaction with Azure Resource Manager `healthcareapis` (API Version `2024-03-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue") +id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dicomServiceName") payload := dicomservices.DicomService{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue") +id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dicomServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue") +id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dicomServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dicomservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := dicomservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ListByWorkspace(ctx, id)` can be used to do batched pagination items, err := client.ListByWorkspaceComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dicomServiceValue") +id := dicomservices.NewDicomServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dicomServiceName") payload := dicomservices.DicomServicePatchResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/client.go index 911650c48373..454ac827dbca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/client.go @@ -15,7 +15,7 @@ type DicomServicesClient struct { } func NewDicomServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*DicomServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dicomservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dicomservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DicomServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_dicomservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_dicomservice.go index 52c5ad0a8131..5ca4bc9702fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_dicomservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_dicomservice.go @@ -44,7 +44,7 @@ func ParseDicomServiceID(input string) (*DicomServiceId, error) { } id := DicomServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDicomServiceIDInsensitively(input string) (*DicomServiceId, error) { } id := DicomServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DicomServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticDicomServices", "dicomServices", "dicomServices"), - resourceids.UserSpecifiedSegment("dicomServiceName", "dicomServiceValue"), + resourceids.UserSpecifiedSegment("dicomServiceName", "dicomServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_workspace.go index f55839251c14..17af704dffa3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/method_get.go index 482bad2b0479..f0ea7c0e54fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/method_get.go @@ -45,7 +45,6 @@ func (c DicomServicesClient) Get(ctx context.Context, id DicomServiceId) (result var model DicomService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/version.go index 18fdd1b20e09..e72152f98aca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/dicomservices/version.go @@ -1,12 +1,10 @@ package dicomservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dicomservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dicomservices/2024-03-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/README.md index 4d786b6081ef..82ea02a3a267 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `healthcareapis` (API Version `2024-03-31`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `healthcareapis` (API Version `2024-03-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.ResourceTags{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/id_workspace.go index 77c31e55c41f..0b885efe2b25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHealthcareApis", "Microsoft.HealthcareApis", "Microsoft.HealthcareApis"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/version.go index 25b0a631991f..6a6883a356a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/healthcareapis/2024-03-31/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2024-03-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/README.md index 39fc52bad594..8ad9d55690e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions` Documentation -The `machineextensions` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2022-11-10`). +The `machineextensions` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2022-11-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") payload := machineextensions.MachineExtension{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machineextensions.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machineextensions.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") // alternatively `client.List(ctx, id, machineextensions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, machineextensions.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") payload := machineextensions.MachineExtensionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/client.go index a4336266a29d..63a73f0818b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/client.go @@ -15,7 +15,7 @@ type MachineExtensionsClient struct { } func NewMachineExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machineextensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machineextensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachineExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_extension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_extension.go index f1f0e73d09b3..854f23eb6603 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_extension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_extension.go @@ -44,7 +44,7 @@ func ParseExtensionID(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExtensionIDInsensitively(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "extensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_machine.go index 63c29999e354..0023498d4a0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_get.go index e21d210a448e..de726cb76871 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_get.go @@ -45,7 +45,6 @@ func (c MachineExtensionsClient) Get(ctx context.Context, id ExtensionId) (resul var model MachineExtension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go index d9646c3c81e5..508180edb273 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/version.go index fba16a85b092..71d69b5b88d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machineextensions/version.go @@ -1,12 +1,10 @@ package machineextensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machineextensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machineextensions/2022-11-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/README.md index b5820aff2dc3..20cc02a9a532 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines` Documentation -The `machines` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2022-11-10`). +The `machines` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2022-11-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machines.Machine{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.Get(ctx, id, machines.DefaultGetOperationOptions()) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machines.MachineUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/client.go index e0daf9080614..fcd8a61002f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/client.go @@ -15,7 +15,7 @@ type MachinesClient struct { } func NewMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/id_machine.go index e8e33b30e0c9..fef3ed162238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_createorupdate.go index 5bde2c1a35c0..2b8e961cb503 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_createorupdate.go @@ -49,7 +49,6 @@ func (c MachinesClient) CreateOrUpdate(ctx context.Context, id MachineId, input var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_get.go index 4cc80ee56283..dbba4fc28519 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c MachinesClient) Get(ctx context.Context, id MachineId, options GetOperat var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_update.go index f90641d69c8d..2fe776738bfa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/method_update.go @@ -49,7 +49,6 @@ func (c MachinesClient) Update(ctx context.Context, id MachineId, input MachineU var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/version.go index 3cfed6470a48..5f872c2334a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/machines/version.go @@ -1,12 +1,10 @@ package machines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machines/2022-11-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/README.md index 8e2dc315adc7..1eb4d3b1bcc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2022-11-10`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2022-11-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privateendpointconnections.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") // alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination items, err := client.ListByPrivateLinkScopeComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_privateendpointconnection.go index ac2417fe8c83..ddb5472edd74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_providerprivatelinkscope.go index 7bd8a7c1186e..46d0b8c6ba90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/version.go index 7d7b4dfbf841..c61b3ed255ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2022-11-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md index 761549bc81de..097a9824400a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes` Documentation -The `privatelinkscopes` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2022-11-10`). +The `privatelinkscopes` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2022-11-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopes.HybridComputePrivateLinkScope{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") read, err := client.Get(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "locationValue", "privateLinkScopeIdValue") +id := privatelinkscopes.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "location", "privateLinkScopeId") read, err := client.GetValidationDetails(ctx, id) if err != nil { @@ -90,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := privatelinkscopes.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.GetValidationDetailsForMachine(ctx, id) if err != nil { @@ -140,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopes.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/client.go index c1f8540450a3..6ad000261641 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/client.go @@ -15,7 +15,7 @@ type PrivateLinkScopesClient struct { } func NewPrivateLinkScopesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkScopesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkscopes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkscopes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkScopesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_machine.go index 8296e6ce9cfa..ae7b09c821bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_privatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_privatelinkscope.go index ae6a8ccdd754..df45f21ff449 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_privatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_privatelinkscope.go @@ -42,7 +42,7 @@ func ParsePrivateLinkScopeID(input string) (*PrivateLinkScopeId, error) { } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateLinkScopeIDInsensitively(input string) (*PrivateLinkScopeId, er } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id PrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeId", "privateLinkScopeIdValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeId", "privateLinkScopeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_providerprivatelinkscope.go index 061c9f3c4cc2..e088291c0566 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_createorupdate.go index 5d8d83204395..e443fdeae450 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_createorupdate.go @@ -50,7 +50,6 @@ func (c PrivateLinkScopesClient) CreateOrUpdate(ctx context.Context, id Provider var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_get.go index 2373e6b9b137..1d8b307be872 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopesClient) Get(ctx context.Context, id ProviderPrivateLink var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetails.go index 1c1d43dd3611..6b32c351ffae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetails.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopesClient) GetValidationDetails(ctx context.Context, id Pr var model PrivateLinkScopeValidationDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetailsformachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetailsformachine.go index 724c45d8ae97..ee67466fe660 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetailsformachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_getvalidationdetailsformachine.go @@ -46,7 +46,6 @@ func (c PrivateLinkScopesClient) GetValidationDetailsForMachine(ctx context.Cont var model PrivateLinkScopeValidationDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_updatetags.go index 69978b7733a6..2b50c5006234 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/method_updatetags.go @@ -49,7 +49,6 @@ func (c PrivateLinkScopesClient) UpdateTags(ctx context.Context, id ProviderPriv var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/version.go index e819a30ec796..7ef8aa4a72c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2022-11-10/privatelinkscopes/version.go @@ -1,12 +1,10 @@ package privatelinkscopes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkscopes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkscopes/2022-11-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/README.md index 6b1042b31649..ad0d931cdc80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions` Documentation -The `extensions` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `extensions` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := extensions.NewVersionID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "extensionTypeValue", "versionValue") +id := extensions.NewVersionID("12345678-1234-9876-4563-123456789012", "location", "publisher", "extensionType", "version") read, err := client.ExtensionMetadataGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := extensions.NewExtensionTypeID("12345678-1234-9876-4563-123456789012", "locationValue", "publisherValue", "extensionTypeValue") +id := extensions.NewExtensionTypeID("12345678-1234-9876-4563-123456789012", "location", "publisher", "extensionType") read, err := client.ExtensionMetadataList(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/client.go index 44725ac0e846..682e82667080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/client.go @@ -15,7 +15,7 @@ type ExtensionsClient struct { } func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "extensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "extensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_extensiontype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_extensiontype.go index b57b7e61a53c..909461da4ec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_extensiontype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_extensiontype.go @@ -44,7 +44,7 @@ func ParseExtensionTypeID(input string) (*ExtensionTypeId, error) { } id := ExtensionTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExtensionTypeIDInsensitively(input string) (*ExtensionTypeId, error) { } id := ExtensionTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,11 +119,11 @@ func (id ExtensionTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisher"), resourceids.StaticSegment("staticExtensionTypes", "extensionTypes", "extensionTypes"), - resourceids.UserSpecifiedSegment("extensionTypeName", "extensionTypeValue"), + resourceids.UserSpecifiedSegment("extensionTypeName", "extensionType"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_version.go index 55ff31c5d3a1..28dda5dc9129 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/id_version.go @@ -46,7 +46,7 @@ func ParseVersionID(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVersionIDInsensitively(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -125,13 +125,13 @@ func (id VersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherName", "publisherValue"), + resourceids.UserSpecifiedSegment("publisherName", "publisher"), resourceids.StaticSegment("staticExtensionTypes", "extensionTypes", "extensionTypes"), - resourceids.UserSpecifiedSegment("extensionTypeName", "extensionTypeValue"), + resourceids.UserSpecifiedSegment("extensionTypeName", "extensionType"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "version"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadataget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadataget.go index 1f50b2ab8e60..495f76699765 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadataget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadataget.go @@ -45,7 +45,6 @@ func (c ExtensionsClient) ExtensionMetadataGet(ctx context.Context, id VersionId var model ExtensionValue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadatalist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadatalist.go index 1d9af8e54ac4..2a1cd841897a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadatalist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/method_extensionmetadatalist.go @@ -46,7 +46,6 @@ func (c ExtensionsClient) ExtensionMetadataList(ctx context.Context, id Extensio var model ExtensionValueListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/version.go index 01cb89c54232..9b3645028397 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/extensions/version.go @@ -1,12 +1,10 @@ package extensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/extensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/extensions/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/README.md index 4cf25ac05ae5..30ce374d8e3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles` Documentation -The `licenseprofiles` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `licenseprofiles` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := licenseprofiles.LicenseProfile{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := licenseprofiles.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := licenseprofiles.LicenseProfileUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/client.go index 5fcae28e7197..587d7982b517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/client.go @@ -15,7 +15,7 @@ type LicenseProfilesClient struct { } func NewLicenseProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*LicenseProfilesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "licenseprofiles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "licenseprofiles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LicenseProfilesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/id_machine.go index 2ac28229684b..f9f26212e08c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/method_get.go index dd84a8142137..279fdf2630a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/method_get.go @@ -46,7 +46,6 @@ func (c LicenseProfilesClient) Get(ctx context.Context, id MachineId) (result Ge var model LicenseProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/version.go index a659fd183598..ebbf7c9a2866 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenseprofiles/version.go @@ -1,12 +1,10 @@ package licenseprofiles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/licenseprofiles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/licenseprofiles/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/README.md index a9ea84fe6096..29c1468a0942 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses` Documentation -The `licenses` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `licenses` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseValue") +id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseName") payload := licenses.License{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseValue") +id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseValue") +id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseValue") +id := licenses.NewLicenseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "licenseName") payload := licenses.LicenseUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/client.go index 238b65f246d6..a12e02e31a2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/client.go @@ -15,7 +15,7 @@ type LicensesClient struct { } func NewLicensesClientWithBaseURI(sdkApi sdkEnv.Api) (*LicensesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "licenses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "licenses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LicensesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/id_license.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/id_license.go index f188fa4589a9..48367c0ac0a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/id_license.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/id_license.go @@ -42,7 +42,7 @@ func ParseLicenseID(input string) (*LicenseId, error) { } id := LicenseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLicenseIDInsensitively(input string) (*LicenseId, error) { } id := LicenseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LicenseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticLicenses", "licenses", "licenses"), - resourceids.UserSpecifiedSegment("licenseName", "licenseValue"), + resourceids.UserSpecifiedSegment("licenseName", "licenseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/method_get.go index 26b4d3c4e370..7247d3718186 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/method_get.go @@ -45,7 +45,6 @@ func (c LicensesClient) Get(ctx context.Context, id LicenseId) (result GetOperat var model License result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/version.go index 101f4caa13f6..a8e7ee4f1183 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/licenses/version.go @@ -1,12 +1,10 @@ package licenses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/licenses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/licenses/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/README.md index 61065b02fec0..3487720600de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions` Documentation -The `machineextensions` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `machineextensions` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") payload := machineextensions.MachineExtension{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machineextensions.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machineextensions.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") // alternatively `client.List(ctx, id, machineextensions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, machineextensions.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue", "extensionValue") +id := machineextensions.NewExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName", "extensionName") payload := machineextensions.MachineExtensionUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/client.go index a4336266a29d..63a73f0818b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/client.go @@ -15,7 +15,7 @@ type MachineExtensionsClient struct { } func NewMachineExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machineextensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machineextensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachineExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_extension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_extension.go index f1f0e73d09b3..854f23eb6603 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_extension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_extension.go @@ -44,7 +44,7 @@ func ParseExtensionID(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExtensionIDInsensitively(input string) (*ExtensionId, error) { } id := ExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "extensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_machine.go index 63c29999e354..0023498d4a0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_get.go index e21d210a448e..de726cb76871 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_get.go @@ -45,7 +45,6 @@ func (c MachineExtensionsClient) Get(ctx context.Context, id ExtensionId) (resul var model MachineExtension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_list.go index d9646c3c81e5..508180edb273 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/version.go index 80456604fd73..43f6a31e1642 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensions/version.go @@ -1,12 +1,10 @@ package machineextensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machineextensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machineextensions/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/README.md index 8b20d3f760b9..00e425664a94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade` Documentation -The `machineextensionsupgrade` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `machineextensionsupgrade` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machineextensionsupgrade.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machineextensionsupgrade.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machineextensionsupgrade.MachineExtensionUpgrade{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/client.go index c02524534cee..861b4b3e65db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/client.go @@ -15,7 +15,7 @@ type MachineExtensionsUpgradeClient struct { } func NewMachineExtensionsUpgradeClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineExtensionsUpgradeClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machineextensionsupgrade", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machineextensionsupgrade", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachineExtensionsUpgradeClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/id_machine.go index 0ea82ab4023b..15566f253429 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/version.go index ef9d2cfc8d77..13f7ce7932ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machineextensionsupgrade/version.go @@ -1,12 +1,10 @@ package machineextensionsupgrade -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machineextensionsupgrade/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machineextensionsupgrade/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/README.md index d779afbdd6a6..663cd7aa3877 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile` Documentation -The `machinenetworkprofile` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `machinenetworkprofile` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machinenetworkprofile.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machinenetworkprofile.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.NetworkProfileGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/client.go index bc8fa58d8d5d..0f388f5eceb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/client.go @@ -15,7 +15,7 @@ type MachineNetworkProfileClient struct { } func NewMachineNetworkProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineNetworkProfileClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machinenetworkprofile", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machinenetworkprofile", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachineNetworkProfileClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/id_machine.go index b70ed79b4f72..170e5b456805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/method_networkprofileget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/method_networkprofileget.go index 910399bc22b6..f442788d5300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/method_networkprofileget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/method_networkprofileget.go @@ -46,7 +46,6 @@ func (c MachineNetworkProfileClient) NetworkProfileGet(ctx context.Context, id M var model NetworkProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/version.go index 7f7c47f6f6b7..0b7dba1c774f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machinenetworkprofile/version.go @@ -1,12 +1,10 @@ package machinenetworkprofile -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machinenetworkprofile/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machinenetworkprofile/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/README.md index a3643758d1bb..9facac4814b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines` Documentation -The `machines` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `machines` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") if err := client.AssessPatchesThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AssessPatchesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machines.Machine{ // ... @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.Delete(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.Get(ctx, id, machines.DefaultGetOperationOptions()) if err != nil { @@ -90,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machines.MachineInstallPatchesParameters{ // ... @@ -141,7 +141,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := machines.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") payload := machines.MachineUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/client.go index e0daf9080614..fcd8a61002f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/client.go @@ -15,7 +15,7 @@ type MachinesClient struct { } func NewMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/id_machine.go index e8e33b30e0c9..fef3ed162238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_createorupdate.go index c060ab488495..ae5be2f80e0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_createorupdate.go @@ -34,6 +34,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c MachinesClient) CreateOrUpdate(ctx context.Context, id MachineId, input var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_get.go index 4cc80ee56283..dbba4fc28519 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c MachinesClient) Get(ctx context.Context, id MachineId, options GetOperat var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_listbyresourcegroup.go index 09ec696d1a0d..e9302aa88758 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_update.go index f90641d69c8d..2fe776738bfa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/method_update.go @@ -49,7 +49,6 @@ func (c MachinesClient) Update(ctx context.Context, id MachineId, input MachineU var model Machine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/version.go index d870c04e962b..b7e9b98047d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/machines/version.go @@ -1,12 +1,10 @@ package machines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machines/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/README.md index 3d150646e362..b13fc53718fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration` Documentation -The `networksecurityperimeterconfiguration` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `networksecurityperimeterconfiguration` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networksecurityperimeterconfiguration.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "networkSecurityPerimeterConfigurationValue") +id := networksecurityperimeterconfiguration.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "perimeterName") read, err := client.GetByPrivateLinkScope(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networksecurityperimeterconfiguration.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := networksecurityperimeterconfiguration.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") // alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination items, err := client.ListByPrivateLinkScopeComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecurityperimeterconfiguration.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "networkSecurityPerimeterConfigurationValue") +id := networksecurityperimeterconfiguration.NewNetworkSecurityPerimeterConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "perimeterName") if err := client.ReconcileForPrivateLinkScopeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/client.go index 0b7238df35f9..022b3bda9767 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/client.go @@ -15,7 +15,7 @@ type NetworkSecurityPerimeterConfigurationClient struct { } func NewNetworkSecurityPerimeterConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityPerimeterConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networksecurityperimeterconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networksecurityperimeterconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkSecurityPerimeterConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_networksecurityperimeterconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_networksecurityperimeterconfiguration.go index a27de93889a7..5b975b5768ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_networksecurityperimeterconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_networksecurityperimeterconfiguration.go @@ -44,7 +44,7 @@ func ParseNetworkSecurityPerimeterConfigurationID(input string) (*NetworkSecurit } id := NetworkSecurityPerimeterConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkSecurityPerimeterConfigurationIDInsensitively(input string) (*N } id := NetworkSecurityPerimeterConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkSecurityPerimeterConfigurationId) Segments() []resourceids.Segme resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), resourceids.StaticSegment("staticNetworkSecurityPerimeterConfigurations", "networkSecurityPerimeterConfigurations", "networkSecurityPerimeterConfigurations"), - resourceids.UserSpecifiedSegment("networkSecurityPerimeterConfigurationName", "networkSecurityPerimeterConfigurationValue"), + resourceids.UserSpecifiedSegment("networkSecurityPerimeterConfigurationName", "perimeterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_providerprivatelinkscope.go index 4905047e58f4..b2d002c57baf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/method_getbyprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/method_getbyprivatelinkscope.go index 7b6e6567476d..f2a48a712927 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/method_getbyprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/method_getbyprivatelinkscope.go @@ -45,7 +45,6 @@ func (c NetworkSecurityPerimeterConfigurationClient) GetByPrivateLinkScope(ctx c var model NetworkSecurityPerimeterConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/version.go index 33af4a462d0e..67fa84443f56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/networksecurityperimeterconfiguration/version.go @@ -1,12 +1,10 @@ package networksecurityperimeterconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networksecurityperimeterconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networksecurityperimeterconfiguration/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/README.md index 53eba9e9a954..4a1473ec596b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privateendpointconnections.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") // alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination items, err := client.ListByPrivateLinkScopeComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_privateendpointconnection.go index ac2417fe8c83..ddb5472edd74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_providerprivatelinkscope.go index 7bd8a7c1186e..46d0b8c6ba90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/version.go index a0b7dbb763e4..04452b3ea8c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/README.md index 5d5d386e310b..eed0baa024f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "privateLinkResourceValue") +id := privatelinkresources.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "groupName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkresources.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkresources.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") // alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination items, err := client.ListByPrivateLinkScopeComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_privatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_privatelinkresource.go index 4f61df268c86..4b5f29de857d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_privatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_privatelinkresource.go @@ -44,7 +44,7 @@ func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error) { } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResource } id := PrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), resourceids.StaticSegment("staticPrivateLinkResources", "privateLinkResources", "privateLinkResources"), - resourceids.UserSpecifiedSegment("privateLinkResourceName", "privateLinkResourceValue"), + resourceids.UserSpecifiedSegment("privateLinkResourceName", "groupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_providerprivatelinkscope.go index 37d15fd44e57..a81baeadabd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/method_get.go index f265d7c640ab..4fe261461813 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkResourcesClient) Get(ctx context.Context, id PrivateLinkResou var model PrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/version.go index 9957fb21f491..98e4c170dd27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/README.md index 22a96cc6d5bc..bb6b4af1c28a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes` Documentation -The `privatelinkscopes` SDK allows for interaction with the Azure Resource Manager Service `hybridcompute` (API Version `2024-07-10`). +The `privatelinkscopes` SDK allows for interaction with Azure Resource Manager `hybridcompute` (API Version `2024-07-10`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopes.HybridComputePrivateLinkScope{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") read, err := client.Get(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "locationValue", "privateLinkScopeIdValue") +id := privatelinkscopes.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "location", "privateLinkScopeId") read, err := client.GetValidationDetails(ctx, id) if err != nil { @@ -90,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopes.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineValue") +id := privatelinkscopes.NewMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "machineName") read, err := client.GetValidationDetailsForMachine(ctx, id) if err != nil { @@ -140,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopes.NewProviderPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopes.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/client.go index c1f8540450a3..6ad000261641 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/client.go @@ -15,7 +15,7 @@ type PrivateLinkScopesClient struct { } func NewPrivateLinkScopesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkScopesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkscopes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkscopes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkScopesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_machine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_machine.go index 8296e6ce9cfa..ae7b09c821bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_machine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_machine.go @@ -42,7 +42,7 @@ func ParseMachineID(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMachineIDInsensitively(input string) (*MachineId, error) { } id := MachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticMachines", "machines", "machines"), - resourceids.UserSpecifiedSegment("machineName", "machineValue"), + resourceids.UserSpecifiedSegment("machineName", "machineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_privatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_privatelinkscope.go index ae6a8ccdd754..df45f21ff449 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_privatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_privatelinkscope.go @@ -42,7 +42,7 @@ func ParsePrivateLinkScopeID(input string) (*PrivateLinkScopeId, error) { } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateLinkScopeIDInsensitively(input string) (*PrivateLinkScopeId, er } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id PrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeId", "privateLinkScopeIdValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeId", "privateLinkScopeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_providerprivatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_providerprivatelinkscope.go index 061c9f3c4cc2..e088291c0566 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_providerprivatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/id_providerprivatelinkscope.go @@ -42,7 +42,7 @@ func ParseProviderPrivateLinkScopeID(input string) (*ProviderPrivateLinkScopeId, } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderPrivateLinkScopeIDInsensitively(input string) (*ProviderPrivat } id := ProviderPrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderPrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftHybridCompute", "Microsoft.HybridCompute", "Microsoft.HybridCompute"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_createorupdate.go index 5d8d83204395..e443fdeae450 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_createorupdate.go @@ -50,7 +50,6 @@ func (c PrivateLinkScopesClient) CreateOrUpdate(ctx context.Context, id Provider var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_get.go index 2373e6b9b137..1d8b307be872 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopesClient) Get(ctx context.Context, id ProviderPrivateLink var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetails.go index 1c1d43dd3611..6b32c351ffae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetails.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopesClient) GetValidationDetails(ctx context.Context, id Pr var model PrivateLinkScopeValidationDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetailsformachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetailsformachine.go index 724c45d8ae97..ee67466fe660 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetailsformachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_getvalidationdetailsformachine.go @@ -46,7 +46,6 @@ func (c PrivateLinkScopesClient) GetValidationDetailsForMachine(ctx context.Cont var model PrivateLinkScopeValidationDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_updatetags.go index 69978b7733a6..2b50c5006234 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/method_updatetags.go @@ -49,7 +49,6 @@ func (c PrivateLinkScopesClient) UpdateTags(ctx context.Context, id ProviderPriv var model HybridComputePrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/version.go index e36a79b3d7cb..2433be67f158 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridcompute/2024-07-10/privatelinkscopes/version.go @@ -1,12 +1,10 @@ package privatelinkscopes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-07-10" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkscopes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkscopes/2024-07-10" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md index 29736a828c95..2b30feee8496 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters` Documentation -The `connectedclusters` SDK allows for interaction with the Azure Resource Manager Service `hybridkubernetes` (API Version `2021-10-01`). +The `connectedclusters` SDK allows for interaction with Azure Resource Manager `hybridkubernetes` (API Version `2021-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ConnectedCluster{ // ... @@ -42,7 +42,7 @@ if err := client.ConnectedClusterCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.ConnectedClusterDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ConnectedClusterDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ConnectedClusterGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ListClusterUserCredentialProperties{ // ... @@ -125,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ConnectedClusterPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/client.go index c25ebd209c77..4e88403f750e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/client.go @@ -15,7 +15,7 @@ type ConnectedClustersClient struct { } func NewConnectedClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectedClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectedclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectedclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectedClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/id_connectedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/id_connectedcluster.go index d70d3e3a357c..207ac777a3a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/id_connectedcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/id_connectedcluster.go @@ -42,7 +42,7 @@ func ParseConnectedClusterID(input string) (*ConnectedClusterId, error) { } id := ConnectedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectedClusterIDInsensitively(input string) (*ConnectedClusterId, er } id := ConnectedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectedClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKubernetes", "Microsoft.Kubernetes", "Microsoft.Kubernetes"), resourceids.StaticSegment("staticConnectedClusters", "connectedClusters", "connectedClusters"), - resourceids.UserSpecifiedSegment("connectedClusterName", "connectedClusterValue"), + resourceids.UserSpecifiedSegment("connectedClusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterget.go index 9ba97354addb..8c91b30d6b6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterget.go @@ -45,7 +45,6 @@ func (c ConnectedClustersClient) ConnectedClusterGet(ctx context.Context, id Con var model ConnectedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistclusterusercredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistclusterusercredential.go index 6154d1cf2313..7196fc5bda38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistclusterusercredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterlistclusterusercredential.go @@ -50,7 +50,6 @@ func (c ConnectedClustersClient) ConnectedClusterListClusterUserCredential(ctx c var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterupdate.go index c4a8cbe1c31a..ddc758b2cb4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/method_connectedclusterupdate.go @@ -49,7 +49,6 @@ func (c ConnectedClustersClient) ConnectedClusterUpdate(ctx context.Context, id var model ConnectedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/version.go index 078fe01f8f68..bed66d16b3a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2021-10-01/connectedclusters/version.go @@ -1,12 +1,10 @@ package connectedclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectedclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectedclusters/2021-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md index 49a0f1ef886e..0bb1e64d3bca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters` Documentation -The `connectedclusters` SDK allows for interaction with the Azure Resource Manager Service `hybridkubernetes` (API Version `2024-01-01`). +The `connectedclusters` SDK allows for interaction with Azure Resource Manager `hybridkubernetes` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ConnectedCluster{ // ... @@ -42,7 +42,7 @@ if err := client.ConnectedClusterCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.ConnectedClusterDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ConnectedClusterDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ConnectedClusterGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ListClusterUserCredentialProperties{ // ... @@ -125,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectedClusterValue") +id := connectedclusters.NewConnectedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := connectedclusters.ConnectedClusterPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/client.go index c25ebd209c77..4e88403f750e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/client.go @@ -15,7 +15,7 @@ type ConnectedClustersClient struct { } func NewConnectedClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectedClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectedclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectedclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectedClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/id_connectedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/id_connectedcluster.go index d70d3e3a357c..207ac777a3a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/id_connectedcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/id_connectedcluster.go @@ -42,7 +42,7 @@ func ParseConnectedClusterID(input string) (*ConnectedClusterId, error) { } id := ConnectedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectedClusterIDInsensitively(input string) (*ConnectedClusterId, er } id := ConnectedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectedClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKubernetes", "Microsoft.Kubernetes", "Microsoft.Kubernetes"), resourceids.StaticSegment("staticConnectedClusters", "connectedClusters", "connectedClusters"), - resourceids.UserSpecifiedSegment("connectedClusterName", "connectedClusterValue"), + resourceids.UserSpecifiedSegment("connectedClusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterget.go index 9ba97354addb..8c91b30d6b6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterget.go @@ -45,7 +45,6 @@ func (c ConnectedClustersClient) ConnectedClusterGet(ctx context.Context, id Con var model ConnectedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistclusterusercredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistclusterusercredential.go index 6154d1cf2313..7196fc5bda38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistclusterusercredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterlistclusterusercredential.go @@ -50,7 +50,6 @@ func (c ConnectedClustersClient) ConnectedClusterListClusterUserCredential(ctx c var model CredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterupdate.go index c4a8cbe1c31a..ddc758b2cb4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/method_connectedclusterupdate.go @@ -49,7 +49,6 @@ func (c ConnectedClustersClient) ConnectedClusterUpdate(ctx context.Context, id var model ConnectedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/version.go index 2e5041f7dccb..b6e9d5c348f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/hybridkubernetes/2024-01-01/connectedclusters/version.go @@ -1,12 +1,10 @@ package connectedclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectedclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectedclusters/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/README.md index 1d1f3a99a4d5..642686d455e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs` Documentation -The `activitylogs` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2015-04-01`). +The `activitylogs` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2015-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/client.go index 154f856b0a6f..69054f44af6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/client.go @@ -15,7 +15,7 @@ type ActivityLogsClient struct { } func NewActivityLogsClientWithBaseURI(sdkApi sdkEnv.Api) (*ActivityLogsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "activitylogs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "activitylogs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ActivityLogsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/method_list.go index 5d3d59051b89..8bf9b472de30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/version.go index 2cd33777046b..a3e899ebeed5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/activitylogs/version.go @@ -1,12 +1,10 @@ package activitylogs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/activitylogs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/activitylogs/2015-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/README.md index a174a5afbb82..7146b7a46768 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts` Documentation -The `metricalerts` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2018-03-01`). +The `metricalerts` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2018-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue") +id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := metricalerts.MetricAlertResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue") +id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue") +id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue") +id := metricalerts.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := metricalerts.MetricAlertResourcePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/client.go index 87b5deb8cf61..a9343e36a8c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/client.go @@ -15,7 +15,7 @@ type MetricAlertsClient struct { } func NewMetricAlertsClientWithBaseURI(sdkApi sdkEnv.Api) (*MetricAlertsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "metricalerts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "metricalerts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MetricAlertsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/id_metricalert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/id_metricalert.go index 72ac52591e58..d0baa873c62a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/id_metricalert.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/id_metricalert.go @@ -42,7 +42,7 @@ func ParseMetricAlertID(input string) (*MetricAlertId, error) { } id := MetricAlertId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMetricAlertIDInsensitively(input string) (*MetricAlertId, error) { } id := MetricAlertId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MetricAlertId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticMetricAlerts", "metricAlerts", "metricAlerts"), - resourceids.UserSpecifiedSegment("metricAlertName", "metricAlertValue"), + resourceids.UserSpecifiedSegment("metricAlertName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_createorupdate.go index 2168e9992f5c..9c924ec9d9ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_createorupdate.go @@ -49,7 +49,6 @@ func (c MetricAlertsClient) CreateOrUpdate(ctx context.Context, id MetricAlertId var model MetricAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_get.go index c1b6bfd76f2f..114c27a76cc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_get.go @@ -45,7 +45,6 @@ func (c MetricAlertsClient) Get(ctx context.Context, id MetricAlertId) (result G var model MetricAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbyresourcegroup.go index 970109ad1951..d49c491b0642 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c MetricAlertsClient) ListByResourceGroup(ctx context.Context, id commonid var model MetricAlertResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbysubscription.go index 123c04e3224c..62c5547e5172 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c MetricAlertsClient) ListBySubscription(ctx context.Context, id commonids var model MetricAlertResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_update.go index f1150f2ba8cb..139f1c930f95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/method_update.go @@ -49,7 +49,6 @@ func (c MetricAlertsClient) Update(ctx context.Context, id MetricAlertId, input var model MetricAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_dynamicmetriccriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_dynamicmetriccriteria.go index cfc9ebf76bb5..3c7e76a30901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_dynamicmetriccriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_dynamicmetriccriteria.go @@ -17,6 +17,8 @@ type DynamicMetricCriteria struct { Operator DynamicThresholdOperator `json:"operator"` // Fields inherited from MultiMetricCriteria + + CriterionType CriterionType `json:"criterionType"` Dimensions *[]MetricDimension `json:"dimensions,omitempty"` MetricName string `json:"metricName"` MetricNamespace *string `json:"metricNamespace,omitempty"` @@ -25,6 +27,18 @@ type DynamicMetricCriteria struct { TimeAggregation AggregationTypeEnum `json:"timeAggregation"` } +func (s DynamicMetricCriteria) MultiMetricCriteria() BaseMultiMetricCriteriaImpl { + return BaseMultiMetricCriteriaImpl{ + CriterionType: s.CriterionType, + Dimensions: s.Dimensions, + MetricName: s.MetricName, + MetricNamespace: s.MetricNamespace, + Name: s.Name, + SkipMetricValidation: s.SkipMetricValidation, + TimeAggregation: s.TimeAggregation, + } +} + var _ json.Marshaler = DynamicMetricCriteria{} func (s DynamicMetricCriteria) MarshalJSON() ([]byte, error) { @@ -36,9 +50,10 @@ func (s DynamicMetricCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DynamicMetricCriteria: %+v", err) } + decoded["criterionType"] = "DynamicThresholdCriterion" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertcriteria.go index 6f9fc6bbbd21..7eaa48c537d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertcriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertcriteria.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type MetricAlertCriteria interface { + MetricAlertCriteria() BaseMetricAlertCriteriaImpl } -// RawMetricAlertCriteriaImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ MetricAlertCriteria = BaseMetricAlertCriteriaImpl{} + +type BaseMetricAlertCriteriaImpl struct { + OdataType Odatatype `json:"odata.type"` +} + +func (s BaseMetricAlertCriteriaImpl) MetricAlertCriteria() BaseMetricAlertCriteriaImpl { + return s +} + +var _ MetricAlertCriteria = RawMetricAlertCriteriaImpl{} + +// RawMetricAlertCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawMetricAlertCriteriaImpl struct { - Type string - Values map[string]interface{} + metricAlertCriteria BaseMetricAlertCriteriaImpl + Type string + Values map[string]interface{} +} + +func (s RawMetricAlertCriteriaImpl) MetricAlertCriteria() BaseMetricAlertCriteriaImpl { + return s.metricAlertCriteria } -func unmarshalMetricAlertCriteriaImplementation(input []byte) (MetricAlertCriteria, error) { +func UnmarshalMetricAlertCriteriaImplementation(input []byte) (MetricAlertCriteria, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalMetricAlertCriteriaImplementation(input []byte) (MetricAlertCriter return nil, fmt.Errorf("unmarshaling MetricAlertCriteria into map[string]interface: %+v", err) } - value, ok := temp["odata.type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["odata.type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria") { @@ -60,10 +77,15 @@ func unmarshalMetricAlertCriteriaImplementation(input []byte) (MetricAlertCriter return out, nil } - out := RawMetricAlertCriteriaImpl{ - Type: value, - Values: temp, + var parent BaseMetricAlertCriteriaImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseMetricAlertCriteriaImpl: %+v", err) } - return out, nil + + return RawMetricAlertCriteriaImpl{ + metricAlertCriteria: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertmultipleresourcemultiplemetriccriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertmultipleresourcemultiplemetriccriteria.go index e3e6d89177ad..845f0e685b8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertmultipleresourcemultiplemetriccriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertmultipleresourcemultiplemetriccriteria.go @@ -14,6 +14,14 @@ type MetricAlertMultipleResourceMultipleMetricCriteria struct { AllOf *[]MultiMetricCriteria `json:"allOf,omitempty"` // Fields inherited from MetricAlertCriteria + + OdataType Odatatype `json:"odata.type"` +} + +func (s MetricAlertMultipleResourceMultipleMetricCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl { + return BaseMetricAlertCriteriaImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = MetricAlertMultipleResourceMultipleMetricCriteria{} @@ -27,9 +35,10 @@ func (s MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MetricAlertMultipleResourceMultipleMetricCriteria: %+v", err) } + decoded["odata.type"] = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" encoded, err = json.Marshal(decoded) @@ -43,6 +52,14 @@ func (s MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte var _ json.Unmarshaler = &MetricAlertMultipleResourceMultipleMetricCriteria{} func (s *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(bytes []byte) error { + var decoded struct { + OdataType Odatatype `json:"odata.type"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.OdataType = decoded.OdataType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -57,7 +74,7 @@ func (s *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(bytes output := make([]MultiMetricCriteria, 0) for i, val := range listTemp { - impl, err := unmarshalMultiMetricCriteriaImplementation(val) + impl, err := UnmarshalMultiMetricCriteriaImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'AllOf' for 'MetricAlertMultipleResourceMultipleMetricCriteria': %+v", i, err) } @@ -65,5 +82,6 @@ func (s *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(bytes } s.AllOf = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertproperties.go index 3098f59acb7a..9f4709a48cbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertproperties.go @@ -42,10 +42,22 @@ func (o *MetricAlertProperties) SetLastUpdatedTimeAsTime(input time.Time) { var _ json.Unmarshaler = &MetricAlertProperties{} func (s *MetricAlertProperties) UnmarshalJSON(bytes []byte) error { - type alias MetricAlertProperties - var decoded alias + var decoded struct { + Actions *[]MetricAlertAction `json:"actions,omitempty"` + AutoMitigate *bool `json:"autoMitigate,omitempty"` + Description *string `json:"description,omitempty"` + Enabled bool `json:"enabled"` + EvaluationFrequency string `json:"evaluationFrequency"` + IsMigrated *bool `json:"isMigrated,omitempty"` + LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` + Scopes []string `json:"scopes"` + Severity int64 `json:"severity"` + TargetResourceRegion *string `json:"targetResourceRegion,omitempty"` + TargetResourceType *string `json:"targetResourceType,omitempty"` + WindowSize string `json:"windowSize"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into MetricAlertProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Actions = decoded.Actions @@ -67,11 +79,12 @@ func (s *MetricAlertProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["criteria"]; ok { - impl, err := unmarshalMetricAlertCriteriaImplementation(v) + impl, err := UnmarshalMetricAlertCriteriaImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Criteria' for 'MetricAlertProperties': %+v", err) } s.Criteria = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertpropertiespatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertpropertiespatch.go index 5edfc42e8139..8d245c5ba340 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertpropertiespatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertpropertiespatch.go @@ -42,10 +42,22 @@ func (o *MetricAlertPropertiesPatch) SetLastUpdatedTimeAsTime(input time.Time) { var _ json.Unmarshaler = &MetricAlertPropertiesPatch{} func (s *MetricAlertPropertiesPatch) UnmarshalJSON(bytes []byte) error { - type alias MetricAlertPropertiesPatch - var decoded alias + var decoded struct { + Actions *[]MetricAlertAction `json:"actions,omitempty"` + AutoMitigate *bool `json:"autoMitigate,omitempty"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EvaluationFrequency *string `json:"evaluationFrequency,omitempty"` + IsMigrated *bool `json:"isMigrated,omitempty"` + LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` + Scopes *[]string `json:"scopes,omitempty"` + Severity *int64 `json:"severity,omitempty"` + TargetResourceRegion *string `json:"targetResourceRegion,omitempty"` + TargetResourceType *string `json:"targetResourceType,omitempty"` + WindowSize *string `json:"windowSize,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into MetricAlertPropertiesPatch: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Actions = decoded.Actions @@ -67,11 +79,12 @@ func (s *MetricAlertPropertiesPatch) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["criteria"]; ok { - impl, err := unmarshalMetricAlertCriteriaImplementation(v) + impl, err := UnmarshalMetricAlertCriteriaImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Criteria' for 'MetricAlertPropertiesPatch': %+v", err) } s.Criteria = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertsingleresourcemultiplemetriccriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertsingleresourcemultiplemetriccriteria.go index c870ab00b3e4..63565d8e2063 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertsingleresourcemultiplemetriccriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metricalertsingleresourcemultiplemetriccriteria.go @@ -14,6 +14,14 @@ type MetricAlertSingleResourceMultipleMetricCriteria struct { AllOf *[]MetricCriteria `json:"allOf,omitempty"` // Fields inherited from MetricAlertCriteria + + OdataType Odatatype `json:"odata.type"` +} + +func (s MetricAlertSingleResourceMultipleMetricCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl { + return BaseMetricAlertCriteriaImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = MetricAlertSingleResourceMultipleMetricCriteria{} @@ -27,9 +35,10 @@ func (s MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MetricAlertSingleResourceMultipleMetricCriteria: %+v", err) } + decoded["odata.type"] = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metriccriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metriccriteria.go index f36c22bf69b1..6dfc08571302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metriccriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_metriccriteria.go @@ -15,6 +15,8 @@ type MetricCriteria struct { Threshold float64 `json:"threshold"` // Fields inherited from MultiMetricCriteria + + CriterionType CriterionType `json:"criterionType"` Dimensions *[]MetricDimension `json:"dimensions,omitempty"` MetricName string `json:"metricName"` MetricNamespace *string `json:"metricNamespace,omitempty"` @@ -23,6 +25,18 @@ type MetricCriteria struct { TimeAggregation AggregationTypeEnum `json:"timeAggregation"` } +func (s MetricCriteria) MultiMetricCriteria() BaseMultiMetricCriteriaImpl { + return BaseMultiMetricCriteriaImpl{ + CriterionType: s.CriterionType, + Dimensions: s.Dimensions, + MetricName: s.MetricName, + MetricNamespace: s.MetricNamespace, + Name: s.Name, + SkipMetricValidation: s.SkipMetricValidation, + TimeAggregation: s.TimeAggregation, + } +} + var _ json.Marshaler = MetricCriteria{} func (s MetricCriteria) MarshalJSON() ([]byte, error) { @@ -34,9 +48,10 @@ func (s MetricCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MetricCriteria: %+v", err) } + decoded["criterionType"] = "StaticThresholdCriterion" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_multimetriccriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_multimetriccriteria.go index 2a0693f31310..8c58c9a7da54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_multimetriccriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_multimetriccriteria.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type MultiMetricCriteria interface { + MultiMetricCriteria() BaseMultiMetricCriteriaImpl } -// RawMultiMetricCriteriaImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ MultiMetricCriteria = BaseMultiMetricCriteriaImpl{} + +type BaseMultiMetricCriteriaImpl struct { + CriterionType CriterionType `json:"criterionType"` + Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + MetricName string `json:"metricName"` + MetricNamespace *string `json:"metricNamespace,omitempty"` + Name string `json:"name"` + SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` + TimeAggregation AggregationTypeEnum `json:"timeAggregation"` +} + +func (s BaseMultiMetricCriteriaImpl) MultiMetricCriteria() BaseMultiMetricCriteriaImpl { + return s +} + +var _ MultiMetricCriteria = RawMultiMetricCriteriaImpl{} + +// RawMultiMetricCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawMultiMetricCriteriaImpl struct { - Type string - Values map[string]interface{} + multiMetricCriteria BaseMultiMetricCriteriaImpl + Type string + Values map[string]interface{} +} + +func (s RawMultiMetricCriteriaImpl) MultiMetricCriteria() BaseMultiMetricCriteriaImpl { + return s.multiMetricCriteria } -func unmarshalMultiMetricCriteriaImplementation(input []byte) (MultiMetricCriteria, error) { +func UnmarshalMultiMetricCriteriaImplementation(input []byte) (MultiMetricCriteria, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalMultiMetricCriteriaImplementation(input []byte) (MultiMetricCriter return nil, fmt.Errorf("unmarshaling MultiMetricCriteria into map[string]interface: %+v", err) } - value, ok := temp["criterionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["criterionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "DynamicThresholdCriterion") { @@ -52,10 +75,15 @@ func unmarshalMultiMetricCriteriaImplementation(input []byte) (MultiMetricCriter return out, nil } - out := RawMultiMetricCriteriaImpl{ - Type: value, - Values: temp, + var parent BaseMultiMetricCriteriaImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseMultiMetricCriteriaImpl: %+v", err) } - return out, nil + + return RawMultiMetricCriteriaImpl{ + multiMetricCriteria: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_webtestlocationavailabilitycriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_webtestlocationavailabilitycriteria.go index e40651f96c6b..0aa223c05f1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_webtestlocationavailabilitycriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/model_webtestlocationavailabilitycriteria.go @@ -16,6 +16,14 @@ type WebtestLocationAvailabilityCriteria struct { WebTestId string `json:"webTestId"` // Fields inherited from MetricAlertCriteria + + OdataType Odatatype `json:"odata.type"` +} + +func (s WebtestLocationAvailabilityCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl { + return BaseMetricAlertCriteriaImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = WebtestLocationAvailabilityCriteria{} @@ -29,9 +37,10 @@ func (s WebtestLocationAvailabilityCriteria) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WebtestLocationAvailabilityCriteria: %+v", err) } + decoded["odata.type"] = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/version.go index d480a7f0ab41..ef53474e2348 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts/version.go @@ -1,12 +1,10 @@ package metricalerts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/metricalerts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/metricalerts/2018-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md index 36ba5d293c17..2592286694bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules` Documentation -The `scheduledqueryrules` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2018-04-16`). +The `scheduledqueryrules` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2018-04-16`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := scheduledqueryrules.LogSearchRuleResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := scheduledqueryrules.LogSearchRuleResourcePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/client.go index 63d8edbd1f8f..e15caa15195d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/client.go @@ -15,7 +15,7 @@ type ScheduledQueryRulesClient struct { } func NewScheduledQueryRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduledQueryRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scheduledqueryrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scheduledqueryrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScheduledQueryRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/id_scheduledqueryrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/id_scheduledqueryrule.go index 01cd36a9038e..4d5479238c0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/id_scheduledqueryrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/id_scheduledqueryrule.go @@ -42,7 +42,7 @@ func ParseScheduledQueryRuleID(input string) (*ScheduledQueryRuleId, error) { } id := ScheduledQueryRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScheduledQueryRuleIDInsensitively(input string) (*ScheduledQueryRuleId } id := ScheduledQueryRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ScheduledQueryRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticScheduledQueryRules", "scheduledQueryRules", "scheduledQueryRules"), - resourceids.UserSpecifiedSegment("scheduledQueryRuleName", "scheduledQueryRuleValue"), + resourceids.UserSpecifiedSegment("scheduledQueryRuleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_createorupdate.go index cfff17f52fa9..ba7e197c370e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, id Schedu var model LogSearchRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_get.go index 93e758676cd6..751b5fd20d78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_get.go @@ -45,7 +45,6 @@ func (c ScheduledQueryRulesClient) Get(ctx context.Context, id ScheduledQueryRul var model LogSearchRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go index 934e91c964bd..11140f61be36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbyresourcegroup.go @@ -35,6 +35,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ScheduledQueryRulesClient) ListByResourceGroup(ctx context.Context, id c var model LogSearchRuleResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go index 39bc8520cb98..4106d8031dd0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_listbysubscription.go @@ -35,6 +35,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ScheduledQueryRulesClient) ListBySubscription(ctx context.Context, id co var model LogSearchRuleResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_update.go index c1e4eb8553ae..3f684027252a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/method_update.go @@ -49,7 +49,6 @@ func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQuery var model LogSearchRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_action.go index e84613de58a4..6903a490c31a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_action.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_action.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Action interface { + Action() BaseActionImpl } -// RawActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Action = BaseActionImpl{} + +type BaseActionImpl struct { + OdataType string `json:"odata.type"` +} + +func (s BaseActionImpl) Action() BaseActionImpl { + return s +} + +var _ Action = RawActionImpl{} + +// RawActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawActionImpl struct { + action BaseActionImpl Type string Values map[string]interface{} } -func unmarshalActionImplementation(input []byte) (Action, error) { +func (s RawActionImpl) Action() BaseActionImpl { + return s.action +} + +func UnmarshalActionImplementation(input []byte) (Action, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return nil, fmt.Errorf("unmarshaling Action into map[string]interface: %+v", err) } - value, ok := temp["odata.type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["odata.type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction") { @@ -52,10 +69,15 @@ func unmarshalActionImplementation(input []byte) (Action, error) { return out, nil } - out := RawActionImpl{ + var parent BaseActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseActionImpl: %+v", err) + } + + return RawActionImpl{ + action: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_alertingaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_alertingaction.go index a0d967093f79..1ae635c4627c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_alertingaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_alertingaction.go @@ -17,6 +17,14 @@ type AlertingAction struct { Trigger TriggerCondition `json:"trigger"` // Fields inherited from Action + + OdataType string `json:"odata.type"` +} + +func (s AlertingAction) Action() BaseActionImpl { + return BaseActionImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = AlertingAction{} @@ -30,9 +38,10 @@ func (s AlertingAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AlertingAction: %+v", err) } + decoded["odata.type"] = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logsearchrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logsearchrule.go index b3ddcb761475..9707fb8e9b02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logsearchrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logsearchrule.go @@ -40,10 +40,20 @@ func (o *LogSearchRule) SetLastUpdatedTimeAsTime(input time.Time) { var _ json.Unmarshaler = &LogSearchRule{} func (s *LogSearchRule) UnmarshalJSON(bytes []byte) error { - type alias LogSearchRule - var decoded alias + var decoded struct { + AutoMitigate *bool `json:"autoMitigate,omitempty"` + CreatedWithApiVersion *string `json:"createdWithApiVersion,omitempty"` + Description *string `json:"description,omitempty"` + DisplayName *string `json:"displayName,omitempty"` + Enabled *Enabled `json:"enabled,omitempty"` + IsLegacyLogAnalyticsRule *bool `json:"isLegacyLogAnalyticsRule,omitempty"` + LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Schedule *Schedule `json:"schedule,omitempty"` + Source Source `json:"source"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into LogSearchRule: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AutoMitigate = decoded.AutoMitigate @@ -63,11 +73,12 @@ func (s *LogSearchRule) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["action"]; ok { - impl, err := unmarshalActionImplementation(v) + impl, err := UnmarshalActionImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Action' for 'LogSearchRule': %+v", err) } s.Action = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logtometricaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logtometricaction.go index 398c38b62def..74087941a1bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logtometricaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/model_logtometricaction.go @@ -14,6 +14,14 @@ type LogToMetricAction struct { Criteria []Criteria `json:"criteria"` // Fields inherited from Action + + OdataType string `json:"odata.type"` +} + +func (s LogToMetricAction) Action() BaseActionImpl { + return BaseActionImpl{ + OdataType: s.OdataType, + } } var _ json.Marshaler = LogToMetricAction{} @@ -27,9 +35,10 @@ func (s LogToMetricAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LogToMetricAction: %+v", err) } + decoded["odata.type"] = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/version.go index 768df142cc38..fcaa2e2b5a9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-04-16/scheduledqueryrules/version.go @@ -1,12 +1,10 @@ package scheduledqueryrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-04-16" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scheduledqueryrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scheduledqueryrules/2018-04-16" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/README.md index bf265fd78453..337c1f043b17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources` Documentation -The `privatelinkscopedresources` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2019-10-17-preview`). +The `privatelinkscopedresources` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2019-10-17-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "scopedResourceValue") +id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "name") payload := privatelinkscopedresources.ScopedResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "scopedResourceValue") +id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue", "scopedResourceValue") +id := privatelinkscopedresources.NewScopedResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopedresources.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopedresources.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") // alternatively `client.ListByPrivateLinkScope(ctx, id)` can be used to do batched pagination items, err := client.ListByPrivateLinkScopeComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/client.go index d57bf6a37670..d924d476f975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkScopedResourcesClient struct { } func NewPrivateLinkScopedResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkScopedResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkscopedresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkscopedresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkScopedResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_privatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_privatelinkscope.go index 8aa1d039fc09..bf3c1517faa4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_privatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_privatelinkscope.go @@ -42,7 +42,7 @@ func ParsePrivateLinkScopeID(input string) (*PrivateLinkScopeId, error) { } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateLinkScopeIDInsensitively(input string) (*PrivateLinkScopeId, er } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_scopedresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_scopedresource.go index 38f42803e818..fd427c312bad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_scopedresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/id_scopedresource.go @@ -44,7 +44,7 @@ func ParseScopedResourceID(input string) (*ScopedResourceId, error) { } id := ScopedResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScopedResourceIDInsensitively(input string) (*ScopedResourceId, error) } id := ScopedResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScopedResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), resourceids.StaticSegment("staticScopedResources", "scopedResources", "scopedResources"), - resourceids.UserSpecifiedSegment("scopedResourceName", "scopedResourceValue"), + resourceids.UserSpecifiedSegment("scopedResourceName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_get.go index b4973bf6c16f..7ae23ddd290b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopedResourcesClient) Get(ctx context.Context, id ScopedReso var model ScopedResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/version.go index 467194385c10..40ee0174896f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2019-10-17-preview/privatelinkscopedresources/version.go @@ -1,12 +1,10 @@ package privatelinkscopedresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-10-17-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkscopedresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkscopedresources/2019-10-17-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md index 432741dd1f78..47a629e47a9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis` Documentation -The `activitylogalertsapis` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2020-10-01`). +The `activitylogalertsapis` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue") +id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertName") payload := activitylogalertsapis.ActivityLogAlertResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue") +id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertName") read, err := client.ActivityLogAlertsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue") +id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertName") read, err := client.ActivityLogAlertsGet(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertValue") +id := activitylogalertsapis.NewActivityLogAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "activityLogAlertName") payload := activitylogalertsapis.AlertRulePatchObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/client.go index 903d1547485a..d25c26f0f3e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/client.go @@ -15,7 +15,7 @@ type ActivityLogAlertsAPIsClient struct { } func NewActivityLogAlertsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ActivityLogAlertsAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "activitylogalertsapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "activitylogalertsapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ActivityLogAlertsAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/id_activitylogalert.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/id_activitylogalert.go index e35c26bced0e..40540b2c6646 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/id_activitylogalert.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/id_activitylogalert.go @@ -42,7 +42,7 @@ func ParseActivityLogAlertID(input string) (*ActivityLogAlertId, error) { } id := ActivityLogAlertId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseActivityLogAlertIDInsensitively(input string) (*ActivityLogAlertId, er } id := ActivityLogAlertId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ActivityLogAlertId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticActivityLogAlerts", "activityLogAlerts", "activityLogAlerts"), - resourceids.UserSpecifiedSegment("activityLogAlertName", "activityLogAlertValue"), + resourceids.UserSpecifiedSegment("activityLogAlertName", "activityLogAlertName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertscreateorupdate.go index 94a49d08e9d8..ef8455f3053b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertscreateorupdate.go @@ -50,7 +50,6 @@ func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsCreateOrUpdate(ctx context var model ActivityLogAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsget.go index 0bd5253d11a3..71f561e561a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsget.go @@ -45,7 +45,6 @@ func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsGet(ctx context.Context, i var model ActivityLogAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsupdate.go index 6c2f0563f528..8cab05769e08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/method_activitylogalertsupdate.go @@ -49,7 +49,6 @@ func (c ActivityLogAlertsAPIsClient) ActivityLogAlertsUpdate(ctx context.Context var model ActivityLogAlertResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/version.go index b92bdd5e2e2e..933be7e76ed3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2020-10-01/activitylogalertsapis/version.go @@ -1,12 +1,10 @@ package activitylogalertsapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/activitylogalertsapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/activitylogalertsapis/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md index 9f0038989ef6..6eb911dba3cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings` Documentation -The `diagnosticsettings` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2021-05-01-preview`). +The `diagnosticsettings` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2021-05-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "diagnosticSettingValue") +id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") payload := diagnosticsettings.DiagnosticSettingsResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "diagnosticSettingValue") +id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "diagnosticSettingValue") +id := diagnosticsettings.NewScopedDiagnosticSettingID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/client.go index 336818ef9293..6e01407ed2a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/client.go @@ -15,7 +15,7 @@ type DiagnosticSettingsClient struct { } func NewDiagnosticSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diagnosticsettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diagnosticsettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiagnosticSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/id_scopeddiagnosticsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/id_scopeddiagnosticsetting.go index 889bc6d8ac85..3af6f0dbead5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/id_scopeddiagnosticsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/id_scopeddiagnosticsetting.go @@ -40,7 +40,7 @@ func ParseScopedDiagnosticSettingID(input string) (*ScopedDiagnosticSettingId, e } id := ScopedDiagnosticSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedDiagnosticSettingIDInsensitively(input string) (*ScopedDiagnosti } id := ScopedDiagnosticSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedDiagnosticSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDiagnosticSettings", "diagnosticSettings", "diagnosticSettings"), - resourceids.UserSpecifiedSegment("diagnosticSettingName", "diagnosticSettingValue"), + resourceids.UserSpecifiedSegment("diagnosticSettingName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_createorupdate.go index 3bc33f2863f7..d97371ffb00b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_createorupdate.go @@ -49,7 +49,6 @@ func (c DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, id ScopedD var model DiagnosticSettingsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_get.go index 1872e924ae7f..69738277d637 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_get.go @@ -45,7 +45,6 @@ func (c DiagnosticSettingsClient) Get(ctx context.Context, id ScopedDiagnosticSe var model DiagnosticSettingsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_list.go index 696fc7630997..f3a29d309be3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/method_list.go @@ -47,7 +47,6 @@ func (c DiagnosticSettingsClient) List(ctx context.Context, id commonids.ScopeId var model DiagnosticSettingsResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/version.go index ac3ed61868de..b0a4f6f4690d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettings/version.go @@ -1,12 +1,10 @@ package diagnosticsettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-05-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diagnosticsettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diagnosticsettings/2021-05-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md index 838131be8a8a..d06f0b4a4757 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories` Documentation -The `diagnosticsettingscategories` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2021-05-01-preview`). +The `diagnosticsettingscategories` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2021-05-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := diagnosticsettingscategories.NewScopedDiagnosticSettingsCategoryID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "diagnosticSettingsCategoryValue") +id := diagnosticsettingscategories.NewScopedDiagnosticSettingsCategoryID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "name") read, err := client.DiagnosticSettingsCategoryGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/client.go index f2d246ac10d8..84b1d64f63df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/client.go @@ -15,7 +15,7 @@ type DiagnosticSettingsCategoriesClient struct { } func NewDiagnosticSettingsCategoriesClientWithBaseURI(sdkApi sdkEnv.Api) (*DiagnosticSettingsCategoriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "diagnosticsettingscategories", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "diagnosticsettingscategories", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DiagnosticSettingsCategoriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/id_scopeddiagnosticsettingscategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/id_scopeddiagnosticsettingscategory.go index 76caa395df18..05cfa0cc8050 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/id_scopeddiagnosticsettingscategory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/id_scopeddiagnosticsettingscategory.go @@ -40,7 +40,7 @@ func ParseScopedDiagnosticSettingsCategoryID(input string) (*ScopedDiagnosticSet } id := ScopedDiagnosticSettingsCategoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedDiagnosticSettingsCategoryIDInsensitively(input string) (*Scoped } id := ScopedDiagnosticSettingsCategoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedDiagnosticSettingsCategoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDiagnosticSettingsCategories", "diagnosticSettingsCategories", "diagnosticSettingsCategories"), - resourceids.UserSpecifiedSegment("diagnosticSettingsCategoryName", "diagnosticSettingsCategoryValue"), + resourceids.UserSpecifiedSegment("diagnosticSettingsCategoryName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategoryget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategoryget.go index 68b602ebd700..d87be38c4587 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategoryget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategoryget.go @@ -45,7 +45,6 @@ func (c DiagnosticSettingsCategoriesClient) DiagnosticSettingsCategoryGet(ctx co var model DiagnosticSettingsCategoryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategorylist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategorylist.go index 6f5fe7faf15e..5f8d8199ed47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategorylist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/method_diagnosticsettingscategorylist.go @@ -47,7 +47,6 @@ func (c DiagnosticSettingsCategoriesClient) DiagnosticSettingsCategoryList(ctx c var model DiagnosticSettingsCategoryResourceCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/version.go index c18b19577e81..9b3cbcb6ff71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-05-01-preview/diagnosticsettingscategories/version.go @@ -1,12 +1,10 @@ package diagnosticsettingscategories -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-05-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/diagnosticsettingscategories/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/diagnosticsettingscategories/2021-05-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md index f6e04d93b747..434bcbc233eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis` Documentation -The `privatelinkscopesapis` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2021-07-01-preview`). +The `privatelinkscopesapis` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2021-07-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopesapis.AzureMonitorPrivateLinkScope{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") if err := client.PrivateLinkScopesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.PrivateLinkScopesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") read, err := client.PrivateLinkScopesGet(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkScopeValue") +id := privatelinkscopesapis.NewPrivateLinkScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scopeName") payload := privatelinkscopesapis.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/client.go index 7db4b8bf924a..aa9656d2469c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/client.go @@ -15,7 +15,7 @@ type PrivateLinkScopesAPIsClient struct { } func NewPrivateLinkScopesAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkScopesAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkscopesapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkscopesapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkScopesAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/id_privatelinkscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/id_privatelinkscope.go index d495f485120b..f4c6f454cec6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/id_privatelinkscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/id_privatelinkscope.go @@ -42,7 +42,7 @@ func ParsePrivateLinkScopeID(input string) (*PrivateLinkScopeId, error) { } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateLinkScopeIDInsensitively(input string) (*PrivateLinkScopeId, er } id := PrivateLinkScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateLinkScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticPrivateLinkScopes", "privateLinkScopes", "privateLinkScopes"), - resourceids.UserSpecifiedSegment("privateLinkScopeName", "privateLinkScopeValue"), + resourceids.UserSpecifiedSegment("privateLinkScopeName", "scopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopescreateorupdate.go index 21bf558bfb33..112fa81d894d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopescreateorupdate.go @@ -50,7 +50,6 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesCreateOrUpdate(ctx context var model AzureMonitorPrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesget.go index 58cb807f4502..5a33b38d1a3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesget.go @@ -45,7 +45,6 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesGet(ctx context.Context, i var model AzureMonitorPrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesupdatetags.go index 008f03d8572a..9e63d1d71ddc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/method_privatelinkscopesupdatetags.go @@ -49,7 +49,6 @@ func (c PrivateLinkScopesAPIsClient) PrivateLinkScopesUpdateTags(ctx context.Con var model AzureMonitorPrivateLinkScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/version.go index e6c1b6f869f1..beb001e41e22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-07-01-preview/privatelinkscopesapis/version.go @@ -1,12 +1,10 @@ package privatelinkscopesapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkscopesapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkscopesapis/2021-07-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md index 3506ced37380..b5dab16543f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints` Documentation -The `datacollectionendpoints` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2022-06-01`). +The `datacollectionendpoints` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2022-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue") +id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointName") payload := datacollectionendpoints.DataCollectionEndpointResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue") +id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue") +id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue") +id := datacollectionendpoints.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointName") payload := datacollectionendpoints.ResourceForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/client.go index 87bdf893d445..6bc91be42b52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/client.go @@ -15,7 +15,7 @@ type DataCollectionEndpointsClient struct { } func NewDataCollectionEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*DataCollectionEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datacollectionendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datacollectionendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataCollectionEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/id_datacollectionendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/id_datacollectionendpoint.go index 613a79533aa3..7a9d481a95c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/id_datacollectionendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/id_datacollectionendpoint.go @@ -42,7 +42,7 @@ func ParseDataCollectionEndpointID(input string) (*DataCollectionEndpointId, err } id := DataCollectionEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataCollectionEndpointIDInsensitively(input string) (*DataCollectionEn } id := DataCollectionEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataCollectionEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDataCollectionEndpoints", "dataCollectionEndpoints", "dataCollectionEndpoints"), - resourceids.UserSpecifiedSegment("dataCollectionEndpointName", "dataCollectionEndpointValue"), + resourceids.UserSpecifiedSegment("dataCollectionEndpointName", "dataCollectionEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_create.go index a030026f8b8c..5b18c4cef80c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_create.go @@ -50,7 +50,6 @@ func (c DataCollectionEndpointsClient) Create(ctx context.Context, id DataCollec var model DataCollectionEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_get.go index c76d55a8bf10..d9407846c6bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_get.go @@ -45,7 +45,6 @@ func (c DataCollectionEndpointsClient) Get(ctx context.Context, id DataCollectio var model DataCollectionEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_update.go index 27ba0a5ec600..56e7fc824f10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/method_update.go @@ -49,7 +49,6 @@ func (c DataCollectionEndpointsClient) Update(ctx context.Context, id DataCollec var model DataCollectionEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/version.go index 83aa2de6bd67..50d28c243482 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionendpoints/version.go @@ -1,12 +1,10 @@ package datacollectionendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datacollectionendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datacollectionendpoints/2022-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md index 6547406dd4fd..f86142122a39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations` Documentation -The `datacollectionruleassociations` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2022-06-01`). +The `datacollectionruleassociations` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2022-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue") +id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "associationName") payload := datacollectionruleassociations.DataCollectionRuleAssociationProxyOnlyResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue") +id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "associationName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "dataCollectionRuleAssociationValue") +id := datacollectionruleassociations.NewScopedDataCollectionRuleAssociationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "associationName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointValue") +id := datacollectionruleassociations.NewDataCollectionEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionEndpointName") // alternatively `client.ListByDataCollectionEndpoint(ctx, id)` can be used to do batched pagination items, err := client.ListByDataCollectionEndpointComplete(ctx, id) @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionruleassociations.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue") +id := datacollectionruleassociations.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleName") // alternatively `client.ListByRule(ctx, id)` can be used to do batched pagination items, err := client.ListByRuleComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/client.go index 1ac66a659601..ce8e5ef94f13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/client.go @@ -15,7 +15,7 @@ type DataCollectionRuleAssociationsClient struct { } func NewDataCollectionRuleAssociationsClientWithBaseURI(sdkApi sdkEnv.Api) (*DataCollectionRuleAssociationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datacollectionruleassociations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datacollectionruleassociations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataCollectionRuleAssociationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionendpoint.go index 49bcebd4651c..619dc33b8134 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionendpoint.go @@ -42,7 +42,7 @@ func ParseDataCollectionEndpointID(input string) (*DataCollectionEndpointId, err } id := DataCollectionEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataCollectionEndpointIDInsensitively(input string) (*DataCollectionEn } id := DataCollectionEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataCollectionEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDataCollectionEndpoints", "dataCollectionEndpoints", "dataCollectionEndpoints"), - resourceids.UserSpecifiedSegment("dataCollectionEndpointName", "dataCollectionEndpointValue"), + resourceids.UserSpecifiedSegment("dataCollectionEndpointName", "dataCollectionEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionrule.go index 9bd3f447ab02..f21706681d40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_datacollectionrule.go @@ -42,7 +42,7 @@ func ParseDataCollectionRuleID(input string) (*DataCollectionRuleId, error) { } id := DataCollectionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataCollectionRuleIDInsensitively(input string) (*DataCollectionRuleId } id := DataCollectionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataCollectionRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDataCollectionRules", "dataCollectionRules", "dataCollectionRules"), - resourceids.UserSpecifiedSegment("dataCollectionRuleName", "dataCollectionRuleValue"), + resourceids.UserSpecifiedSegment("dataCollectionRuleName", "dataCollectionRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_scopeddatacollectionruleassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_scopeddatacollectionruleassociation.go index a41aa6370ca7..0642da0ecdd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_scopeddatacollectionruleassociation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/id_scopeddatacollectionruleassociation.go @@ -40,7 +40,7 @@ func ParseScopedDataCollectionRuleAssociationID(input string) (*ScopedDataCollec } id := ScopedDataCollectionRuleAssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedDataCollectionRuleAssociationIDInsensitively(input string) (*Sco } id := ScopedDataCollectionRuleAssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedDataCollectionRuleAssociationId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDataCollectionRuleAssociations", "dataCollectionRuleAssociations", "dataCollectionRuleAssociations"), - resourceids.UserSpecifiedSegment("dataCollectionRuleAssociationName", "dataCollectionRuleAssociationValue"), + resourceids.UserSpecifiedSegment("dataCollectionRuleAssociationName", "associationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_create.go index 296ae570265f..5c5c85497814 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_create.go @@ -50,7 +50,6 @@ func (c DataCollectionRuleAssociationsClient) Create(ctx context.Context, id Sco var model DataCollectionRuleAssociationProxyOnlyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_get.go index c8dd489bea1a..ae77d09198c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/method_get.go @@ -45,7 +45,6 @@ func (c DataCollectionRuleAssociationsClient) Get(ctx context.Context, id Scoped var model DataCollectionRuleAssociationProxyOnlyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/version.go index 8fd7fdd1520b..4dc0fe3b8b09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionruleassociations/version.go @@ -1,12 +1,10 @@ package datacollectionruleassociations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datacollectionruleassociations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datacollectionruleassociations/2022-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/README.md index c8688e52e356..79e7b6c35b71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules` Documentation -The `datacollectionrules` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2022-06-01`). +The `datacollectionrules` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2022-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue") +id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleName") payload := datacollectionrules.DataCollectionRuleResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue") +id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue") +id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleValue") +id := datacollectionrules.NewDataCollectionRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataCollectionRuleName") payload := datacollectionrules.ResourceForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/client.go index 715b10fd3588..40fd017244ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/client.go @@ -15,7 +15,7 @@ type DataCollectionRulesClient struct { } func NewDataCollectionRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*DataCollectionRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datacollectionrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datacollectionrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataCollectionRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/id_datacollectionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/id_datacollectionrule.go index 1e79f6efe935..81ba4f80d037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/id_datacollectionrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/id_datacollectionrule.go @@ -42,7 +42,7 @@ func ParseDataCollectionRuleID(input string) (*DataCollectionRuleId, error) { } id := DataCollectionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDataCollectionRuleIDInsensitively(input string) (*DataCollectionRuleId } id := DataCollectionRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DataCollectionRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticDataCollectionRules", "dataCollectionRules", "dataCollectionRules"), - resourceids.UserSpecifiedSegment("dataCollectionRuleName", "dataCollectionRuleValue"), + resourceids.UserSpecifiedSegment("dataCollectionRuleName", "dataCollectionRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_create.go index 1aee4a277b09..61e624381a99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_create.go @@ -50,7 +50,6 @@ func (c DataCollectionRulesClient) Create(ctx context.Context, id DataCollection var model DataCollectionRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_get.go index 850aa256d741..fa5341855f9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_get.go @@ -45,7 +45,6 @@ func (c DataCollectionRulesClient) Get(ctx context.Context, id DataCollectionRul var model DataCollectionRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_update.go index 9d0d9273215f..4c397b6b2ff6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/method_update.go @@ -49,7 +49,6 @@ func (c DataCollectionRulesClient) Update(ctx context.Context, id DataCollection var model DataCollectionRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/version.go index 59f802f80717..21204834cd6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-06-01/datacollectionrules/version.go @@ -1,12 +1,10 @@ package datacollectionrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datacollectionrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datacollectionrules/2022-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/README.md index 2413d4c4c26e..376c6d940d1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings` Documentation -The `autoscalesettings` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2022-10-01`). +The `autoscalesettings` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoScaleSettingValue") +id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoscaleSettingName") payload := autoscalesettings.AutoscaleSettingResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoScaleSettingValue") +id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoscaleSettingName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoScaleSettingValue") +id := autoscalesettings.NewAutoScaleSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "autoscaleSettingName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/client.go index 6af68634bcca..06f51675ed34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/client.go @@ -15,7 +15,7 @@ type AutoScaleSettingsClient struct { } func NewAutoScaleSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*AutoScaleSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "autoscalesettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "autoscalesettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AutoScaleSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/id_autoscalesetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/id_autoscalesetting.go index 5d89ae07420e..21e4f4101f4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/id_autoscalesetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/id_autoscalesetting.go @@ -42,7 +42,7 @@ func ParseAutoScaleSettingID(input string) (*AutoScaleSettingId, error) { } id := AutoScaleSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutoScaleSettingIDInsensitively(input string) (*AutoScaleSettingId, er } id := AutoScaleSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutoScaleSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticAutoScaleSettings", "autoScaleSettings", "autoScaleSettings"), - resourceids.UserSpecifiedSegment("autoScaleSettingName", "autoScaleSettingValue"), + resourceids.UserSpecifiedSegment("autoScaleSettingName", "autoscaleSettingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_createorupdate.go index e7e33bd60bfd..dba9a4bdeb69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AutoScaleSettingsClient) CreateOrUpdate(ctx context.Context, id AutoScal var model AutoscaleSettingResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_get.go index 2d2cfaa8591f..48a8c08cb60b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/method_get.go @@ -45,7 +45,6 @@ func (c AutoScaleSettingsClient) Get(ctx context.Context, id AutoScaleSettingId) var model AutoscaleSettingResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/version.go index 73867d20cf1f..148cdcfaf46f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2022-10-01/autoscalesettings/version.go @@ -1,12 +1,10 @@ package autoscalesettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/autoscalesettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/autoscalesettings/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/README.md index e8ceabccd9f3..19f21b7d7f38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis` Documentation -The `actiongroupsapis` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2023-01-01`). +The `actiongroupsapis` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") payload := actiongroupsapis.NotificationRequestBody{ // ... @@ -42,7 +42,7 @@ if err := client.ActionGroupsCreateNotificationsAtActionGroupResourceLevelThenPo ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") payload := actiongroupsapis.ActionGroupResource{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") read, err := client.ActionGroupsDelete(ctx, id) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") payload := actiongroupsapis.EnableRequest{ // ... @@ -100,7 +100,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") read, err := client.ActionGroupsGet(ctx, id) if err != nil { @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := actiongroupsapis.NewNotificationStatusID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue", "notificationIdValue") +id := actiongroupsapis.NewNotificationStatusID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName", "notificationId") read, err := client.ActionGroupsGetTestNotificationsAtActionGroupResourceLevel(ctx, id) if err != nil { @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupValue") +id := actiongroupsapis.NewActionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "actionGroupName") payload := actiongroupsapis.ActionGroupPatchBody{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/client.go index f5eb03facb0f..98401f4cbc15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/client.go @@ -15,7 +15,7 @@ type ActionGroupsAPIsClient struct { } func NewActionGroupsAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ActionGroupsAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "actiongroupsapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "actiongroupsapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ActionGroupsAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_actiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_actiongroup.go index cfc1a76a050c..e1ee19549feb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_actiongroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_actiongroup.go @@ -42,7 +42,7 @@ func ParseActionGroupID(input string) (*ActionGroupId, error) { } id := ActionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseActionGroupIDInsensitively(input string) (*ActionGroupId, error) { } id := ActionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ActionGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticActionGroups", "actionGroups", "actionGroups"), - resourceids.UserSpecifiedSegment("actionGroupName", "actionGroupValue"), + resourceids.UserSpecifiedSegment("actionGroupName", "actionGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_notificationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_notificationstatus.go index 13e88e1105d3..7ff4e9f83b2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_notificationstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/id_notificationstatus.go @@ -44,7 +44,7 @@ func ParseNotificationStatusID(input string) (*NotificationStatusId, error) { } id := NotificationStatusId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNotificationStatusIDInsensitively(input string) (*NotificationStatusId } id := NotificationStatusId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NotificationStatusId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticActionGroups", "actionGroups", "actionGroups"), - resourceids.UserSpecifiedSegment("actionGroupName", "actionGroupValue"), + resourceids.UserSpecifiedSegment("actionGroupName", "actionGroupName"), resourceids.StaticSegment("staticNotificationStatus", "notificationStatus", "notificationStatus"), - resourceids.UserSpecifiedSegment("notificationId", "notificationIdValue"), + resourceids.UserSpecifiedSegment("notificationId", "notificationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupscreateorupdate.go index 9e6307c37327..cd67af4ac550 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupscreateorupdate.go @@ -50,7 +50,6 @@ func (c ActionGroupsAPIsClient) ActionGroupsCreateOrUpdate(ctx context.Context, var model ActionGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsget.go index 96fc3d00628f..6fd22d53cb85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsget.go @@ -45,7 +45,6 @@ func (c ActionGroupsAPIsClient) ActionGroupsGet(ctx context.Context, id ActionGr var model ActionGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsgettestnotificationsatactiongroupresourcelevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsgettestnotificationsatactiongroupresourcelevel.go index b04de8ea74d0..7fa9f74d4580 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsgettestnotificationsatactiongroupresourcelevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsgettestnotificationsatactiongroupresourcelevel.go @@ -45,7 +45,6 @@ func (c ActionGroupsAPIsClient) ActionGroupsGetTestNotificationsAtActionGroupRes var model TestNotificationDetailsResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsupdate.go index 2c33272f8a7f..f2f3fdc56f6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/method_actiongroupsupdate.go @@ -49,7 +49,6 @@ func (c ActionGroupsAPIsClient) ActionGroupsUpdate(ctx context.Context, id Actio var model ActionGroupResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/version.go index 9d133b23f2a3..0970fa398403 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-01-01/actiongroupsapis/version.go @@ -1,12 +1,10 @@ package actiongroupsapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/actiongroupsapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/actiongroupsapis/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md index 531d05ea8e2b..41c0420e5d9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules` Documentation -The `scheduledqueryrules` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2023-03-15-preview`). +The `scheduledqueryrules` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2023-03-15-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := scheduledqueryrules.ScheduledQueryRuleResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scheduledQueryRuleValue") +id := scheduledqueryrules.NewScheduledQueryRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ruleName") payload := scheduledqueryrules.ScheduledQueryRuleResourcePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/client.go index 63d8edbd1f8f..e15caa15195d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/client.go @@ -15,7 +15,7 @@ type ScheduledQueryRulesClient struct { } func NewScheduledQueryRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*ScheduledQueryRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scheduledqueryrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scheduledqueryrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScheduledQueryRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/id_scheduledqueryrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/id_scheduledqueryrule.go index 01cd36a9038e..4d5479238c0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/id_scheduledqueryrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/id_scheduledqueryrule.go @@ -42,7 +42,7 @@ func ParseScheduledQueryRuleID(input string) (*ScheduledQueryRuleId, error) { } id := ScheduledQueryRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseScheduledQueryRuleIDInsensitively(input string) (*ScheduledQueryRuleId } id := ScheduledQueryRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ScheduledQueryRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftInsights", "Microsoft.Insights", "Microsoft.Insights"), resourceids.StaticSegment("staticScheduledQueryRules", "scheduledQueryRules", "scheduledQueryRules"), - resourceids.UserSpecifiedSegment("scheduledQueryRuleName", "scheduledQueryRuleValue"), + resourceids.UserSpecifiedSegment("scheduledQueryRuleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_createorupdate.go index eadd944e0d4a..fa2ea6765cad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ScheduledQueryRulesClient) CreateOrUpdate(ctx context.Context, id Schedu var model ScheduledQueryRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_get.go index 62152b9b78b7..c910cf112910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_get.go @@ -45,7 +45,6 @@ func (c ScheduledQueryRulesClient) Get(ctx context.Context, id ScheduledQueryRul var model ScheduledQueryRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_update.go index a0bf99b1559c..e130b08292c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/method_update.go @@ -49,7 +49,6 @@ func (c ScheduledQueryRulesClient) Update(ctx context.Context, id ScheduledQuery var model ScheduledQueryRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/version.go index e6a836cb6743..8d0cb18354ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-03-15-preview/scheduledqueryrules/version.go @@ -1,12 +1,10 @@ package scheduledqueryrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-15-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scheduledqueryrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scheduledqueryrules/2023-03-15-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md index baaa60379b46..6976ecbf7aec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces` Documentation -The `azuremonitorworkspaces` SDK allows for interaction with the Azure Resource Manager Service `insights` (API Version `2023-04-03`). +The `azuremonitorworkspaces` SDK allows for interaction with Azure Resource Manager `insights` (API Version `2023-04-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureMonitorWorkspaceName") payload := azuremonitorworkspaces.AzureMonitorWorkspaceResource{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureMonitorWorkspaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureMonitorWorkspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := azuremonitorworkspaces.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureMonitorWorkspaceName") payload := azuremonitorworkspaces.AzureMonitorWorkspaceResourceForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/client.go index c6b7282167a9..7d2e76b42557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/client.go @@ -15,7 +15,7 @@ type AzureMonitorWorkspacesClient struct { } func NewAzureMonitorWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureMonitorWorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "azuremonitorworkspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "azuremonitorworkspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AzureMonitorWorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/id_account.go index 914feefbf1bf..b485d0acecf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMonitor", "Microsoft.Monitor", "Microsoft.Monitor"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "azureMonitorWorkspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_create.go index 1a1d9c0a1920..b2998da6dafd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_create.go @@ -50,7 +50,6 @@ func (c AzureMonitorWorkspacesClient) Create(ctx context.Context, id AccountId, var model AzureMonitorWorkspaceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_get.go index 0ba899b755bf..dcbbca98aea4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_get.go @@ -45,7 +45,6 @@ func (c AzureMonitorWorkspacesClient) Get(ctx context.Context, id AccountId) (re var model AzureMonitorWorkspaceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_update.go index f8470b091b3a..7c2c980f359f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/method_update.go @@ -49,7 +49,6 @@ func (c AzureMonitorWorkspacesClient) Update(ctx context.Context, id AccountId, var model AzureMonitorWorkspaceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/version.go index 19f380d816fe..fe3bf4ca47cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/insights/2023-04-03/azuremonitorworkspaces/version.go @@ -1,12 +1,10 @@ package azuremonitorworkspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/azuremonitorworkspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/azuremonitorworkspaces/2023-04-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/README.md index 0758234c5248..9cd14c17bb40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps` Documentation -The `apps` SDK allows for interaction with the Azure Resource Manager Service `iotcentral` (API Version `2021-11-01-preview`). +The `apps` SDK allows for interaction with Azure Resource Manager `iotcentral` (API Version `2021-11-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue") +id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := apps.App{ // ... @@ -84,7 +84,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue") +id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -96,7 +96,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue") +id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -163,7 +163,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "iotAppValue") +id := apps.NewIotAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := apps.AppPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/client.go index ca91c5a9e2a7..0706f0f8bb00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/client.go @@ -15,7 +15,7 @@ type AppsClient struct { } func NewAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*AppsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "apps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "apps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AppsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/id_iotapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/id_iotapp.go index feeedf87c216..2a887f3f998e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/id_iotapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/id_iotapp.go @@ -42,7 +42,7 @@ func ParseIotAppID(input string) (*IotAppId, error) { } id := IotAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIotAppIDInsensitively(input string) (*IotAppId, error) { } id := IotAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IotAppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftIoTCentral", "Microsoft.IoTCentral", "Microsoft.IoTCentral"), resourceids.StaticSegment("staticIotApps", "iotApps", "iotApps"), - resourceids.UserSpecifiedSegment("iotAppName", "iotAppValue"), + resourceids.UserSpecifiedSegment("iotAppName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checknameavailability.go index d9de92365a02..065d69af6f54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c AppsClient) CheckNameAvailability(ctx context.Context, id commonids.Subs var model AppAvailabilityInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checksubdomainavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checksubdomainavailability.go index 8190810b878a..cec21f39661b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checksubdomainavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_checksubdomainavailability.go @@ -51,7 +51,6 @@ func (c AppsClient) CheckSubdomainAvailability(ctx context.Context, id commonids var model AppAvailabilityInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_get.go index a69f5689ef38..40edc7f27e6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/method_get.go @@ -45,7 +45,6 @@ func (c AppsClient) Get(ctx context.Context, id IotAppId) (result GetOperationRe var model App result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/version.go index 057e77ab96ab..26257e9ab792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/iotcentral/2021-11-01-preview/apps/version.go @@ -1,12 +1,10 @@ package apps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/apps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/apps/2021-11-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/README.md index de34b3b96e4c..4711db3cb722 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults` Documentation -The `vaults` SDK allows for interaction with the Azure Resource Manager Service `keyvault` (API Version `2023-02-01`). +The `vaults` SDK allows for interaction with Azure Resource Manager `keyvault` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.VaultCreateOrUpdateParameters{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Delete(ctx, id) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Get(ctx, id) if err != nil { @@ -95,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedVaultValue") +id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "location", "vaultName") read, err := client.GetDeleted(ctx, id) if err != nil { @@ -179,7 +179,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedVaultValue") +id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "location", "vaultName") if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.VaultPatchParameters{ // ... @@ -212,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewOperationKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "add") +id := vaults.NewOperationKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "add") payload := vaults.VaultAccessPolicyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/constants.go index a9f3fd33ac5c..2cafdc9b5dee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/constants.go @@ -1,6 +1,8 @@ package vaults -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_deletedvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_deletedvault.go index c9cdbe35f3d9..33bdd26f1050 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_deletedvault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_deletedvault.go @@ -42,7 +42,7 @@ func ParseDeletedVaultID(input string) (*DeletedVaultId, error) { } id := DeletedVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedVaultIDInsensitively(input string) (*DeletedVaultId, error) { } id := DeletedVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedVaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedVaults", "deletedVaults", "deletedVaults"), - resourceids.UserSpecifiedSegment("deletedVaultName", "deletedVaultValue"), + resourceids.UserSpecifiedSegment("deletedVaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_operationkind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_operationkind.go index 1de0a5b26815..e7a7dc4fc14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_operationkind.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/id_operationkind.go @@ -44,7 +44,7 @@ func ParseOperationKindID(input string) (*OperationKindId, error) { } id := OperationKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOperationKindIDInsensitively(input string) (*OperationKindId, error) { } id := OperationKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id OperationKindId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), resourceids.ConstantSegment("operationKind", PossibleValuesForAccessPolicyUpdateKind(), "add"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/version.go index 02e0543ff4f8..96fd80c28f5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/vaults/version.go @@ -1,12 +1,10 @@ package vaults -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vaults/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vaults/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/README.md index 7829fccab2f4..e708340f1b55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms` Documentation -The `managedhsms` SDK allows for interaction with the Azure Resource Manager Service `keyvault` (API Version `2023-07-01`). +The `managedhsms` SDK allows for interaction with Azure Resource Manager `keyvault` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue") +id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := managedhsms.ManagedHsm{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue") +id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue") +id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedhsms.NewDeletedManagedHSMID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedManagedHSMValue") +id := managedhsms.NewDeletedManagedHSMID("12345678-1234-9876-4563-123456789012", "location", "name") read, err := client.GetDeleted(ctx, id) if err != nil { @@ -158,7 +158,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedhsms.NewDeletedManagedHSMID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedManagedHSMValue") +id := managedhsms.NewDeletedManagedHSMID("12345678-1234-9876-4563-123456789012", "location", "name") if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { // handle the error @@ -170,7 +170,7 @@ if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedHSMValue") +id := managedhsms.NewManagedHSMID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := managedhsms.ManagedHsm{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/client.go index 7d80c6b65a06..4702a1257d35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/client.go @@ -15,7 +15,7 @@ type ManagedHsmsClient struct { } func NewManagedHsmsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedHsmsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedhsms", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedhsms", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedHsmsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_deletedmanagedhsm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_deletedmanagedhsm.go index e75d8dbaf298..688949e5b662 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_deletedmanagedhsm.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_deletedmanagedhsm.go @@ -42,7 +42,7 @@ func ParseDeletedManagedHSMID(input string) (*DeletedManagedHSMId, error) { } id := DeletedManagedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedManagedHSMIDInsensitively(input string) (*DeletedManagedHSMId, } id := DeletedManagedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedManagedHSMId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedManagedHSMs", "deletedManagedHSMs", "deletedManagedHSMs"), - resourceids.UserSpecifiedSegment("deletedManagedHSMName", "deletedManagedHSMValue"), + resourceids.UserSpecifiedSegment("deletedManagedHSMName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_managedhsm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_managedhsm.go index 87fb72f30d72..e960056dec1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_managedhsm.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/id_managedhsm.go @@ -42,7 +42,7 @@ func ParseManagedHSMID(input string) (*ManagedHSMId, error) { } id := ManagedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedHSMIDInsensitively(input string) (*ManagedHSMId, error) { } id := ManagedHSMId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedHSMId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticManagedHSMs", "managedHSMs", "managedHSMs"), - resourceids.UserSpecifiedSegment("managedHSMName", "managedHSMValue"), + resourceids.UserSpecifiedSegment("managedHSMName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_checkmhsmnameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_checkmhsmnameavailability.go index 8ee226f52f34..3f7800d6c659 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_checkmhsmnameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_checkmhsmnameavailability.go @@ -51,7 +51,6 @@ func (c ManagedHsmsClient) CheckMhsmNameAvailability(ctx context.Context, id com var model CheckMhsmNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_get.go index fa266e861032..8069e0a56199 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_get.go @@ -46,7 +46,6 @@ func (c ManagedHsmsClient) Get(ctx context.Context, id ManagedHSMId) (result Get var model ManagedHsm result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_getdeleted.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_getdeleted.go index a1a9bd7e513e..7c16558dcfc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_getdeleted.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_getdeleted.go @@ -45,7 +45,6 @@ func (c ManagedHsmsClient) GetDeleted(ctx context.Context, id DeletedManagedHSMI var model DeletedManagedHsm result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go index 41dff99fa329..ca2f0d08e044 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go index 7298c28d3c13..6f660327ce78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/version.go index d434a9ba71d1..e09b8fad83b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/managedhsms/version.go @@ -1,12 +1,10 @@ package managedhsms -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedhsms/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedhsms/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/README.md index 71809e8b1b0a..cb759a8446c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults` Documentation -The `vaults` SDK allows for interaction with the Azure Resource Manager Service `keyvault` (API Version `2023-07-01`). +The `vaults` SDK allows for interaction with Azure Resource Manager `keyvault` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.VaultCreateOrUpdateParameters{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Delete(ctx, id) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Get(ctx, id) if err != nil { @@ -95,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedVaultValue") +id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "location", "vaultName") read, err := client.GetDeleted(ctx, id) if err != nil { @@ -179,7 +179,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedVaultValue") +id := vaults.NewDeletedVaultID("12345678-1234-9876-4563-123456789012", "location", "vaultName") if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.PurgeDeletedThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := commonids.NewKeyVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.VaultPatchParameters{ // ... @@ -212,7 +212,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewOperationKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "add") +id := vaults.NewOperationKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "add") payload := vaults.VaultAccessPolicyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/client.go index 1ddc5db936e4..37bd7a446706 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/client.go @@ -15,7 +15,7 @@ type VaultsClient struct { } func NewVaultsClientWithBaseURI(sdkApi sdkEnv.Api) (*VaultsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vaults", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vaults", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VaultsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_deletedvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_deletedvault.go index c9cdbe35f3d9..33bdd26f1050 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_deletedvault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_deletedvault.go @@ -42,7 +42,7 @@ func ParseDeletedVaultID(input string) (*DeletedVaultId, error) { } id := DeletedVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedVaultIDInsensitively(input string) (*DeletedVaultId, error) { } id := DeletedVaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedVaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedVaults", "deletedVaults", "deletedVaults"), - resourceids.UserSpecifiedSegment("deletedVaultName", "deletedVaultValue"), + resourceids.UserSpecifiedSegment("deletedVaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_operationkind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_operationkind.go index 1de0a5b26815..e7a7dc4fc14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_operationkind.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/id_operationkind.go @@ -44,7 +44,7 @@ func ParseOperationKindID(input string) (*OperationKindId, error) { } id := OperationKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOperationKindIDInsensitively(input string) (*OperationKindId, error) { } id := OperationKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id OperationKindId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKeyVault", "Microsoft.KeyVault", "Microsoft.KeyVault"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), resourceids.ConstantSegment("operationKind", PossibleValuesForAccessPolicyUpdateKind(), "add"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_checknameavailability.go index 1f0b4d7b2c8b..7c7a6ee93126 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c VaultsClient) CheckNameAvailability(ctx context.Context, id commonids.Su var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_get.go index 5a22da356a4c..2b39e261b711 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_get.go @@ -46,7 +46,6 @@ func (c VaultsClient) Get(ctx context.Context, id commonids.KeyVaultId) (result var model Vault result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_getdeleted.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_getdeleted.go index b83017e30eac..3d8e1856e62e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_getdeleted.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_getdeleted.go @@ -45,7 +45,6 @@ func (c VaultsClient) GetDeleted(ctx context.Context, id DeletedVaultId) (result var model DeletedVault result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_list.go index 30ab33d8c932..539855f32bab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go index dc0786bc437a..db6ebff4bae2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go index e062a6963820..a2d216fea2f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_update.go index 38533b8abb10..132468e7ca35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_update.go @@ -51,7 +51,6 @@ func (c VaultsClient) Update(ctx context.Context, id commonids.KeyVaultId, input var model Vault result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_updateaccesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_updateaccesspolicy.go index 69e77188f129..7625f00ba01a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_updateaccesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/method_updateaccesspolicy.go @@ -50,7 +50,6 @@ func (c VaultsClient) UpdateAccessPolicy(ctx context.Context, id OperationKindId var model VaultAccessPolicyParameters result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/version.go index eb63831d1439..5b94cabf653c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-07-01/vaults/version.go @@ -1,12 +1,10 @@ package vaults -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vaults/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vaults/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md index e8c176d6fc71..0924acfeb092 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions` Documentation -The `extensions` SDK allows for interaction with the Azure Resource Manager Service `kubernetesconfiguration` (API Version `2022-11-01`). +The `extensions` SDK allows for interaction with Azure Resource Manager `kubernetesconfiguration` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionValue") +id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionName") payload := extensions.Extension{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionValue") +id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionName") if err := client.DeleteThenPoll(ctx, id, extensions.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, extensions.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionValue") +id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionValue") +id := extensions.NewScopedExtensionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "extensionName") payload := extensions.PatchExtension{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/client.go index 44725ac0e846..682e82667080 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/client.go @@ -15,7 +15,7 @@ type ExtensionsClient struct { } func NewExtensionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExtensionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "extensions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "extensions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExtensionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/id_scopedextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/id_scopedextension.go index 57c085319c9b..2c89b698d34c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/id_scopedextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/id_scopedextension.go @@ -40,7 +40,7 @@ func ParseScopedExtensionID(input string) (*ScopedExtensionId, error) { } id := ScopedExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedExtensionIDInsensitively(input string) (*ScopedExtensionId, erro } id := ScopedExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKubernetesConfiguration", "Microsoft.KubernetesConfiguration", "Microsoft.KubernetesConfiguration"), resourceids.StaticSegment("staticExtensions", "extensions", "extensions"), - resourceids.UserSpecifiedSegment("extensionName", "extensionValue"), + resourceids.UserSpecifiedSegment("extensionName", "extensionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go index 92ebf4e2280e..cf626bf0fde0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_get.go index cd41d7bbb2c3..a889f506897f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/method_get.go @@ -45,7 +45,6 @@ func (c ExtensionsClient) Get(ctx context.Context, id ScopedExtensionId) (result var model Extension result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/version.go index 7a2daacbafc2..f3ac6a2f5a6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/extensions/version.go @@ -1,12 +1,10 @@ package extensions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/extensions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/extensions/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md index c679fa96f87e..9c645d7efd89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration` Documentation -The `fluxconfiguration` SDK allows for interaction with the Azure Resource Manager Service `kubernetesconfiguration` (API Version `2022-11-01`). +The `fluxconfiguration` SDK allows for interaction with Azure Resource Manager `kubernetesconfiguration` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationValue") +id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationName") payload := fluxconfiguration.FluxConfiguration{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationValue") +id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationName") if err := client.DeleteThenPoll(ctx, id, fluxconfiguration.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, fluxconfiguration.DefaultDeleteOperatio ```go ctx := context.TODO() -id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationValue") +id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationValue") +id := fluxconfiguration.NewScopedFluxConfigurationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "fluxConfigurationName") payload := fluxconfiguration.FluxConfigurationPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go index 742e70f8a2b4..e8a4ce031f50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/client.go @@ -15,7 +15,7 @@ type FluxConfigurationClient struct { } func NewFluxConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*FluxConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fluxconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fluxconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FluxConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go index 41d3cd66d479..eee6c3bfb084 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/id_scopedfluxconfiguration.go @@ -40,7 +40,7 @@ func ParseScopedFluxConfigurationID(input string) (*ScopedFluxConfigurationId, e } id := ScopedFluxConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedFluxConfigurationIDInsensitively(input string) (*ScopedFluxConfi } id := ScopedFluxConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedFluxConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKubernetesConfiguration", "Microsoft.KubernetesConfiguration", "Microsoft.KubernetesConfiguration"), resourceids.StaticSegment("staticFluxConfigurations", "fluxConfigurations", "fluxConfigurations"), - resourceids.UserSpecifiedSegment("fluxConfigurationName", "fluxConfigurationValue"), + resourceids.UserSpecifiedSegment("fluxConfigurationName", "fluxConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go index 64a49d42f18d..6ead6e07261d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go index ecd54c34d078..0facf939c8a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c FluxConfigurationClient) Get(ctx context.Context, id ScopedFluxConfigura var model FluxConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go index 35604ec47e2f..ca0e7395f358 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kubernetesconfiguration/2022-11-01/fluxconfiguration/version.go @@ -1,12 +1,10 @@ package fluxconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fluxconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fluxconfiguration/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md index ebab7e59cfb2..9dd06e77930e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations` Documentation -The `attacheddatabaseconfigurations` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `attacheddatabaseconfigurations` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := attacheddatabaseconfigurations.AttachedDatabaseConfigurationsCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue") +id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "attachedDatabaseConfigurationName") payload := attacheddatabaseconfigurations.AttachedDatabaseConfiguration{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue") +id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "attachedDatabaseConfigurationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "attachedDatabaseConfigurationValue") +id := attacheddatabaseconfigurations.NewAttachedDatabaseConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "attachedDatabaseConfigurationName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/client.go index 48860590ab41..92c6e47e4b1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/client.go @@ -15,7 +15,7 @@ type AttachedDatabaseConfigurationsClient struct { } func NewAttachedDatabaseConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AttachedDatabaseConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "attacheddatabaseconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "attacheddatabaseconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AttachedDatabaseConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go index d5052c7cfcfa..3244ce81c548 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/id_attacheddatabaseconfiguration.go @@ -44,7 +44,7 @@ func ParseAttachedDatabaseConfigurationID(input string) (*AttachedDatabaseConfig } id := AttachedDatabaseConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAttachedDatabaseConfigurationIDInsensitively(input string) (*AttachedD } id := AttachedDatabaseConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AttachedDatabaseConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticAttachedDatabaseConfigurations", "attachedDatabaseConfigurations", "attachedDatabaseConfigurations"), - resourceids.UserSpecifiedSegment("attachedDatabaseConfigurationName", "attachedDatabaseConfigurationValue"), + resourceids.UserSpecifiedSegment("attachedDatabaseConfigurationName", "attachedDatabaseConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_checknameavailability.go index 7726f53e057e..08dd7288a496 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c AttachedDatabaseConfigurationsClient) CheckNameAvailability(ctx context. var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_get.go index 153754044f59..7b2caf73fe12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c AttachedDatabaseConfigurationsClient) Get(ctx context.Context, id Attach var model AttachedDatabaseConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_listbycluster.go index 50e87786b1d0..881cef6fc3f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/method_listbycluster.go @@ -47,7 +47,6 @@ func (c AttachedDatabaseConfigurationsClient) ListByCluster(ctx context.Context, var model AttachedDatabaseConfigurationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/version.go index 3124f6f46d5e..52c9c0220db1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/attacheddatabaseconfigurations/version.go @@ -1,12 +1,10 @@ package attacheddatabaseconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/attacheddatabaseconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/attacheddatabaseconfigurations/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md index 7f4a0a73dec4..fda692e7c661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments` Documentation -The `clusterprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `clusterprincipalassignments` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusterprincipalassignments.ClusterPrincipalAssignmentCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "principalAssignmentValue") +id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "principalAssignmentName") payload := clusterprincipalassignments.ClusterPrincipalAssignment{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "principalAssignmentValue") +id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "principalAssignmentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "principalAssignmentValue") +id := clusterprincipalassignments.NewPrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "principalAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/client.go index 2412ce6b030d..20b3be15cf5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/client.go @@ -15,7 +15,7 @@ type ClusterPrincipalAssignmentsClient struct { } func NewClusterPrincipalAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterPrincipalAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusterprincipalassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusterprincipalassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClusterPrincipalAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/id_principalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/id_principalassignment.go index ada20554ce50..ebe5d2d33ef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/id_principalassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/id_principalassignment.go @@ -44,7 +44,7 @@ func ParsePrincipalAssignmentID(input string) (*PrincipalAssignmentId, error) { } id := PrincipalAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrincipalAssignmentIDInsensitively(input string) (*PrincipalAssignment } id := PrincipalAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrincipalAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPrincipalAssignments", "principalAssignments", "principalAssignments"), - resourceids.UserSpecifiedSegment("principalAssignmentName", "principalAssignmentValue"), + resourceids.UserSpecifiedSegment("principalAssignmentName", "principalAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_checknameavailability.go index 98b265d2418e..88cd7a85a867 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx context.Con var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_get.go index 075905a3d39a..ca4ab3ccde13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_get.go @@ -45,7 +45,6 @@ func (c ClusterPrincipalAssignmentsClient) Get(ctx context.Context, id Principal var model ClusterPrincipalAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_list.go index 07434c206b33..e30ad607a756 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/method_list.go @@ -47,7 +47,6 @@ func (c ClusterPrincipalAssignmentsClient) List(ctx context.Context, id commonid var model ClusterPrincipalAssignmentListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/version.go index f8fe15d4253f..479a893b3dca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusterprincipalassignments/version.go @@ -1,12 +1,10 @@ package clusterprincipalassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusterprincipalassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusterprincipalassignments/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/README.md index 2151c0744504..8e8439c39c39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `clusters` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.LanguageExtensionsList{ // ... @@ -42,7 +42,7 @@ if err := client.AddLanguageExtensionsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := clusters.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := clusters.ClusterCheckNameRequest{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.Cluster{ // ... @@ -80,7 +80,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, clusters.DefaultCreate ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -92,7 +92,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.FollowerDatabaseDefinition{ // ... @@ -109,7 +109,7 @@ if err := client.DetachFollowerDatabasesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") if err := client.DiagnoseVirtualNetworkThenPoll(ctx, id); err != nil { // handle the error @@ -121,7 +121,7 @@ if err := client.DiagnoseVirtualNetworkThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.Get(ctx, id) if err != nil { @@ -169,7 +169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.ListFollowerDatabases(ctx, id) if err != nil { @@ -185,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.ListLanguageExtensions(ctx, id) if err != nil { @@ -201,7 +201,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.ListSkusByResource(ctx, id) if err != nil { @@ -217,7 +217,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.ClusterMigrateRequest{ // ... @@ -234,7 +234,7 @@ if err := client.MigrateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.LanguageExtensionsList{ // ... @@ -251,7 +251,7 @@ if err := client.RemoveLanguageExtensionsThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -263,7 +263,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -275,7 +275,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := clusters.ClusterUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/id_location.go index 63a72ed58611..0a5c1fb05e78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_checknameavailability.go index 6a7e5109da3d..45fd64789ac6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c ClustersClient) CheckNameAvailability(ctx context.Context, id LocationId var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go index 81d4b801d44f..06b54dfc1028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_createorupdate.go @@ -44,6 +44,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_get.go index 7474df842fb3..40382e83f4b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_get.go @@ -46,7 +46,6 @@ func (c ClustersClient) Get(ctx context.Context, id commonids.KustoClusterId) (r var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_list.go index 3ad8fcf83ea8..82c843af9423 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_list.go @@ -47,7 +47,6 @@ func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) ( var model ClusterListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listbyresourcegroup.go index 7c61f9fc5a8b..776c57c3480d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.Re var model ClusterListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listfollowerdatabases.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listfollowerdatabases.go index 1de47e1b987e..15f64c75c2a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listfollowerdatabases.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listfollowerdatabases.go @@ -47,7 +47,6 @@ func (c ClustersClient) ListFollowerDatabases(ctx context.Context, id commonids. var model FollowerDatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listlanguageextensions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listlanguageextensions.go index 026c08959429..c5af35d2b3e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listlanguageextensions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listlanguageextensions.go @@ -47,7 +47,6 @@ func (c ClustersClient) ListLanguageExtensions(ctx context.Context, id commonids var model LanguageExtensionsList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listskusbyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listskusbyresource.go index cc27125c6460..19a17796d875 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listskusbyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_listskusbyresource.go @@ -47,7 +47,6 @@ func (c ClustersClient) ListSkusByResource(ctx context.Context, id commonids.Kus var model ListResourceSkusResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_update.go index 877c30194746..984e1dcb321c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/method_update.go @@ -40,6 +40,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/version.go index 12231bfcffae..65253b672e77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md index 1faaa5fa596d..b84bd237a694 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments` Documentation -The `databaseprincipalassignments` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `databaseprincipalassignments` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databaseprincipalassignments.DatabasePrincipalAssignmentCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue") +id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "principalAssignmentName") payload := databaseprincipalassignments.DatabasePrincipalAssignment{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue") +id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "principalAssignmentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "principalAssignmentValue") +id := databaseprincipalassignments.NewDatabasePrincipalAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "principalAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/client.go index fe184bcd76ac..937513d70365 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/client.go @@ -15,7 +15,7 @@ type DatabasePrincipalAssignmentsClient struct { } func NewDatabasePrincipalAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasePrincipalAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databaseprincipalassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databaseprincipalassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasePrincipalAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/id_databaseprincipalassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/id_databaseprincipalassignment.go index da7103438212..bc6f5bd00300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/id_databaseprincipalassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/id_databaseprincipalassignment.go @@ -46,7 +46,7 @@ func ParseDatabasePrincipalAssignmentID(input string) (*DatabasePrincipalAssignm } id := DatabasePrincipalAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDatabasePrincipalAssignmentIDInsensitively(input string) (*DatabasePri } id := DatabasePrincipalAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DatabasePrincipalAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), resourceids.StaticSegment("staticPrincipalAssignments", "principalAssignments", "principalAssignments"), - resourceids.UserSpecifiedSegment("principalAssignmentName", "principalAssignmentValue"), + resourceids.UserSpecifiedSegment("principalAssignmentName", "principalAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_checknameavailability.go index b4b18b03b140..b7451eac2c5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx context.Co var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_get.go index f6511e178a42..346ec4607b51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_get.go @@ -45,7 +45,6 @@ func (c DatabasePrincipalAssignmentsClient) Get(ctx context.Context, id Database var model DatabasePrincipalAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_list.go index b0de9c50cb6f..d9aea9045507 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/method_list.go @@ -47,7 +47,6 @@ func (c DatabasePrincipalAssignmentsClient) List(ctx context.Context, id commoni var model DatabasePrincipalAssignmentListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/version.go index 5b7889470fc3..4b30d27017d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databaseprincipalassignments/version.go @@ -1,12 +1,10 @@ package databaseprincipalassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databaseprincipalassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databaseprincipalassignments/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/README.md index fd68f4653422..d63f4bc84564 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `databases` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databases.DatabasePrincipalListRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := databases.CheckNameRequest{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databases.Database{ // ... @@ -84,7 +84,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, databases.DefaultCreat ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databases.DatabaseInviteFollowerRequest{ // ... @@ -105,7 +105,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -117,7 +117,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") read, err := client.Get(ctx, id) if err != nil { @@ -133,7 +133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") // alternatively `client.ListByCluster(ctx, id, databases.DefaultListByClusterOperationOptions())` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id, databases.DefaultListByClusterOperationOptions()) @@ -150,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") read, err := client.ListPrincipals(ctx, id) if err != nil { @@ -166,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databases.DatabasePrincipalListRequest{ // ... @@ -187,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := databases.Database{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_addprincipals.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_addprincipals.go index 4f65e033eff4..f9a6893b0c35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_addprincipals.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_addprincipals.go @@ -51,7 +51,6 @@ func (c DatabasesClient) AddPrincipals(ctx context.Context, id commonids.KustoDa var model DatabasePrincipalListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_checknameavailability.go index 75cbd4a28909..dd68c75ed534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c DatabasesClient) CheckNameAvailability(ctx context.Context, id commonids var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go index 754f7644360f..1a667eb0fc49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_createorupdate.go @@ -19,7 +19,7 @@ type CreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *Database + Model Database } type CreateOrUpdateOperationOptions struct { @@ -38,6 +38,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_databaseinvitefollower.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_databaseinvitefollower.go index 2759d1d2319e..cc72a544f305 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_databaseinvitefollower.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_databaseinvitefollower.go @@ -51,7 +51,6 @@ func (c DatabasesClient) DatabaseInviteFollower(ctx context.Context, id commonid var model DatabaseInviteFollowerResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_get.go index f2bd5b8a02dc..528a39c5f194 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_get.go @@ -16,7 +16,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *Database + Model Database } // Get ... @@ -49,11 +49,11 @@ func (c DatabasesClient) Get(ctx context.Context, id commonids.KustoDatabaseId) if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDatabaseImplementation(respObj) + model, err := UnmarshalDatabaseImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go index 67c4de7c892b..2db8e7a3f3ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listbycluster.go @@ -41,6 +41,7 @@ func (o ListByClusterOperationOptions) ToHeaders() *client.Headers { func (o ListByClusterOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -102,7 +103,7 @@ func (c DatabasesClient) ListByCluster(ctx context.Context, id commonids.KustoCl temp := make([]Database, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalDatabaseImplementation(v) + val, err := UnmarshalDatabaseImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for Database (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listprincipals.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listprincipals.go index 974b5a4e4541..26417872959a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listprincipals.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_listprincipals.go @@ -47,7 +47,6 @@ func (c DatabasesClient) ListPrincipals(ctx context.Context, id commonids.KustoD var model DatabasePrincipalListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_removeprincipals.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_removeprincipals.go index 4ba8e4fbef63..24ee4c788398 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_removeprincipals.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_removeprincipals.go @@ -51,7 +51,6 @@ func (c DatabasesClient) RemovePrincipals(ctx context.Context, id commonids.Kust var model DatabasePrincipalListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_update.go index 2ca85eda021b..e0685518bd62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/method_update.go @@ -19,7 +19,7 @@ type UpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *Database + Model Database } type UpdateOperationOptions struct { @@ -38,6 +38,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_database.go index 2f3c58a1325d..265196f31f4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_database.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Database interface { + Database() BaseDatabaseImpl } -// RawDatabaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Database = BaseDatabaseImpl{} + +type BaseDatabaseImpl struct { + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseDatabaseImpl) Database() BaseDatabaseImpl { + return s +} + +var _ Database = RawDatabaseImpl{} + +// RawDatabaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDatabaseImpl struct { - Type string - Values map[string]interface{} + database BaseDatabaseImpl + Type string + Values map[string]interface{} +} + +func (s RawDatabaseImpl) Database() BaseDatabaseImpl { + return s.database } -func unmarshalDatabaseImplementation(input []byte) (Database, error) { +func UnmarshalDatabaseImplementation(input []byte) (Database, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalDatabaseImplementation(input []byte) (Database, error) { return nil, fmt.Errorf("unmarshaling Database into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ReadOnlyFollowing") { @@ -52,10 +73,15 @@ func unmarshalDatabaseImplementation(input []byte) (Database, error) { return out, nil } - out := RawDatabaseImpl{ - Type: value, - Values: temp, + var parent BaseDatabaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDatabaseImpl: %+v", err) } - return out, nil + + return RawDatabaseImpl{ + database: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readonlyfollowingdatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readonlyfollowingdatabase.go index c31d685b6a22..69a2a96411da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readonlyfollowingdatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readonlyfollowingdatabase.go @@ -14,12 +14,24 @@ type ReadOnlyFollowingDatabase struct { Properties *ReadOnlyFollowingDatabaseProperties `json:"properties,omitempty"` // Fields inherited from Database + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` } +func (s ReadOnlyFollowingDatabase) Database() BaseDatabaseImpl { + return BaseDatabaseImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } +} + var _ json.Marshaler = ReadOnlyFollowingDatabase{} func (s ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { @@ -31,9 +43,10 @@ func (s ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ReadOnlyFollowingDatabase: %+v", err) } + decoded["kind"] = "ReadOnlyFollowing" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readwritedatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readwritedatabase.go index 24aa831e2ef0..441baecd65da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readwritedatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/model_readwritedatabase.go @@ -14,12 +14,24 @@ type ReadWriteDatabase struct { Properties *ReadWriteDatabaseProperties `json:"properties,omitempty"` // Fields inherited from Database + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` } +func (s ReadWriteDatabase) Database() BaseDatabaseImpl { + return BaseDatabaseImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } +} + var _ json.Marshaler = ReadWriteDatabase{} func (s ReadWriteDatabase) MarshalJSON() ([]byte, error) { @@ -31,9 +43,10 @@ func (s ReadWriteDatabase) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ReadWriteDatabase: %+v", err) } + decoded["kind"] = "ReadWrite" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/version.go index ba0dd7693e44..aeeb0e921792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/README.md index 57e4d989713d..d293e50663b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections` Documentation -The `dataconnections` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `dataconnections` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := dataconnections.DataConnectionCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "dataConnectionValue") +id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "dataConnectionName") payload := dataconnections.DataConnection{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := dataconnections.DataConnectionValidation{ // ... @@ -80,7 +80,7 @@ if err := client.DataConnectionValidationThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "dataConnectionValue") +id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "dataConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -92,7 +92,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "dataConnectionValue") +id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "dataConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") read, err := client.ListByDatabase(ctx, id) if err != nil { @@ -124,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "dataConnectionValue") +id := dataconnections.NewDataConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "dataConnectionName") payload := dataconnections.DataConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/client.go index c7bee31c0469..8b88ce58c7e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/client.go @@ -15,7 +15,7 @@ type DataConnectionsClient struct { } func NewDataConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*DataConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dataconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dataconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/id_dataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/id_dataconnection.go index 4b86fb76201e..f7af43c5cc0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/id_dataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/id_dataconnection.go @@ -46,7 +46,7 @@ func ParseDataConnectionID(input string) (*DataConnectionId, error) { } id := DataConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDataConnectionIDInsensitively(input string) (*DataConnectionId, error) } id := DataConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DataConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), resourceids.StaticSegment("staticDataConnections", "dataConnections", "dataConnections"), - resourceids.UserSpecifiedSegment("dataConnectionName", "dataConnectionValue"), + resourceids.UserSpecifiedSegment("dataConnectionName", "dataConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_checknameavailability.go index 59ceeb3afda4..b82af8b2538b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c DataConnectionsClient) CheckNameAvailability(ctx context.Context, id com var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_createorupdate.go index 81980a85cf3b..ea405aa6c147 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_createorupdate.go @@ -18,7 +18,7 @@ type CreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *DataConnection + Model DataConnection } // CreateOrUpdate ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_get.go index 6567a103e581..a1e4482154dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DataConnection + Model DataConnection } // Get ... @@ -48,11 +48,11 @@ func (c DataConnectionsClient) Get(ctx context.Context, id DataConnectionId) (re if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDataConnectionImplementation(respObj) + model, err := UnmarshalDataConnectionImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_listbydatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_listbydatabase.go index 43a44617ae1c..3ef4cd6af4e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_listbydatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_listbydatabase.go @@ -47,7 +47,6 @@ func (c DataConnectionsClient) ListByDatabase(ctx context.Context, id commonids. var model DataConnectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_update.go index 365e5a5c016e..f45185a13071 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/method_update.go @@ -18,7 +18,7 @@ type UpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *DataConnection + Model DataConnection } // Update ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_cosmosdbdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_cosmosdbdataconnection.go index 3c2eb489c013..06f15af3ac14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_cosmosdbdataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_cosmosdbdataconnection.go @@ -14,10 +14,22 @@ type CosmosDbDataConnection struct { Properties *CosmosDbDataConnectionProperties `json:"properties,omitempty"` // Fields inherited from DataConnection - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataConnectionKind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s CosmosDbDataConnection) DataConnection() BaseDataConnectionImpl { + return BaseDataConnectionImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = CosmosDbDataConnection{} @@ -31,9 +43,10 @@ func (s CosmosDbDataConnection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CosmosDbDataConnection: %+v", err) } + decoded["kind"] = "CosmosDb" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnection.go index d8a779e662fb..c254a7b871c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnection.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DataConnection interface { + DataConnection() BaseDataConnectionImpl } -// RawDataConnectionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DataConnection = BaseDataConnectionImpl{} + +type BaseDataConnectionImpl struct { + Id *string `json:"id,omitempty"` + Kind DataConnectionKind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseDataConnectionImpl) DataConnection() BaseDataConnectionImpl { + return s +} + +var _ DataConnection = RawDataConnectionImpl{} + +// RawDataConnectionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDataConnectionImpl struct { - Type string - Values map[string]interface{} + dataConnection BaseDataConnectionImpl + Type string + Values map[string]interface{} +} + +func (s RawDataConnectionImpl) DataConnection() BaseDataConnectionImpl { + return s.dataConnection } -func unmarshalDataConnectionImplementation(input []byte) (DataConnection, error) { +func UnmarshalDataConnectionImplementation(input []byte) (DataConnection, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalDataConnectionImplementation(input []byte) (DataConnection, error) return nil, fmt.Errorf("unmarshaling DataConnection into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "CosmosDb") { @@ -68,10 +89,15 @@ func unmarshalDataConnectionImplementation(input []byte) (DataConnection, error) return out, nil } - out := RawDataConnectionImpl{ - Type: value, - Values: temp, + var parent BaseDataConnectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDataConnectionImpl: %+v", err) } - return out, nil + + return RawDataConnectionImpl{ + dataConnection: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionlistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionlistresult.go index 2997428d1ce8..6a645fcce937 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionlistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionlistresult.go @@ -29,7 +29,7 @@ func (s *DataConnectionListResult) UnmarshalJSON(bytes []byte) error { output := make([]DataConnection, 0) for i, val := range listTemp { - impl, err := unmarshalDataConnectionImplementation(val) + impl, err := UnmarshalDataConnectionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'DataConnectionListResult': %+v", i, err) } @@ -37,5 +37,6 @@ func (s *DataConnectionListResult) UnmarshalJSON(bytes []byte) error { } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionvalidation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionvalidation.go index b9c4dba68f10..3361aee987cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionvalidation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_dataconnectionvalidation.go @@ -16,10 +16,11 @@ type DataConnectionValidation struct { var _ json.Unmarshaler = &DataConnectionValidation{} func (s *DataConnectionValidation) UnmarshalJSON(bytes []byte) error { - type alias DataConnectionValidation - var decoded alias + var decoded struct { + DataConnectionName *string `json:"dataConnectionName,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DataConnectionValidation: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DataConnectionName = decoded.DataConnectionName @@ -30,11 +31,12 @@ func (s *DataConnectionValidation) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalDataConnectionImplementation(v) + impl, err := UnmarshalDataConnectionImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'DataConnectionValidation': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventgriddataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventgriddataconnection.go index 5e5399dfe1bb..5fd8b60bc3e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventgriddataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventgriddataconnection.go @@ -14,10 +14,22 @@ type EventGridDataConnection struct { Properties *EventGridConnectionProperties `json:"properties,omitempty"` // Fields inherited from DataConnection - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataConnectionKind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s EventGridDataConnection) DataConnection() BaseDataConnectionImpl { + return BaseDataConnectionImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = EventGridDataConnection{} @@ -31,9 +43,10 @@ func (s EventGridDataConnection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventGridDataConnection: %+v", err) } + decoded["kind"] = "EventGrid" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventhubdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventhubdataconnection.go index c92e8ef4900b..cc311f452e27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventhubdataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_eventhubdataconnection.go @@ -14,10 +14,22 @@ type EventHubDataConnection struct { Properties *EventHubConnectionProperties `json:"properties,omitempty"` // Fields inherited from DataConnection - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataConnectionKind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s EventHubDataConnection) DataConnection() BaseDataConnectionImpl { + return BaseDataConnectionImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = EventHubDataConnection{} @@ -31,9 +43,10 @@ func (s EventHubDataConnection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubDataConnection: %+v", err) } + decoded["kind"] = "EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_iothubdataconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_iothubdataconnection.go index 9935922b66cb..ed2d9ec90543 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_iothubdataconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/model_iothubdataconnection.go @@ -14,10 +14,22 @@ type IotHubDataConnection struct { Properties *IotHubConnectionProperties `json:"properties,omitempty"` // Fields inherited from DataConnection - Id *string `json:"id,omitempty"` - Location *string `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind DataConnectionKind `json:"kind"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s IotHubDataConnection) DataConnection() BaseDataConnectionImpl { + return BaseDataConnectionImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = IotHubDataConnection{} @@ -31,9 +43,10 @@ func (s IotHubDataConnection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IotHubDataConnection: %+v", err) } + decoded["kind"] = "IotHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/version.go index 6682401c66fa..9d0d045ba6b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/dataconnections/version.go @@ -1,12 +1,10 @@ package dataconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dataconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dataconnections/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md index 17ac7f30890a..2c586eab035b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints` Documentation -The `managedprivateendpoints` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `managedprivateendpoints` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") payload := managedprivateendpoints.ManagedPrivateEndpointsCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "managedPrivateEndpointName") payload := managedprivateendpoints.ManagedPrivateEndpoint{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "managedPrivateEndpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "managedPrivateEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := commonids.NewKustoClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName") read, err := client.List(ctx, id) if err != nil { @@ -107,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "managedPrivateEndpointValue") +id := managedprivateendpoints.NewManagedPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "managedPrivateEndpointName") payload := managedprivateendpoints.ManagedPrivateEndpoint{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/client.go index c0a043e05258..e02237558e49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/client.go @@ -15,7 +15,7 @@ type ManagedPrivateEndpointsClient struct { } func NewManagedPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedPrivateEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedprivateendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedprivateendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedPrivateEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/id_managedprivateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/id_managedprivateendpoint.go index d0db8652cd22..d6ad8095bff6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/id_managedprivateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/id_managedprivateendpoint.go @@ -44,7 +44,7 @@ func ParseManagedPrivateEndpointID(input string) (*ManagedPrivateEndpointId, err } id := ManagedPrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedPrivateEndpointIDInsensitively(input string) (*ManagedPrivateEn } id := ManagedPrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedPrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticManagedPrivateEndpoints", "managedPrivateEndpoints", "managedPrivateEndpoints"), - resourceids.UserSpecifiedSegment("managedPrivateEndpointName", "managedPrivateEndpointValue"), + resourceids.UserSpecifiedSegment("managedPrivateEndpointName", "managedPrivateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_checknameavailability.go index 2fccac0a3346..06e1c7c5a28f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ManagedPrivateEndpointsClient) CheckNameAvailability(ctx context.Context var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_get.go index 80b1911108d2..d34ac2dec7be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_get.go @@ -45,7 +45,6 @@ func (c ManagedPrivateEndpointsClient) Get(ctx context.Context, id ManagedPrivat var model ManagedPrivateEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_list.go index c93d5ac7e042..acccfe08ca85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/method_list.go @@ -47,7 +47,6 @@ func (c ManagedPrivateEndpointsClient) List(ctx context.Context, id commonids.Ku var model ManagedPrivateEndpointListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/version.go index e1a9c02b7906..b08a491c935d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/managedprivateendpoints/version.go @@ -1,12 +1,10 @@ package managedprivateendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedprivateendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedprivateendpoints/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/README.md index be0f6e7e2c54..05ea147d9ce1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts` Documentation -The `scripts` SDK allows for interaction with the Azure Resource Manager Service `kusto` (API Version `2023-08-15`). +The `scripts` SDK allows for interaction with Azure Resource Manager `kusto` (API Version `2023-08-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") payload := scripts.ScriptCheckNameRequest{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "scriptValue") +id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "scriptName") payload := scripts.Script{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "scriptValue") +id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "scriptName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "scriptValue") +id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "scriptName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue") +id := commonids.NewKustoDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kustoClusterName", "kustoDatabaseName") read, err := client.ListByDatabase(ctx, id) if err != nil { @@ -107,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "databaseValue", "scriptValue") +id := scripts.NewScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName", "scriptName") payload := scripts.Script{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/client.go index a4b2e43918ae..6ef58a49ba4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/client.go @@ -15,7 +15,7 @@ type ScriptsClient struct { } func NewScriptsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScriptsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scripts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scripts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScriptsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/id_script.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/id_script.go index 6eb5d47f2aac..cc8900790fa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/id_script.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/id_script.go @@ -46,7 +46,7 @@ func ParseScriptID(input string) (*ScriptId, error) { } id := ScriptId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseScriptIDInsensitively(input string) (*ScriptId, error) { } id := ScriptId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ScriptId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftKusto", "Microsoft.Kusto", "Microsoft.Kusto"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), resourceids.StaticSegment("staticScripts", "scripts", "scripts"), - resourceids.UserSpecifiedSegment("scriptName", "scriptValue"), + resourceids.UserSpecifiedSegment("scriptName", "scriptName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_checknameavailability.go index 79699e0600a8..ed7cf0229b22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ScriptsClient) CheckNameAvailability(ctx context.Context, id commonids.K var model CheckNameResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_get.go index 612ca57df4d7..46a9dfe90a7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_get.go @@ -45,7 +45,6 @@ func (c ScriptsClient) Get(ctx context.Context, id ScriptId) (result GetOperatio var model Script result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_listbydatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_listbydatabase.go index dd9527b82137..e3dfb29fefc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_listbydatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/method_listbydatabase.go @@ -47,7 +47,6 @@ func (c ScriptsClient) ListByDatabase(ctx context.Context, id commonids.KustoDat var model ScriptListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/version.go index d0eecb83289a..4af145126515 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/kusto/2023-08-15/scripts/version.go @@ -1,12 +1,10 @@ package scripts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scripts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scripts/2023-08-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/README.md index 67ab44e47fea..f4db297ac729 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests` Documentation -The `loadtests` SDK allows for interaction with the Azure Resource Manager Service `loadtestservice` (API Version `2022-12-01`). +The `loadtests` SDK allows for interaction with Azure Resource Manager `loadtestservice` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue") +id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestName") payload := loadtests.LoadTestResource{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue") +id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue") +id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue") +id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestName") // alternatively `client.ListOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestValue") +id := loadtests.NewLoadTestID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadTestName") payload := loadtests.LoadTestResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/client.go index b5a9ba72097b..78dc0bfac7ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/client.go @@ -15,7 +15,7 @@ type LoadTestsClient struct { } func NewLoadTestsClientWithBaseURI(sdkApi sdkEnv.Api) (*LoadTestsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "loadtests", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "loadtests", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LoadTestsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/id_loadtest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/id_loadtest.go index 5ce336623038..b072f2679a93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/id_loadtest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/id_loadtest.go @@ -42,7 +42,7 @@ func ParseLoadTestID(input string) (*LoadTestId, error) { } id := LoadTestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLoadTestIDInsensitively(input string) (*LoadTestId, error) { } id := LoadTestId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LoadTestId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLoadTestService", "Microsoft.LoadTestService", "Microsoft.LoadTestService"), resourceids.StaticSegment("staticLoadTests", "loadTests", "loadTests"), - resourceids.UserSpecifiedSegment("loadTestName", "loadTestValue"), + resourceids.UserSpecifiedSegment("loadTestName", "loadTestName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/method_get.go index a0517b2945b2..f3a89b1d1ea0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/method_get.go @@ -45,7 +45,6 @@ func (c LoadTestsClient) Get(ctx context.Context, id LoadTestId) (result GetOper var model LoadTestResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/model_loadtestproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/model_loadtestproperties.go index ba93b11067e3..dbaae2bd6def 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/model_loadtestproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/model_loadtestproperties.go @@ -1,5 +1,10 @@ package loadtests +import ( + "encoding/json" + "fmt" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -9,3 +14,28 @@ type LoadTestProperties struct { Encryption *EncryptionProperties `json:"encryption,omitempty"` ProvisioningState *ResourceState `json:"provisioningState,omitempty"` } + +var _ json.Marshaler = LoadTestProperties{} + +func (s LoadTestProperties) MarshalJSON() ([]byte, error) { + type wrapper LoadTestProperties + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling LoadTestProperties: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling LoadTestProperties: %+v", err) + } + + delete(decoded, "dataPlaneURI") + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling LoadTestProperties: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/version.go index 3cdcb4901a3f..0bce61543d0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/loadtests/version.go @@ -1,12 +1,10 @@ package loadtests -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/loadtests/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/loadtests/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/README.md index 634941ca7b1e..b20ac9603ca6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas` Documentation -The `quotas` SDK allows for interaction with the Azure Resource Manager Service `loadtestservice` (API Version `2022-12-01`). +The `quotas` SDK allows for interaction with Azure Resource Manager `loadtestservice` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := quotas.NewQuotaID("12345678-1234-9876-4563-123456789012", "locationValue", "quotaValue") +id := quotas.NewQuotaID("12345678-1234-9876-4563-123456789012", "location", "quotaBucketName") payload := quotas.QuotaBucketRequest{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := quotas.NewQuotaID("12345678-1234-9876-4563-123456789012", "locationValue", "quotaValue") +id := quotas.NewQuotaID("12345678-1234-9876-4563-123456789012", "location", "quotaBucketName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := quotas.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := quotas.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/client.go index acdc272dcb34..0b1d5c3fae17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/client.go @@ -15,7 +15,7 @@ type QuotasClient struct { } func NewQuotasClientWithBaseURI(sdkApi sdkEnv.Api) (*QuotasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "quotas", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "quotas", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QuotasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_location.go index 3df54eeca4d1..e3b9a2e9bd77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLoadTestService", "Microsoft.LoadTestService", "Microsoft.LoadTestService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_quota.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_quota.go index 5b04a6e40e67..5653c8e97068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_quota.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/id_quota.go @@ -42,7 +42,7 @@ func ParseQuotaID(input string) (*QuotaId, error) { } id := QuotaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseQuotaIDInsensitively(input string) (*QuotaId, error) { } id := QuotaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id QuotaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLoadTestService", "Microsoft.LoadTestService", "Microsoft.LoadTestService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticQuotas", "quotas", "quotas"), - resourceids.UserSpecifiedSegment("quotaName", "quotaValue"), + resourceids.UserSpecifiedSegment("quotaName", "quotaBucketName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_checkavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_checkavailability.go index 3615c7bb5b40..6d85611f15db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_checkavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_checkavailability.go @@ -50,7 +50,6 @@ func (c QuotasClient) CheckAvailability(ctx context.Context, id QuotaId, input Q var model CheckQuotaAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_get.go index dfe53b6346d6..43fc8681778c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/method_get.go @@ -45,7 +45,6 @@ func (c QuotasClient) Get(ctx context.Context, id QuotaId) (result GetOperationR var model QuotaResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/version.go index 6d7532799d15..784e4d373605 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/loadtestservice/2022-12-01/quotas/version.go @@ -1,12 +1,10 @@ package quotas -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/quotas/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/quotas/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/README.md index 46938743c9db..7ccc7055bbcf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements` Documentation -The `integrationaccountagreements` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountagreements` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "agreementValue") +id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "agreementName") payload := integrationaccountagreements.IntegrationAccountAgreement{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "agreementValue") +id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "agreementName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "agreementValue") +id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "agreementName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountagreements.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountagreements.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountagreements.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountagreements.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "agreementValue") +id := integrationaccountagreements.NewAgreementID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "agreementName") payload := integrationaccountagreements.GetCallbackUrlParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/client.go index fbd91804501c..445bd95ed2d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/client.go @@ -15,7 +15,7 @@ type IntegrationAccountAgreementsClient struct { } func NewIntegrationAccountAgreementsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountAgreementsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountagreements", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountagreements", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountAgreementsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_agreement.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_agreement.go index 7c05c54e935f..459308c1fa6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_agreement.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_agreement.go @@ -44,7 +44,7 @@ func ParseAgreementID(input string) (*AgreementId, error) { } id := AgreementId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAgreementIDInsensitively(input string) (*AgreementId, error) { } id := AgreementId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AgreementId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticAgreements", "agreements", "agreements"), - resourceids.UserSpecifiedSegment("agreementName", "agreementValue"), + resourceids.UserSpecifiedSegment("agreementName", "agreementName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_integrationaccount.go index 0a21c8d4833e..bb04b194e213 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_createorupdate.go index dd89eed93746..1dd4f4e6809f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountAgreementsClient) CreateOrUpdate(ctx context.Context, var model IntegrationAccountAgreement result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_get.go index 4a4d77096c62..970b4fdd2c30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountAgreementsClient) Get(ctx context.Context, id Agreemen var model IntegrationAccountAgreement result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go index 49572dfd16d8..bd53d7d05a39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_listcontentcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_listcontentcallbackurl.go index f925480e6cc6..97ccdccb415a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_listcontentcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/method_listcontentcallbackurl.go @@ -50,7 +50,6 @@ func (c IntegrationAccountAgreementsClient) ListContentCallbackUrl(ctx context.C var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/version.go index 633c4c0db031..debb80b5576c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountagreements/version.go @@ -1,12 +1,10 @@ package integrationaccountagreements -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountagreements/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountagreements/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/README.md index 137bb343ce3d..fa1085073904 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies` Documentation -The `integrationaccountassemblies` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountassemblies` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "assemblyValue") +id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "assemblyArtifactName") payload := integrationaccountassemblies.AssemblyDefinition{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "assemblyValue") +id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "assemblyArtifactName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "assemblyValue") +id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "assemblyArtifactName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountassemblies.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountassemblies.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") read, err := client.List(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "assemblyValue") +id := integrationaccountassemblies.NewAssemblyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "assemblyArtifactName") read, err := client.ListContentCallbackUrl(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/client.go index 6fcd1144a2b9..30f72e13ff3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/client.go @@ -15,7 +15,7 @@ type IntegrationAccountAssembliesClient struct { } func NewIntegrationAccountAssembliesClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountAssembliesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountassemblies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountassemblies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountAssembliesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_assembly.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_assembly.go index 10ad3c5ff27a..8025de6c6df0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_assembly.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_assembly.go @@ -44,7 +44,7 @@ func ParseAssemblyID(input string) (*AssemblyId, error) { } id := AssemblyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAssemblyIDInsensitively(input string) (*AssemblyId, error) { } id := AssemblyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AssemblyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticAssemblies", "assemblies", "assemblies"), - resourceids.UserSpecifiedSegment("assemblyName", "assemblyValue"), + resourceids.UserSpecifiedSegment("assemblyName", "assemblyArtifactName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_integrationaccount.go index 7e2cd5817667..1ce2bc8aad9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_createorupdate.go index 8434aee0e646..bc79c8f67f57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountAssembliesClient) CreateOrUpdate(ctx context.Context, var model AssemblyDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_get.go index 226eabdebcbc..48209ccd171b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountAssembliesClient) Get(ctx context.Context, id Assembly var model AssemblyDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_list.go index d5dafee7244a..066e3b8cedc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_list.go @@ -46,7 +46,6 @@ func (c IntegrationAccountAssembliesClient) List(ctx context.Context, id Integra var model AssemblyCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_listcontentcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_listcontentcallbackurl.go index 753eaa1a77e0..579c09994d43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_listcontentcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/method_listcontentcallbackurl.go @@ -46,7 +46,6 @@ func (c IntegrationAccountAssembliesClient) ListContentCallbackUrl(ctx context.C var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/version.go index 690ff257ba03..0d065d06c6fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountassemblies/version.go @@ -1,12 +1,10 @@ package integrationaccountassemblies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountassemblies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountassemblies/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/README.md index 737acb22d0e4..f07b360641be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations` Documentation -The `integrationaccountbatchconfigurations` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountbatchconfigurations` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "batchConfigurationValue") +id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "batchConfigurationName") payload := integrationaccountbatchconfigurations.BatchConfiguration{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "batchConfigurationValue") +id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "batchConfigurationName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "batchConfigurationValue") +id := integrationaccountbatchconfigurations.NewBatchConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "batchConfigurationName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountbatchconfigurations.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountbatchconfigurations.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/client.go index 2f3daad0f3b4..e6a5ebb07b0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/client.go @@ -15,7 +15,7 @@ type IntegrationAccountBatchConfigurationsClient struct { } func NewIntegrationAccountBatchConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountBatchConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountbatchconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountbatchconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountBatchConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_batchconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_batchconfiguration.go index c39fbc665019..8d27d0039892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_batchconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_batchconfiguration.go @@ -44,7 +44,7 @@ func ParseBatchConfigurationID(input string) (*BatchConfigurationId, error) { } id := BatchConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBatchConfigurationIDInsensitively(input string) (*BatchConfigurationId } id := BatchConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BatchConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticBatchConfigurations", "batchConfigurations", "batchConfigurations"), - resourceids.UserSpecifiedSegment("batchConfigurationName", "batchConfigurationValue"), + resourceids.UserSpecifiedSegment("batchConfigurationName", "batchConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_integrationaccount.go index 4b05c679247a..a1ac8d8c2381 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_createorupdate.go index 44b322561a4e..2e9511bd47e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountBatchConfigurationsClient) CreateOrUpdate(ctx context. var model BatchConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_get.go index c7f8c979847c..14d40aceb75f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountBatchConfigurationsClient) Get(ctx context.Context, id var model BatchConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_list.go index 6ea554461b50..eaf8e283f9b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/method_list.go @@ -46,7 +46,6 @@ func (c IntegrationAccountBatchConfigurationsClient) List(ctx context.Context, i var model BatchConfigurationCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/version.go index c564172c92e4..0f362e580f50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountbatchconfigurations/version.go @@ -1,12 +1,10 @@ package integrationaccountbatchconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountbatchconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountbatchconfigurations/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/README.md index fe4cb0beed90..4546c19e2900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates` Documentation -The `integrationaccountcertificates` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountcertificates` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "certificateValue") +id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "certificateName") payload := integrationaccountcertificates.IntegrationAccountCertificate{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "certificateValue") +id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "certificateName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "certificateValue") +id := integrationaccountcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "certificateName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountcertificates.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountcertificates.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountcertificates.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountcertificates.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/client.go index 9f6bd12a9e0e..bf014c050b50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/client.go @@ -15,7 +15,7 @@ type IntegrationAccountCertificatesClient struct { } func NewIntegrationAccountCertificatesClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountCertificatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountcertificates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountcertificates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountCertificatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_certificate.go index 56b471ac1079..19955413f674 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_integrationaccount.go index a06489c91756..830bd4286dfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_createorupdate.go index e746022b4ab1..cfc2c9a83eee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountCertificatesClient) CreateOrUpdate(ctx context.Context var model IntegrationAccountCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_get.go index 66947045fef5..19465981c725 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountCertificatesClient) Get(ctx context.Context, id Certif var model IntegrationAccountCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go index dde96d3554a9..aba0ca916141 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/version.go index 463b6cce545a..e8fc695be037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountcertificates/version.go @@ -1,12 +1,10 @@ package integrationaccountcertificates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountcertificates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountcertificates/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/README.md index 8c5b5fe05c3c..ef361c6cd5f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps` Documentation -The `integrationaccountmaps` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountmaps` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "mapValue") +id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "mapName") payload := integrationaccountmaps.IntegrationAccountMap{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "mapValue") +id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "mapName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "mapValue") +id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "mapName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountmaps.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountmaps.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountmaps.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountmaps.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "mapValue") +id := integrationaccountmaps.NewMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "mapName") payload := integrationaccountmaps.GetCallbackUrlParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/client.go index beecb52786ae..c88f3be22ad9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/client.go @@ -15,7 +15,7 @@ type IntegrationAccountMapsClient struct { } func NewIntegrationAccountMapsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountMapsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountmaps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountmaps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountMapsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_integrationaccount.go index fe76e4461af2..dbcd414788e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_map.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_map.go index 67bc5abbebdd..d2779a4a4605 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_map.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/id_map.go @@ -44,7 +44,7 @@ func ParseMapID(input string) (*MapId, error) { } id := MapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMapIDInsensitively(input string) (*MapId, error) { } id := MapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id MapId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticMaps", "maps", "maps"), - resourceids.UserSpecifiedSegment("mapName", "mapValue"), + resourceids.UserSpecifiedSegment("mapName", "mapName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_createorupdate.go index 21f1c4574fb3..f619a69bc512 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountMapsClient) CreateOrUpdate(ctx context.Context, id Map var model IntegrationAccountMap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_get.go index 55e01d919936..b2a6dec9224c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountMapsClient) Get(ctx context.Context, id MapId) (result var model IntegrationAccountMap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go index a0c0de786a79..a8f768ae1637 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_listcontentcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_listcontentcallbackurl.go index 5682de512769..f7b09fab439a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_listcontentcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/method_listcontentcallbackurl.go @@ -50,7 +50,6 @@ func (c IntegrationAccountMapsClient) ListContentCallbackUrl(ctx context.Context var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/version.go index a8d445f94391..cf41793d35f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountmaps/version.go @@ -1,12 +1,10 @@ package integrationaccountmaps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountmaps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountmaps/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/README.md index 3c5c68d3f24e..4f2245acd2ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners` Documentation -The `integrationaccountpartners` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountpartners` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "partnerValue") +id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "partnerName") payload := integrationaccountpartners.IntegrationAccountPartner{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "partnerValue") +id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "partnerName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "partnerValue") +id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "partnerName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountpartners.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountpartners.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountpartners.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountpartners.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "partnerValue") +id := integrationaccountpartners.NewPartnerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "partnerName") payload := integrationaccountpartners.GetCallbackUrlParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/client.go index 03c0e952f178..f8d146a6af87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/client.go @@ -15,7 +15,7 @@ type IntegrationAccountPartnersClient struct { } func NewIntegrationAccountPartnersClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountPartnersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountpartners", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountpartners", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountPartnersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_integrationaccount.go index 598dee6a6125..c26d96514136 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_partner.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_partner.go index acb09f52c2a9..2bc46f6eeb96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_partner.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/id_partner.go @@ -44,7 +44,7 @@ func ParsePartnerID(input string) (*PartnerId, error) { } id := PartnerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePartnerIDInsensitively(input string) (*PartnerId, error) { } id := PartnerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PartnerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticPartners", "partners", "partners"), - resourceids.UserSpecifiedSegment("partnerName", "partnerValue"), + resourceids.UserSpecifiedSegment("partnerName", "partnerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_createorupdate.go index be86f402af70..72965443ee31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountPartnersClient) CreateOrUpdate(ctx context.Context, id var model IntegrationAccountPartner result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_get.go index acb19eec994c..ba789c884f46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountPartnersClient) Get(ctx context.Context, id PartnerId) var model IntegrationAccountPartner result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go index 62a91e331996..8da6c7df9652 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_listcontentcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_listcontentcallbackurl.go index 8347e48c9513..95f390fdfc17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_listcontentcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/method_listcontentcallbackurl.go @@ -50,7 +50,6 @@ func (c IntegrationAccountPartnersClient) ListContentCallbackUrl(ctx context.Con var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/version.go index e35739db53f3..68d7cbeefe98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountpartners/version.go @@ -1,12 +1,10 @@ package integrationaccountpartners -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountpartners/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountpartners/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/README.md index 9daef13bf311..30fbbadd8b87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts` Documentation -The `integrationaccounts` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccounts` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.IntegrationAccount{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.GetCallbackUrlParameters{ // ... @@ -133,7 +133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.ListKeyVaultKeysDefinition{ // ... @@ -154,7 +154,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.TrackingEventsDefinition{ // ... @@ -175,7 +175,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.RegenerateActionParameter{ // ... @@ -196,7 +196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccounts.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") payload := integrationaccounts.IntegrationAccount{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/client.go index 55099b5175e1..897aa71f6aee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/client.go @@ -15,7 +15,7 @@ type IntegrationAccountsClient struct { } func NewIntegrationAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/id_integrationaccount.go index 317ce288f908..986b194cd025 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_createorupdate.go index a32b3eb4ebcb..943db9b3d5a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountsClient) CreateOrUpdate(ctx context.Context, id Integr var model IntegrationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_get.go index ebd3b072631d..71a97aa889f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountsClient) Get(ctx context.Context, id IntegrationAccoun var model IntegrationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go index 8fcecbe4cb66..de536ec9516e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go index fad0b99bb18c..2e668763c59e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listcallbackurl.go index 2c3a5efbfa48..86ec6f72b0cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listcallbackurl.go @@ -50,7 +50,6 @@ func (c IntegrationAccountsClient) ListCallbackUrl(ctx context.Context, id Integ var model CallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listkeyvaultkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listkeyvaultkeys.go index c735b64b2924..195e2744db36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listkeyvaultkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_listkeyvaultkeys.go @@ -50,7 +50,6 @@ func (c IntegrationAccountsClient) ListKeyVaultKeys(ctx context.Context, id Inte var model KeyVaultKeyCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_regenerateaccesskey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_regenerateaccesskey.go index abce932825cf..043ff7d7b39d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_regenerateaccesskey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_regenerateaccesskey.go @@ -50,7 +50,6 @@ func (c IntegrationAccountsClient) RegenerateAccessKey(ctx context.Context, id I var model IntegrationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_update.go index 56d4965c091a..15c198797bda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/method_update.go @@ -49,7 +49,6 @@ func (c IntegrationAccountsClient) Update(ctx context.Context, id IntegrationAcc var model IntegrationAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/version.go index e7e61e35e6da..d722a7e238e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccounts/version.go @@ -1,12 +1,10 @@ package integrationaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccounts/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/README.md index 6b246446c4eb..07195b47fa30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas` Documentation -The `integrationaccountschemas` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountschemas` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue") +id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "schemaName") payload := integrationaccountschemas.IntegrationAccountSchema{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue") +id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "schemaName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue") +id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "schemaName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountschemas.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountschemas.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountschemas.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountschemas.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "schemaValue") +id := integrationaccountschemas.NewSchemaID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "schemaName") payload := integrationaccountschemas.GetCallbackUrlParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/client.go index edb71f170c5a..8c9eac362465 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/client.go @@ -15,7 +15,7 @@ type IntegrationAccountSchemasClient struct { } func NewIntegrationAccountSchemasClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountSchemasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountschemas", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountschemas", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountSchemasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_integrationaccount.go index 0ef37a080625..4c1a93a7e881 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_schema.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_schema.go index 71f6bf7ccd2b..f6e764a48a50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_schema.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/id_schema.go @@ -44,7 +44,7 @@ func ParseSchemaID(input string) (*SchemaId, error) { } id := SchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSchemaIDInsensitively(input string) (*SchemaId, error) { } id := SchemaId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SchemaId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticSchemas", "schemas", "schemas"), - resourceids.UserSpecifiedSegment("schemaName", "schemaValue"), + resourceids.UserSpecifiedSegment("schemaName", "schemaName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_createorupdate.go index fe4941bc40a7..7641dfdbeafc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountSchemasClient) CreateOrUpdate(ctx context.Context, id var model IntegrationAccountSchema result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_get.go index 2721b548721e..b961ad492f35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountSchemasClient) Get(ctx context.Context, id SchemaId) ( var model IntegrationAccountSchema result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go index e470b0715daa..9c96f9fd8c00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_listcontentcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_listcontentcallbackurl.go index bd7c8fc7ed30..63791fca079d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_listcontentcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/method_listcontentcallbackurl.go @@ -50,7 +50,6 @@ func (c IntegrationAccountSchemasClient) ListContentCallbackUrl(ctx context.Cont var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/version.go index 5aa266b3ac17..30e9d4c3c65f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountschemas/version.go @@ -1,12 +1,10 @@ package integrationaccountschemas -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountschemas/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountschemas/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/README.md index e00cd5b6fbce..00292ffc0eef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions` Documentation -The `integrationaccountsessions` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationaccountsessions` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue") +id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "sessionName") payload := integrationaccountsessions.IntegrationAccountSession{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue") +id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "sessionName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue", "sessionValue") +id := integrationaccountsessions.NewSessionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName", "sessionName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationaccountsessions.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountValue") +id := integrationaccountsessions.NewIntegrationAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationAccountName") // alternatively `client.List(ctx, id, integrationaccountsessions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, integrationaccountsessions.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/client.go index 10db887a0892..25819e0bb87d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/client.go @@ -15,7 +15,7 @@ type IntegrationAccountSessionsClient struct { } func NewIntegrationAccountSessionsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationAccountSessionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationaccountsessions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationaccountsessions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationAccountSessionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_integrationaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_integrationaccount.go index 7991f6618f8d..21946f30e38e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_integrationaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_integrationaccount.go @@ -42,7 +42,7 @@ func ParseIntegrationAccountID(input string) (*IntegrationAccountId, error) { } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationAccountIDInsensitively(input string) (*IntegrationAccountId } id := IntegrationAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_session.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_session.go index 85d255b4eb02..3f4d3442b725 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_session.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/id_session.go @@ -44,7 +44,7 @@ func ParseSessionID(input string) (*SessionId, error) { } id := SessionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSessionIDInsensitively(input string) (*SessionId, error) { } id := SessionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SessionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationAccounts", "integrationAccounts", "integrationAccounts"), - resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountValue"), + resourceids.UserSpecifiedSegment("integrationAccountName", "integrationAccountName"), resourceids.StaticSegment("staticSessions", "sessions", "sessions"), - resourceids.UserSpecifiedSegment("sessionName", "sessionValue"), + resourceids.UserSpecifiedSegment("sessionName", "sessionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_createorupdate.go index bd103ece3973..89831bd0e48c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_createorupdate.go @@ -50,7 +50,6 @@ func (c IntegrationAccountSessionsClient) CreateOrUpdate(ctx context.Context, id var model IntegrationAccountSession result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_get.go index f82484006e80..b90fadd78497 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationAccountSessionsClient) Get(ctx context.Context, id SessionId) var model IntegrationAccountSession result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go index fa444ba329d9..6d5860a6496a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/version.go index 606685d6c5f3..cbfb45d8a5ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationaccountsessions/version.go @@ -1,12 +1,10 @@ package integrationaccountsessions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationaccountsessions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationaccountsessions/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md index c0bb6b0e055e..1cc9f138ee77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments` Documentation -The `integrationserviceenvironments` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `integrationserviceenvironments` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentValue") +id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentName") payload := integrationserviceenvironments.IntegrationServiceEnvironment{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentValue") +id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentValue") +id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentValue") +id := integrationserviceenvironments.NewIntegrationServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "integrationServiceEnvironmentName") payload := integrationserviceenvironments.IntegrationServiceEnvironment{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/client.go index 51cc53aae986..8045795b75a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/client.go @@ -15,7 +15,7 @@ type IntegrationServiceEnvironmentsClient struct { } func NewIntegrationServiceEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*IntegrationServiceEnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "integrationserviceenvironments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "integrationserviceenvironments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IntegrationServiceEnvironmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/id_integrationserviceenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/id_integrationserviceenvironment.go index 885aa612e0fa..c177144c554a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/id_integrationserviceenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/id_integrationserviceenvironment.go @@ -42,7 +42,7 @@ func ParseIntegrationServiceEnvironmentID(input string) (*IntegrationServiceEnvi } id := IntegrationServiceEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIntegrationServiceEnvironmentIDInsensitively(input string) (*Integrati } id := IntegrationServiceEnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IntegrationServiceEnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticIntegrationServiceEnvironments", "integrationServiceEnvironments", "integrationServiceEnvironments"), - resourceids.UserSpecifiedSegment("integrationServiceEnvironmentName", "integrationServiceEnvironmentValue"), + resourceids.UserSpecifiedSegment("integrationServiceEnvironmentName", "integrationServiceEnvironmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_get.go index 109168592bba..5126c3e945ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_get.go @@ -45,7 +45,6 @@ func (c IntegrationServiceEnvironmentsClient) Get(ctx context.Context, id Integr var model IntegrationServiceEnvironment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go index f8b4905aec4d..40f4452f0bfd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go index 6407edc686c5..c5908c20ca0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/version.go index 49bc6ae0f868..73120a5b8523 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/integrationserviceenvironments/version.go @@ -1,12 +1,10 @@ package integrationserviceenvironments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/integrationserviceenvironments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/integrationserviceenvironments/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/README.md index e968e208a070..73ee12609830 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions` Documentation -The `workflowrunactions` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `workflowrunactions` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workflowrunactions.NewScopeRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "scopeRepetitionValue") +id := workflowrunactions.NewScopeRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "repetitionName") read, err := client.CopeRepetitionsGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue") +id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName") // alternatively `client.CopeRepetitionsList(ctx, id)` can be used to do batched pagination items, err := client.CopeRepetitionsListComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue") +id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue") +id := workflowrunactions.NewRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName") // alternatively `client.List(ctx, id, workflowrunactions.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, workflowrunactions.DefaultListOperationOptions()) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue") +id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName") read, err := client.ListExpressionTraces(ctx, id) if err != nil { @@ -106,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "repetitionValue") +id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "repetitionName") read, err := client.WorkflowRunActionRepetitionsGet(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue") +id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName") // alternatively `client.WorkflowRunActionRepetitionsList(ctx, id)` can be used to do batched pagination items, err := client.WorkflowRunActionRepetitionsListComplete(ctx, id) @@ -139,7 +139,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "repetitionValue") +id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "repetitionName") read, err := client.WorkflowRunActionRepetitionsListExpressionTraces(ctx, id) if err != nil { @@ -155,7 +155,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewRepetitionRequestHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "repetitionValue", "requestHistoryValue") +id := workflowrunactions.NewRepetitionRequestHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "repetitionName", "requestHistoryName") read, err := client.WorkflowRunActionRepetitionsRequestHistoriesGet(ctx, id) if err != nil { @@ -171,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "repetitionValue") +id := workflowrunactions.NewRepetitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "repetitionName") // alternatively `client.WorkflowRunActionRepetitionsRequestHistoriesList(ctx, id)` can be used to do batched pagination items, err := client.WorkflowRunActionRepetitionsRequestHistoriesListComplete(ctx, id) @@ -188,7 +188,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflowrunactions.NewRequestHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue", "requestHistoryValue") +id := workflowrunactions.NewRequestHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName", "requestHistoryName") read, err := client.WorkflowRunActionRequestHistoriesGet(ctx, id) if err != nil { @@ -204,7 +204,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "runValue", "actionValue") +id := workflowrunactions.NewActionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "runName", "actionName") // alternatively `client.WorkflowRunActionRequestHistoriesList(ctx, id)` can be used to do batched pagination items, err := client.WorkflowRunActionRequestHistoriesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/client.go index 75492551c099..463cc06a5f9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/client.go @@ -15,7 +15,7 @@ type WorkflowRunActionsClient struct { } func NewWorkflowRunActionsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkflowRunActionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workflowrunactions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workflowrunactions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkflowRunActionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_action.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_action.go index 2b134c455a5e..04f59dde268d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_action.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_action.go @@ -46,7 +46,7 @@ func ParseActionID(input string) (*ActionId, error) { } id := ActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseActionIDInsensitively(input string) (*ActionId, error) { } id := ActionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ActionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), resourceids.StaticSegment("staticActions", "actions", "actions"), - resourceids.UserSpecifiedSegment("actionName", "actionValue"), + resourceids.UserSpecifiedSegment("actionName", "actionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetition.go index a7e8eb7c465f..7312d93f6888 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetition.go @@ -48,7 +48,7 @@ func ParseRepetitionID(input string) (*RepetitionId, error) { } id := RepetitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseRepetitionIDInsensitively(input string) (*RepetitionId, error) { } id := RepetitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id RepetitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), resourceids.StaticSegment("staticActions", "actions", "actions"), - resourceids.UserSpecifiedSegment("actionName", "actionValue"), + resourceids.UserSpecifiedSegment("actionName", "actionName"), resourceids.StaticSegment("staticRepetitions", "repetitions", "repetitions"), - resourceids.UserSpecifiedSegment("repetitionName", "repetitionValue"), + resourceids.UserSpecifiedSegment("repetitionName", "repetitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetitionrequesthistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetitionrequesthistory.go index 7750352f5428..3f766c4e4034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetitionrequesthistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_repetitionrequesthistory.go @@ -50,7 +50,7 @@ func ParseRepetitionRequestHistoryID(input string) (*RepetitionRequestHistoryId, } id := RepetitionRequestHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -67,7 +67,7 @@ func ParseRepetitionRequestHistoryIDInsensitively(input string) (*RepetitionRequ } id := RepetitionRequestHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -139,15 +139,15 @@ func (id RepetitionRequestHistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), resourceids.StaticSegment("staticActions", "actions", "actions"), - resourceids.UserSpecifiedSegment("actionName", "actionValue"), + resourceids.UserSpecifiedSegment("actionName", "actionName"), resourceids.StaticSegment("staticRepetitions", "repetitions", "repetitions"), - resourceids.UserSpecifiedSegment("repetitionName", "repetitionValue"), + resourceids.UserSpecifiedSegment("repetitionName", "repetitionName"), resourceids.StaticSegment("staticRequestHistories", "requestHistories", "requestHistories"), - resourceids.UserSpecifiedSegment("requestHistoryName", "requestHistoryValue"), + resourceids.UserSpecifiedSegment("requestHistoryName", "requestHistoryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_requesthistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_requesthistory.go index 8b9d30bc01ab..37f8076d107a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_requesthistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_requesthistory.go @@ -48,7 +48,7 @@ func ParseRequestHistoryID(input string) (*RequestHistoryId, error) { } id := RequestHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseRequestHistoryIDInsensitively(input string) (*RequestHistoryId, error) } id := RequestHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id RequestHistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), resourceids.StaticSegment("staticActions", "actions", "actions"), - resourceids.UserSpecifiedSegment("actionName", "actionValue"), + resourceids.UserSpecifiedSegment("actionName", "actionName"), resourceids.StaticSegment("staticRequestHistories", "requestHistories", "requestHistories"), - resourceids.UserSpecifiedSegment("requestHistoryName", "requestHistoryValue"), + resourceids.UserSpecifiedSegment("requestHistoryName", "requestHistoryName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_run.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_run.go index 4b5890ed5c2e..7c28f9559595 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_run.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_run.go @@ -44,7 +44,7 @@ func ParseRunID(input string) (*RunId, error) { } id := RunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRunIDInsensitively(input string) (*RunId, error) { } id := RunId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RunId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_scoperepetition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_scoperepetition.go index 8ab21590dc78..ac60e5a2e59e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_scoperepetition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/id_scoperepetition.go @@ -48,7 +48,7 @@ func ParseScopeRepetitionID(input string) (*ScopeRepetitionId, error) { } id := ScopeRepetitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseScopeRepetitionIDInsensitively(input string) (*ScopeRepetitionId, erro } id := ScopeRepetitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ScopeRepetitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticRuns", "runs", "runs"), - resourceids.UserSpecifiedSegment("runName", "runValue"), + resourceids.UserSpecifiedSegment("runName", "runName"), resourceids.StaticSegment("staticActions", "actions", "actions"), - resourceids.UserSpecifiedSegment("actionName", "actionValue"), + resourceids.UserSpecifiedSegment("actionName", "actionName"), resourceids.StaticSegment("staticScopeRepetitions", "scopeRepetitions", "scopeRepetitions"), - resourceids.UserSpecifiedSegment("scopeRepetitionName", "scopeRepetitionValue"), + resourceids.UserSpecifiedSegment("scopeRepetitionName", "repetitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionsget.go index f767e43bd995..f860d0462b46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_coperepetitionsget.go @@ -45,7 +45,6 @@ func (c WorkflowRunActionsClient) CopeRepetitionsGet(ctx context.Context, id Sco var model WorkflowRunActionRepetitionDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_get.go index 83af4ca88297..c86b02f4ca2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_get.go @@ -45,7 +45,6 @@ func (c WorkflowRunActionsClient) Get(ctx context.Context, id ActionId) (result var model WorkflowRunAction result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go index 532e550d8d06..084239bb1282 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_listexpressiontraces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_listexpressiontraces.go index 0068d54ece47..aa37ce47d2db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_listexpressiontraces.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_listexpressiontraces.go @@ -46,7 +46,6 @@ func (c WorkflowRunActionsClient) ListExpressionTraces(ctx context.Context, id A var model ExpressionTraces result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsget.go index ecac4315b0f9..eb39d17169e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsget.go @@ -45,7 +45,6 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsGet(ctx context.Co var model WorkflowRunActionRepetitionDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go index 15ceb06aa56a..e7e839674631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionslistexpressiontraces.go @@ -46,7 +46,6 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsListExpressionTrac var model ExpressionTraces result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistoriesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistoriesget.go index 6421f49b07ca..6830262db6f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistoriesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrepetitionsrequesthistoriesget.go @@ -45,7 +45,6 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRepetitionsRequestHistoriesGe var model RequestHistory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistoriesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistoriesget.go index 346e35fe41bd..a7cf214e35d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistoriesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/method_workflowrunactionrequesthistoriesget.go @@ -45,7 +45,6 @@ func (c WorkflowRunActionsClient) WorkflowRunActionRequestHistoriesGet(ctx conte var model RequestHistory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/version.go index 83177937c88f..a8d90d51c4e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowrunactions/version.go @@ -1,12 +1,10 @@ package workflowrunactions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workflowrunactions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workflowrunactions/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/README.md index 99ef5284e22c..896e49a55d67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows` Documentation -The `workflows` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `workflows` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.Workflow{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.Disable(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.Enable(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.GenerateUpgradedDefinitionParameters{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.Get(ctx, id) if err != nil { @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.GetCallbackUrlParameters{ // ... @@ -186,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.ListSwagger(ctx, id) if err != nil { @@ -202,7 +202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.WorkflowReference{ // ... @@ -219,7 +219,7 @@ if err := client.MoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.RegenerateActionParameter{ // ... @@ -240,7 +240,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") read, err := client.Update(ctx, id) if err != nil { @@ -256,7 +256,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewLocationWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "workflowValue") +id := workflows.NewLocationWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location", "workflowName") payload := workflows.Workflow{ // ... @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflows.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") payload := workflows.Workflow{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/client.go index e036e0f1d48b..46648dbfe97f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/client.go @@ -15,7 +15,7 @@ type WorkflowsClient struct { } func NewWorkflowsClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkflowsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workflows", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workflows", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkflowsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_locationworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_locationworkflow.go index 9da5b3c24e7d..dc3dd96331ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_locationworkflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_locationworkflow.go @@ -44,7 +44,7 @@ func ParseLocationWorkflowID(input string) (*LocationWorkflowId, error) { } id := LocationWorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocationWorkflowIDInsensitively(input string) (*LocationWorkflowId, er } id := LocationWorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocationWorkflowId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_workflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_workflow.go index 85bee671a767..ef5f3d150690 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_workflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/id_workflow.go @@ -42,7 +42,7 @@ func ParseWorkflowID(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkflowIDInsensitively(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkflowId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_createorupdate.go index e3c8e35ddfa6..c45df4f44637 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WorkflowsClient) CreateOrUpdate(ctx context.Context, id WorkflowId, inpu var model Workflow result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_generateupgradeddefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_generateupgradeddefinition.go index e2f2fcbfeb2a..0195c87ed94b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_generateupgradeddefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_generateupgradeddefinition.go @@ -50,7 +50,6 @@ func (c WorkflowsClient) GenerateUpgradedDefinition(ctx context.Context, id Work var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_get.go index f2a588738836..afdd9b8eefdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_get.go @@ -45,7 +45,6 @@ func (c WorkflowsClient) Get(ctx context.Context, id WorkflowId) (result GetOper var model Workflow result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go index 43d38d2f0da0..a6d1b3f777d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbyresourcegroup.go @@ -41,6 +41,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go index d534ebe086b6..ba93742aeff3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listbysubscription.go @@ -41,6 +41,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listcallbackurl.go index ec6ebc522128..c9be2ecc5545 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listcallbackurl.go @@ -50,7 +50,6 @@ func (c WorkflowsClient) ListCallbackUrl(ctx context.Context, id WorkflowId, inp var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listswagger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listswagger.go index fb561ce85951..7f6954ed4e8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listswagger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_listswagger.go @@ -46,7 +46,6 @@ func (c WorkflowsClient) ListSwagger(ctx context.Context, id WorkflowId) (result var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_update.go index 31fb40d8bb82..f1dcbefdda0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/method_update.go @@ -45,7 +45,6 @@ func (c WorkflowsClient) Update(ctx context.Context, id WorkflowId) (result Upda var model Workflow result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/version.go index 8658baf6a6f1..c99f54193d9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflows/version.go @@ -1,12 +1,10 @@ package workflows -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workflows/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workflows/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/README.md index 55f3a38ed7aa..56228454a826 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers` Documentation -The `workflowtriggers` SDK allows for interaction with the Azure Resource Manager Service `logic` (API Version `2019-05-01`). +The `workflowtriggers` SDK allows for interaction with Azure Resource Manager `logic` (API Version `2019-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") read, err := client.GetSchemaJson(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue") +id := workflowtriggers.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName") // alternatively `client.List(ctx, id, workflowtriggers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, workflowtriggers.DefaultListOperationOptions()) @@ -73,7 +73,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") read, err := client.ListCallbackUrl(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") read, err := client.Reset(ctx, id) if err != nil { @@ -105,7 +105,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") read, err := client.Run(ctx, id) if err != nil { @@ -121,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "triggerValue") +id := workflowtriggers.NewTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "triggerName") payload := workflowtriggers.SetTriggerStateActionDefinition{ // ... @@ -142,7 +142,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workflowtriggers.NewVersionTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowValue", "versionIdValue", "triggerValue") +id := workflowtriggers.NewVersionTriggerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workflowName", "versionId", "triggerName") payload := workflowtriggers.GetCallbackUrlParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/client.go index 4788e395649c..06e7b704ecfa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/client.go @@ -15,7 +15,7 @@ type WorkflowTriggersClient struct { } func NewWorkflowTriggersClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkflowTriggersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workflowtriggers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workflowtriggers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkflowTriggersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_trigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_trigger.go index 9b2ee479a9ca..d0222ce26434 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_trigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_trigger.go @@ -44,7 +44,7 @@ func ParseTriggerID(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTriggerIDInsensitively(input string) (*TriggerId, error) { } id := TriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TriggerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticTriggers", "triggers", "triggers"), - resourceids.UserSpecifiedSegment("triggerName", "triggerValue"), + resourceids.UserSpecifiedSegment("triggerName", "triggerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_versiontrigger.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_versiontrigger.go index 6c465d5d4d28..6c271f8543a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_versiontrigger.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_versiontrigger.go @@ -46,7 +46,7 @@ func ParseVersionTriggerID(input string) (*VersionTriggerId, error) { } id := VersionTriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVersionTriggerIDInsensitively(input string) (*VersionTriggerId, error) } id := VersionTriggerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VersionTriggerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionId", "versionIdValue"), + resourceids.UserSpecifiedSegment("versionId", "versionId"), resourceids.StaticSegment("staticTriggers", "triggers", "triggers"), - resourceids.UserSpecifiedSegment("triggerName", "triggerValue"), + resourceids.UserSpecifiedSegment("triggerName", "triggerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_workflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_workflow.go index 602e6fb8b54c..2e1dfa306e4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_workflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/id_workflow.go @@ -42,7 +42,7 @@ func ParseWorkflowID(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkflowIDInsensitively(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkflowId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftLogic", "Microsoft.Logic", "Microsoft.Logic"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_get.go index 6ff7e3390306..d1bcd504fe2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_get.go @@ -45,7 +45,6 @@ func (c WorkflowTriggersClient) Get(ctx context.Context, id TriggerId) (result G var model WorkflowTrigger result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_getschemajson.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_getschemajson.go index 286934bd0ea1..c26d831b3026 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_getschemajson.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_getschemajson.go @@ -46,7 +46,6 @@ func (c WorkflowTriggersClient) GetSchemaJson(ctx context.Context, id TriggerId) var model JsonSchema result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go index 2f71990641ab..cdc29470c817 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_listcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_listcallbackurl.go index 5f6d581c2076..7e44f7f97631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_listcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_listcallbackurl.go @@ -46,7 +46,6 @@ func (c WorkflowTriggersClient) ListCallbackUrl(ctx context.Context, id TriggerI var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_workflowversiontriggerslistcallbackurl.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_workflowversiontriggerslistcallbackurl.go index 29e2c612da80..2405dbab3c57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_workflowversiontriggerslistcallbackurl.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/method_workflowversiontriggerslistcallbackurl.go @@ -50,7 +50,6 @@ func (c WorkflowTriggersClient) WorkflowVersionTriggersListCallbackUrl(ctx conte var model WorkflowTriggerCallbackUrl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/version.go index 1045dd9e4740..d9e4d233a2f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/logic/2019-05-01/workflowtriggers/version.go @@ -1,12 +1,10 @@ package workflowtriggers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workflowtriggers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workflowtriggers/2019-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/README.md index c0cd0b20d202..f244218f2215 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore` Documentation -The `datastore` SDK allows for interaction with the Azure Resource Manager Service `machinelearningservices` (API Version `2024-04-01`). +The `datastore` SDK allows for interaction with Azure Resource Manager `machinelearningservices` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataStoreValue") +id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "name") payload := datastore.DatastoreResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataStoreValue") +id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "name") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataStoreValue") +id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastore.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := datastore.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.List(ctx, id, datastore.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, datastore.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataStoreValue") +id := datastore.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "name") read, err := client.ListSecrets(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/client.go index 82a7c3741d5c..41a7b1da1675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/client.go @@ -15,7 +15,7 @@ type DatastoreClient struct { } func NewDatastoreClientWithBaseURI(sdkApi sdkEnv.Api) (*DatastoreClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datastore", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datastore", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatastoreClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_datastore.go index 2f0d863f24e5..313f559219bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_datastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_datastore.go @@ -44,7 +44,7 @@ func ParseDataStoreID(input string) (*DataStoreId, error) { } id := DataStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataStoreIDInsensitively(input string) (*DataStoreId, error) { } id := DataStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DataStoreId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticDataStores", "dataStores", "dataStores"), - resourceids.UserSpecifiedSegment("dataStoreName", "dataStoreValue"), + resourceids.UserSpecifiedSegment("dataStoreName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_workspace.go index c2e3e005415b..e2119eb33250 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go index 620d9f2e0918..580889f1b17f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_createorupdate.go @@ -34,6 +34,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c DatastoreClient) CreateOrUpdate(ctx context.Context, id DataStoreId, inp var model DatastoreResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_get.go index fa2299e3fbdf..b3fa29358b5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_get.go @@ -45,7 +45,6 @@ func (c DatastoreClient) Get(ctx context.Context, id DataStoreId) (result GetOpe var model DatastoreResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go index 3dd905b841ec..878ab24a9c3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_list.go @@ -45,6 +45,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_listsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_listsecrets.go index c4a296dcb145..c96fe852b1c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_listsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/method_listsecrets.go @@ -16,7 +16,7 @@ import ( type ListSecretsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DatastoreSecrets + Model DatastoreSecrets } // ListSecrets ... @@ -49,11 +49,11 @@ func (c DatastoreClient) ListSecrets(ctx context.Context, id DataStoreId) (resul if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDatastoreSecretsImplementation(respObj) + model, err := UnmarshalDatastoreSecretsImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastorecredentials.go index 0540b7df9a64..9e67a483305b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastorecredentials.go @@ -14,6 +14,14 @@ type AccountKeyDatastoreCredentials struct { Secrets AccountKeyDatastoreSecrets `json:"secrets"` // Fields inherited from DatastoreCredentials + + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s AccountKeyDatastoreCredentials) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return BaseDatastoreCredentialsImpl{ + CredentialsType: s.CredentialsType, + } } var _ json.Marshaler = AccountKeyDatastoreCredentials{} @@ -27,9 +35,10 @@ func (s AccountKeyDatastoreCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AccountKeyDatastoreCredentials: %+v", err) } + decoded["credentialsType"] = "AccountKey" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastoresecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastoresecrets.go index c6cba7a7cff4..d20d7b0b3120 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastoresecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_accountkeydatastoresecrets.go @@ -14,6 +14,14 @@ type AccountKeyDatastoreSecrets struct { Key *string `json:"key,omitempty"` // Fields inherited from DatastoreSecrets + + SecretsType SecretsType `json:"secretsType"` +} + +func (s AccountKeyDatastoreSecrets) DatastoreSecrets() BaseDatastoreSecretsImpl { + return BaseDatastoreSecretsImpl{ + SecretsType: s.SecretsType, + } } var _ json.Marshaler = AccountKeyDatastoreSecrets{} @@ -27,9 +35,10 @@ func (s AccountKeyDatastoreSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AccountKeyDatastoreSecrets: %+v", err) } + decoded["secretsType"] = "AccountKey" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azureblobdatastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azureblobdatastore.go index 19b0a3d0060b..b19f553f1e61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azureblobdatastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azureblobdatastore.go @@ -20,11 +20,24 @@ type AzureBlobDatastore struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from Datastore - Credentials DatastoreCredentials `json:"credentials"` - Description *string `json:"description,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s AzureBlobDatastore) Datastore() BaseDatastoreImpl { + return BaseDatastoreImpl{ + Credentials: s.Credentials, + DatastoreType: s.DatastoreType, + Description: s.Description, + IsDefault: s.IsDefault, + Properties: s.Properties, + Tags: s.Tags, + } } var _ json.Marshaler = AzureBlobDatastore{} @@ -38,9 +51,10 @@ func (s AzureBlobDatastore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBlobDatastore: %+v", err) } + decoded["datastoreType"] = "AzureBlob" encoded, err = json.Marshal(decoded) @@ -54,22 +68,35 @@ func (s AzureBlobDatastore) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureBlobDatastore{} func (s *AzureBlobDatastore) UnmarshalJSON(bytes []byte) error { - type alias AzureBlobDatastore - var decoded alias + var decoded struct { + AccountName *string `json:"accountName,omitempty"` + ContainerName *string `json:"containerName,omitempty"` + Endpoint *string `json:"endpoint,omitempty"` + Protocol *string `json:"protocol,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` + SubscriptionId *string `json:"subscriptionId,omitempty"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureBlobDatastore: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AccountName = decoded.AccountName s.ContainerName = decoded.ContainerName - s.Description = decoded.Description s.Endpoint = decoded.Endpoint - s.IsDefault = decoded.IsDefault - s.Properties = decoded.Properties s.Protocol = decoded.Protocol s.ResourceGroup = decoded.ResourceGroup s.ServiceDataAccessAuthIdentity = decoded.ServiceDataAccessAuthIdentity s.SubscriptionId = decoded.SubscriptionId + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties s.Tags = decoded.Tags var temp map[string]json.RawMessage @@ -78,11 +105,12 @@ func (s *AzureBlobDatastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalDatastoreCredentialsImplementation(v) + impl, err := UnmarshalDatastoreCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'AzureBlobDatastore': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen1datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen1datastore.go index c6a99481324b..fef6abd77720 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen1datastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen1datastore.go @@ -17,11 +17,24 @@ type AzureDataLakeGen1Datastore struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from Datastore - Credentials DatastoreCredentials `json:"credentials"` - Description *string `json:"description,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s AzureDataLakeGen1Datastore) Datastore() BaseDatastoreImpl { + return BaseDatastoreImpl{ + Credentials: s.Credentials, + DatastoreType: s.DatastoreType, + Description: s.Description, + IsDefault: s.IsDefault, + Properties: s.Properties, + Tags: s.Tags, + } } var _ json.Marshaler = AzureDataLakeGen1Datastore{} @@ -35,9 +48,10 @@ func (s AzureDataLakeGen1Datastore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataLakeGen1Datastore: %+v", err) } + decoded["datastoreType"] = "AzureDataLakeGen1" encoded, err = json.Marshal(decoded) @@ -51,19 +65,29 @@ func (s AzureDataLakeGen1Datastore) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureDataLakeGen1Datastore{} func (s *AzureDataLakeGen1Datastore) UnmarshalJSON(bytes []byte) error { - type alias AzureDataLakeGen1Datastore - var decoded alias + var decoded struct { + ResourceGroup *string `json:"resourceGroup,omitempty"` + ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` + StoreName string `json:"storeName"` + SubscriptionId *string `json:"subscriptionId,omitempty"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureDataLakeGen1Datastore: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.Description = decoded.Description - s.IsDefault = decoded.IsDefault - s.Properties = decoded.Properties s.ResourceGroup = decoded.ResourceGroup s.ServiceDataAccessAuthIdentity = decoded.ServiceDataAccessAuthIdentity s.StoreName = decoded.StoreName s.SubscriptionId = decoded.SubscriptionId + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties s.Tags = decoded.Tags var temp map[string]json.RawMessage @@ -72,11 +96,12 @@ func (s *AzureDataLakeGen1Datastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalDatastoreCredentialsImplementation(v) + impl, err := UnmarshalDatastoreCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'AzureDataLakeGen1Datastore': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen2datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen2datastore.go index c96083e85ad4..9c7e16438813 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen2datastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azuredatalakegen2datastore.go @@ -20,11 +20,24 @@ type AzureDataLakeGen2Datastore struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from Datastore - Credentials DatastoreCredentials `json:"credentials"` - Description *string `json:"description,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s AzureDataLakeGen2Datastore) Datastore() BaseDatastoreImpl { + return BaseDatastoreImpl{ + Credentials: s.Credentials, + DatastoreType: s.DatastoreType, + Description: s.Description, + IsDefault: s.IsDefault, + Properties: s.Properties, + Tags: s.Tags, + } } var _ json.Marshaler = AzureDataLakeGen2Datastore{} @@ -38,9 +51,10 @@ func (s AzureDataLakeGen2Datastore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataLakeGen2Datastore: %+v", err) } + decoded["datastoreType"] = "AzureDataLakeGen2" encoded, err = json.Marshal(decoded) @@ -54,22 +68,35 @@ func (s AzureDataLakeGen2Datastore) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureDataLakeGen2Datastore{} func (s *AzureDataLakeGen2Datastore) UnmarshalJSON(bytes []byte) error { - type alias AzureDataLakeGen2Datastore - var decoded alias + var decoded struct { + AccountName string `json:"accountName"` + Endpoint *string `json:"endpoint,omitempty"` + Filesystem string `json:"filesystem"` + Protocol *string `json:"protocol,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` + SubscriptionId *string `json:"subscriptionId,omitempty"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureDataLakeGen2Datastore: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AccountName = decoded.AccountName - s.Description = decoded.Description s.Endpoint = decoded.Endpoint s.Filesystem = decoded.Filesystem - s.IsDefault = decoded.IsDefault - s.Properties = decoded.Properties s.Protocol = decoded.Protocol s.ResourceGroup = decoded.ResourceGroup s.ServiceDataAccessAuthIdentity = decoded.ServiceDataAccessAuthIdentity s.SubscriptionId = decoded.SubscriptionId + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties s.Tags = decoded.Tags var temp map[string]json.RawMessage @@ -78,11 +105,12 @@ func (s *AzureDataLakeGen2Datastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalDatastoreCredentialsImplementation(v) + impl, err := UnmarshalDatastoreCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'AzureDataLakeGen2Datastore': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azurefiledatastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azurefiledatastore.go index 1ae68d03d253..1a0a199e3c32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azurefiledatastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_azurefiledatastore.go @@ -20,11 +20,24 @@ type AzureFileDatastore struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from Datastore - Credentials DatastoreCredentials `json:"credentials"` - Description *string `json:"description,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s AzureFileDatastore) Datastore() BaseDatastoreImpl { + return BaseDatastoreImpl{ + Credentials: s.Credentials, + DatastoreType: s.DatastoreType, + Description: s.Description, + IsDefault: s.IsDefault, + Properties: s.Properties, + Tags: s.Tags, + } } var _ json.Marshaler = AzureFileDatastore{} @@ -38,9 +51,10 @@ func (s AzureFileDatastore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileDatastore: %+v", err) } + decoded["datastoreType"] = "AzureFile" encoded, err = json.Marshal(decoded) @@ -54,22 +68,35 @@ func (s AzureFileDatastore) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureFileDatastore{} func (s *AzureFileDatastore) UnmarshalJSON(bytes []byte) error { - type alias AzureFileDatastore - var decoded alias + var decoded struct { + AccountName string `json:"accountName"` + Endpoint *string `json:"endpoint,omitempty"` + FileShareName string `json:"fileShareName"` + Protocol *string `json:"protocol,omitempty"` + ResourceGroup *string `json:"resourceGroup,omitempty"` + ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` + SubscriptionId *string `json:"subscriptionId,omitempty"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureFileDatastore: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AccountName = decoded.AccountName - s.Description = decoded.Description s.Endpoint = decoded.Endpoint s.FileShareName = decoded.FileShareName - s.IsDefault = decoded.IsDefault - s.Properties = decoded.Properties s.Protocol = decoded.Protocol s.ResourceGroup = decoded.ResourceGroup s.ServiceDataAccessAuthIdentity = decoded.ServiceDataAccessAuthIdentity s.SubscriptionId = decoded.SubscriptionId + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties s.Tags = decoded.Tags var temp map[string]json.RawMessage @@ -78,11 +105,12 @@ func (s *AzureFileDatastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalDatastoreCredentialsImplementation(v) + impl, err := UnmarshalDatastoreCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'AzureFileDatastore': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastorecredentials.go index a0f735f5c430..1ebce41484cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastorecredentials.go @@ -19,6 +19,14 @@ type CertificateDatastoreCredentials struct { Thumbprint string `json:"thumbprint"` // Fields inherited from DatastoreCredentials + + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s CertificateDatastoreCredentials) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return BaseDatastoreCredentialsImpl{ + CredentialsType: s.CredentialsType, + } } var _ json.Marshaler = CertificateDatastoreCredentials{} @@ -32,9 +40,10 @@ func (s CertificateDatastoreCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CertificateDatastoreCredentials: %+v", err) } + decoded["credentialsType"] = "Certificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastoresecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastoresecrets.go index d56034ae15cb..46a603c5fb17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastoresecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_certificatedatastoresecrets.go @@ -14,6 +14,14 @@ type CertificateDatastoreSecrets struct { Certificate *string `json:"certificate,omitempty"` // Fields inherited from DatastoreSecrets + + SecretsType SecretsType `json:"secretsType"` +} + +func (s CertificateDatastoreSecrets) DatastoreSecrets() BaseDatastoreSecretsImpl { + return BaseDatastoreSecretsImpl{ + SecretsType: s.SecretsType, + } } var _ json.Marshaler = CertificateDatastoreSecrets{} @@ -27,9 +35,10 @@ func (s CertificateDatastoreSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CertificateDatastoreSecrets: %+v", err) } + decoded["secretsType"] = "Certificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastore.go index 61d64aba4c9c..e59f7b3f870f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastore.go @@ -10,18 +10,76 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Datastore interface { + Datastore() BaseDatastoreImpl } -// RawDatastoreImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Datastore = BaseDatastoreImpl{} + +type BaseDatastoreImpl struct { + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s BaseDatastoreImpl) Datastore() BaseDatastoreImpl { + return s +} + +var _ Datastore = RawDatastoreImpl{} + +// RawDatastoreImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDatastoreImpl struct { - Type string - Values map[string]interface{} + datastore BaseDatastoreImpl + Type string + Values map[string]interface{} +} + +func (s RawDatastoreImpl) Datastore() BaseDatastoreImpl { + return s.datastore +} + +var _ json.Unmarshaler = &BaseDatastoreImpl{} + +func (s *BaseDatastoreImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties + s.Tags = decoded.Tags + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseDatastoreImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["credentials"]; ok { + impl, err := UnmarshalDatastoreCredentialsImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Credentials' for 'BaseDatastoreImpl': %+v", err) + } + s.Credentials = impl + } + + return nil } -func unmarshalDatastoreImplementation(input []byte) (Datastore, error) { +func UnmarshalDatastoreImplementation(input []byte) (Datastore, error) { if input == nil { return nil, nil } @@ -31,9 +89,9 @@ func unmarshalDatastoreImplementation(input []byte) (Datastore, error) { return nil, fmt.Errorf("unmarshaling Datastore into map[string]interface: %+v", err) } - value, ok := temp["datastoreType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["datastoreType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureBlob") { @@ -76,10 +134,15 @@ func unmarshalDatastoreImplementation(input []byte) (Datastore, error) { return out, nil } - out := RawDatastoreImpl{ - Type: value, - Values: temp, + var parent BaseDatastoreImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDatastoreImpl: %+v", err) } - return out, nil + + return RawDatastoreImpl{ + datastore: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastorecredentials.go index 06a4bb3f51ba..ce1130b5e230 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastorecredentials.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DatastoreCredentials interface { + DatastoreCredentials() BaseDatastoreCredentialsImpl } -// RawDatastoreCredentialsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DatastoreCredentials = BaseDatastoreCredentialsImpl{} + +type BaseDatastoreCredentialsImpl struct { + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s BaseDatastoreCredentialsImpl) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return s +} + +var _ DatastoreCredentials = RawDatastoreCredentialsImpl{} + +// RawDatastoreCredentialsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDatastoreCredentialsImpl struct { - Type string - Values map[string]interface{} + datastoreCredentials BaseDatastoreCredentialsImpl + Type string + Values map[string]interface{} +} + +func (s RawDatastoreCredentialsImpl) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return s.datastoreCredentials } -func unmarshalDatastoreCredentialsImplementation(input []byte) (DatastoreCredentials, error) { +func UnmarshalDatastoreCredentialsImplementation(input []byte) (DatastoreCredentials, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalDatastoreCredentialsImplementation(input []byte) (DatastoreCredent return nil, fmt.Errorf("unmarshaling DatastoreCredentials into map[string]interface: %+v", err) } - value, ok := temp["credentialsType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["credentialsType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AccountKey") { @@ -76,10 +93,15 @@ func unmarshalDatastoreCredentialsImplementation(input []byte) (DatastoreCredent return out, nil } - out := RawDatastoreCredentialsImpl{ - Type: value, - Values: temp, + var parent BaseDatastoreCredentialsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDatastoreCredentialsImpl: %+v", err) } - return out, nil + + return RawDatastoreCredentialsImpl{ + datastoreCredentials: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoreresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoreresource.go index 31ea1d51fe74..d1ab2d2dcbf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoreresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoreresource.go @@ -21,10 +21,14 @@ type DatastoreResource struct { var _ json.Unmarshaler = &DatastoreResource{} func (s *DatastoreResource) UnmarshalJSON(bytes []byte) error { - type alias DatastoreResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DatastoreResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *DatastoreResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalDatastoreImplementation(v) + impl, err := UnmarshalDatastoreImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'DatastoreResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoresecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoresecrets.go index 117ac723e8ce..41a62c87eb4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoresecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_datastoresecrets.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DatastoreSecrets interface { + DatastoreSecrets() BaseDatastoreSecretsImpl } -// RawDatastoreSecretsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DatastoreSecrets = BaseDatastoreSecretsImpl{} + +type BaseDatastoreSecretsImpl struct { + SecretsType SecretsType `json:"secretsType"` +} + +func (s BaseDatastoreSecretsImpl) DatastoreSecrets() BaseDatastoreSecretsImpl { + return s +} + +var _ DatastoreSecrets = RawDatastoreSecretsImpl{} + +// RawDatastoreSecretsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDatastoreSecretsImpl struct { - Type string - Values map[string]interface{} + datastoreSecrets BaseDatastoreSecretsImpl + Type string + Values map[string]interface{} +} + +func (s RawDatastoreSecretsImpl) DatastoreSecrets() BaseDatastoreSecretsImpl { + return s.datastoreSecrets } -func unmarshalDatastoreSecretsImplementation(input []byte) (DatastoreSecrets, error) { +func UnmarshalDatastoreSecretsImplementation(input []byte) (DatastoreSecrets, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalDatastoreSecretsImplementation(input []byte) (DatastoreSecrets, er return nil, fmt.Errorf("unmarshaling DatastoreSecrets into map[string]interface: %+v", err) } - value, ok := temp["secretsType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["secretsType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AccountKey") { @@ -68,10 +85,15 @@ func unmarshalDatastoreSecretsImplementation(input []byte) (DatastoreSecrets, er return out, nil } - out := RawDatastoreSecretsImpl{ - Type: value, - Values: temp, + var parent BaseDatastoreSecretsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDatastoreSecretsImpl: %+v", err) } - return out, nil + + return RawDatastoreSecretsImpl{ + datastoreSecrets: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_lakehouseartifact.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_lakehouseartifact.go index a2d61278d979..63f49f8b1c12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_lakehouseartifact.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_lakehouseartifact.go @@ -13,7 +13,16 @@ var _ OneLakeArtifact = LakeHouseArtifact{} type LakeHouseArtifact struct { // Fields inherited from OneLakeArtifact - ArtifactName string `json:"artifactName"` + + ArtifactName string `json:"artifactName"` + ArtifactType OneLakeArtifactType `json:"artifactType"` +} + +func (s LakeHouseArtifact) OneLakeArtifact() BaseOneLakeArtifactImpl { + return BaseOneLakeArtifactImpl{ + ArtifactName: s.ArtifactName, + ArtifactType: s.ArtifactType, + } } var _ json.Marshaler = LakeHouseArtifact{} @@ -27,9 +36,10 @@ func (s LakeHouseArtifact) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LakeHouseArtifact: %+v", err) } + decoded["artifactType"] = "LakeHouse" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_nonedatastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_nonedatastorecredentials.go index 26499e05a90d..91781358c66b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_nonedatastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_nonedatastorecredentials.go @@ -13,6 +13,14 @@ var _ DatastoreCredentials = NoneDatastoreCredentials{} type NoneDatastoreCredentials struct { // Fields inherited from DatastoreCredentials + + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s NoneDatastoreCredentials) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return BaseDatastoreCredentialsImpl{ + CredentialsType: s.CredentialsType, + } } var _ json.Marshaler = NoneDatastoreCredentials{} @@ -26,9 +34,10 @@ func (s NoneDatastoreCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NoneDatastoreCredentials: %+v", err) } + decoded["credentialsType"] = "None" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakeartifact.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakeartifact.go index 9d76c7a39b4b..243f8c717d1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakeartifact.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakeartifact.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OneLakeArtifact interface { + OneLakeArtifact() BaseOneLakeArtifactImpl } -// RawOneLakeArtifactImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OneLakeArtifact = BaseOneLakeArtifactImpl{} + +type BaseOneLakeArtifactImpl struct { + ArtifactName string `json:"artifactName"` + ArtifactType OneLakeArtifactType `json:"artifactType"` +} + +func (s BaseOneLakeArtifactImpl) OneLakeArtifact() BaseOneLakeArtifactImpl { + return s +} + +var _ OneLakeArtifact = RawOneLakeArtifactImpl{} + +// RawOneLakeArtifactImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOneLakeArtifactImpl struct { - Type string - Values map[string]interface{} + oneLakeArtifact BaseOneLakeArtifactImpl + Type string + Values map[string]interface{} +} + +func (s RawOneLakeArtifactImpl) OneLakeArtifact() BaseOneLakeArtifactImpl { + return s.oneLakeArtifact } -func unmarshalOneLakeArtifactImplementation(input []byte) (OneLakeArtifact, error) { +func UnmarshalOneLakeArtifactImplementation(input []byte) (OneLakeArtifact, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalOneLakeArtifactImplementation(input []byte) (OneLakeArtifact, erro return nil, fmt.Errorf("unmarshaling OneLakeArtifact into map[string]interface: %+v", err) } - value, ok := temp["artifactType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["artifactType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "LakeHouse") { @@ -44,10 +62,15 @@ func unmarshalOneLakeArtifactImplementation(input []byte) (OneLakeArtifact, erro return out, nil } - out := RawOneLakeArtifactImpl{ - Type: value, - Values: temp, + var parent BaseOneLakeArtifactImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOneLakeArtifactImpl: %+v", err) } - return out, nil + + return RawOneLakeArtifactImpl{ + oneLakeArtifact: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakedatastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakedatastore.go index bd08eb54ce2e..255277e49119 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakedatastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_onelakedatastore.go @@ -17,11 +17,24 @@ type OneLakeDatastore struct { ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` // Fields inherited from Datastore - Credentials DatastoreCredentials `json:"credentials"` - Description *string `json:"description,omitempty"` - IsDefault *bool `json:"isDefault,omitempty"` - Properties *map[string]string `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` + + Credentials DatastoreCredentials `json:"credentials"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s OneLakeDatastore) Datastore() BaseDatastoreImpl { + return BaseDatastoreImpl{ + Credentials: s.Credentials, + DatastoreType: s.DatastoreType, + Description: s.Description, + IsDefault: s.IsDefault, + Properties: s.Properties, + Tags: s.Tags, + } } var _ json.Marshaler = OneLakeDatastore{} @@ -35,9 +48,10 @@ func (s OneLakeDatastore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling OneLakeDatastore: %+v", err) } + decoded["datastoreType"] = "OneLake" encoded, err = json.Marshal(decoded) @@ -51,18 +65,27 @@ func (s OneLakeDatastore) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &OneLakeDatastore{} func (s *OneLakeDatastore) UnmarshalJSON(bytes []byte) error { - type alias OneLakeDatastore - var decoded alias + var decoded struct { + Endpoint *string `json:"endpoint,omitempty"` + OneLakeWorkspaceName string `json:"oneLakeWorkspaceName"` + ServiceDataAccessAuthIdentity *ServiceDataAccessAuthIdentity `json:"serviceDataAccessAuthIdentity,omitempty"` + DatastoreType DatastoreType `json:"datastoreType"` + Description *string `json:"description,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Properties *map[string]string `json:"properties,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into OneLakeDatastore: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.Description = decoded.Description s.Endpoint = decoded.Endpoint - s.IsDefault = decoded.IsDefault s.OneLakeWorkspaceName = decoded.OneLakeWorkspaceName - s.Properties = decoded.Properties s.ServiceDataAccessAuthIdentity = decoded.ServiceDataAccessAuthIdentity + s.DatastoreType = decoded.DatastoreType + s.Description = decoded.Description + s.IsDefault = decoded.IsDefault + s.Properties = decoded.Properties s.Tags = decoded.Tags var temp map[string]json.RawMessage @@ -71,7 +94,7 @@ func (s *OneLakeDatastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["artifact"]; ok { - impl, err := unmarshalOneLakeArtifactImplementation(v) + impl, err := UnmarshalOneLakeArtifactImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Artifact' for 'OneLakeDatastore': %+v", err) } @@ -79,11 +102,12 @@ func (s *OneLakeDatastore) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["credentials"]; ok { - impl, err := unmarshalDatastoreCredentialsImplementation(v) + impl, err := UnmarshalDatastoreCredentialsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Credentials' for 'OneLakeDatastore': %+v", err) } s.Credentials = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastorecredentials.go index 59e2e476fba7..a2ddc25f4b7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastorecredentials.go @@ -14,6 +14,14 @@ type SasDatastoreCredentials struct { Secrets SasDatastoreSecrets `json:"secrets"` // Fields inherited from DatastoreCredentials + + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s SasDatastoreCredentials) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return BaseDatastoreCredentialsImpl{ + CredentialsType: s.CredentialsType, + } } var _ json.Marshaler = SasDatastoreCredentials{} @@ -27,9 +35,10 @@ func (s SasDatastoreCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SasDatastoreCredentials: %+v", err) } + decoded["credentialsType"] = "Sas" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastoresecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastoresecrets.go index f99c98f83712..bf5cac042a7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastoresecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_sasdatastoresecrets.go @@ -14,6 +14,14 @@ type SasDatastoreSecrets struct { SasToken *string `json:"sasToken,omitempty"` // Fields inherited from DatastoreSecrets + + SecretsType SecretsType `json:"secretsType"` +} + +func (s SasDatastoreSecrets) DatastoreSecrets() BaseDatastoreSecretsImpl { + return BaseDatastoreSecretsImpl{ + SecretsType: s.SecretsType, + } } var _ json.Marshaler = SasDatastoreSecrets{} @@ -27,9 +35,10 @@ func (s SasDatastoreSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SasDatastoreSecrets: %+v", err) } + decoded["secretsType"] = "Sas" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastorecredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastorecredentials.go index 2872119cccbb..1e38e43f119f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastorecredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastorecredentials.go @@ -18,6 +18,14 @@ type ServicePrincipalDatastoreCredentials struct { TenantId string `json:"tenantId"` // Fields inherited from DatastoreCredentials + + CredentialsType CredentialsType `json:"credentialsType"` +} + +func (s ServicePrincipalDatastoreCredentials) DatastoreCredentials() BaseDatastoreCredentialsImpl { + return BaseDatastoreCredentialsImpl{ + CredentialsType: s.CredentialsType, + } } var _ json.Marshaler = ServicePrincipalDatastoreCredentials{} @@ -31,9 +39,10 @@ func (s ServicePrincipalDatastoreCredentials) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalDatastoreCredentials: %+v", err) } + decoded["credentialsType"] = "ServicePrincipal" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastoresecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastoresecrets.go index d2466b0f1dae..e7767ab1806b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastoresecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/model_serviceprincipaldatastoresecrets.go @@ -14,6 +14,14 @@ type ServicePrincipalDatastoreSecrets struct { ClientSecret *string `json:"clientSecret,omitempty"` // Fields inherited from DatastoreSecrets + + SecretsType SecretsType `json:"secretsType"` +} + +func (s ServicePrincipalDatastoreSecrets) DatastoreSecrets() BaseDatastoreSecretsImpl { + return BaseDatastoreSecretsImpl{ + SecretsType: s.SecretsType, + } } var _ json.Marshaler = ServicePrincipalDatastoreSecrets{} @@ -27,9 +35,10 @@ func (s ServicePrincipalDatastoreSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalDatastoreSecrets: %+v", err) } + decoded["secretsType"] = "ServicePrincipal" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/version.go index 8ba0babebfa6..e8fd8b49d58e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datastore/version.go @@ -1,12 +1,10 @@ package datastore -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datastore/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datastore/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/README.md index eb20a5c5504f..c05bb4a2cb7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes` Documentation -The `machinelearningcomputes` SDK allows for interaction with the Azure Resource Manager Service `machinelearningservices` (API Version `2024-04-01`). +The `machinelearningcomputes` SDK allows for interaction with Azure Resource Manager `machinelearningservices` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") payload := machinelearningcomputes.ComputeResource{ // ... @@ -41,7 +41,7 @@ if err := client.ComputeCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") if err := client.ComputeDeleteThenPoll(ctx, id, machinelearningcomputes.DefaultComputeDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.ComputeDeleteThenPoll(ctx, id, machinelearningcomputes.DefaultC ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") read, err := client.ComputeGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := machinelearningcomputes.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ComputeList(ctx, id, machinelearningcomputes.DefaultComputeListOperationOptions())` can be used to do batched pagination items, err := client.ComputeListComplete(ctx, id, machinelearningcomputes.DefaultComputeListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") read, err := client.ComputeListKeys(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") // alternatively `client.ComputeListNodes(ctx, id)` can be used to do batched pagination items, err := client.ComputeListNodesComplete(ctx, id) @@ -119,7 +119,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") if err := client.ComputeRestartThenPoll(ctx, id); err != nil { // handle the error @@ -131,7 +131,7 @@ if err := client.ComputeRestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") if err := client.ComputeStartThenPoll(ctx, id); err != nil { // handle the error @@ -143,7 +143,7 @@ if err := client.ComputeStartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") if err := client.ComputeStopThenPoll(ctx, id); err != nil { // handle the error @@ -155,7 +155,7 @@ if err := client.ComputeStopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "computeValue") +id := machinelearningcomputes.NewComputeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "computeName") payload := machinelearningcomputes.ClusterUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/client.go index 84356e1d8d55..7c06a2fa1115 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/client.go @@ -15,7 +15,7 @@ type MachineLearningComputesClient struct { } func NewMachineLearningComputesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachineLearningComputesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machinelearningcomputes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machinelearningcomputes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachineLearningComputesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_compute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_compute.go index bc40b6f35c74..6c2325adcfdb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_compute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_compute.go @@ -44,7 +44,7 @@ func ParseComputeID(input string) (*ComputeId, error) { } id := ComputeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseComputeIDInsensitively(input string) (*ComputeId, error) { } id := ComputeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ComputeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticComputes", "computes", "computes"), - resourceids.UserSpecifiedSegment("computeName", "computeValue"), + resourceids.UserSpecifiedSegment("computeName", "computeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_workspace.go index 3aad50eb7f3d..a0ce39bc1fc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go index dc6079dda521..bd200979d825 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computedelete.go @@ -36,6 +36,7 @@ func (o ComputeDeleteOperationOptions) ToHeaders() *client.Headers { func (o ComputeDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computeget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computeget.go index e893e2799b41..efcd93aead0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computeget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computeget.go @@ -45,7 +45,6 @@ func (c MachineLearningComputesClient) ComputeGet(ctx context.Context, id Comput var model ComputeResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go index 8641953d2f81..be727b9ad2fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelist.go @@ -39,6 +39,7 @@ func (o ComputeListOperationOptions) ToHeaders() *client.Headers { func (o ComputeListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistkeys.go index ea4b0e26f9ca..0ba7e650f661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/method_computelistkeys.go @@ -16,7 +16,7 @@ import ( type ComputeListKeysOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ComputeSecrets + Model ComputeSecrets } // ComputeListKeys ... @@ -49,11 +49,11 @@ func (c MachineLearningComputesClient) ComputeListKeys(ctx context.Context, id C if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalComputeSecretsImplementation(respObj) + model, err := UnmarshalComputeSecretsImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_aks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_aks.go index c1e56af49cac..47e58464f4ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_aks.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_aks.go @@ -17,7 +17,9 @@ type AKS struct { Properties *AKSSchemaProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type AKS struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s AKS) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *AKS) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s AKS) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AKS: %+v", err) } + decoded["computeType"] = "AKS" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_akscomputesecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_akscomputesecrets.go index 1631eeb546fa..bc1d732f8661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_akscomputesecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_akscomputesecrets.go @@ -16,6 +16,14 @@ type AksComputeSecrets struct { UserKubeConfig *string `json:"userKubeConfig,omitempty"` // Fields inherited from ComputeSecrets + + ComputeType ComputeType `json:"computeType"` +} + +func (s AksComputeSecrets) ComputeSecrets() BaseComputeSecretsImpl { + return BaseComputeSecretsImpl{ + ComputeType: s.ComputeType, + } } var _ json.Marshaler = AksComputeSecrets{} @@ -29,9 +37,10 @@ func (s AksComputeSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AksComputeSecrets: %+v", err) } + decoded["computeType"] = "AKS" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_amlcompute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_amlcompute.go index 3f1c2957bf47..bb3a49f8bdcf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_amlcompute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_amlcompute.go @@ -17,7 +17,9 @@ type AmlCompute struct { Properties *AmlComputeProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type AmlCompute struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s AmlCompute) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *AmlCompute) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s AmlCompute) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AmlCompute: %+v", err) } + decoded["computeType"] = "AmlCompute" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_compute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_compute.go index 36f9d37457de..66bea5571775 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_compute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_compute.go @@ -10,18 +10,44 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Compute interface { + Compute() BaseComputeImpl } -// RawComputeImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Compute = BaseComputeImpl{} + +type BaseComputeImpl struct { + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` + CreatedOn *string `json:"createdOn,omitempty"` + Description *string `json:"description,omitempty"` + DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` + IsAttachedCompute *bool `json:"isAttachedCompute,omitempty"` + ModifiedOn *string `json:"modifiedOn,omitempty"` + ProvisioningErrors *[]ErrorResponse `json:"provisioningErrors,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceId *string `json:"resourceId,omitempty"` +} + +func (s BaseComputeImpl) Compute() BaseComputeImpl { + return s +} + +var _ Compute = RawComputeImpl{} + +// RawComputeImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawComputeImpl struct { - Type string - Values map[string]interface{} + compute BaseComputeImpl + Type string + Values map[string]interface{} } -func unmarshalComputeImplementation(input []byte) (Compute, error) { +func (s RawComputeImpl) Compute() BaseComputeImpl { + return s.compute +} + +func UnmarshalComputeImplementation(input []byte) (Compute, error) { if input == nil { return nil, nil } @@ -31,9 +57,9 @@ func unmarshalComputeImplementation(input []byte) (Compute, error) { return nil, fmt.Errorf("unmarshaling Compute into map[string]interface: %+v", err) } - value, ok := temp["computeType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["computeType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AKS") { @@ -116,10 +142,15 @@ func unmarshalComputeImplementation(input []byte) (Compute, error) { return out, nil } - out := RawComputeImpl{ - Type: value, - Values: temp, + var parent BaseComputeImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseComputeImpl: %+v", err) } - return out, nil + + return RawComputeImpl{ + compute: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeinstance.go index 292c0c1a3753..100545838620 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeinstance.go @@ -17,7 +17,9 @@ type ComputeInstance struct { Properties *ComputeInstanceProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type ComputeInstance struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s ComputeInstance) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *ComputeInstance) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s ComputeInstance) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ComputeInstance: %+v", err) } + decoded["computeType"] = "ComputeInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeresource.go index 4d4a4646b3ee..83405c3405a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computeresource.go @@ -26,10 +26,18 @@ type ComputeResource struct { var _ json.Unmarshaler = &ComputeResource{} func (s *ComputeResource) UnmarshalJSON(bytes []byte) error { - type alias ComputeResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Sku *Sku `json:"sku,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ComputeResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -47,11 +55,12 @@ func (s *ComputeResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalComputeImplementation(v) + impl, err := UnmarshalComputeImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ComputeResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computesecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computesecrets.go index 9df90b89da3b..411d4b970b8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computesecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_computesecrets.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ComputeSecrets interface { + ComputeSecrets() BaseComputeSecretsImpl } -// RawComputeSecretsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ComputeSecrets = BaseComputeSecretsImpl{} + +type BaseComputeSecretsImpl struct { + ComputeType ComputeType `json:"computeType"` +} + +func (s BaseComputeSecretsImpl) ComputeSecrets() BaseComputeSecretsImpl { + return s +} + +var _ ComputeSecrets = RawComputeSecretsImpl{} + +// RawComputeSecretsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawComputeSecretsImpl struct { - Type string - Values map[string]interface{} + computeSecrets BaseComputeSecretsImpl + Type string + Values map[string]interface{} +} + +func (s RawComputeSecretsImpl) ComputeSecrets() BaseComputeSecretsImpl { + return s.computeSecrets } -func unmarshalComputeSecretsImplementation(input []byte) (ComputeSecrets, error) { +func UnmarshalComputeSecretsImplementation(input []byte) (ComputeSecrets, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalComputeSecretsImplementation(input []byte) (ComputeSecrets, error) return nil, fmt.Errorf("unmarshaling ComputeSecrets into map[string]interface: %+v", err) } - value, ok := temp["computeType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["computeType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AKS") { @@ -60,10 +77,15 @@ func unmarshalComputeSecretsImplementation(input []byte) (ComputeSecrets, error) return out, nil } - out := RawComputeSecretsImpl{ - Type: value, - Values: temp, + var parent BaseComputeSecretsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseComputeSecretsImpl: %+v", err) } - return out, nil + + return RawComputeSecretsImpl{ + computeSecrets: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databricks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databricks.go index 3018dda2dea1..6ead8d21e030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databricks.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databricks.go @@ -17,7 +17,9 @@ type Databricks struct { Properties *DatabricksProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type Databricks struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s Databricks) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *Databricks) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s Databricks) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Databricks: %+v", err) } + decoded["computeType"] = "Databricks" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databrickscomputesecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databrickscomputesecrets.go index 8beb92158896..c076e457360a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databrickscomputesecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_databrickscomputesecrets.go @@ -14,6 +14,14 @@ type DatabricksComputeSecrets struct { DatabricksAccessToken *string `json:"databricksAccessToken,omitempty"` // Fields inherited from ComputeSecrets + + ComputeType ComputeType `json:"computeType"` +} + +func (s DatabricksComputeSecrets) ComputeSecrets() BaseComputeSecretsImpl { + return BaseComputeSecretsImpl{ + ComputeType: s.ComputeType, + } } var _ json.Marshaler = DatabricksComputeSecrets{} @@ -27,9 +35,10 @@ func (s DatabricksComputeSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DatabricksComputeSecrets: %+v", err) } + decoded["computeType"] = "Databricks" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datafactory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datafactory.go index 25a38345b026..bd37468d428c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datafactory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datafactory.go @@ -16,7 +16,9 @@ var _ Compute = DataFactory{} type DataFactory struct { // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -27,6 +29,21 @@ type DataFactory struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s DataFactory) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *DataFactory) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -62,9 +79,10 @@ func (s DataFactory) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DataFactory: %+v", err) } + decoded["computeType"] = "DataFactory" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datalakeanalytics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datalakeanalytics.go index 346316396bdd..9c304ddb04e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datalakeanalytics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_datalakeanalytics.go @@ -17,7 +17,9 @@ type DataLakeAnalytics struct { Properties *DataLakeAnalyticsSchemaProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type DataLakeAnalytics struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s DataLakeAnalytics) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *DataLakeAnalytics) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s DataLakeAnalytics) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DataLakeAnalytics: %+v", err) } + decoded["computeType"] = "DataLakeAnalytics" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_hdinsight.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_hdinsight.go index d0034c74c633..4e043b808fb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_hdinsight.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_hdinsight.go @@ -17,7 +17,9 @@ type HDInsight struct { Properties *HDInsightProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type HDInsight struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s HDInsight) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *HDInsight) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s HDInsight) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HDInsight: %+v", err) } + decoded["computeType"] = "HDInsight" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_kubernetes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_kubernetes.go index 7818fb5fdf9d..f74ac98dbde0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_kubernetes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_kubernetes.go @@ -17,7 +17,9 @@ type Kubernetes struct { Properties *KubernetesProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type Kubernetes struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s Kubernetes) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *Kubernetes) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s Kubernetes) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Kubernetes: %+v", err) } + decoded["computeType"] = "Kubernetes" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_synapsespark.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_synapsespark.go index 494454096eac..54cc3af02024 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_synapsespark.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_synapsespark.go @@ -17,7 +17,9 @@ type SynapseSpark struct { Properties *SynapseSparkProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type SynapseSpark struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s SynapseSpark) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *SynapseSpark) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s SynapseSpark) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SynapseSpark: %+v", err) } + decoded["computeType"] = "SynapseSpark" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachine.go index 6a07ffd4f6e6..5ab5de8c18fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachine.go @@ -17,7 +17,9 @@ type VirtualMachine struct { Properties *VirtualMachineSchemaProperties `json:"properties,omitempty"` // Fields inherited from Compute + ComputeLocation *string `json:"computeLocation,omitempty"` + ComputeType ComputeType `json:"computeType"` CreatedOn *string `json:"createdOn,omitempty"` Description *string `json:"description,omitempty"` DisableLocalAuth *bool `json:"disableLocalAuth,omitempty"` @@ -28,6 +30,21 @@ type VirtualMachine struct { ResourceId *string `json:"resourceId,omitempty"` } +func (s VirtualMachine) Compute() BaseComputeImpl { + return BaseComputeImpl{ + ComputeLocation: s.ComputeLocation, + ComputeType: s.ComputeType, + CreatedOn: s.CreatedOn, + Description: s.Description, + DisableLocalAuth: s.DisableLocalAuth, + IsAttachedCompute: s.IsAttachedCompute, + ModifiedOn: s.ModifiedOn, + ProvisioningErrors: s.ProvisioningErrors, + ProvisioningState: s.ProvisioningState, + ResourceId: s.ResourceId, + } +} + func (o *VirtualMachine) GetCreatedOnAsTime() (*time.Time, error) { if o.CreatedOn == nil { return nil, nil @@ -63,9 +80,10 @@ func (s VirtualMachine) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VirtualMachine: %+v", err) } + decoded["computeType"] = "VirtualMachine" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachinesecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachinesecrets.go index 9db81884f8fe..b31384b4a2e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachinesecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/model_virtualmachinesecrets.go @@ -14,6 +14,14 @@ type VirtualMachineSecrets struct { AdministratorAccount *VirtualMachineSshCredentials `json:"administratorAccount,omitempty"` // Fields inherited from ComputeSecrets + + ComputeType ComputeType `json:"computeType"` +} + +func (s VirtualMachineSecrets) ComputeSecrets() BaseComputeSecretsImpl { + return BaseComputeSecretsImpl{ + ComputeType: s.ComputeType, + } } var _ json.Marshaler = VirtualMachineSecrets{} @@ -27,9 +35,10 @@ func (s VirtualMachineSecrets) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VirtualMachineSecrets: %+v", err) } + decoded["computeType"] = "VirtualMachine" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/version.go index 317da010a626..052dae914aef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/machinelearningcomputes/version.go @@ -1,12 +1,10 @@ package machinelearningcomputes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machinelearningcomputes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machinelearningcomputes/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/README.md index 3b3a199388df..87e1b5d81967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `machinelearningservices` (API Version `2024-04-01`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `machinelearningservices` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.DiagnoseWorkspaceParameters{ // ... @@ -71,7 +71,7 @@ if err := client.DiagnoseThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -137,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListNotebookAccessToken(ctx, id) if err != nil { @@ -153,7 +153,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.ResyncKeysThenPoll(ctx, id); err != nil { // handle the error @@ -165,7 +165,7 @@ if err := client.ResyncKeysThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspaceUpdateParameters{ // ... @@ -182,7 +182,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.WorkspaceFeaturesList(ctx, id)` can be used to do batched pagination items, err := client.WorkspaceFeaturesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/id_workspace.go index a9e58042a496..4a4ee817b3a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMachineLearningServices", "Microsoft.MachineLearningServices", "Microsoft.MachineLearningServices"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go index b41fca1fe8c2..5297485af302 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go index f485d22dee78..dc63c4f42e7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go index 424d45bb49bf..39d3586061e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listkeys.go index fa4506324614..54b28298920e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listkeys.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) ListKeys(ctx context.Context, id WorkspaceId) (result var model ListWorkspaceKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listnotebookaccesstoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listnotebookaccesstoken.go index f699e11bbf48..d6f35efb8b25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listnotebookaccesstoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/method_listnotebookaccesstoken.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) ListNotebookAccessToken(ctx context.Context, id Worksp var model NotebookAccessTokenResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_fqdnoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_fqdnoutboundrule.go index 9297fe8225d0..71707cd03540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_fqdnoutboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_fqdnoutboundrule.go @@ -14,8 +14,18 @@ type FqdnOutboundRule struct { Destination *string `json:"destination,omitempty"` // Fields inherited from OutboundRule + Category *RuleCategory `json:"category,omitempty"` Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s FqdnOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } } var _ json.Marshaler = FqdnOutboundRule{} @@ -29,9 +39,10 @@ func (s FqdnOutboundRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FqdnOutboundRule: %+v", err) } + decoded["type"] = "FQDN" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_managednetworksettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_managednetworksettings.go index c4476d339154..f19642f9be97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_managednetworksettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_managednetworksettings.go @@ -18,10 +18,13 @@ type ManagedNetworkSettings struct { var _ json.Unmarshaler = &ManagedNetworkSettings{} func (s *ManagedNetworkSettings) UnmarshalJSON(bytes []byte) error { - type alias ManagedNetworkSettings - var decoded alias + var decoded struct { + IsolationMode *IsolationMode `json:"isolationMode,omitempty"` + NetworkId *string `json:"networkId,omitempty"` + Status *ManagedNetworkProvisionStatus `json:"status,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ManagedNetworkSettings: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.IsolationMode = decoded.IsolationMode @@ -41,7 +44,7 @@ func (s *ManagedNetworkSettings) UnmarshalJSON(bytes []byte) error { output := make(map[string]OutboundRule) for key, val := range dictionaryTemp { - impl, err := unmarshalOutboundRuleImplementation(val) + impl, err := UnmarshalOutboundRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling key %q field 'OutboundRules' for 'ManagedNetworkSettings': %+v", key, err) } @@ -49,5 +52,6 @@ func (s *ManagedNetworkSettings) UnmarshalJSON(bytes []byte) error { } s.OutboundRules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_outboundrule.go index d38c04e13acc..e660473ae843 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_outboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_outboundrule.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OutboundRule interface { + OutboundRule() BaseOutboundRuleImpl } -// RawOutboundRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OutboundRule = BaseOutboundRuleImpl{} + +type BaseOutboundRuleImpl struct { + Category *RuleCategory `json:"category,omitempty"` + Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s BaseOutboundRuleImpl) OutboundRule() BaseOutboundRuleImpl { + return s +} + +var _ OutboundRule = RawOutboundRuleImpl{} + +// RawOutboundRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOutboundRuleImpl struct { - Type string - Values map[string]interface{} + outboundRule BaseOutboundRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawOutboundRuleImpl) OutboundRule() BaseOutboundRuleImpl { + return s.outboundRule } -func unmarshalOutboundRuleImplementation(input []byte) (OutboundRule, error) { +func UnmarshalOutboundRuleImplementation(input []byte) (OutboundRule, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalOutboundRuleImplementation(input []byte) (OutboundRule, error) { return nil, fmt.Errorf("unmarshaling OutboundRule into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FQDN") { @@ -60,10 +79,15 @@ func unmarshalOutboundRuleImplementation(input []byte) (OutboundRule, error) { return out, nil } - out := RawOutboundRuleImpl{ - Type: value, - Values: temp, + var parent BaseOutboundRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOutboundRuleImpl: %+v", err) } - return out, nil + + return RawOutboundRuleImpl{ + outboundRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_privateendpointoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_privateendpointoutboundrule.go index a631fb0a147c..6eaafd7d540a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_privateendpointoutboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_privateendpointoutboundrule.go @@ -14,8 +14,18 @@ type PrivateEndpointOutboundRule struct { Destination *PrivateEndpointDestination `json:"destination,omitempty"` // Fields inherited from OutboundRule + Category *RuleCategory `json:"category,omitempty"` Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s PrivateEndpointOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } } var _ json.Marshaler = PrivateEndpointOutboundRule{} @@ -29,9 +39,10 @@ func (s PrivateEndpointOutboundRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PrivateEndpointOutboundRule: %+v", err) } + decoded["type"] = "PrivateEndpoint" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_servicetagoutboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_servicetagoutboundrule.go index d3b6e8a11841..e036ba014635 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_servicetagoutboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/model_servicetagoutboundrule.go @@ -14,8 +14,18 @@ type ServiceTagOutboundRule struct { Destination *ServiceTagDestination `json:"destination,omitempty"` // Fields inherited from OutboundRule + Category *RuleCategory `json:"category,omitempty"` Status *RuleStatus `json:"status,omitempty"` + Type RuleType `json:"type"` +} + +func (s ServiceTagOutboundRule) OutboundRule() BaseOutboundRuleImpl { + return BaseOutboundRuleImpl{ + Category: s.Category, + Status: s.Status, + Type: s.Type, + } } var _ json.Marshaler = ServiceTagOutboundRule{} @@ -29,9 +39,10 @@ func (s ServiceTagOutboundRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceTagOutboundRule: %+v", err) } + decoded["type"] = "ServiceTag" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/version.go index 04f6dba89bf3..7ddd71d6a908 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/README.md index a9af7caa3c73..afbec4f1a13b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments` Documentation -The `configurationassignments` SDK allows for interaction with the Azure Resource Manager Service `maintenance` (API Version `2023-04-01`). +The `configurationassignments` SDK allows for interaction with Azure Resource Manager `maintenance` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") read, err := client.DeleteParent(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentName") read, err := client.ForResourceGroupDelete(ctx, id) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentName") read, err := client.ForResourceGroupGet(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewProviderConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -173,7 +173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentValue") +id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -194,7 +194,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentValue") +id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentName") read, err := client.ForSubscriptionsDelete(ctx, id) if err != nil { @@ -210,7 +210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentValue") +id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentName") read, err := client.ForSubscriptionsGet(ctx, id) if err != nil { @@ -226,7 +226,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentValue") +id := configurationassignments.NewConfigurationAssignmentID("12345678-1234-9876-4563-123456789012", "configurationAssignmentName") payload := configurationassignments.ConfigurationAssignment{ // ... @@ -247,7 +247,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -263,7 +263,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentValue") +id := configurationassignments.NewScopedConfigurationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "configurationAssignmentName") read, err := client.GetParent(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/client.go index dbc7cab57fc6..82eb19697805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/client.go @@ -15,7 +15,7 @@ type ConfigurationAssignmentsClient struct { } func NewConfigurationAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurationassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurationassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_configurationassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_configurationassignment.go index 7d58ec68f682..e515156cc760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_configurationassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_configurationassignment.go @@ -40,7 +40,7 @@ func ParseConfigurationAssignmentID(input string) (*ConfigurationAssignmentId, e } id := ConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseConfigurationAssignmentIDInsensitively(input string) (*ConfigurationAs } id := ConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ConfigurationAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaintenance", "Microsoft.Maintenance", "Microsoft.Maintenance"), resourceids.StaticSegment("staticConfigurationAssignments", "configurationAssignments", "configurationAssignments"), - resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_providerconfigurationassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_providerconfigurationassignment.go index 93cf56440134..b27ae1094e82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_providerconfigurationassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_providerconfigurationassignment.go @@ -42,7 +42,7 @@ func ParseProviderConfigurationAssignmentID(input string) (*ProviderConfiguratio } id := ProviderConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderConfigurationAssignmentIDInsensitively(input string) (*Provide } id := ProviderConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderConfigurationAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaintenance", "Microsoft.Maintenance", "Microsoft.Maintenance"), resourceids.StaticSegment("staticConfigurationAssignments", "configurationAssignments", "configurationAssignments"), - resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_scopedconfigurationassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_scopedconfigurationassignment.go index 5116ef22e5cf..65433eb0de38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_scopedconfigurationassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/id_scopedconfigurationassignment.go @@ -40,7 +40,7 @@ func ParseScopedConfigurationAssignmentID(input string) (*ScopedConfigurationAss } id := ScopedConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedConfigurationAssignmentIDInsensitively(input string) (*ScopedCon } id := ScopedConfigurationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedConfigurationAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaintenance", "Microsoft.Maintenance", "Microsoft.Maintenance"), resourceids.StaticSegment("staticConfigurationAssignments", "configurationAssignments", "configurationAssignments"), - resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentValue"), + resourceids.UserSpecifiedSegment("configurationAssignmentName", "configurationAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdate.go index d9d54d0b881d..ef6801b01958 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationAssignmentsClient) CreateOrUpdate(ctx context.Context, id S var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdateparent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdateparent.go index af6255d0ab41..98b92e946c8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdateparent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_createorupdateparent.go @@ -50,7 +50,6 @@ func (c ConfigurationAssignmentsClient) CreateOrUpdateParent(ctx context.Context var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_delete.go index 4158a6dc0dff..e541d4b6ec13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_delete.go @@ -46,7 +46,6 @@ func (c ConfigurationAssignmentsClient) Delete(ctx context.Context, id ScopedCon var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_deleteparent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_deleteparent.go index 0d55ebaa0286..62f7f745d932 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_deleteparent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_deleteparent.go @@ -46,7 +46,6 @@ func (c ConfigurationAssignmentsClient) DeleteParent(ctx context.Context, id Sco var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupcreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupcreateorupdate.go index f08bf0525dcf..3d72b062e26f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupcreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupcreateorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationAssignmentsClient) ForResourceGroupCreateOrUpdate(ctx conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupdelete.go index dfc16be64b06..a9edef543d31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupdelete.go @@ -46,7 +46,6 @@ func (c ConfigurationAssignmentsClient) ForResourceGroupDelete(ctx context.Conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupget.go index 0a50dce451e0..29e7180163fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupget.go @@ -45,7 +45,6 @@ func (c ConfigurationAssignmentsClient) ForResourceGroupGet(ctx context.Context, var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupupdate.go index a652b5940e9f..45c4c8244c06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forresourcegroupupdate.go @@ -49,7 +49,6 @@ func (c ConfigurationAssignmentsClient) ForResourceGroupUpdate(ctx context.Conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionscreateorupdate.go index e07190c21dea..b1e1f4cf4884 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionscreateorupdate.go @@ -50,7 +50,6 @@ func (c ConfigurationAssignmentsClient) ForSubscriptionsCreateOrUpdate(ctx conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsdelete.go index 5b48859596f5..9acc5322ac4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsdelete.go @@ -46,7 +46,6 @@ func (c ConfigurationAssignmentsClient) ForSubscriptionsDelete(ctx context.Conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsget.go index 5f0e88e7f11c..53aac27c4d1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsget.go @@ -45,7 +45,6 @@ func (c ConfigurationAssignmentsClient) ForSubscriptionsGet(ctx context.Context, var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsupdate.go index e1bf98b854a8..2899b4b5abb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_forsubscriptionsupdate.go @@ -49,7 +49,6 @@ func (c ConfigurationAssignmentsClient) ForSubscriptionsUpdate(ctx context.Conte var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_get.go index cb060af03834..d3f358564998 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationAssignmentsClient) Get(ctx context.Context, id ScopedConfig var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_getparent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_getparent.go index 961071ecc986..602c54379e3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_getparent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_getparent.go @@ -45,7 +45,6 @@ func (c ConfigurationAssignmentsClient) GetParent(ctx context.Context, id Scoped var model ConfigurationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_list.go index 894ad2592c8a..22babd01ca9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_list.go @@ -47,7 +47,6 @@ func (c ConfigurationAssignmentsClient) List(ctx context.Context, id commonids.S var model ListConfigurationAssignmentsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_listparent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_listparent.go index 0a06ca63c37e..bcaf5d474688 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_listparent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_listparent.go @@ -47,7 +47,6 @@ func (c ConfigurationAssignmentsClient) ListParent(ctx context.Context, id commo var model ListConfigurationAssignmentsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_withinsubscriptionlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_withinsubscriptionlist.go index ef7117fe32f8..283f01c85cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_withinsubscriptionlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/method_withinsubscriptionlist.go @@ -47,7 +47,6 @@ func (c ConfigurationAssignmentsClient) WithinSubscriptionList(ctx context.Conte var model ListConfigurationAssignmentsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/version.go index ba98b64438e4..910bdf78d1cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/configurationassignments/version.go @@ -1,12 +1,10 @@ package configurationassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurationassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurationassignments/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md index 0ffe55c33617..744882bfb6bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations` Documentation -The `maintenanceconfigurations` SDK allows for interaction with the Azure Resource Manager Service `maintenance` (API Version `2023-04-01`). +The `maintenanceconfigurations` SDK allows for interaction with Azure Resource Manager `maintenance` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := maintenanceconfigurations.MaintenanceConfiguration{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "maintenanceConfigurationValue") +id := maintenanceconfigurations.NewMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := maintenanceconfigurations.MaintenanceConfiguration{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/client.go index 4d799de617cf..bcb48de37791 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/client.go @@ -15,7 +15,7 @@ type MaintenanceConfigurationsClient struct { } func NewMaintenanceConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*MaintenanceConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "maintenanceconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MaintenanceConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/id_maintenanceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/id_maintenanceconfiguration.go index ce2ff107815c..41abfe52ae63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/id_maintenanceconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/id_maintenanceconfiguration.go @@ -42,7 +42,7 @@ func ParseMaintenanceConfigurationID(input string) (*MaintenanceConfigurationId, } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMaintenanceConfigurationIDInsensitively(input string) (*MaintenanceCon } id := MaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MaintenanceConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaintenance", "Microsoft.Maintenance", "Microsoft.Maintenance"), resourceids.StaticSegment("staticMaintenanceConfigurations", "maintenanceConfigurations", "maintenanceConfigurations"), - resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "maintenanceConfigurationValue"), + resourceids.UserSpecifiedSegment("maintenanceConfigurationName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_createorupdate.go index 6f8389d858df..a6e8fc757223 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c MaintenanceConfigurationsClient) CreateOrUpdate(ctx context.Context, id var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_delete.go index a00ea8abc559..17f8294a585f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_delete.go @@ -46,7 +46,6 @@ func (c MaintenanceConfigurationsClient) Delete(ctx context.Context, id Maintena var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_forresourcegrouplist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_forresourcegrouplist.go index e2a9aedb64c0..49f75ba600d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_forresourcegrouplist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_forresourcegrouplist.go @@ -47,7 +47,6 @@ func (c MaintenanceConfigurationsClient) ForResourceGroupList(ctx context.Contex var model ListMaintenanceConfigurationsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_get.go index 6ea658ab6d50..3989652ca968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c MaintenanceConfigurationsClient) Get(ctx context.Context, id Maintenance var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_list.go index a742d8081339..89717caeb57a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_list.go @@ -47,7 +47,6 @@ func (c MaintenanceConfigurationsClient) List(ctx context.Context, id commonids. var model ListMaintenanceConfigurationsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_update.go index 61b093092749..5d72a3a8cb90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/method_update.go @@ -49,7 +49,6 @@ func (c MaintenanceConfigurationsClient) Update(ctx context.Context, id Maintena var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/version.go index d4881713dac5..f69298d54f5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/maintenanceconfigurations/version.go @@ -1,12 +1,10 @@ package maintenanceconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/maintenanceconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/maintenanceconfigurations/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md index 1ec7be78d42f..6cb458043e5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations` Documentation -The `publicmaintenanceconfigurations` SDK allows for interaction with the Azure Resource Manager Service `maintenance` (API Version `2023-04-01`). +The `publicmaintenanceconfigurations` SDK allows for interaction with Azure Resource Manager `maintenance` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "publicMaintenanceConfigurationValue") +id := publicmaintenanceconfigurations.NewPublicMaintenanceConfigurationID("12345678-1234-9876-4563-123456789012", "resourceName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/client.go index 79ca5fc9e3ce..837f142a8f75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/client.go @@ -15,7 +15,7 @@ type PublicMaintenanceConfigurationsClient struct { } func NewPublicMaintenanceConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicMaintenanceConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publicmaintenanceconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publicmaintenanceconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublicMaintenanceConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/id_publicmaintenanceconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/id_publicmaintenanceconfiguration.go index 0b827fb04c36..26a9943e0e4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/id_publicmaintenanceconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/id_publicmaintenanceconfiguration.go @@ -40,7 +40,7 @@ func ParsePublicMaintenanceConfigurationID(input string) (*PublicMaintenanceConf } id := PublicMaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePublicMaintenanceConfigurationIDInsensitively(input string) (*PublicMa } id := PublicMaintenanceConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id PublicMaintenanceConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaintenance", "Microsoft.Maintenance", "Microsoft.Maintenance"), resourceids.StaticSegment("staticPublicMaintenanceConfigurations", "publicMaintenanceConfigurations", "publicMaintenanceConfigurations"), - resourceids.UserSpecifiedSegment("publicMaintenanceConfigurationName", "publicMaintenanceConfigurationValue"), + resourceids.UserSpecifiedSegment("publicMaintenanceConfigurationName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_get.go index b7c2d7cd15b0..3e093550a967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c PublicMaintenanceConfigurationsClient) Get(ctx context.Context, id Publi var model MaintenanceConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_list.go index 31af41f7b100..a97cf2518254 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/method_list.go @@ -47,7 +47,6 @@ func (c PublicMaintenanceConfigurationsClient) List(ctx context.Context, id comm var model ListMaintenanceConfigurationsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/version.go index d1378fcb0116..883db235245b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2023-04-01/publicmaintenanceconfigurations/version.go @@ -1,12 +1,10 @@ package publicmaintenanceconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publicmaintenanceconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publicmaintenanceconfigurations/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md index 98a4d423856b..04bf923b0a0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions` Documentation -The `applicationdefinitions` SDK allows for interaction with the Azure Resource Manager Service `managedapplications` (API Version `2021-07-01`). +The `applicationdefinitions` SDK allows for interaction with Azure Resource Manager `managedapplications` (API Version `2021-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionValue") +id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionName") payload := applicationdefinitions.ApplicationDefinition{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionValue") +id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionValue") +id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionValue") +id := applicationdefinitions.NewApplicationDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationDefinitionName") payload := applicationdefinitions.ApplicationDefinitionPatchable{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/client.go index 9ac40e6698f2..3e4ab87c48ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/client.go @@ -15,7 +15,7 @@ type ApplicationDefinitionsClient struct { } func NewApplicationDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationdefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationdefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/id_applicationdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/id_applicationdefinition.go index e1ab7aadbd4a..06a02ed6d054 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/id_applicationdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/id_applicationdefinition.go @@ -42,7 +42,7 @@ func ParseApplicationDefinitionID(input string) (*ApplicationDefinitionId, error } id := ApplicationDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationDefinitionIDInsensitively(input string) (*ApplicationDefini } id := ApplicationDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSolutions", "Microsoft.Solutions", "Microsoft.Solutions"), resourceids.StaticSegment("staticApplicationDefinitions", "applicationDefinitions", "applicationDefinitions"), - resourceids.UserSpecifiedSegment("applicationDefinitionName", "applicationDefinitionValue"), + resourceids.UserSpecifiedSegment("applicationDefinitionName", "applicationDefinitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_createorupdate.go index 09f8e2cdce8a..be0394c9e3a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ApplicationDefinitionsClient) CreateOrUpdate(ctx context.Context, id App var model ApplicationDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_get.go index 53d1cbd08f1e..55d5542a9fd0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationDefinitionsClient) Get(ctx context.Context, id ApplicationDef var model ApplicationDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_update.go index 33553c4698e6..0f45aafce965 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/method_update.go @@ -49,7 +49,6 @@ func (c ApplicationDefinitionsClient) Update(ctx context.Context, id Application var model ApplicationDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/version.go index c64033f5bba1..03cafe62e177 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applicationdefinitions/version.go @@ -1,12 +1,10 @@ package applicationdefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationdefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationdefinitions/2021-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/README.md index 102f7fc5c40b..d98c7d06272a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications` Documentation -The `applications` SDK allows for interaction with the Azure Resource Manager Service `managedapplications` (API Version `2021-07-01`). +The `applications` SDK allows for interaction with Azure Resource Manager `managedapplications` (API Version `2021-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") payload := applications.Application{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationIdID("applicationIdValue") +id := applications.NewApplicationIdID("applicationId") payload := applications.Application{ // ... @@ -59,7 +59,7 @@ if err := client.CreateOrUpdateByIdThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -71,7 +71,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationIdID("applicationIdValue") +id := applications.NewApplicationIdID("applicationId") if err := client.DeleteByIdThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.DeleteByIdThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") read, err := client.Get(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewApplicationIdID("applicationIdValue") +id := applications.NewApplicationIdID("applicationId") read, err := client.GetById(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") read, err := client.ListAllowedUpgradePlans(ctx, id) if err != nil { @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") payload := applications.ListTokenRequest{ // ... @@ -186,7 +186,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") if err := client.RefreshPermissionsThenPoll(ctx, id); err != nil { // handle the error @@ -198,7 +198,7 @@ if err := client.RefreshPermissionsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") payload := applications.ApplicationPatchable{ // ... @@ -215,7 +215,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationValue") +id := applications.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationName") payload := applications.UpdateAccessDefinition{ // ... @@ -232,7 +232,7 @@ if err := client.UpdateAccessThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applications.NewApplicationIdID("applicationIdValue") +id := applications.NewApplicationIdID("applicationId") payload := applications.ApplicationPatchable{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/client.go index f4ad56ad4d27..01d1c5a1e052 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/client.go @@ -15,7 +15,7 @@ type ApplicationsClient struct { } func NewApplicationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_application.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_application.go index cbf9a58c08a4..67f973c358eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_application.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_application.go @@ -42,7 +42,7 @@ func ParseApplicationID(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationIDInsensitively(input string) (*ApplicationId, error) { } id := ApplicationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSolutions", "Microsoft.Solutions", "Microsoft.Solutions"), resourceids.StaticSegment("staticApplications", "applications", "applications"), - resourceids.UserSpecifiedSegment("applicationName", "applicationValue"), + resourceids.UserSpecifiedSegment("applicationName", "applicationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_applicationid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_applicationid.go index a42b50f4fef3..06cc198e7296 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_applicationid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/id_applicationid.go @@ -38,7 +38,7 @@ func ParseApplicationIdID(input string) (*ApplicationIdId, error) { } id := ApplicationIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseApplicationIdIDInsensitively(input string) (*ApplicationIdId, error) { } id := ApplicationIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -96,7 +96,7 @@ func (id ApplicationIdId) ID() string { // Segments returns a slice of Resource ID Segments which comprise this Application Id ID func (id ApplicationIdId) Segments() []resourceids.Segment { return []resourceids.Segment{ - resourceids.UserSpecifiedSegment("applicationId", "applicationIdValue"), + resourceids.UserSpecifiedSegment("applicationId", "applicationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_get.go index f15c3c0bf9f9..5eb8a2355bef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationsClient) Get(ctx context.Context, id ApplicationId) (result G var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_getbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_getbyid.go index 2400cb11fa32..2c5430ffdc33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_getbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_getbyid.go @@ -45,7 +45,6 @@ func (c ApplicationsClient) GetById(ctx context.Context, id ApplicationIdId) (re var model Application result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listallowedupgradeplans.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listallowedupgradeplans.go index 2b3067f0874e..625e3677aafd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listallowedupgradeplans.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listallowedupgradeplans.go @@ -46,7 +46,6 @@ func (c ApplicationsClient) ListAllowedUpgradePlans(ctx context.Context, id Appl var model AllowedUpgradePlansResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listtokens.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listtokens.go index 500d7fbda5c4..f3ca70353f97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listtokens.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/method_listtokens.go @@ -50,7 +50,6 @@ func (c ApplicationsClient) ListTokens(ctx context.Context, id ApplicationId, in var model ManagedIdentityTokenResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/version.go index 98b1f8c38ec1..a7573066519f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedapplications/2021-07-01/applications/version.go @@ -1,12 +1,10 @@ package applications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applications/2021-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/README.md index 1fdb33c639a4..12995e21ae0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities` Documentation -The `managedidentities` SDK allows for interaction with the Azure Resource Manager Service `managedidentity` (API Version `2023-01-31`). +The `managedidentities` SDK allows for interaction with Azure Resource Manager `managedidentity` (API Version `2023-01-31`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue", "federatedIdentityCredentialValue") +id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "federatedIdentityCredentialResourceName") payload := managedidentities.FederatedIdentityCredential{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue", "federatedIdentityCredentialValue") +id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "federatedIdentityCredentialResourceName") read, err := client.FederatedIdentityCredentialsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue", "federatedIdentityCredentialValue") +id := managedidentities.NewFederatedIdentityCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "federatedIdentityCredentialResourceName") read, err := client.FederatedIdentityCredentialsGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityName") // alternatively `client.FederatedIdentityCredentialsList(ctx, id, managedidentities.DefaultFederatedIdentityCredentialsListOperationOptions())` can be used to do batched pagination items, err := client.FederatedIdentityCredentialsListComplete(ctx, id, managedidentities.DefaultFederatedIdentityCredentialsListOperationOptions()) @@ -111,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityName") payload := managedidentities.Identity{ // ... @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityName") read, err := client.UserAssignedIdentitiesDelete(ctx, id) if err != nil { @@ -148,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityName") read, err := client.UserAssignedIdentitiesGet(ctx, id) if err != nil { @@ -198,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityValue") +id := commonids.NewUserAssignedIdentityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "userAssignedIdentityName") payload := managedidentities.IdentityUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/client.go index 711ad433d62b..d3f9d4da8d68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/client.go @@ -15,7 +15,7 @@ type ManagedIdentitiesClient struct { } func NewManagedIdentitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedIdentitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedidentities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedidentities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedIdentitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/id_federatedidentitycredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/id_federatedidentitycredential.go index 8b0dc054cd31..54bd535f1879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/id_federatedidentitycredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/id_federatedidentitycredential.go @@ -44,7 +44,7 @@ func ParseFederatedIdentityCredentialID(input string) (*FederatedIdentityCredent } id := FederatedIdentityCredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFederatedIdentityCredentialIDInsensitively(input string) (*FederatedId } id := FederatedIdentityCredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FederatedIdentityCredentialId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagedIdentity", "Microsoft.ManagedIdentity", "Microsoft.ManagedIdentity"), resourceids.StaticSegment("staticUserAssignedIdentities", "userAssignedIdentities", "userAssignedIdentities"), - resourceids.UserSpecifiedSegment("userAssignedIdentityName", "userAssignedIdentityValue"), + resourceids.UserSpecifiedSegment("userAssignedIdentityName", "resourceName"), resourceids.StaticSegment("staticFederatedIdentityCredentials", "federatedIdentityCredentials", "federatedIdentityCredentials"), - resourceids.UserSpecifiedSegment("federatedIdentityCredentialName", "federatedIdentityCredentialValue"), + resourceids.UserSpecifiedSegment("federatedIdentityCredentialName", "federatedIdentityCredentialResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialscreateorupdate.go index 26e9c7ab4109..7775539a8b23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialscreateorupdate.go @@ -50,7 +50,6 @@ func (c ManagedIdentitiesClient) FederatedIdentityCredentialsCreateOrUpdate(ctx var model FederatedIdentityCredential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialsget.go index a8249e3357d9..0fb8d1bdde0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialsget.go @@ -45,7 +45,6 @@ func (c ManagedIdentitiesClient) FederatedIdentityCredentialsGet(ctx context.Con var model FederatedIdentityCredential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go index 5291e95c3362..a4b54b9a88f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_federatedidentitycredentialslist.go @@ -40,6 +40,7 @@ func (o FederatedIdentityCredentialsListOperationOptions) ToHeaders() *client.He func (o FederatedIdentityCredentialsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_systemassignedidentitiesgetbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_systemassignedidentitiesgetbyscope.go index 6ad1325dc785..d9a7eb188f57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_systemassignedidentitiesgetbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_systemassignedidentitiesgetbyscope.go @@ -47,7 +47,6 @@ func (c ManagedIdentitiesClient) SystemAssignedIdentitiesGetByScope(ctx context. var model SystemAssignedIdentity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiescreateorupdate.go index 576aafb9b43b..7aba6559932a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiescreateorupdate.go @@ -51,7 +51,6 @@ func (c ManagedIdentitiesClient) UserAssignedIdentitiesCreateOrUpdate(ctx contex var model Identity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesget.go index 89de689c4002..d2eba6eaaeaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesget.go @@ -46,7 +46,6 @@ func (c ManagedIdentitiesClient) UserAssignedIdentitiesGet(ctx context.Context, var model Identity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesupdate.go index d86f762dd050..ab9aa1b8a67b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/method_userassignedidentitiesupdate.go @@ -50,7 +50,6 @@ func (c ManagedIdentitiesClient) UserAssignedIdentitiesUpdate(ctx context.Contex var model Identity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/model_userassignedidentityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/model_userassignedidentityproperties.go index f55185a771bc..fde6ae698860 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/model_userassignedidentityproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/model_userassignedidentityproperties.go @@ -1,5 +1,10 @@ package managedidentities +import ( + "encoding/json" + "fmt" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. @@ -8,3 +13,30 @@ type UserAssignedIdentityProperties struct { PrincipalId *string `json:"principalId,omitempty"` TenantId *string `json:"tenantId,omitempty"` } + +var _ json.Marshaler = UserAssignedIdentityProperties{} + +func (s UserAssignedIdentityProperties) MarshalJSON() ([]byte, error) { + type wrapper UserAssignedIdentityProperties + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling UserAssignedIdentityProperties: %+v", err) + } + + var decoded map[string]interface{} + if err = json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling UserAssignedIdentityProperties: %+v", err) + } + + delete(decoded, "clientId") + delete(decoded, "principalId") + delete(decoded, "tenantId") + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling UserAssignedIdentityProperties: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/version.go index f9e3d2166efd..b948225c4cf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedidentity/2023-01-31/managedidentities/version.go @@ -1,12 +1,10 @@ package managedidentities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-31" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedidentities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedidentities/2023-01-31" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/README.md index 6818977af77d..e00d7c634d1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments` Documentation -The `registrationassignments` SDK allows for interaction with the Azure Resource Manager Service `managedservices` (API Version `2022-10-01`). +The `registrationassignments` SDK allows for interaction with Azure Resource Manager `managedservices` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue") +id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentId") payload := registrationassignments.RegistrationAssignment{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue") +id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentId") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentIdValue") +id := registrationassignments.NewScopedRegistrationAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationAssignmentId") read, err := client.Get(ctx, id, registrationassignments.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/client.go index db67d179ee46..89f23067b5b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/client.go @@ -15,7 +15,7 @@ type RegistrationAssignmentsClient struct { } func NewRegistrationAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistrationAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "registrationassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "registrationassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegistrationAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/id_scopedregistrationassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/id_scopedregistrationassignment.go index 4e3859825281..60ba6ba8c948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/id_scopedregistrationassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/id_scopedregistrationassignment.go @@ -40,7 +40,7 @@ func ParseScopedRegistrationAssignmentID(input string) (*ScopedRegistrationAssig } id := ScopedRegistrationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRegistrationAssignmentIDInsensitively(input string) (*ScopedRegi } id := ScopedRegistrationAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRegistrationAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagedServices", "Microsoft.ManagedServices", "Microsoft.ManagedServices"), resourceids.StaticSegment("staticRegistrationAssignments", "registrationAssignments", "registrationAssignments"), - resourceids.UserSpecifiedSegment("registrationAssignmentId", "registrationAssignmentIdValue"), + resourceids.UserSpecifiedSegment("registrationAssignmentId", "registrationAssignmentId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go index 8dc482bc63de..266642448641 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RegistrationAssignmentsClient) Get(ctx context.Context, id ScopedRegistr var model RegistrationAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go index 0fb9136db353..bcb6748c2440 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/version.go index ebfc90d95db0..ae4625e30de1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationassignments/version.go @@ -1,12 +1,10 @@ package registrationassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/registrationassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/registrationassignments/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md index 5566dcfeb6ed..3c76ed905a11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions` Documentation -The `registrationdefinitions` SDK allows for interaction with the Azure Resource Manager Service `managedservices` (API Version `2022-10-01`). +The `registrationdefinitions` SDK allows for interaction with Azure Resource Manager `managedservices` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionIdValue") +id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionId") payload := registrationdefinitions.RegistrationDefinition{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionIdValue") +id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionId") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionIdValue") +id := registrationdefinitions.NewScopedRegistrationDefinitionID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "registrationDefinitionId") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/client.go index 0297150836b5..80244ce13b47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/client.go @@ -15,7 +15,7 @@ type RegistrationDefinitionsClient struct { } func NewRegistrationDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistrationDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "registrationdefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "registrationdefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegistrationDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/id_scopedregistrationdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/id_scopedregistrationdefinition.go index b91ec1027b5d..18d4170724d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/id_scopedregistrationdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/id_scopedregistrationdefinition.go @@ -40,7 +40,7 @@ func ParseScopedRegistrationDefinitionID(input string) (*ScopedRegistrationDefin } id := ScopedRegistrationDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRegistrationDefinitionIDInsensitively(input string) (*ScopedRegi } id := ScopedRegistrationDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRegistrationDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagedServices", "Microsoft.ManagedServices", "Microsoft.ManagedServices"), resourceids.StaticSegment("staticRegistrationDefinitions", "registrationDefinitions", "registrationDefinitions"), - resourceids.UserSpecifiedSegment("registrationDefinitionId", "registrationDefinitionIdValue"), + resourceids.UserSpecifiedSegment("registrationDefinitionId", "registrationDefinitionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_get.go index 278f77bedcba..9851ffe71047 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_get.go @@ -45,7 +45,6 @@ func (c RegistrationDefinitionsClient) Get(ctx context.Context, id ScopedRegistr var model RegistrationDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go index 1e14c5ceb3ad..b930cec3518d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/version.go index 0869a6751599..98f2129ff52a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managedservices/2022-10-01/registrationdefinitions/version.go @@ -1,12 +1,10 @@ package registrationdefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/registrationdefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/registrationdefinitions/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/README.md index ae344feb0dfb..73e273a74d84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups` Documentation -The `managementgroups` SDK allows for interaction with the Azure Resource Manager Service `managementgroups` (API Version `2020-05-01`). +The `managementgroups` SDK allows for interaction with Azure Resource Manager `managementgroups` (API Version `2020-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") payload := managementgroups.CreateManagementGroupRequest{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, managementgroups.Defau ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, managementgroups.DefaultDeleteOperation ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") read, err := client.Get(ctx, id, managementgroups.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") // alternatively `client.GetDescendants(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions())` can be used to do batched pagination items, err := client.GetDescendantsComplete(ctx, id, managementgroups.DefaultGetDescendantsOperationOptions()) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -108,7 +108,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") read, err := client.HierarchySettingsDelete(ctx, id) if err != nil { @@ -124,7 +124,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") read, err := client.HierarchySettingsGet(ctx, id) if err != nil { @@ -140,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") read, err := client.HierarchySettingsList(ctx, id) if err != nil { @@ -156,7 +156,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") payload := managementgroups.CreateOrUpdateSettingsRequest{ // ... @@ -194,7 +194,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012") +id := managementgroups.NewSubscriptionID("groupId", "12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionsCreate(ctx, id, managementgroups.DefaultSubscriptionsCreateOperationOptions()) if err != nil { @@ -210,7 +210,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012") +id := managementgroups.NewSubscriptionID("groupId", "12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionsDelete(ctx, id, managementgroups.DefaultSubscriptionsDeleteOperationOptions()) if err != nil { @@ -226,7 +226,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementgroups.NewSubscriptionID("groupIdValue", "12345678-1234-9876-4563-123456789012") +id := managementgroups.NewSubscriptionID("groupId", "12345678-1234-9876-4563-123456789012") read, err := client.SubscriptionsGetSubscription(ctx, id, managementgroups.DefaultSubscriptionsGetSubscriptionOperationOptions()) if err != nil { @@ -242,7 +242,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") // alternatively `client.SubscriptionsGetSubscriptionsUnderManagementGroup(ctx, id)` can be used to do batched pagination items, err := client.SubscriptionsGetSubscriptionsUnderManagementGroupComplete(ctx, id) @@ -259,7 +259,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") payload := managementgroups.PatchManagementGroupRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/client.go index 732b46ac1a44..f8a1d13db201 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/client.go @@ -15,7 +15,7 @@ type ManagementGroupsClient struct { } func NewManagementGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managementgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managementgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagementGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/id_subscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/id_subscription.go index 6359734004cd..0aefbc860d05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/id_subscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/id_subscription.go @@ -40,7 +40,7 @@ func ParseSubscriptionID(input string) (*SubscriptionId, error) { } id := SubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseSubscriptionIDInsensitively(input string) (*SubscriptionId, error) { } id := SubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,7 +105,7 @@ func (id SubscriptionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go index ca530041f6c8..15ba687422c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go index 033a72547c17..bbf2d365e0b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_delete.go @@ -40,6 +40,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go index 87fb2a218bc1..209f279215ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_get.go @@ -40,6 +40,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -86,7 +87,6 @@ func (c ManagementGroupsClient) Get(ctx context.Context, id commonids.Management var model ManagementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go index aa6a5c146166..419d4351a1d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_getdescendants.go @@ -40,6 +40,7 @@ func (o GetDescendantsOperationOptions) ToHeaders() *client.Headers { func (o GetDescendantsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingscreateorupdate.go index 3f1794604e57..9f0e14b9c90e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingscreateorupdate.go @@ -51,7 +51,6 @@ func (c ManagementGroupsClient) HierarchySettingsCreateOrUpdate(ctx context.Cont var model HierarchySettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsget.go index bb7c557f1fe8..acf0cb65d452 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsget.go @@ -47,7 +47,6 @@ func (c ManagementGroupsClient) HierarchySettingsGet(ctx context.Context, id com var model HierarchySettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingslist.go index 038617f4220e..025d2eef7da2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingslist.go @@ -47,7 +47,6 @@ func (c ManagementGroupsClient) HierarchySettingsList(ctx context.Context, id co var model HierarchySettingsList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsupdate.go index 6b7e694b1560..58e7d6151dc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_hierarchysettingsupdate.go @@ -51,7 +51,6 @@ func (c ManagementGroupsClient) HierarchySettingsUpdate(ctx context.Context, id var model HierarchySettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go index c9660c8df44a..2db3e2ef9c39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionscreate.go index 66afbb5c1494..9659774715c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionscreate.go @@ -36,6 +36,7 @@ func (o SubscriptionsCreateOperationOptions) ToHeaders() *client.Headers { func (o SubscriptionsCreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ManagementGroupsClient) SubscriptionsCreate(ctx context.Context, id Subs var model SubscriptionUnderManagementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsdelete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsdelete.go index 36eb415e7097..cea4c7a4fa51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsdelete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsdelete.go @@ -35,6 +35,7 @@ func (o SubscriptionsDeleteOperationOptions) ToHeaders() *client.Headers { func (o SubscriptionsDeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsgetsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsgetsubscription.go index ff3ac1f4ec0d..092d46e9d991 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsgetsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_subscriptionsgetsubscription.go @@ -36,6 +36,7 @@ func (o SubscriptionsGetSubscriptionOperationOptions) ToHeaders() *client.Header func (o SubscriptionsGetSubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ManagementGroupsClient) SubscriptionsGetSubscription(ctx context.Context var model SubscriptionUnderManagementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go index f730bbb607ed..26b9085a2412 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/method_update.go @@ -37,6 +37,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ManagementGroupsClient) Update(ctx context.Context, id commonids.Managem var model ManagementGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/version.go index 8446424fbd4f..b1db49228622 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/managementgroups/2020-05-01/managementgroups/version.go @@ -1,12 +1,10 @@ package managementgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managementgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managementgroups/2020-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/README.md index f2a07cf8ef60..be09357e3e5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts` Documentation -The `accounts` SDK allows for interaction with the Azure Resource Manager Service `maps` (API Version `2023-06-01`). +The `accounts` SDK allows for interaction with Azure Resource Manager `maps` (API Version `2023-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := accounts.MapsAccount{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := accounts.AccountSasParameters{ // ... @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := accounts.MapsKeySpecification{ // ... @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := accounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := accounts.MapsAccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/client.go index 8b093f7f4c73..98743867a015 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/client.go @@ -15,7 +15,7 @@ type AccountsClient struct { } func NewAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "accounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "accounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/id_account.go index 5c69fbc3feee..0ae1b377e33e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaps", "Microsoft.Maps", "Microsoft.Maps"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_createorupdate.go index ee5a72db2fb4..9231ee18e979 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AccountsClient) CreateOrUpdate(ctx context.Context, id AccountId, input var model MapsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_get.go index 59c1fdd74c63..fc416b8a7b3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_get.go @@ -45,7 +45,6 @@ func (c AccountsClient) Get(ctx context.Context, id AccountId) (result GetOperat var model MapsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listkeys.go index 532a1ed7c2d4..0a4c86cafc47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listkeys.go @@ -46,7 +46,6 @@ func (c AccountsClient) ListKeys(ctx context.Context, id AccountId) (result List var model MapsAccountKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listsas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listsas.go index 1ee8325de3a9..f81b3b2debdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listsas.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_listsas.go @@ -50,7 +50,6 @@ func (c AccountsClient) ListSas(ctx context.Context, id AccountId, input Account var model MapsAccountSasToken result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_regeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_regeneratekeys.go index 6917f30adace..8e0d629330a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_regeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_regeneratekeys.go @@ -50,7 +50,6 @@ func (c AccountsClient) RegenerateKeys(ctx context.Context, id AccountId, input var model MapsAccountKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_update.go index 8003271bf308..e189cafbc1dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/method_update.go @@ -49,7 +49,6 @@ func (c AccountsClient) Update(ctx context.Context, id AccountId, input MapsAcco var model MapsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/version.go index 2208516501f8..b40ea5f496f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/accounts/version.go @@ -1,12 +1,10 @@ package accounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/accounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/accounts/2023-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/README.md index f49682ca33a8..092ea036f727 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators` Documentation -The `creators` SDK allows for interaction with the Azure Resource Manager Service `maps` (API Version `2023-06-01`). +The `creators` SDK allows for interaction with Azure Resource Manager `maps` (API Version `2023-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "creatorValue") +id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "creatorName") payload := creators.Creator{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "creatorValue") +id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "creatorName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "creatorValue") +id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "creatorName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := creators.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := creators.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.ListByAccount(ctx, id)` can be used to do batched pagination items, err := client.ListByAccountComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "creatorValue") +id := creators.NewCreatorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "creatorName") payload := creators.CreatorUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/client.go index 10b61bd7c92e..1f3e27d5948a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/client.go @@ -15,7 +15,7 @@ type CreatorsClient struct { } func NewCreatorsClientWithBaseURI(sdkApi sdkEnv.Api) (*CreatorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "creators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "creators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CreatorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_account.go index a8362b320365..63717565893f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaps", "Microsoft.Maps", "Microsoft.Maps"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_creator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_creator.go index 0695b1aab172..2f4938ff74e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_creator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/id_creator.go @@ -44,7 +44,7 @@ func ParseCreatorID(input string) (*CreatorId, error) { } id := CreatorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCreatorIDInsensitively(input string) (*CreatorId, error) { } id := CreatorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CreatorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMaps", "Microsoft.Maps", "Microsoft.Maps"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), resourceids.StaticSegment("staticCreators", "creators", "creators"), - resourceids.UserSpecifiedSegment("creatorName", "creatorValue"), + resourceids.UserSpecifiedSegment("creatorName", "creatorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_createorupdate.go index 0729eda87347..180f4532017a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_createorupdate.go @@ -50,7 +50,6 @@ func (c CreatorsClient) CreateOrUpdate(ctx context.Context, id CreatorId, input var model Creator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_get.go index ee6d255f93b8..7de33bc2c3b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_get.go @@ -45,7 +45,6 @@ func (c CreatorsClient) Get(ctx context.Context, id CreatorId) (result GetOperat var model Creator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_update.go index 4715fc40d32d..2385ad65b659 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/method_update.go @@ -49,7 +49,6 @@ func (c CreatorsClient) Update(ctx context.Context, id CreatorId, input CreatorU var model Creator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/version.go index 4d465cade380..c95197e2b57a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/maps/2023-06-01/creators/version.go @@ -1,12 +1,10 @@ package creators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/creators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/creators/2023-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/README.md index d5db8b9116bf..a0ada9f560b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `mariadb` (API Version `2018-06-01`). +The `servers` SDK allows for interaction with Azure Resource Manager `mariadb` (API Version `2018-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerForCreate{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/id_server.go index e7cc092462b2..d127983cb417 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMariaDB", "Microsoft.DBforMariaDB", "Microsoft.DBforMariaDB"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_get.go index 7087cf8acac2..e321c1fa2888 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_get.go @@ -45,7 +45,6 @@ func (c ServersClient) Get(ctx context.Context, id ServerId) (result GetOperatio var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_list.go index 30b10383035f..feeb051f27b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_list.go @@ -47,7 +47,6 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_listbyresourcegroup.go index 79f60c9192f3..e1d052169e46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverforcreate.go index fd8d204648e0..fd99f89e1686 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverforcreate.go @@ -18,10 +18,13 @@ type ServerForCreate struct { var _ json.Unmarshaler = &ServerForCreate{} func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { - type alias ServerForCreate - var decoded alias + var decoded struct { + Location string `json:"location"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServerForCreate: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Location = decoded.Location @@ -34,11 +37,12 @@ func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalServerPropertiesForCreateImplementation(v) + impl, err := UnmarshalServerPropertiesForCreateImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ServerForCreate': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforcreate.go index 84868e2551eb..6495771ae9fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforcreate.go @@ -10,18 +10,40 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ServerPropertiesForCreate interface { + ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl } -// RawServerPropertiesForCreateImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ServerPropertiesForCreate = BaseServerPropertiesForCreateImpl{} + +type BaseServerPropertiesForCreateImpl struct { + CreateMode CreateMode `json:"createMode"` + MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` + PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` + SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (s BaseServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s +} + +var _ ServerPropertiesForCreate = RawServerPropertiesForCreateImpl{} + +// RawServerPropertiesForCreateImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawServerPropertiesForCreateImpl struct { - Type string - Values map[string]interface{} + serverPropertiesForCreate BaseServerPropertiesForCreateImpl + Type string + Values map[string]interface{} +} + +func (s RawServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s.serverPropertiesForCreate } -func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { +func UnmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { if input == nil { return nil, nil } @@ -31,9 +53,9 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return nil, fmt.Errorf("unmarshaling ServerPropertiesForCreate into map[string]interface: %+v", err) } - value, ok := temp["createMode"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["createMode"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Default") { @@ -68,10 +90,15 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return out, nil } - out := RawServerPropertiesForCreateImpl{ - Type: value, - Values: temp, + var parent BaseServerPropertiesForCreateImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseServerPropertiesForCreateImpl: %+v", err) } - return out, nil + + return RawServerPropertiesForCreateImpl{ + serverPropertiesForCreate: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesfordefaultcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesfordefaultcreate.go index 8311c1ef672c..37dc0f990e0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesfordefaultcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesfordefaultcreate.go @@ -15,6 +15,8 @@ type ServerPropertiesForDefaultCreate struct { AdministratorLoginPassword string `json:"administratorLoginPassword"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` @@ -22,6 +24,17 @@ type ServerPropertiesForDefaultCreate struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForDefaultCreate) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForDefaultCreate{} func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { @@ -33,9 +46,10 @@ func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForDefaultCreate: %+v", err) } + decoded["createMode"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforgeorestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforgeorestore.go index b57ee038d2a5..5e74366ad5f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforgeorestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforgeorestore.go @@ -14,6 +14,8 @@ type ServerPropertiesForGeoRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` @@ -21,6 +23,17 @@ type ServerPropertiesForGeoRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForGeoRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForGeoRestore{} func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForGeoRestore: %+v", err) } + decoded["createMode"] = "GeoRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforreplica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforreplica.go index 58b5f5a7929c..e30734a76ea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforreplica.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforreplica.go @@ -14,6 +14,8 @@ type ServerPropertiesForReplica struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` @@ -21,6 +23,17 @@ type ServerPropertiesForReplica struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForReplica) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForReplica{} func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForReplica: %+v", err) } + decoded["createMode"] = "Replica" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforrestore.go index c60b9f368029..8beee023574c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforrestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/model_serverpropertiesforrestore.go @@ -15,6 +15,8 @@ type ServerPropertiesForRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` @@ -22,6 +24,17 @@ type ServerPropertiesForRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForRestore{} func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { @@ -33,9 +46,10 @@ func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForRestore: %+v", err) } + decoded["createMode"] = "PointInTimeRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/version.go index 2e8ea1568854..a2953fb8bce3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mariadb/2018-06-01/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2018-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2018-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/README.md index 8a350ac16547..1009f2e12a76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements` Documentation -The `agreements` SDK allows for interaction with the Azure Resource Manager Service `marketplaceordering` (API Version `2015-06-01`). +The `agreements` SDK allows for interaction with Azure Resource Manager `marketplaceordering` (API Version `2015-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherIdValue", "offerIdValue", "planIdValue") +id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherId", "offerId", "planId") read, err := client.MarketplaceAgreementsCancel(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewOfferPlanID("12345678-1234-9876-4563-123456789012", "publisherIdValue", "offerIdValue", "planIdValue") +id := agreements.NewOfferPlanID("12345678-1234-9876-4563-123456789012", "publisherId", "offerId", "planId") payload := agreements.AgreementTerms{ // ... @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewOfferPlanID("12345678-1234-9876-4563-123456789012", "publisherIdValue", "offerIdValue", "planIdValue") +id := agreements.NewOfferPlanID("12345678-1234-9876-4563-123456789012", "publisherId", "offerId", "planId") read, err := client.MarketplaceAgreementsGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherIdValue", "offerIdValue", "planIdValue") +id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherId", "offerId", "planId") read, err := client.MarketplaceAgreementsGetAgreement(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherIdValue", "offerIdValue", "planIdValue") +id := agreements.NewPlanID("12345678-1234-9876-4563-123456789012", "publisherId", "offerId", "planId") read, err := client.MarketplaceAgreementsSign(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/client.go index 970174ce3068..8093cc0b5c0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/client.go @@ -15,7 +15,7 @@ type AgreementsClient struct { } func NewAgreementsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgreementsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agreements", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agreements", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgreementsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_offerplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_offerplan.go index 19335c26ba64..18bcb3f23970 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_offerplan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_offerplan.go @@ -44,7 +44,7 @@ func ParseOfferPlanID(input string) (*OfferPlanId, error) { } id := OfferPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOfferPlanIDInsensitively(input string) (*OfferPlanId, error) { } id := OfferPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id OfferPlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticOfferTypes", "offerTypes", "offerTypes"), resourceids.StaticSegment("offerType", "virtualMachine", "virtualMachine"), resourceids.StaticSegment("staticPublishers", "publishers", "publishers"), - resourceids.UserSpecifiedSegment("publisherId", "publisherIdValue"), + resourceids.UserSpecifiedSegment("publisherId", "publisherId"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerId", "offerIdValue"), + resourceids.UserSpecifiedSegment("offerId", "offerId"), resourceids.StaticSegment("staticPlans", "plans", "plans"), - resourceids.UserSpecifiedSegment("planId", "planIdValue"), + resourceids.UserSpecifiedSegment("planId", "planId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_plan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_plan.go index 726dce0fa8eb..b71266982958 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_plan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/id_plan.go @@ -44,7 +44,7 @@ func ParsePlanID(input string) (*PlanId, error) { } id := PlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePlanIDInsensitively(input string) (*PlanId, error) { } id := PlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -119,11 +119,11 @@ func (id PlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMarketplaceOrdering", "Microsoft.MarketplaceOrdering", "Microsoft.MarketplaceOrdering"), resourceids.StaticSegment("staticAgreements", "agreements", "agreements"), - resourceids.UserSpecifiedSegment("publisherId", "publisherIdValue"), + resourceids.UserSpecifiedSegment("publisherId", "publisherId"), resourceids.StaticSegment("staticOffers", "offers", "offers"), - resourceids.UserSpecifiedSegment("offerId", "offerIdValue"), + resourceids.UserSpecifiedSegment("offerId", "offerId"), resourceids.StaticSegment("staticPlans", "plans", "plans"), - resourceids.UserSpecifiedSegment("planId", "planIdValue"), + resourceids.UserSpecifiedSegment("planId", "planId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscancel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscancel.go index a829ebdc510e..f38ce26b58cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscancel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscancel.go @@ -46,7 +46,6 @@ func (c AgreementsClient) MarketplaceAgreementsCancel(ctx context.Context, id Pl var model OldAgreementTerms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscreate.go index 2a8f04efa873..add53e756175 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementscreate.go @@ -50,7 +50,6 @@ func (c AgreementsClient) MarketplaceAgreementsCreate(ctx context.Context, id Of var model AgreementTerms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsget.go index 21bd037374c5..9f5a9d8c2124 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsget.go @@ -46,7 +46,6 @@ func (c AgreementsClient) MarketplaceAgreementsGet(ctx context.Context, id Offer var model AgreementTerms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsgetagreement.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsgetagreement.go index d4ae0ed4ad5c..f80924f04464 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsgetagreement.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementsgetagreement.go @@ -45,7 +45,6 @@ func (c AgreementsClient) MarketplaceAgreementsGetAgreement(ctx context.Context, var model OldAgreementTerms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementslist.go index ab6aa4cb9b7d..54c7ecd2917d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementslist.go @@ -47,7 +47,6 @@ func (c AgreementsClient) MarketplaceAgreementsList(ctx context.Context, id comm var model AgreementTermsList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementssign.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementssign.go index 06d3718dd023..595c46e1db5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementssign.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/method_marketplaceagreementssign.go @@ -46,7 +46,6 @@ func (c AgreementsClient) MarketplaceAgreementsSign(ctx context.Context, id Plan var model OldAgreementTerms result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/version.go index d17abb9aa5a8..867bdeb0330c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/marketplaceordering/2015-06-01/agreements/version.go @@ -1,12 +1,10 @@ package agreements -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agreements/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agreements/2015-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/README.md index afc3b86eaf35..f2a55d5ae70d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines` Documentation -The `machines` SDK allows for interaction with the Azure Resource Manager Service `migrate` (API Version `2020-01-01`). +The `machines` SDK allows for interaction with Azure Resource Manager `migrate` (API Version `2020-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := machines.NewVMwareSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue") +id := machines.NewVMwareSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.GetAllMachinesInSite(ctx, id, machines.DefaultGetAllMachinesInSiteOperationOptions())` can be used to do batched pagination items, err := client.GetAllMachinesInSiteComplete(ctx, id, machines.DefaultGetAllMachinesInSiteOperationOptions()) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteName", "machineName") read, err := client.GetMachine(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteName", "machineName") read, err := client.StartMachine(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "machineValue") +id := commonids.NewVMwareSiteMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteName", "machineName") read, err := client.StopMachine(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/client.go index e0daf9080614..fcd8a61002f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/client.go @@ -15,7 +15,7 @@ type MachinesClient struct { } func NewMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*MachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "machines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "machines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/id_vmwaresite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/id_vmwaresite.go index 73de6cc14841..b131d3565b67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/id_vmwaresite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/id_vmwaresite.go @@ -42,7 +42,7 @@ func ParseVMwareSiteID(input string) (*VMwareSiteId, error) { } id := VMwareSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVMwareSiteIDInsensitively(input string) (*VMwareSiteId, error) { } id := VMwareSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VMwareSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOffAzure", "Microsoft.OffAzure", "Microsoft.OffAzure"), resourceids.StaticSegment("staticVmwareSites", "vmwareSites", "vmwareSites"), - resourceids.UserSpecifiedSegment("vmwareSiteName", "vmwareSiteValue"), + resourceids.UserSpecifiedSegment("vmwareSiteName", "siteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go index 9a7e1d1b2f51..bf83c32e1c44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getallmachinesinsite.go @@ -42,6 +42,7 @@ func (o GetAllMachinesInSiteOperationOptions) ToHeaders() *client.Headers { func (o GetAllMachinesInSiteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getmachine.go index 6711c1706799..bd0cbda58cd5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/method_getmachine.go @@ -46,7 +46,6 @@ func (c MachinesClient) GetMachine(ctx context.Context, id commonids.VMwareSiteM var model VMwareMachine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/version.go index c0980e7be08a..88cfa5b1807c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/machines/version.go @@ -1,12 +1,10 @@ package machines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/machines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/machines/2020-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/README.md index 4546b39653e8..65ee7ae50c90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts` Documentation -The `runasaccounts` SDK allows for interaction with the Azure Resource Manager Service `migrate` (API Version `2020-01-01`). +The `runasaccounts` SDK allows for interaction with Azure Resource Manager `migrate` (API Version `2020-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := runasaccounts.NewVMwareSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue") +id := runasaccounts.NewVMwareSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.GetAllRunAsAccountsInSite(ctx, id)` can be used to do batched pagination items, err := client.GetAllRunAsAccountsInSiteComplete(ctx, id) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteValue", "runAsAccountValue") +id := commonids.NewVMwareSiteRunAsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmwareSiteName", "runAsAccountName") read, err := client.GetRunAsAccount(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/client.go index eec6adbe66f5..600755ddd802 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/client.go @@ -15,7 +15,7 @@ type RunAsAccountsClient struct { } func NewRunAsAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*RunAsAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "runasaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "runasaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RunAsAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/id_vmwaresite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/id_vmwaresite.go index 9b3844597d4f..0a5d3977b1da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/id_vmwaresite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/id_vmwaresite.go @@ -42,7 +42,7 @@ func ParseVMwareSiteID(input string) (*VMwareSiteId, error) { } id := VMwareSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVMwareSiteIDInsensitively(input string) (*VMwareSiteId, error) { } id := VMwareSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VMwareSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOffAzure", "Microsoft.OffAzure", "Microsoft.OffAzure"), resourceids.StaticSegment("staticVmwareSites", "vmwareSites", "vmwareSites"), - resourceids.UserSpecifiedSegment("vmwareSiteName", "vmwareSiteValue"), + resourceids.UserSpecifiedSegment("vmwareSiteName", "siteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/method_getrunasaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/method_getrunasaccount.go index 25a8bea7509e..9f46faa3ad14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/method_getrunasaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/method_getrunasaccount.go @@ -46,7 +46,6 @@ func (c RunAsAccountsClient) GetRunAsAccount(ctx context.Context, id commonids.V var model VMwareRunAsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/version.go index 8c3c4c0c7b81..d2f74c972b8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/migrate/2020-01-01/runasaccounts/version.go @@ -1,12 +1,10 @@ package runasaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/runasaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/runasaccounts/2020-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/README.md index 86502be1a876..ca9d9d8d4bc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource` Documentation -The `resource` SDK allows for interaction with the Azure Resource Manager Service `mixedreality` (API Version `2021-01-01`). +The `resource` SDK allows for interaction with Azure Resource Manager `mixedreality` (API Version `2021-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remoteRenderingAccountValue") +id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := resource.RemoteRenderingAccount{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remoteRenderingAccountValue") +id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.RemoteRenderingAccountsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remoteRenderingAccountValue") +id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.RemoteRenderingAccountsGet(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remoteRenderingAccountValue") +id := resource.NewRemoteRenderingAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := resource.RemoteRenderingAccount{ // ... @@ -133,7 +133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spatialAnchorsAccountValue") +id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := resource.SpatialAnchorsAccount{ // ... @@ -154,7 +154,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spatialAnchorsAccountValue") +id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SpatialAnchorsAccountsDelete(ctx, id) if err != nil { @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spatialAnchorsAccountValue") +id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SpatialAnchorsAccountsGet(ctx, id) if err != nil { @@ -220,7 +220,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spatialAnchorsAccountValue") +id := resource.NewSpatialAnchorsAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := resource.SpatialAnchorsAccount{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/client.go index 9e33b0443e66..672e189b06ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/client.go @@ -15,7 +15,7 @@ type ResourceClient struct { } func NewResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_remoterenderingaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_remoterenderingaccount.go index ebf0d496a1b2..a73af37c809c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_remoterenderingaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_remoterenderingaccount.go @@ -42,7 +42,7 @@ func ParseRemoteRenderingAccountID(input string) (*RemoteRenderingAccountId, err } id := RemoteRenderingAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRemoteRenderingAccountIDInsensitively(input string) (*RemoteRenderingA } id := RemoteRenderingAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RemoteRenderingAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMixedReality", "Microsoft.MixedReality", "Microsoft.MixedReality"), resourceids.StaticSegment("staticRemoteRenderingAccounts", "remoteRenderingAccounts", "remoteRenderingAccounts"), - resourceids.UserSpecifiedSegment("remoteRenderingAccountName", "remoteRenderingAccountValue"), + resourceids.UserSpecifiedSegment("remoteRenderingAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_spatialanchorsaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_spatialanchorsaccount.go index 8216301b448b..4441257efd7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_spatialanchorsaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/id_spatialanchorsaccount.go @@ -42,7 +42,7 @@ func ParseSpatialAnchorsAccountID(input string) (*SpatialAnchorsAccountId, error } id := SpatialAnchorsAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSpatialAnchorsAccountIDInsensitively(input string) (*SpatialAnchorsAcc } id := SpatialAnchorsAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SpatialAnchorsAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMixedReality", "Microsoft.MixedReality", "Microsoft.MixedReality"), resourceids.StaticSegment("staticSpatialAnchorsAccounts", "spatialAnchorsAccounts", "spatialAnchorsAccounts"), - resourceids.UserSpecifiedSegment("spatialAnchorsAccountName", "spatialAnchorsAccountValue"), + resourceids.UserSpecifiedSegment("spatialAnchorsAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountscreate.go index 0898f1e57eaf..570a9c1a9240 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountscreate.go @@ -50,7 +50,6 @@ func (c ResourceClient) RemoteRenderingAccountsCreate(ctx context.Context, id Re var model RemoteRenderingAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsget.go index 1a3b7dc62133..d60c553dd77a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsget.go @@ -45,7 +45,6 @@ func (c ResourceClient) RemoteRenderingAccountsGet(ctx context.Context, id Remot var model RemoteRenderingAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsupdate.go index 36e816173d32..a690cc24266a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_remoterenderingaccountsupdate.go @@ -49,7 +49,6 @@ func (c ResourceClient) RemoteRenderingAccountsUpdate(ctx context.Context, id Re var model RemoteRenderingAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountscreate.go index 2785038534d4..cef260075fa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountscreate.go @@ -50,7 +50,6 @@ func (c ResourceClient) SpatialAnchorsAccountsCreate(ctx context.Context, id Spa var model SpatialAnchorsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsget.go index b7a5c8ceceaa..8c5b5c7d19d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsget.go @@ -45,7 +45,6 @@ func (c ResourceClient) SpatialAnchorsAccountsGet(ctx context.Context, id Spatia var model SpatialAnchorsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsupdate.go index f966bca84185..e470cb48f548 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/method_spatialanchorsaccountsupdate.go @@ -49,7 +49,6 @@ func (c ResourceClient) SpatialAnchorsAccountsUpdate(ctx context.Context, id Spa var model SpatialAnchorsAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/version.go index 3c60521cec79..824746a39fa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource/version.go @@ -1,12 +1,10 @@ package resource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resource/2021-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/README.md index bef315a05692..abcac45270f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork` Documentation -The `attacheddatanetwork` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `attacheddatanetwork` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue", "attachedDataNetworkValue") +id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName", "attachedDataNetworkName") payload := attacheddatanetwork.AttachedDataNetwork{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue", "attachedDataNetworkValue") +id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName", "attachedDataNetworkName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue", "attachedDataNetworkValue") +id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName", "attachedDataNetworkName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue", "attachedDataNetworkValue") +id := attacheddatanetwork.NewAttachedDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName", "attachedDataNetworkName") payload := attacheddatanetwork.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/client.go index 19812ddb2998..a22c714a41aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/client.go @@ -15,7 +15,7 @@ type AttachedDataNetworkClient struct { } func NewAttachedDataNetworkClientWithBaseURI(sdkApi sdkEnv.Api) (*AttachedDataNetworkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "attacheddatanetwork", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "attacheddatanetwork", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AttachedDataNetworkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/id_attacheddatanetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/id_attacheddatanetwork.go index e56bbcceb350..2c487338000a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/id_attacheddatanetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/id_attacheddatanetwork.go @@ -46,7 +46,7 @@ func ParseAttachedDataNetworkID(input string) (*AttachedDataNetworkId, error) { } id := AttachedDataNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseAttachedDataNetworkIDInsensitively(input string) (*AttachedDataNetwork } id := AttachedDataNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id AttachedDataNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticPacketCoreControlPlanes", "packetCoreControlPlanes", "packetCoreControlPlanes"), - resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneValue"), + resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneName"), resourceids.StaticSegment("staticPacketCoreDataPlanes", "packetCoreDataPlanes", "packetCoreDataPlanes"), - resourceids.UserSpecifiedSegment("packetCoreDataPlaneName", "packetCoreDataPlaneValue"), + resourceids.UserSpecifiedSegment("packetCoreDataPlaneName", "packetCoreDataPlaneName"), resourceids.StaticSegment("staticAttachedDataNetworks", "attachedDataNetworks", "attachedDataNetworks"), - resourceids.UserSpecifiedSegment("attachedDataNetworkName", "attachedDataNetworkValue"), + resourceids.UserSpecifiedSegment("attachedDataNetworkName", "attachedDataNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_get.go index 0ddf3e539ddc..9d4a55cf0017 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_get.go @@ -45,7 +45,6 @@ func (c AttachedDataNetworkClient) Get(ctx context.Context, id AttachedDataNetwo var model AttachedDataNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_updatetags.go index 61cfb29e4376..647628bf2f1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/method_updatetags.go @@ -49,7 +49,6 @@ func (c AttachedDataNetworkClient) UpdateTags(ctx context.Context, id AttachedDa var model AttachedDataNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/version.go index c90c7d92ad7a..40042d615e5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/attacheddatanetwork/version.go @@ -1,12 +1,10 @@ package attacheddatanetwork -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/attacheddatanetwork/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/attacheddatanetwork/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/README.md index 2dd120bcb391..92664e6c96d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork` Documentation -The `datanetwork` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `datanetwork` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "dataNetworkValue") +id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "dataNetworkName") payload := datanetwork.DataNetwork{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "dataNetworkValue") +id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "dataNetworkName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "dataNetworkValue") +id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "dataNetworkName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "dataNetworkValue") +id := datanetwork.NewDataNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "dataNetworkName") payload := datanetwork.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/client.go index 24738bf5e57f..4f00bc2f0bab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/client.go @@ -15,7 +15,7 @@ type DataNetworkClient struct { } func NewDataNetworkClientWithBaseURI(sdkApi sdkEnv.Api) (*DataNetworkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datanetwork", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datanetwork", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataNetworkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/id_datanetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/id_datanetwork.go index 0584ffc18bed..bd554661fa8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/id_datanetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/id_datanetwork.go @@ -44,7 +44,7 @@ func ParseDataNetworkID(input string) (*DataNetworkId, error) { } id := DataNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataNetworkIDInsensitively(input string) (*DataNetworkId, error) { } id := DataNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DataNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), resourceids.StaticSegment("staticDataNetworks", "dataNetworks", "dataNetworks"), - resourceids.UserSpecifiedSegment("dataNetworkName", "dataNetworkValue"), + resourceids.UserSpecifiedSegment("dataNetworkName", "dataNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_get.go index 54ae2abcc3b4..88693d49fd36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_get.go @@ -45,7 +45,6 @@ func (c DataNetworkClient) Get(ctx context.Context, id DataNetworkId) (result Ge var model DataNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_updatetags.go index dff4c238fc87..f7ea32079701 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/method_updatetags.go @@ -49,7 +49,6 @@ func (c DataNetworkClient) UpdateTags(ctx context.Context, id DataNetworkId, inp var model DataNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/version.go index abf5d4503873..333e0987dc5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/datanetwork/version.go @@ -1,12 +1,10 @@ package datanetwork -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datanetwork/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datanetwork/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/README.md index 1f275c38d074..2b1a747e39a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork` Documentation -The `mobilenetwork` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `mobilenetwork` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue") +id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName") payload := mobilenetwork.MobileNetwork{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue") +id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue") +id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue") +id := mobilenetwork.NewMobileNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName") payload := mobilenetwork.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/client.go index f88a782b68d7..98a2a62ba91d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/client.go @@ -15,7 +15,7 @@ type MobileNetworkClient struct { } func NewMobileNetworkClientWithBaseURI(sdkApi sdkEnv.Api) (*MobileNetworkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "mobilenetwork", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "mobilenetwork", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MobileNetworkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/id_mobilenetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/id_mobilenetwork.go index 20e7a7772394..9e475605cc25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/id_mobilenetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/id_mobilenetwork.go @@ -42,7 +42,7 @@ func ParseMobileNetworkID(input string) (*MobileNetworkId, error) { } id := MobileNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMobileNetworkIDInsensitively(input string) (*MobileNetworkId, error) { } id := MobileNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MobileNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_get.go index b79e2d38c14d..fd4563e7a5cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_get.go @@ -45,7 +45,6 @@ func (c MobileNetworkClient) Get(ctx context.Context, id MobileNetworkId) (resul var model MobileNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_updatetags.go index 08a3b066d566..d30e53471751 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/method_updatetags.go @@ -49,7 +49,6 @@ func (c MobileNetworkClient) UpdateTags(ctx context.Context, id MobileNetworkId, var model MobileNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/version.go index 3908c584409a..1eabd090b2ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/mobilenetwork/version.go @@ -1,12 +1,10 @@ package mobilenetwork -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/mobilenetwork/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/mobilenetwork/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/README.md index 34afedc81ad2..65555613af5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane` Documentation -The `packetcorecontrolplane` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `packetcorecontrolplane` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue") +id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName") payload := packetcorecontrolplane.PacketCoreControlPlane{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue") +id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue") +id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue") +id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName") payload := packetcorecontrolplane.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/client.go index 351920cd18ec..9bd5d5e54b20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/client.go @@ -15,7 +15,7 @@ type PacketCoreControlPlaneClient struct { } func NewPacketCoreControlPlaneClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCoreControlPlaneClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "packetcorecontrolplane", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "packetcorecontrolplane", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PacketCoreControlPlaneClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/id_packetcorecontrolplane.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/id_packetcorecontrolplane.go index 17beafd27d82..63427aea83b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/id_packetcorecontrolplane.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/id_packetcorecontrolplane.go @@ -42,7 +42,7 @@ func ParsePacketCoreControlPlaneID(input string) (*PacketCoreControlPlaneId, err } id := PacketCoreControlPlaneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePacketCoreControlPlaneIDInsensitively(input string) (*PacketCoreContro } id := PacketCoreControlPlaneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PacketCoreControlPlaneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticPacketCoreControlPlanes", "packetCoreControlPlanes", "packetCoreControlPlanes"), - resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneValue"), + resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_get.go index 924161ba22fc..a438ec92444f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_get.go @@ -45,7 +45,6 @@ func (c PacketCoreControlPlaneClient) Get(ctx context.Context, id PacketCoreCont var model PacketCoreControlPlane result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_updatetags.go index 794e4221c0f7..161e70f3f5ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/method_updatetags.go @@ -49,7 +49,6 @@ func (c PacketCoreControlPlaneClient) UpdateTags(ctx context.Context, id PacketC var model PacketCoreControlPlane result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/version.go index ef8b06defdea..51dfd16057f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcorecontrolplane/version.go @@ -1,12 +1,10 @@ package packetcorecontrolplane -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/packetcorecontrolplane/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/packetcorecontrolplane/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/README.md index 8c64e46a8e9a..3d62b7f4759b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane` Documentation -The `packetcoredataplane` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `packetcoredataplane` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue") +id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName") payload := packetcoredataplane.PacketCoreDataPlane{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue") +id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue") +id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue") +id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName", "packetCoreDataPlaneName") payload := packetcoredataplane.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/client.go index dc550d86f7a4..d4703ae7e6ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/client.go @@ -15,7 +15,7 @@ type PacketCoreDataPlaneClient struct { } func NewPacketCoreDataPlaneClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCoreDataPlaneClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "packetcoredataplane", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "packetcoredataplane", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PacketCoreDataPlaneClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/id_packetcoredataplane.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/id_packetcoredataplane.go index 719ad90ad501..4d79d23186ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/id_packetcoredataplane.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/id_packetcoredataplane.go @@ -44,7 +44,7 @@ func ParsePacketCoreDataPlaneID(input string) (*PacketCoreDataPlaneId, error) { } id := PacketCoreDataPlaneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePacketCoreDataPlaneIDInsensitively(input string) (*PacketCoreDataPlane } id := PacketCoreDataPlaneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PacketCoreDataPlaneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticPacketCoreControlPlanes", "packetCoreControlPlanes", "packetCoreControlPlanes"), - resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneValue"), + resourceids.UserSpecifiedSegment("packetCoreControlPlaneName", "packetCoreControlPlaneName"), resourceids.StaticSegment("staticPacketCoreDataPlanes", "packetCoreDataPlanes", "packetCoreDataPlanes"), - resourceids.UserSpecifiedSegment("packetCoreDataPlaneName", "packetCoreDataPlaneValue"), + resourceids.UserSpecifiedSegment("packetCoreDataPlaneName", "packetCoreDataPlaneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_get.go index 6557c7e767dd..b4b4fd385b26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_get.go @@ -45,7 +45,6 @@ func (c PacketCoreDataPlaneClient) Get(ctx context.Context, id PacketCoreDataPla var model PacketCoreDataPlane result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_updatetags.go index 0f4fe0d633b0..81b297186591 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/method_updatetags.go @@ -49,7 +49,6 @@ func (c PacketCoreDataPlaneClient) UpdateTags(ctx context.Context, id PacketCore var model PacketCoreDataPlane result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/version.go index 999484fedda6..ecd597d9a1c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane/version.go @@ -1,12 +1,10 @@ package packetcoredataplane -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/packetcoredataplane/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/packetcoredataplane/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/README.md index de4a2e78c17b..2f57244c4433 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service` Documentation -The `service` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `service` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "serviceValue") +id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "serviceName") payload := service.Service{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "serviceValue") +id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "serviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "serviceValue") +id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "serviceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "serviceValue") +id := service.NewServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "serviceName") payload := service.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/client.go index d0e66ae6f3f7..a8e0275e2570 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/client.go @@ -15,7 +15,7 @@ type ServiceClient struct { } func NewServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "service", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "service", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/id_service.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/id_service.go index cd77155d153d..686edbd7f42f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/id_service.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/id_service.go @@ -44,7 +44,7 @@ func ParseServiceID(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServiceIDInsensitively(input string) (*ServiceId, error) { } id := ServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), resourceids.StaticSegment("staticServices", "services", "services"), - resourceids.UserSpecifiedSegment("serviceName", "serviceValue"), + resourceids.UserSpecifiedSegment("serviceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_get.go index aa0841483b12..4bbd23711f8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_get.go @@ -45,7 +45,6 @@ func (c ServiceClient) Get(ctx context.Context, id ServiceId) (result GetOperati var model Service result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_updatetags.go index 919c2c845df4..ea1ba2b6c180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/method_updatetags.go @@ -49,7 +49,6 @@ func (c ServiceClient) UpdateTags(ctx context.Context, id ServiceId, input TagsO var model Service result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/version.go index eab1ed2588f1..d8a7ee36f5a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/service/version.go @@ -1,12 +1,10 @@ package service -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/service/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/service/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/README.md index 2f041edeee0c..5bbdd9c10d49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim` Documentation -The `sim` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `sim` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue", "simValue") +id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName", "simName") payload := sim.Sim{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue", "simValue") +id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName", "simName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue", "simValue") +id := sim.NewSimID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName", "simName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/client.go index 8a43d650628a..457692ff9794 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/client.go @@ -15,7 +15,7 @@ type SIMClient struct { } func NewSIMClientWithBaseURI(sdkApi sdkEnv.Api) (*SIMClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sim", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sim", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SIMClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/id_sim.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/id_sim.go index 4fb50ab65cec..06b26f5f65bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/id_sim.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/id_sim.go @@ -44,7 +44,7 @@ func ParseSimID(input string) (*SimId, error) { } id := SimId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSimIDInsensitively(input string) (*SimId, error) { } id := SimId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SimId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticSimGroups", "simGroups", "simGroups"), - resourceids.UserSpecifiedSegment("simGroupName", "simGroupValue"), + resourceids.UserSpecifiedSegment("simGroupName", "simGroupName"), resourceids.StaticSegment("staticSims", "sims", "sims"), - resourceids.UserSpecifiedSegment("simName", "simValue"), + resourceids.UserSpecifiedSegment("simName", "simName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/method_get.go index 6b99fbc6db77..3855c3d0263d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/method_get.go @@ -45,7 +45,6 @@ func (c SIMClient) Get(ctx context.Context, id SimId) (result GetOperationRespon var model Sim result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/version.go index 01dadd15fbed..5676de6ce634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/sim/version.go @@ -1,12 +1,10 @@ package sim -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sim/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sim/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/README.md index b471b0e9a6cb..b26d3924d688 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup` Documentation -The `simgroup` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `simgroup` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue") +id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName") payload := simgroup.SimGroup{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue") +id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue") +id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupValue") +id := simgroup.NewSimGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "simGroupName") payload := simgroup.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/client.go index 246564366ab1..336b11646d59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/client.go @@ -15,7 +15,7 @@ type SIMGroupClient struct { } func NewSIMGroupClientWithBaseURI(sdkApi sdkEnv.Api) (*SIMGroupClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "simgroup", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "simgroup", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SIMGroupClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/id_simgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/id_simgroup.go index 9da4886e888a..d52d71ecebeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/id_simgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/id_simgroup.go @@ -42,7 +42,7 @@ func ParseSimGroupID(input string) (*SimGroupId, error) { } id := SimGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSimGroupIDInsensitively(input string) (*SimGroupId, error) { } id := SimGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SimGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticSimGroups", "simGroups", "simGroups"), - resourceids.UserSpecifiedSegment("simGroupName", "simGroupValue"), + resourceids.UserSpecifiedSegment("simGroupName", "simGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_get.go index 6ea6342dc94d..f9a5b7170a7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_get.go @@ -45,7 +45,6 @@ func (c SIMGroupClient) Get(ctx context.Context, id SimGroupId) (result GetOpera var model SimGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_updatetags.go index 9694a05dfc95..196612911a11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/method_updatetags.go @@ -49,7 +49,6 @@ func (c SIMGroupClient) UpdateTags(ctx context.Context, id SimGroupId, input Tag var model SimGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/version.go index 7ea12388d3ad..e5aec838f753 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simgroup/version.go @@ -1,12 +1,10 @@ package simgroup -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/simgroup/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/simgroup/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/README.md index 4dd91eee79f4..02b0419343a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy` Documentation -The `simpolicy` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `simpolicy` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "simPolicyValue") +id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "simPolicyName") payload := simpolicy.SimPolicy{ // ... @@ -41,7 +41,7 @@ if err := client.SimPoliciesCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "simPolicyValue") +id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "simPolicyName") if err := client.SimPoliciesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.SimPoliciesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "simPolicyValue") +id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "simPolicyName") read, err := client.SimPoliciesGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "simPolicyValue") +id := simpolicy.NewSimPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "simPolicyName") payload := simpolicy.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/client.go index b6a8741ef88d..4ce44ec7ed6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/client.go @@ -15,7 +15,7 @@ type SIMPolicyClient struct { } func NewSIMPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*SIMPolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "simpolicy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "simpolicy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SIMPolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/id_simpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/id_simpolicy.go index ffd989be75ae..4368a53a5f27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/id_simpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/id_simpolicy.go @@ -44,7 +44,7 @@ func ParseSimPolicyID(input string) (*SimPolicyId, error) { } id := SimPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSimPolicyIDInsensitively(input string) (*SimPolicyId, error) { } id := SimPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SimPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), resourceids.StaticSegment("staticSimPolicies", "simPolicies", "simPolicies"), - resourceids.UserSpecifiedSegment("simPolicyName", "simPolicyValue"), + resourceids.UserSpecifiedSegment("simPolicyName", "simPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesget.go index e4dcc89e2df1..327e2ad7e674 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesget.go @@ -45,7 +45,6 @@ func (c SIMPolicyClient) SimPoliciesGet(ctx context.Context, id SimPolicyId) (re var model SimPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesupdatetags.go index dd132c078aa2..83f0a073a4af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/method_simpoliciesupdatetags.go @@ -49,7 +49,6 @@ func (c SIMPolicyClient) SimPoliciesUpdateTags(ctx context.Context, id SimPolicy var model SimPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/version.go index 58f7f1c142b9..4979be74a32c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/simpolicy/version.go @@ -1,12 +1,10 @@ package simpolicy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/simpolicy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/simpolicy/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/README.md index de495b510375..0b18678cbba1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site` Documentation -The `site` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `site` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "siteValue") +id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "siteName") payload := site.Site{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "siteValue") +id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "siteName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "siteValue") +id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "siteName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "siteValue") +id := site.NewSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "siteName") payload := site.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/client.go index 9cd860565b2b..bab4d23cff87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/client.go @@ -15,7 +15,7 @@ type SiteClient struct { } func NewSiteClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "site", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "site", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SiteClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/id_site.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/id_site.go index 9eddac47c821..b03097428577 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/id_site.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/id_site.go @@ -44,7 +44,7 @@ func ParseSiteID(input string) (*SiteId, error) { } id := SiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSiteIDInsensitively(input string) (*SiteId, error) { } id := SiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "siteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_get.go index d4bac52e0fab..f6b55484e63e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_get.go @@ -45,7 +45,6 @@ func (c SiteClient) Get(ctx context.Context, id SiteId) (result GetOperationResp var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_updatetags.go index 995a94bf8577..d6fc0f56612f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/method_updatetags.go @@ -49,7 +49,6 @@ func (c SiteClient) UpdateTags(ctx context.Context, id SiteId, input TagsObject) var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/version.go index e0176d59f879..1e248ebd2d2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/site/version.go @@ -1,12 +1,10 @@ package site -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/site/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/site/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/README.md index d90754b37bd1..fa623ed576f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice` Documentation -The `slice` SDK allows for interaction with the Azure Resource Manager Service `mobilenetwork` (API Version `2022-11-01`). +The `slice` SDK allows for interaction with Azure Resource Manager `mobilenetwork` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "sliceValue") +id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "sliceName") payload := slice.Slice{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "sliceValue") +id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "sliceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "sliceValue") +id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "sliceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkValue", "sliceValue") +id := slice.NewSliceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mobileNetworkName", "sliceName") payload := slice.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/client.go index 554bd7acc02d..7556daa518d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/client.go @@ -15,7 +15,7 @@ type SliceClient struct { } func NewSliceClientWithBaseURI(sdkApi sdkEnv.Api) (*SliceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "slice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "slice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SliceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/id_slice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/id_slice.go index 735c1e9f3ed8..030a44dba792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/id_slice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/id_slice.go @@ -44,7 +44,7 @@ func ParseSliceID(input string) (*SliceId, error) { } id := SliceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSliceIDInsensitively(input string) (*SliceId, error) { } id := SliceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SliceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftMobileNetwork", "Microsoft.MobileNetwork", "Microsoft.MobileNetwork"), resourceids.StaticSegment("staticMobileNetworks", "mobileNetworks", "mobileNetworks"), - resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkValue"), + resourceids.UserSpecifiedSegment("mobileNetworkName", "mobileNetworkName"), resourceids.StaticSegment("staticSlices", "slices", "slices"), - resourceids.UserSpecifiedSegment("sliceName", "sliceValue"), + resourceids.UserSpecifiedSegment("sliceName", "sliceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_get.go index 0b43d2deb199..9a67c294cdd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_get.go @@ -45,7 +45,6 @@ func (c SliceClient) Get(ctx context.Context, id SliceId) (result GetOperationRe var model Slice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_updatetags.go index faa019844ae2..8f1fd42c3d6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/method_updatetags.go @@ -49,7 +49,6 @@ func (c SliceClient) UpdateTags(ctx context.Context, id SliceId, input TagsObjec var model Slice result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/version.go index 0c450fcd1efe..3ded8c25013f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/slice/version.go @@ -1,12 +1,10 @@ package slice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/slice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/slice/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/README.md index eac56ad54767..698f632e8d87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2017-12-01`). +The `servers` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerForCreate{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/id_server.go index a88fcb177951..27d9d16c13af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_get.go index 7087cf8acac2..e321c1fa2888 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_get.go @@ -45,7 +45,6 @@ func (c ServersClient) Get(ctx context.Context, id ServerId) (result GetOperatio var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_list.go index 8b994fe1af5f..87327a49955b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_list.go @@ -47,7 +47,6 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_listbyresourcegroup.go index 7c7ceb1d7552..284daf49c839 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverforcreate.go index 171c190411b5..149518ee6509 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverforcreate.go @@ -21,10 +21,14 @@ type ServerForCreate struct { var _ json.Unmarshaler = &ServerForCreate{} func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { - type alias ServerForCreate - var decoded alias + var decoded struct { + Identity *identity.SystemAssigned `json:"identity,omitempty"` + Location string `json:"location"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServerForCreate: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Identity = decoded.Identity @@ -38,11 +42,12 @@ func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalServerPropertiesForCreateImplementation(v) + impl, err := UnmarshalServerPropertiesForCreateImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ServerForCreate': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforcreate.go index 84868e2551eb..8ad4cf10e336 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforcreate.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ServerPropertiesForCreate interface { + ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl } -// RawServerPropertiesForCreateImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ServerPropertiesForCreate = BaseServerPropertiesForCreateImpl{} + +type BaseServerPropertiesForCreateImpl struct { + CreateMode CreateMode `json:"createMode"` + InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` + MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` + PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` + SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (s BaseServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s +} + +var _ ServerPropertiesForCreate = RawServerPropertiesForCreateImpl{} + +// RawServerPropertiesForCreateImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawServerPropertiesForCreateImpl struct { - Type string - Values map[string]interface{} + serverPropertiesForCreate BaseServerPropertiesForCreateImpl + Type string + Values map[string]interface{} +} + +func (s RawServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s.serverPropertiesForCreate } -func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { +func UnmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return nil, fmt.Errorf("unmarshaling ServerPropertiesForCreate into map[string]interface: %+v", err) } - value, ok := temp["createMode"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["createMode"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Default") { @@ -68,10 +91,15 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return out, nil } - out := RawServerPropertiesForCreateImpl{ - Type: value, - Values: temp, + var parent BaseServerPropertiesForCreateImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseServerPropertiesForCreateImpl: %+v", err) } - return out, nil + + return RawServerPropertiesForCreateImpl{ + serverPropertiesForCreate: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go index efa1824c8386..59c728717e70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go @@ -15,6 +15,8 @@ type ServerPropertiesForDefaultCreate struct { AdministratorLoginPassword string `json:"administratorLoginPassword"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -23,6 +25,18 @@ type ServerPropertiesForDefaultCreate struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForDefaultCreate) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForDefaultCreate{} func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { @@ -34,9 +48,10 @@ func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForDefaultCreate: %+v", err) } + decoded["createMode"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforgeorestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforgeorestore.go index f3775b48d536..0be124f40483 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforgeorestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforgeorestore.go @@ -14,6 +14,8 @@ type ServerPropertiesForGeoRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -22,6 +24,18 @@ type ServerPropertiesForGeoRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForGeoRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForGeoRestore{} func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForGeoRestore: %+v", err) } + decoded["createMode"] = "GeoRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforreplica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforreplica.go index 9f8a64ee6e76..973fb257c237 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforreplica.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforreplica.go @@ -14,6 +14,8 @@ type ServerPropertiesForReplica struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -22,6 +24,18 @@ type ServerPropertiesForReplica struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForReplica) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForReplica{} func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForReplica: %+v", err) } + decoded["createMode"] = "Replica" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforrestore.go index 0a74bb938170..f28614737ea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforrestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/model_serverpropertiesforrestore.go @@ -15,6 +15,8 @@ type ServerPropertiesForRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -23,6 +25,18 @@ type ServerPropertiesForRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForRestore{} func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { @@ -34,9 +48,10 @@ func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForRestore: %+v", err) } + decoded["createMode"] = "PointInTimeRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/version.go index 80804cb01558..8a2153019661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2017-12-01/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md index cba9b945344f..78cfcc733819 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators` Documentation -The `azureadadministrators` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `azureadadministrators` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := azureadadministrators.AzureADAdministrator{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := azureadadministrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go index a2d0a463f329..47f793377238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/client.go @@ -15,7 +15,7 @@ type AzureADAdministratorsClient struct { } func NewAzureADAdministratorsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureADAdministratorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "azureadadministrators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "azureadadministrators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AzureADAdministratorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go index 5c86b6ccb08f..685c4b35cc38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go index 0fd098fc2adf..1a645900b98f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/method_get.go @@ -46,7 +46,6 @@ func (c AzureADAdministratorsClient) Get(ctx context.Context, id FlexibleServerI var model AzureADAdministrator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go index 0b6209b34a39..397f8090aa1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/azureadadministrators/version.go @@ -1,12 +1,10 @@ package azureadadministrators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/azureadadministrators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/azureadadministrators/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md index d6bc92c2acf2..a114f1808ba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups` Documentation -The `backups` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `backups` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "backupValue") +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "backupName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backups.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := backups.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "backupValue") +id := backups.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "backupName") read, err := client.Put(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go index a0f81d2a6aba..6e1cc70d4343 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/client.go @@ -15,7 +15,7 @@ type BackupsClient struct { } func NewBackupsClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go index 32a9611ee77e..3192cb962bb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_backup.go @@ -44,7 +44,7 @@ func ParseBackupID(input string) (*BackupId, error) { } id := BackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupIDInsensitively(input string) (*BackupId, error) { } id := BackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticBackups", "backups", "backups"), - resourceids.UserSpecifiedSegment("backupName", "backupValue"), + resourceids.UserSpecifiedSegment("backupName", "backupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go index 836342b0045d..d1f503cc0a84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go index d3be30211efd..43a1081766a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_get.go @@ -45,7 +45,6 @@ func (c BackupsClient) Get(ctx context.Context, id BackupId) (result GetOperatio var model ServerBackup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go index 8d43e627c17d..b743c45357d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/method_put.go @@ -45,7 +45,6 @@ func (c BackupsClient) Put(ctx context.Context, id BackupId) (result PutOperatio var model ServerBackup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go index 91f95dd8aeb2..2ce3b030269d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/backups/version.go @@ -1,12 +1,10 @@ package backups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backups/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md index b8dbe3f4fdc6..3c36f60a77c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability` Documentation -The `checknameavailability` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `checknameavailability` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checknameavailability.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := checknameavailability.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") payload := checknameavailability.NameAvailabilityRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go index 9991e58a5184..777c8ea9e9f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/client.go @@ -15,7 +15,7 @@ type CheckNameAvailabilityClient struct { } func NewCheckNameAvailabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckNameAvailabilityClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "checknameavailability", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "checknameavailability", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CheckNameAvailabilityClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go index ba921812b5f8..04feda826a33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go index 4772940faa41..b082e9475f9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_execute.go @@ -50,7 +50,6 @@ func (c CheckNameAvailabilityClient) Execute(ctx context.Context, id LocationId, var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go index db0476bd987d..461304d80350 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/method_withoutlocationexecute.go @@ -51,7 +51,6 @@ func (c CheckNameAvailabilityClient) WithoutLocationExecute(ctx context.Context, var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go index 570fa81a003c..d551067987e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/checknameavailability/version.go @@ -1,12 +1,10 @@ package checknameavailability -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/checknameavailability/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/checknameavailability/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md index 5cf4d68f5ce3..e23e1e281141 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `configurations` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := configurations.ConfigurationListForBatchUpdate{ // ... @@ -46,7 +46,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") payload := configurations.Configuration{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id, configurations.DefaultListByServerOperationOptions())` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id, configurations.DefaultListByServerOperationOptions()) @@ -96,7 +96,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") payload := configurations.Configuration{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go index 3ced22d176bb..f927d73df196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/client.go @@ -15,7 +15,7 @@ type ConfigurationsClient struct { } func NewConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go index 6bfd24e33ced..8441d67c7d2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go index 6b0f01f20bdf..2fff44f5642e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go index e9c5e825e444..4526746d05fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) Get(ctx context.Context, id ConfigurationId) (resu var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go index cb3120c513fd..55d29cdad437 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/method_listbyserver.go @@ -42,6 +42,7 @@ func (o ListByServerOperationOptions) ToHeaders() *client.Headers { func (o ListByServerOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go index c91dc76206fb..76611e0f07eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/configurations/version.go @@ -1,12 +1,10 @@ package configurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurations/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md index d81cd68c5c42..b578d1ef93bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `databases` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.Database{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go index 604b409123f3..d79759ccff21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go index 8ebd1579ee9f..9dfa737db7a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go index dcbfb4b8270e..df1a873b818c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/method_get.go @@ -45,7 +45,6 @@ func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOper var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go index 925ad65c153e..4db681f665c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md index c5b4f8ab7f35..e30ea814d907 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") payload := firewallrules.FirewallRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go index c66aa731bd4d..33457c8f62c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go index 26dc5a21b081..a6099b7c6914 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go index 37bca7c40d82..6b53b2919c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go index c96e99a28a32..086290b4d014 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md index a893cd14eacf..ddf9c6f83792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix` Documentation -The `getprivatednszonesuffix` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `getprivatednszonesuffix` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go index 077140562811..cf157d284cce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/client.go @@ -15,7 +15,7 @@ type GetPrivateDnsZoneSuffixClient struct { } func NewGetPrivateDnsZoneSuffixClientWithBaseURI(sdkApi sdkEnv.Api) (*GetPrivateDnsZoneSuffixClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "getprivatednszonesuffix", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "getprivatednszonesuffix", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GetPrivateDnsZoneSuffixClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go index 480e45bca944..3a476e762e55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/method_execute.go @@ -45,7 +45,6 @@ func (c GetPrivateDnsZoneSuffixClient) Execute(ctx context.Context) (result Exec var model GetPrivateDnsZoneSuffixResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go index d5e2b6bda7b3..d6e350b825e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/getprivatednszonesuffix/version.go @@ -1,12 +1,10 @@ package getprivatednszonesuffix -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/getprivatednszonesuffix/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/getprivatednszonesuffix/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md index a8c4f04afa8b..b85d169036f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities` Documentation -The `locationbasedcapabilities` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `locationbasedcapabilities` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := locationbasedcapabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := locationbasedcapabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go index bd581d8a3f7b..e54b57a554bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/client.go @@ -15,7 +15,7 @@ type LocationBasedCapabilitiesClient struct { } func NewLocationBasedCapabilitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*LocationBasedCapabilitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "locationbasedcapabilities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "locationbasedcapabilities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocationBasedCapabilitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go index 9b2f24ee4b1a..93a4ab3b817b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go index 2d0679772a8c..3dbfeafab2e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/locationbasedcapabilities/version.go @@ -1,12 +1,10 @@ package locationbasedcapabilities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/locationbasedcapabilities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/locationbasedcapabilities/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md index 7f7d09c87291..3f039896f33b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles` Documentation -The `logfiles` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `logfiles` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := logfiles.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go index 8e5eb3275286..7c634ed99899 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/client.go @@ -15,7 +15,7 @@ type LogFilesClient struct { } func NewLogFilesClientWithBaseURI(sdkApi sdkEnv.Api) (*LogFilesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "logfiles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "logfiles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LogFilesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go index 23f598b45e14..2a25635c95ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go index 5f0a51699f00..f579fd4b1c62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/logfiles/version.go @@ -1,12 +1,10 @@ package logfiles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/logfiles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/logfiles/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go index da2795c80504..b205981fa98a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/client.go @@ -15,7 +15,7 @@ type ServerFailoverClient struct { } func NewServerFailoverClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerFailoverClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverfailover", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverfailover", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerFailoverClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go index 4d0ffcf6f67c..317472815621 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go index 062cc1c455a2..96583d28939e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverfailover/version.go @@ -1,12 +1,10 @@ package serverfailover -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverfailover/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverfailover/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md index 927869906b01..c24f2e9c8f53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart` Documentation -The `serverrestart` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `serverrestart` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverrestart.ServerRestartParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go index 0a08b2a68205..b3cc7f2e6a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/client.go @@ -15,7 +15,7 @@ type ServerRestartClient struct { } func NewServerRestartClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerRestartClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverrestart", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverrestart", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerRestartClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go index fdcf2092d552..5a317805c528 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go index 80aaca6b1f13..abea028194d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverrestart/version.go @@ -1,12 +1,10 @@ package serverrestart -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverrestart/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverrestart/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md index f5fc13ad7847..a718022b462d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `mysql` (API Version `2022-01-01`). +The `servers` SDK allows for interaction with Azure Resource Manager `mysql` (API Version `2022-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.Server{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ReplicasListByServer(ctx, id)` can be used to do batched pagination items, err := client.ReplicasListByServerComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go index aaebb48280d4..39a75b17c44b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go index 3501739e6323..fea9d5443d84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/method_get.go @@ -45,7 +45,6 @@ func (c ServersClient) Get(ctx context.Context, id FlexibleServerId) (result Get var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go index ca20aadce54a..47918e464a75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go index 8522b2703245..9dbb3fb13506 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/client.go @@ -15,7 +15,7 @@ type ServerStartClient struct { } func NewServerStartClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerStartClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverstart", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverstart", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerStartClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go index 42ff836d2e01..5335a9839d67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go index 4c27bb142235..a551280f9ba0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstart/version.go @@ -1,12 +1,10 @@ package serverstart -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverstart/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverstart/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go index 1646d43a0057..6a321e699a9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/client.go @@ -15,7 +15,7 @@ type ServerStopClient struct { } func NewServerStopClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerStopClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverstop", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverstop", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerStopClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go index 0bc6abc8f188..ef096b1ec1e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforMySQL", "Microsoft.DBforMySQL", "Microsoft.DBforMySQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go index a2f8f0dc7c73..a96f76fa23c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2022-01-01/serverstop/version.go @@ -1,12 +1,10 @@ package serverstop -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverstop/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverstop/2022-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md index a5e792539322..11b7945e9ed2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools` Documentation -The `capacitypools` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `capacitypools` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue") +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") payload := capacitypools.CapacityPool{ // ... @@ -41,7 +41,7 @@ if err := client.PoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue") +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") if err := client.PoolsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.PoolsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue") +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") read, err := client.PoolsGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacitypools.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := capacitypools.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") // alternatively `client.PoolsList(ctx, id)` can be used to do batched pagination items, err := client.PoolsListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue") +id := capacitypools.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") payload := capacitypools.CapacityPoolPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go index 3de33a3dc5bd..d7a8be4e0765 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/client.go @@ -15,7 +15,7 @@ type CapacityPoolsClient struct { } func NewCapacityPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacityPoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capacitypools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capacitypools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapacityPoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go index 30b273057996..5f54bf960577 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_capacitypool.go @@ -44,7 +44,7 @@ func ParseCapacityPoolID(input string) (*CapacityPoolId, error) { } id := CapacityPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCapacityPoolIDInsensitively(input string) (*CapacityPoolId, error) { } id := CapacityPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CapacityPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go index a77679932dd5..0a3b033027ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/id_netappaccount.go @@ -42,7 +42,7 @@ func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetAppAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go index d2f91e09044e..f9d5fcc85317 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/method_poolsget.go @@ -45,7 +45,6 @@ func (c CapacityPoolsClient) PoolsGet(ctx context.Context, id CapacityPoolId) (r var model CapacityPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go index b111b9e4e5fb..827826ab30a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/capacitypools/version.go @@ -1,12 +1,10 @@ package capacitypools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capacitypools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capacitypools/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md index e22e3bf16194..6db578f170ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts` Documentation -The `netappaccounts` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `netappaccounts` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := netappaccounts.NetAppAccount{ // ... @@ -42,7 +42,7 @@ if err := client.AccountsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.AccountsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.AccountsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.AccountsRenewCredentialsThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +116,7 @@ if err := client.AccountsRenewCredentialsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := netappaccounts.NetAppAccountPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go index 172f1218e2cb..240204954a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/client.go @@ -15,7 +15,7 @@ type NetAppAccountsClient struct { } func NewNetAppAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetAppAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "netappaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "netappaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetAppAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go index a93e2cd2ea84..a551456fc35a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/id_netappaccount.go @@ -42,7 +42,7 @@ func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetAppAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go index dc67125153f1..c1ec9504bf9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/method_accountsget.go @@ -45,7 +45,6 @@ func (c NetAppAccountsClient) AccountsGet(ctx context.Context, id NetAppAccountI var model NetAppAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go index 9425f9d13730..c5c99dfeca81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/netappaccounts/version.go @@ -1,12 +1,10 @@ package netappaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/netappaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/netappaccounts/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md index 22b6030bb114..5f0a41f261bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy` Documentation -The `snapshotpolicy` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `snapshotpolicy` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "snapshotPolicyValue") +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "snapshotPolicyName") payload := snapshotpolicy.SnapshotPolicy{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "snapshotPolicyValue") +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "snapshotPolicyName") if err := client.SnapshotPoliciesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.SnapshotPoliciesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "snapshotPolicyValue") +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "snapshotPolicyName") read, err := client.SnapshotPoliciesGet(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshotpolicy.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := snapshotpolicy.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.SnapshotPoliciesList(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "snapshotPolicyValue") +id := snapshotpolicy.NewSnapshotPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "snapshotPolicyName") payload := snapshotpolicy.SnapshotPolicyPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go index eebb8c7b8dac..e92eedba749c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/client.go @@ -15,7 +15,7 @@ type SnapshotPolicyClient struct { } func NewSnapshotPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotPolicyClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshotpolicy", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshotpolicy", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotPolicyClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go index 51822e9aaf3f..2a04383c0dee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_netappaccount.go @@ -42,7 +42,7 @@ func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetAppAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go index c007ae89039f..4db1ae3a00d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/id_snapshotpolicy.go @@ -44,7 +44,7 @@ func ParseSnapshotPolicyID(input string) (*SnapshotPolicyId, error) { } id := SnapshotPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSnapshotPolicyIDInsensitively(input string) (*SnapshotPolicyId, error) } id := SnapshotPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SnapshotPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticSnapshotPolicies", "snapshotPolicies", "snapshotPolicies"), - resourceids.UserSpecifiedSegment("snapshotPolicyName", "snapshotPolicyValue"), + resourceids.UserSpecifiedSegment("snapshotPolicyName", "snapshotPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go index f0aaa54617e4..8210e2fad73f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciescreate.go @@ -50,7 +50,6 @@ func (c SnapshotPolicyClient) SnapshotPoliciesCreate(ctx context.Context, id Sna var model SnapshotPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go index 53aa8b06361d..15d2b69d7c1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpoliciesget.go @@ -45,7 +45,6 @@ func (c SnapshotPolicyClient) SnapshotPoliciesGet(ctx context.Context, id Snapsh var model SnapshotPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go index 50c611c5cb04..eca667d1eb41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/method_snapshotpolicieslist.go @@ -46,7 +46,6 @@ func (c SnapshotPolicyClient) SnapshotPoliciesList(ctx context.Context, id NetAp var model SnapshotPoliciesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go index 1620c184210d..4030344dfeee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshotpolicy/version.go @@ -1,12 +1,10 @@ package snapshotpolicy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshotpolicy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshotpolicy/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md index 9c4217850ed1..70685196b4a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `snapshots` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "snapshotName") payload := snapshots.Snapshot{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "snapshotName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "snapshotName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := snapshots.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "snapshotName") payload := snapshots.SnapshotRestoreFiles{ // ... @@ -102,7 +102,7 @@ if err := client.RestoreFilesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "snapshotValue") +id := snapshots.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "snapshotName") var payload interface{} if err := client.UpdateThenPoll(ctx, id, payload); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go index 620b7900eab7..678a64470aaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/client.go @@ -15,7 +15,7 @@ type SnapshotsClient struct { } func NewSnapshotsClientWithBaseURI(sdkApi sdkEnv.Api) (*SnapshotsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "snapshots", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "snapshots", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SnapshotsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go index 1712cf991869..bb9f92dd3d85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_snapshot.go @@ -48,7 +48,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotName", "snapshotValue"), + resourceids.UserSpecifiedSegment("snapshotName", "snapshotName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go index 1d8f9e618054..3c7c80a660d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/id_volume.go @@ -46,7 +46,7 @@ func ParseVolumeID(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VolumeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go index d020538006a5..68b676f0115f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_get.go @@ -45,7 +45,6 @@ func (c SnapshotsClient) Get(ctx context.Context, id SnapshotId) (result GetOper var model Snapshot result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go index d60b22e27a92..77c6da221597 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/method_list.go @@ -46,7 +46,6 @@ func (c SnapshotsClient) List(ctx context.Context, id VolumeId) (result ListOper var model SnapshotsList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go index 636463b4c27f..83ff2ccae966 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/snapshots/version.go @@ -1,12 +1,10 @@ package snapshots -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/snapshots/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md index e1c45d7bd1ea..b9770840b540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups` Documentation -The `volumegroups` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `volumegroups` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "volumeGroupName") payload := volumegroups.VolumeGroupDetails{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "volumeGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "volumeGroupValue") +id := volumegroups.NewVolumeGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "volumeGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumegroups.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue") +id := volumegroups.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.ListByNetAppAccount(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go index a117e697f045..580e5ac9fb80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/client.go @@ -15,7 +15,7 @@ type VolumeGroupsClient struct { } func NewVolumeGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumeGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumeGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go index e41dc1600a0e..11b871e68f6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_netappaccount.go @@ -42,7 +42,7 @@ func ParseNetAppAccountID(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetAppAccountIDInsensitively(input string) (*NetAppAccountId, error) { } id := NetAppAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetAppAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go index f42fe51614d7..16d7214529ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/id_volumegroup.go @@ -44,7 +44,7 @@ func ParseVolumeGroupID(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVolumeGroupIDInsensitively(input string) (*VolumeGroupId, error) { } id := VolumeGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VolumeGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticVolumeGroups", "volumeGroups", "volumeGroups"), - resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupValue"), + resourceids.UserSpecifiedSegment("volumeGroupName", "volumeGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go index 981869d83d57..59130918900a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_get.go @@ -45,7 +45,6 @@ func (c VolumeGroupsClient) Get(ctx context.Context, id VolumeGroupId) (result G var model VolumeGroupDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go index a97d08872012..29dee7649798 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/method_listbynetappaccount.go @@ -46,7 +46,6 @@ func (c VolumeGroupsClient) ListByNetAppAccount(ctx context.Context, id NetAppAc var model VolumeGroupList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go index 9b0ac047bbe7..7c7d97845045 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumegroups/version.go @@ -1,12 +1,10 @@ package volumegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumegroups/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md index 05ed28b53177..204d799cc758 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules` Documentation -The `volumequotarules` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `volumequotarules` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "volumeQuotaRuleValue") +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "volumeQuotaRuleName") payload := volumequotarules.VolumeQuotaRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "volumeQuotaRuleValue") +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "volumeQuotaRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "volumeQuotaRuleValue") +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "volumeQuotaRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumequotarules.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumequotarules.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") read, err := client.ListByVolume(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue", "volumeQuotaRuleValue") +id := volumequotarules.NewVolumeQuotaRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName", "volumeQuotaRuleName") payload := volumequotarules.VolumeQuotaRulePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go index c6c70e112e06..b42efdd36e21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/client.go @@ -15,7 +15,7 @@ type VolumeQuotaRulesClient struct { } func NewVolumeQuotaRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumeQuotaRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumequotarules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumequotarules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumeQuotaRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go index 6dad4e030b2a..149860704d1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volume.go @@ -46,7 +46,7 @@ func ParseVolumeID(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VolumeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go index e61ab571acc1..0884c5a5035e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/id_volumequotarule.go @@ -48,7 +48,7 @@ func ParseVolumeQuotaRuleID(input string) (*VolumeQuotaRuleId, error) { } id := VolumeQuotaRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseVolumeQuotaRuleIDInsensitively(input string) (*VolumeQuotaRuleId, erro } id := VolumeQuotaRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id VolumeQuotaRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), resourceids.StaticSegment("staticVolumeQuotaRules", "volumeQuotaRules", "volumeQuotaRules"), - resourceids.UserSpecifiedSegment("volumeQuotaRuleName", "volumeQuotaRuleValue"), + resourceids.UserSpecifiedSegment("volumeQuotaRuleName", "volumeQuotaRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go index 88aa05a37099..0c82ebc839b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_get.go @@ -45,7 +45,6 @@ func (c VolumeQuotaRulesClient) Get(ctx context.Context, id VolumeQuotaRuleId) ( var model VolumeQuotaRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go index ed643e0c5b04..87cd029de346 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/method_listbyvolume.go @@ -46,7 +46,6 @@ func (c VolumeQuotaRulesClient) ListByVolume(ctx context.Context, id VolumeId) ( var model VolumeQuotaRulesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go index 530ef976e873..331229644b27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumequotarules/version.go @@ -1,12 +1,10 @@ package volumequotarules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumequotarules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumequotarules/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md index 95b0e0742a0b..afb2cf79ad90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes` Documentation -The `volumes` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `volumes` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") payload := volumes.Volume{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, volumes.DefaultDeleteOperationOptions() ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumes.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue") +id := volumes.NewCapacityPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") if err := client.PopulateAvailabilityZoneThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.PopulateAvailabilityZoneThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumes.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") payload := volumes.VolumePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go index 9f34fb4a6eb1..6ead8cc3e7dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/client.go @@ -15,7 +15,7 @@ type VolumesClient struct { } func NewVolumesClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go index baea2acd8568..e667d5a56913 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_capacitypool.go @@ -44,7 +44,7 @@ func ParseCapacityPoolID(input string) (*CapacityPoolId, error) { } id := CapacityPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCapacityPoolIDInsensitively(input string) (*CapacityPoolId, error) { } id := CapacityPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CapacityPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go index 2144d7750a29..a41faa0cf262 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/id_volume.go @@ -46,7 +46,7 @@ func ParseVolumeID(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VolumeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go index cf50dbfa90f7..c449fa7d2b8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go index a62cc7f84a3e..1f99d9518184 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/method_get.go @@ -45,7 +45,6 @@ func (c VolumesClient) Get(ctx context.Context, id VolumeId) (result GetOperatio var model Volume result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go index 5b33cd0a49e3..f53e1e97e5ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumes/version.go @@ -1,12 +1,10 @@ package volumes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumes/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md index 7b11775bc185..256ba642bbc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication` Documentation -The `volumesreplication` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2023-05-01`). +The `volumesreplication` SDK allows for interaction with Azure Resource Manager `netapp` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") payload := volumesreplication.AuthorizeRequest{ // ... @@ -41,7 +41,7 @@ if err := client.VolumesAuthorizeReplicationThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") payload := volumesreplication.BreakReplicationRequest{ // ... @@ -58,7 +58,7 @@ if err := client.VolumesBreakReplicationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") if err := client.VolumesDeleteReplicationThenPoll(ctx, id); err != nil { // handle the error @@ -70,7 +70,7 @@ if err := client.VolumesDeleteReplicationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") read, err := client.VolumesListReplications(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") if err := client.VolumesReInitializeReplicationThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.VolumesReInitializeReplicationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") payload := volumesreplication.ReestablishReplicationRequest{ // ... @@ -115,7 +115,7 @@ if err := client.VolumesReestablishReplicationThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") read, err := client.VolumesReplicationStatus(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "netAppAccountValue", "capacityPoolValue", "volumeValue") +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "poolName", "volumeName") if err := client.VolumesResyncReplicationThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go index 278506e484ea..092e04c0a0dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/client.go @@ -15,7 +15,7 @@ type VolumesReplicationClient struct { } func NewVolumesReplicationClientWithBaseURI(sdkApi sdkEnv.Api) (*VolumesReplicationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "volumesreplication", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "volumesreplication", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VolumesReplicationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go index 0a7eb12df02d..d5cd1a7bb6be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/id_volume.go @@ -46,7 +46,7 @@ func ParseVolumeID(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVolumeIDInsensitively(input string) (*VolumeId, error) { } id := VolumeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VolumeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetApp", "Microsoft.NetApp", "Microsoft.NetApp"), resourceids.StaticSegment("staticNetAppAccounts", "netAppAccounts", "netAppAccounts"), - resourceids.UserSpecifiedSegment("netAppAccountName", "netAppAccountValue"), + resourceids.UserSpecifiedSegment("netAppAccountName", "accountName"), resourceids.StaticSegment("staticCapacityPools", "capacityPools", "capacityPools"), - resourceids.UserSpecifiedSegment("capacityPoolName", "capacityPoolValue"), + resourceids.UserSpecifiedSegment("capacityPoolName", "poolName"), resourceids.StaticSegment("staticVolumes", "volumes", "volumes"), - resourceids.UserSpecifiedSegment("volumeName", "volumeValue"), + resourceids.UserSpecifiedSegment("volumeName", "volumeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go index 5a7f27f74078..bed3dfeb6729 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumeslistreplications.go @@ -46,7 +46,6 @@ func (c VolumesReplicationClient) VolumesListReplications(ctx context.Context, i var model ListReplications result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go index 6e7f09b9dbe4..2f626c608471 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/method_volumesreplicationstatus.go @@ -46,7 +46,6 @@ func (c VolumesReplicationClient) VolumesReplicationStatus(ctx context.Context, var model ReplicationStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go index 258bca3f8847..be1c25aec8f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2023-05-01/volumesreplication/version.go @@ -1,12 +1,10 @@ package volumesreplication -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/volumesreplication/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/volumesreplication/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md index 522d9ae5aeea..4dccc51e3297 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups` Documentation -The `applicationsecuritygroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") payload := applicationsecuritygroups.ApplicationSecurityGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") payload := applicationsecuritygroups.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/client.go index e607d64a7d39..81de33d92a02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/client.go @@ -15,7 +15,7 @@ type ApplicationSecurityGroupsClient struct { } func NewApplicationSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationSecurityGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationSecurityGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/id_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/id_applicationsecuritygroup.go index a776d455c057..65cacde62c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/id_applicationsecuritygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/id_applicationsecuritygroup.go @@ -42,7 +42,7 @@ func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, } id := ApplicationSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSec } id := ApplicationSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationSecurityGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationSecurityGroups", "applicationSecurityGroups", "applicationSecurityGroups"), - resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupValue"), + resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_get.go index 5990e4033ff6..88fdcf2df15b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id Application var model ApplicationSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_updatetags.go index 0343cea5693e..3337e0dc239b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/method_updatetags.go @@ -49,7 +49,6 @@ func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id Appl var model ApplicationSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/version.go index a5f040b06ba3..a52c51843134 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/applicationsecuritygroups/version.go @@ -1,12 +1,10 @@ package applicationsecuritygroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationsecuritygroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationsecuritygroups/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/README.md index 4640488d4b5b..1b9193f4d716 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls` Documentation -The `azurefirewalls` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.AzureFirewall{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") read, err := client.Get(ctx, id) if err != nil { @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.FirewallPacketCaptureParameters{ // ... @@ -133,7 +133,7 @@ if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/client.go index e1119aea9257..02df961b70b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/client.go @@ -15,7 +15,7 @@ type AzureFirewallsClient struct { } func NewAzureFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureFirewallsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "azurefirewalls", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "azurefirewalls", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AzureFirewallsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/id_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/id_azurefirewall.go index 20ab073f4485..5c55ccb6a6a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/id_azurefirewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/id_azurefirewall.go @@ -42,7 +42,7 @@ func ParseAzureFirewallID(input string) (*AzureFirewallId, error) { } id := AzureFirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAzureFirewallIDInsensitively(input string) (*AzureFirewallId, error) { } id := AzureFirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AzureFirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticAzureFirewalls", "azureFirewalls", "azureFirewalls"), - resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallValue"), + resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/method_get.go index 7fa6155aa4ab..e98027949215 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/method_get.go @@ -45,7 +45,6 @@ func (c AzureFirewallsClient) Get(ctx context.Context, id AzureFirewallId) (resu var model AzureFirewall result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/version.go index 542215396eff..c3d03adbf9ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/azurefirewalls/version.go @@ -1,12 +1,10 @@ package azurefirewalls -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/azurefirewalls/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/azurefirewalls/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/README.md index 9dac8516ef64..07c76f66c87d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans` Documentation -The `ddosprotectionplans` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") payload := ddosprotectionplans.DdosProtectionPlan{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") payload := ddosprotectionplans.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/client.go index de83f23ea42d..e117bf49a8f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/client.go @@ -15,7 +15,7 @@ type DdosProtectionPlansClient struct { } func NewDdosProtectionPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*DdosProtectionPlansClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ddosprotectionplans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ddosprotectionplans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DdosProtectionPlansClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/id_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/id_ddosprotectionplan.go index 1be4cad64d92..b886f8a4b1fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/id_ddosprotectionplan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/id_ddosprotectionplan.go @@ -42,7 +42,7 @@ func ParseDdosProtectionPlanID(input string) (*DdosProtectionPlanId, error) { } id := DdosProtectionPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDdosProtectionPlanIDInsensitively(input string) (*DdosProtectionPlanId } id := DdosProtectionPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DdosProtectionPlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDdosProtectionPlans", "ddosProtectionPlans", "ddosProtectionPlans"), - resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanValue"), + resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_get.go index 9003f8a00c35..7a92875442ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_get.go @@ -45,7 +45,6 @@ func (c DdosProtectionPlansClient) Get(ctx context.Context, id DdosProtectionPla var model DdosProtectionPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_updatetags.go index 07e469082e66..a5b91c81b71e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/method_updatetags.go @@ -49,7 +49,6 @@ func (c DdosProtectionPlansClient) UpdateTags(ctx context.Context, id DdosProtec var model DdosProtectionPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/version.go index 6c06c56468d1..bf9e5eafe737 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/ddosprotectionplans/version.go @@ -1,12 +1,10 @@ package ddosprotectionplans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ddosprotectionplans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ddosprotectionplans/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/README.md index 17556f6c1961..e3cdcd745bbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies` Documentation -The `firewallpolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `firewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.FirewallPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignatureOverridesFilterValuesQuery{ // ... @@ -75,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.IDPSQueryObject{ // ... @@ -96,7 +96,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyIdpsSignaturesOverridesGet(ctx, id) if err != nil { @@ -112,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyIdpsSignaturesOverridesList(ctx, id) if err != nil { @@ -128,7 +128,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignaturesOverrides{ // ... @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignaturesOverrides{ // ... @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.Get(ctx, id, firewallpolicies.DefaultGetOperationOptions()) if err != nil { @@ -220,7 +220,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/client.go index a162ae7a1c4a..fba92b74070b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/client.go @@ -15,7 +15,7 @@ type FirewallPoliciesClient struct { } func NewFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/id_firewallpolicy.go index b3ab374101cf..fdb530b04703 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/id_firewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/id_firewallpolicy.go @@ -42,7 +42,7 @@ func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyValue"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go index e13bba542e44..afb4f37a3fa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesFilterValuesList(ctx var model SignatureOverridesFilterValuesResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go index 3317a5b30467..657d39e5a745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesList(ctx context.Con var model QueryResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go index 0a494459f55c..4ff22b6ea426 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet(ctx con var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go index 0fb145a6c0cf..253dc4d80739 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList(ctx co var model SignaturesOverridesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go index 99eb2fc1d387..ebb6a03296b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch(ctx c var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go index 2b131f1a401b..51a0cf8dcc59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPut(ctx con var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_get.go index 2eee26d038ad..c57af3124f02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op var model FirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_updatetags.go index 05b103ecce7e..66cfb5cb6d4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/method_updatetags.go @@ -49,7 +49,6 @@ func (c FirewallPoliciesClient) UpdateTags(ctx context.Context, id FirewallPolic var model FirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/version.go index a3e5c95a0ff6..e233fd60d1ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/firewallpolicies/version.go @@ -1,12 +1,10 @@ package firewallpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallpolicies/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/README.md index 76af9cf056e0..c48a8d89d4ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs` Documentation -The `flowlogs` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") payload := flowlogs.FlowLog{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") payload := flowlogs.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/client.go index 9368055263b1..6294aac57742 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/client.go @@ -15,7 +15,7 @@ type FlowLogsClient struct { } func NewFlowLogsClientWithBaseURI(sdkApi sdkEnv.Api) (*FlowLogsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "flowlogs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "flowlogs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FlowLogsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_flowlog.go index 65f0fddaf417..17a0f248d39b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_flowlog.go @@ -44,7 +44,7 @@ func ParseFlowLogID(input string) (*FlowLogId, error) { } id := FlowLogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFlowLogIDInsensitively(input string) (*FlowLogId, error) { } id := FlowLogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FlowLogId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), resourceids.StaticSegment("staticFlowLogs", "flowLogs", "flowLogs"), - resourceids.UserSpecifiedSegment("flowLogName", "flowLogValue"), + resourceids.UserSpecifiedSegment("flowLogName", "flowLogName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_networkwatcher.go index 480aa5be3442..2862a3cc6b0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_get.go index 91942eff6d32..8677d6603547 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_get.go @@ -45,7 +45,6 @@ func (c FlowLogsClient) Get(ctx context.Context, id FlowLogId) (result GetOperat var model FlowLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_updatetags.go index 7ef9682b5649..1f7aec168713 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/method_updatetags.go @@ -49,7 +49,6 @@ func (c FlowLogsClient) UpdateTags(ctx context.Context, id FlowLogId, input Tags var model FlowLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/version.go index 52fa71fb9242..497698dd5fa8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/flowlogs/version.go @@ -1,12 +1,10 @@ package flowlogs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/flowlogs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/flowlogs/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/README.md index 69b0eef136b3..6402babb5027 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers` Documentation -The `loadbalancers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") payload := loadbalancers.LoadBalancer{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") read, err := client.Get(ctx, id, loadbalancers.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") payload := loadbalancers.InboundNatRule{ // ... @@ -87,7 +87,7 @@ if err := client.InboundNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +99,7 @@ if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") read, err := client.InboundNatRulesGet(ctx, id, loadbalancers.DefaultInboundNatRulesGetOperationOptions()) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.InboundNatRulesList(ctx, id)` can be used to do batched pagination items, err := client.InboundNatRulesListComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "groupName", "loadBalancerName", "backendPoolName") payload := loadbalancers.QueryInboundNatRulePortMappingRequest{ // ... @@ -183,7 +183,7 @@ if err := client.ListInboundNatRulePortMappingsThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") payload := loadbalancers.BackendAddressPool{ // ... @@ -200,7 +200,7 @@ if err := client.LoadBalancerBackendAddressPoolsCreateOrUpdateThenPoll(ctx, id, ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -212,7 +212,7 @@ if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") read, err := client.LoadBalancerBackendAddressPoolsGet(ctx, id) if err != nil { @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerBackendAddressPoolsList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerBackendAddressPoolsListComplete(ctx, id) @@ -245,7 +245,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "frontendIPConfigurationValue") +id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "frontendIPConfigurationName") read, err := client.LoadBalancerFrontendIPConfigurationsGet(ctx, id) if err != nil { @@ -261,7 +261,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerFrontendIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerFrontendIPConfigurationsListComplete(ctx, id) @@ -278,7 +278,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "loadBalancingRuleValue") +id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "loadBalancingRuleName") read, err := client.LoadBalancerLoadBalancingRulesGet(ctx, id) if err != nil { @@ -294,7 +294,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerLoadBalancingRulesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerLoadBalancingRulesListComplete(ctx, id) @@ -311,7 +311,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerNetworkInterfacesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerNetworkInterfacesListComplete(ctx, id) @@ -328,7 +328,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "outboundRuleValue") +id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "outboundRuleName") read, err := client.LoadBalancerOutboundRulesGet(ctx, id) if err != nil { @@ -344,7 +344,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerOutboundRulesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerOutboundRulesListComplete(ctx, id) @@ -361,7 +361,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "probeValue") +id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "probeName") read, err := client.LoadBalancerProbesGet(ctx, id) if err != nil { @@ -377,7 +377,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerProbesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerProbesListComplete(ctx, id) @@ -394,7 +394,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "loadBalancerValue") +id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "groupName", "loadBalancerName") payload := loadbalancers.MigrateLoadBalancerToIPBasedRequest{ // ... @@ -415,7 +415,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := loadbalancers.LoadBalancerVipSwapRequest{ // ... @@ -432,7 +432,7 @@ if err := client.SwapPublicIPAddressesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") payload := loadbalancers.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/client.go index 3d84973a7097..e0ea457759eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/client.go @@ -15,7 +15,7 @@ type LoadBalancersClient struct { } func NewLoadBalancersClientWithBaseURI(sdkApi sdkEnv.Api) (*LoadBalancersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "loadbalancers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "loadbalancers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LoadBalancersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_backendaddresspool.go index 57be52cf3373..8ed580c9198f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_backendaddresspool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_backendaddresspool.go @@ -44,7 +44,7 @@ func ParseBackendAddressPoolID(input string) (*BackendAddressPoolId, error) { } id := BackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackendAddressPoolIDInsensitively(input string) (*BackendAddressPoolId } id := BackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -117,13 +117,13 @@ func (id BackendAddressPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticBackendAddressPools", "backendAddressPools", "backendAddressPools"), - resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolValue"), + resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_frontendipconfiguration.go index dd3cba98217a..ed800474fe97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_frontendipconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_frontendipconfiguration.go @@ -44,7 +44,7 @@ func ParseFrontendIPConfigurationID(input string) (*FrontendIPConfigurationId, e } id := FrontendIPConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFrontendIPConfigurationIDInsensitively(input string) (*FrontendIPConfi } id := FrontendIPConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FrontendIPConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticFrontendIPConfigurations", "frontendIPConfigurations", "frontendIPConfigurations"), - resourceids.UserSpecifiedSegment("frontendIPConfigurationName", "frontendIPConfigurationValue"), + resourceids.UserSpecifiedSegment("frontendIPConfigurationName", "frontendIPConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_inboundnatrule.go index a460bece3520..0e4b79cc6198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_inboundnatrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_inboundnatrule.go @@ -44,7 +44,7 @@ func ParseInboundNatRuleID(input string) (*InboundNatRuleId, error) { } id := InboundNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInboundNatRuleIDInsensitively(input string) (*InboundNatRuleId, error) } id := InboundNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InboundNatRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticInboundNatRules", "inboundNatRules", "inboundNatRules"), - resourceids.UserSpecifiedSegment("inboundNatRuleName", "inboundNatRuleValue"), + resourceids.UserSpecifiedSegment("inboundNatRuleName", "inboundNatRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancer.go index 35278257e30e..ef69db4bf71d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancer.go @@ -42,7 +42,7 @@ func ParseLoadBalancerID(input string) (*LoadBalancerId, error) { } id := LoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLoadBalancerIDInsensitively(input string) (*LoadBalancerId, error) { } id := LoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,11 +111,11 @@ func (id LoadBalancerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancerbackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancerbackendaddresspool.go index d8fafa2347f2..f50fa912ccd1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancerbackendaddresspool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancerbackendaddresspool.go @@ -44,7 +44,7 @@ func ParseLoadBalancerBackendAddressPoolID(input string) (*LoadBalancerBackendAd } id := LoadBalancerBackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLoadBalancerBackendAddressPoolIDInsensitively(input string) (*LoadBala } id := LoadBalancerBackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LoadBalancerBackendAddressPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticBackendAddressPools", "backendAddressPools", "backendAddressPools"), - resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolValue"), + resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancingrule.go index 31e911e38af6..9ff4866e0d2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancingrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_loadbalancingrule.go @@ -44,7 +44,7 @@ func ParseLoadBalancingRuleID(input string) (*LoadBalancingRuleId, error) { } id := LoadBalancingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLoadBalancingRuleIDInsensitively(input string) (*LoadBalancingRuleId, } id := LoadBalancingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LoadBalancingRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticLoadBalancingRules", "loadBalancingRules", "loadBalancingRules"), - resourceids.UserSpecifiedSegment("loadBalancingRuleName", "loadBalancingRuleValue"), + resourceids.UserSpecifiedSegment("loadBalancingRuleName", "loadBalancingRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_location.go index 4a38c5ea3e7b..06ff0a743e62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_outboundrule.go index 898376373003..8b262df0308b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_outboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_outboundrule.go @@ -44,7 +44,7 @@ func ParseOutboundRuleID(input string) (*OutboundRuleId, error) { } id := OutboundRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOutboundRuleIDInsensitively(input string) (*OutboundRuleId, error) { } id := OutboundRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OutboundRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticOutboundRules", "outboundRules", "outboundRules"), - resourceids.UserSpecifiedSegment("outboundRuleName", "outboundRuleValue"), + resourceids.UserSpecifiedSegment("outboundRuleName", "outboundRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_probe.go index 46ab09a65c98..4cc4bf66c116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_probe.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_probe.go @@ -44,7 +44,7 @@ func ParseProbeID(input string) (*ProbeId, error) { } id := ProbeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProbeIDInsensitively(input string) (*ProbeId, error) { } id := ProbeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProbeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticProbes", "probes", "probes"), - resourceids.UserSpecifiedSegment("probeName", "probeValue"), + resourceids.UserSpecifiedSegment("probeName", "probeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_providerloadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_providerloadbalancer.go index 88ab98c83ad8..54e6f1dc4ec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_providerloadbalancer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/id_providerloadbalancer.go @@ -42,7 +42,7 @@ func ParseProviderLoadBalancerID(input string) (*ProviderLoadBalancerId, error) } id := ProviderLoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLoadBalancerIDInsensitively(input string) (*ProviderLoadBalanc } id := ProviderLoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLoadBalancerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_get.go index 2cf9ca241b7f..50fdc569bc4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LoadBalancersClient) Get(ctx context.Context, id ProviderLoadBalancerId, var model LoadBalancer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go index 92acfa0220be..d925ef58b2c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_inboundnatrulesget.go @@ -34,6 +34,7 @@ func (o InboundNatRulesGetOperationOptions) ToHeaders() *client.Headers { func (o InboundNatRulesGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN var model InboundNatRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go index 96451e224519..7fef83148f3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsGet(ctx context.Cont var model BackendAddressPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go index eeb2cc8b0edb..6c16550699be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsGet(ctx context var model FrontendIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go index 265ec20a693b..76a4fc9b62f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesGet(ctx context.Conte var model LoadBalancingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundrulesget.go index 5e221d463299..7d54de6e71d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalanceroutboundrulesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesGet(ctx context.Context, i var model OutboundRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobesget.go index 2901255109e5..d67e998c3279 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_loadbalancerprobesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerProbesGet(ctx context.Context, id Probe var model Probe result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_migratetoipbased.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_migratetoipbased.go index 249adebb4a88..6474ae09f76f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_migratetoipbased.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_migratetoipbased.go @@ -50,7 +50,6 @@ func (c LoadBalancersClient) MigrateToIPBased(ctx context.Context, id LoadBalanc var model MigratedPools result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_updatetags.go index dd8a45613262..d3fc584efb26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/method_updatetags.go @@ -49,7 +49,6 @@ func (c LoadBalancersClient) UpdateTags(ctx context.Context, id ProviderLoadBala var model LoadBalancer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/version.go index c2e94a65da05..f1789e3b5a8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/loadbalancers/version.go @@ -1,12 +1,10 @@ package loadbalancers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/loadbalancers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/loadbalancers/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/README.md index 0b3813518bc7..48e03d27c6a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways` Documentation -The `natgateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") payload := natgateways.NatGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") payload := natgateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/client.go index 10d7c1f9e5fd..13334ca10a15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/client.go @@ -15,7 +15,7 @@ type NatGatewaysClient struct { } func NewNatGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*NatGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "natgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "natgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NatGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/id_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/id_natgateway.go index 95f33162e5e9..f830790bd5d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/id_natgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/id_natgateway.go @@ -42,7 +42,7 @@ func ParseNatGatewayID(input string) (*NatGatewayId, error) { } id := NatGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNatGatewayIDInsensitively(input string) (*NatGatewayId, error) { } id := NatGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NatGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNatGateways", "natGateways", "natGateways"), - resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayValue"), + resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_get.go index 1360eae28731..3997df407c6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get var model NatGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_updatetags.go index b5dbabece39b..2480442d1cdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/method_updatetags.go @@ -49,7 +49,6 @@ func (c NatGatewaysClient) UpdateTags(ctx context.Context, id NatGatewayId, inpu var model NatGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/version.go index de67d074811b..2ab6a79e2026 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/natgateways/version.go @@ -1,12 +1,10 @@ package natgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/natgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/natgateways/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/README.md index 5e0a8f304e22..45799866c9b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups` Documentation -The `networkgroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") payload := networkgroups.NetworkGroup{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOpt ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") // alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/client.go index 3cfe1e1eebf1..89171a64b6d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/client.go @@ -15,7 +15,7 @@ type NetworkGroupsClient struct { } func NewNetworkGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkgroup.go index e92b4d5d7c09..912a7fb25c3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkgroup.go @@ -44,7 +44,7 @@ func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupValue"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkmanager.go index 58b8bb2d432b..427d707220af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go index 3ab74eeca371..89e0b5c2b0c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup var model NetworkGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_delete.go index 452dbab57a98..45f93907f238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_get.go index 554db15d0161..503719a73d9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_get.go @@ -45,7 +45,6 @@ func (c NetworkGroupsClient) Get(ctx context.Context, id NetworkGroupId) (result var model NetworkGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_list.go index cff4d8b0a7ae..360af82528fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/version.go index 89ed6cf522a9..1022eca831ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkgroups/version.go @@ -1,12 +1,10 @@ package networkgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkgroups/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/README.md index dba7103c76f0..2f87bb7d3c2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces` Documentation -The `networkinterfaces` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.NetworkInterface{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue") +id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination items, err := client.GetEffectiveRouteTableComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -169,7 +169,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue") +id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") // alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) @@ -186,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue") +id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") // alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) @@ -203,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) @@ -220,7 +220,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -237,7 +237,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) @@ -254,7 +254,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue") +id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualmachineIndex") // alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) @@ -271,7 +271,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -287,7 +287,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -304,7 +304,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -321,7 +321,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "tapConfigurationValue") +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) if err != nil { @@ -337,7 +337,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -354,7 +354,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/client.go index cd098aeccdf9..1edd1a6838a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/client.go @@ -15,7 +15,7 @@ type NetworkInterfacesClient struct { } func NewNetworkInterfacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkInterfacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkinterfaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkinterfaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkInterfacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_providercloudservice.go index e3a9af48f960..d749e9a64f37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_providercloudservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_providercloudservice.go @@ -42,7 +42,7 @@ func ParseProviderCloudServiceID(input string) (*ProviderCloudServiceId, error) } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderCloudServiceIDInsensitively(input string) (*ProviderCloudServi } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderCloudServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstance.go index 69a75e612e09..49ded1dcadad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstance.go @@ -44,7 +44,7 @@ func ParseRoleInstanceID(input string) (*RoleInstanceId, error) { } id := RoleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRoleInstanceIDInsensitively(input string) (*RoleInstanceId, error) { } id := RoleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RoleInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceValue"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstancenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstancenetworkinterface.go index 4a96fd5d010c..a67d978ec638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstancenetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_roleinstancenetworkinterface.go @@ -46,7 +46,7 @@ func ParseRoleInstanceNetworkInterfaceID(input string) (*RoleInstanceNetworkInte } id := RoleInstanceNetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRoleInstanceNetworkInterfaceIDInsensitively(input string) (*RoleInstan } id := RoleInstanceNetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RoleInstanceNetworkInterfaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceValue"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceValue"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_tapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_tapconfiguration.go index 0778222d9c9a..b2916c52d2d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_tapconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_tapconfiguration.go @@ -44,7 +44,7 @@ func ParseTapConfigurationID(input string) (*TapConfigurationId, error) { } id := TapConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTapConfigurationIDInsensitively(input string) (*TapConfigurationId, er } id := TapConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TapConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceValue"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), resourceids.StaticSegment("staticTapConfigurations", "tapConfigurations", "tapConfigurations"), - resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationValue"), + resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachine.go index e2f2dde86841..3e8bac23fd1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachine.go @@ -44,7 +44,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualmachineIndex"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachinescaleset.go index e9a264c0a894..63abd7e5d6f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_get.go index e1614af681dd..5a73b976c2c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go index 7f7c58c444c4..be2ca6e2e399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -34,6 +34,7 @@ func (o GetCloudServiceNetworkInterfaceOperationOptions) ToHeaders() *client.Hea func (o GetCloudServiceNetworkInterfaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index 7a3d2b45272a..88f82856ae85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -35,6 +35,7 @@ func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToHeaders() *c func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co var model NetworkInterfaceIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 1bef7a3da950..4bad16270bad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -35,6 +35,7 @@ func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToHeaders() * func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index a18bdaf08cf9..8c1c944f6c81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -40,6 +40,7 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToHeaders() func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go index 90e537d09827..7134fa1ab75b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go @@ -46,7 +46,6 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsGet(ctx context var model NetworkInterfaceIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go index 868ecfb43d5e..004d700dbcde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go @@ -45,7 +45,6 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsGet(ctx contex var model NetworkInterfaceTapConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_updatetags.go index ca8e31de55a8..4365d182729d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/method_updatetags.go @@ -50,7 +50,6 @@ func (c NetworkInterfacesClient) UpdateTags(ctx context.Context, id commonids.Ne var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/version.go index 2085b9ffb2d5..851675634680 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkinterfaces/version.go @@ -1,12 +1,10 @@ package networkinterfaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkinterfaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkinterfaces/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/README.md index 271635c8107d..ba51a9586145 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers` Documentation -The `networkmanagers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManager{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationO ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManagerCommit{ // ... @@ -125,7 +125,7 @@ if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ // ... @@ -146,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.PatchObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/client.go index b27df28e1263..64a4e7996462 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/client.go @@ -15,7 +15,7 @@ type NetworkManagersClient struct { } func NewNetworkManagersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanagers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanagers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/id_networkmanager.go index 634812032949..35d0899f86c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_createorupdate.go index 5fb5c949cd63..cdce0892e43c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_createorupdate.go @@ -50,7 +50,6 @@ func (c NetworkManagersClient) CreateOrUpdate(ctx context.Context, id NetworkMan var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_delete.go index 016216c8549f..a9619efb0e22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_get.go index c9f3acddeae8..ed6b5d9ec820 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_get.go @@ -45,7 +45,6 @@ func (c NetworkManagersClient) Get(ctx context.Context, id NetworkManagerId) (re var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_list.go index 86b71cf2d942..902c41d52b33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go index d45e89952b8a..d1e8f2d72a38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go index f9a88725d0fd..db1a1d144ac4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go @@ -50,7 +50,6 @@ func (c NetworkManagersClient) NetworkManagerDeploymentStatusList(ctx context.Co var model NetworkManagerDeploymentStatusListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_patch.go index e3810b6e4b43..4aae0d607098 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/method_patch.go @@ -49,7 +49,6 @@ func (c NetworkManagersClient) Patch(ctx context.Context, id NetworkManagerId, i var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/version.go index 27684a8cced2..a655a7d97006 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkmanagers/version.go @@ -1,12 +1,10 @@ package networkmanagers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanagers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanagers/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/README.md index fdc6623cfebf..b01994389df0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups` Documentation -The `networksecuritygroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networksecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") payload := networksecuritygroups.NetworkSecurityGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") read, err := client.Get(ctx, id, networksecuritygroups.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") payload := networksecuritygroups.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/client.go index a8d26110c7ce..d490fa41c780 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/client.go @@ -15,7 +15,7 @@ type NetworkSecurityGroupsClient struct { } func NewNetworkSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networksecuritygroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networksecuritygroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkSecurityGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/id_networksecuritygroup.go index 4ab431d74a91..5b1f77f1061b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/id_networksecuritygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/id_networksecuritygroup.go @@ -42,7 +42,7 @@ func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGro } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupValue"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go index 6ebe50d00e54..7728917c0ec6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity var model NetworkSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_updatetags.go index 362cad00c7d1..6f4b2cd3ce69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkSecurityGroupsClient) UpdateTags(ctx context.Context, id NetworkS var model NetworkSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/version.go index fe1a2e37c1db..db2c9a8230bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networksecuritygroups/version.go @@ -1,12 +1,10 @@ package networksecuritygroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networksecuritygroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networksecuritygroups/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/README.md index 1fec26cd144d..39f0082cec67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances` Documentation -The `networkvirtualappliances` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") payload := networkvirtualappliances.NetworkVirtualAppliance{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "inboundSecurityRuleValue") +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "ruleCollectionName") payload := networkvirtualappliances.InboundSecurityRule{ // ... @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") payload := networkvirtualappliances.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/client.go index cfaeae574dec..ab8d70fafa5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/client.go @@ -15,7 +15,7 @@ type NetworkVirtualAppliancesClient struct { } func NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkVirtualAppliancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkvirtualappliances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkvirtualappliances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkVirtualAppliancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_inboundsecurityrule.go index d920466b92f8..d59b8c173b54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_inboundsecurityrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_inboundsecurityrule.go @@ -44,7 +44,7 @@ func ParseInboundSecurityRuleID(input string) (*InboundSecurityRuleId, error) { } id := InboundSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInboundSecurityRuleIDInsensitively(input string) (*InboundSecurityRule } id := InboundSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InboundSecurityRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), resourceids.StaticSegment("staticInboundSecurityRules", "inboundSecurityRules", "inboundSecurityRules"), - resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "inboundSecurityRuleValue"), + resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "ruleCollectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_networkvirtualappliance.go index f222e101e796..a412e45cbba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_networkvirtualappliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/id_networkvirtualappliance.go @@ -42,7 +42,7 @@ func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, e } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualA } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go index 36076f68749a..2310883a4481 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu var model NetworkVirtualAppliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_updatetags.go index 25a5f9e94c5c..a8a8391f4a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkVirtualAppliancesClient) UpdateTags(ctx context.Context, id Netwo var model NetworkVirtualAppliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/version.go index 83084557318b..a0652eb413c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkvirtualappliances/version.go @@ -1,12 +1,10 @@ package networkvirtualappliances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkvirtualappliances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkvirtualappliances/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/README.md index c47ab71512ea..5ea0e31780a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers` Documentation -The `networkwatchers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.ConnectivityParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NetworkWatcher{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.AzureReachabilityReportParameters{ // ... @@ -108,7 +108,7 @@ if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.FlowLogStatusParameters{ // ... @@ -125,7 +125,7 @@ if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ // ... @@ -142,7 +142,7 @@ if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NextHopParameters{ // ... @@ -159,7 +159,7 @@ if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TopologyParameters{ // ... @@ -180,7 +180,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TroubleshootingParameters{ // ... @@ -197,7 +197,7 @@ if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.QueryTroubleshootingParameters{ // ... @@ -214,7 +214,7 @@ if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.SecurityGroupViewParameters{ // ... @@ -263,7 +263,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.AvailableProvidersListParameters{ // ... @@ -280,7 +280,7 @@ if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.FlowLogInformation{ // ... @@ -297,7 +297,7 @@ if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TagsObject{ // ... @@ -318,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.VerificationIPFlowParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/client.go index 2068ab14817c..b544d19c2068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/client.go @@ -15,7 +15,7 @@ type NetworkWatchersClient struct { } func NewNetworkWatchersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkWatchersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkwatchers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkwatchers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkWatchersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/id_networkwatcher.go index b8bb1f7f4a66..2e22c948a131 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_createorupdate.go index ecb006e20072..5881c4d5c10d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_createorupdate.go @@ -50,7 +50,6 @@ func (c NetworkWatchersClient) CreateOrUpdate(ctx context.Context, id NetworkWat var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_get.go index 000ae087b183..1c429aeb42d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_get.go @@ -45,7 +45,6 @@ func (c NetworkWatchersClient) Get(ctx context.Context, id NetworkWatcherId) (re var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_gettopology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_gettopology.go index 8a1c6caef609..68afb0d82060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_gettopology.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_gettopology.go @@ -50,7 +50,6 @@ func (c NetworkWatchersClient) GetTopology(ctx context.Context, id NetworkWatche var model Topology result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_list.go index 8263c7b4f931..36d57f04fef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_list.go @@ -47,7 +47,6 @@ func (c NetworkWatchersClient) List(ctx context.Context, id commonids.ResourceGr var model NetworkWatcherListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_listall.go index 845a24499465..b8bd8d8d4a6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_listall.go @@ -47,7 +47,6 @@ func (c NetworkWatchersClient) ListAll(ctx context.Context, id commonids.Subscri var model NetworkWatcherListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_updatetags.go index 1ace78e7dc56..0ad45fd1f1a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkWatchersClient) UpdateTags(ctx context.Context, id NetworkWatcher var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/version.go index 21ca2819f1d1..25b062480f4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/networkwatchers/version.go @@ -1,12 +1,10 @@ package networkwatchers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkwatchers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkwatchers/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/README.md index f5554506c899..e11e6c0452b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints` Documentation -The `privateendpoints` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) @@ -59,7 +59,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") payload := privateendpoints.PrivateEndpoint{ // ... @@ -76,7 +76,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -88,7 +88,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/client.go index 149437b13342..d03b3dc1800b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/client.go @@ -15,7 +15,7 @@ type PrivateEndpointsClient struct { } func NewPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_location.go index 54b43b4b1f23..f90051a67257 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_privateendpoint.go index a104325012e4..09fd6278c207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_privateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_privateendpoint.go @@ -42,7 +42,7 @@ func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, erro } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointValue"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_providerlocation.go index a70739b937d4..cb389eabe349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/method_get.go index 80cad93eef6c..559e0f436c5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o var model PrivateEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/version.go index a655c2c6a29f..232b661dfa52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/privateendpoints/version.go @@ -1,12 +1,10 @@ package privateendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpoints/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/README.md index e0b2a74fea67..868769238ed0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes` Documentation -The `publicipprefixes` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `publicipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") payload := publicipprefixes.PublicIPPrefix{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") read, err := client.Get(ctx, id, publicipprefixes.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") payload := publicipprefixes.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/client.go index 7dfe8ac9af12..78db89733876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/client.go @@ -15,7 +15,7 @@ type PublicIPPrefixesClient struct { } func NewPublicIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPPrefixesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publicipprefixes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publicipprefixes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublicIPPrefixesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/id_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/id_publicipprefix.go index 2fe61b6d66bc..ba849d0aad0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/id_publicipprefix.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/id_publicipprefix.go @@ -42,7 +42,7 @@ func ParsePublicIPPrefixID(input string) (*PublicIPPrefixId, error) { } id := PublicIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePublicIPPrefixIDInsensitively(input string) (*PublicIPPrefixId, error) } id := PublicIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PublicIPPrefixId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPublicIPPrefixes", "publicIPPrefixes", "publicIPPrefixes"), - resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIPPrefixValue"), + resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIpPrefixName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_get.go index 15104f806131..4d05c32931a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op var model PublicIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_updatetags.go index e5257fc9717d..3111479b00a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/method_updatetags.go @@ -49,7 +49,6 @@ func (c PublicIPPrefixesClient) UpdateTags(ctx context.Context, id PublicIPPrefi var model PublicIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/version.go index 3a106b57ccd6..aa726511b652 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/publicipprefixes/version.go @@ -1,12 +1,10 @@ package publicipprefixes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publicipprefixes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publicipprefixes/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/README.md index 183b0b0381a3..df8117f1cd82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters` Documentation -The `routefilters` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") payload := routefilters.RouteFilter{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") payload := routefilters.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/client.go index e4faeb1d622b..5bf2183b43df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/client.go @@ -15,7 +15,7 @@ type RouteFiltersClient struct { } func NewRouteFiltersClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteFiltersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routefilters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routefilters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RouteFiltersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/id_routefilter.go index 18b55731fae6..0e497c52d8bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/id_routefilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/id_routefilter.go @@ -42,7 +42,7 @@ func ParseRouteFilterID(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteFilterIDInsensitively(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteFilterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), - resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterValue"), + resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_get.go index d44bd6d46b01..f57a061fb522 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G var model RouteFilter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_updatetags.go index 33bbd5301d9d..5fe88949683e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/method_updatetags.go @@ -49,7 +49,6 @@ func (c RouteFiltersClient) UpdateTags(ctx context.Context, id RouteFilterId, in var model RouteFilter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/version.go index 55d963153c46..cbd96665532f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routefilters/version.go @@ -1,12 +1,10 @@ package routefilters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routefilters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routefilters/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/README.md index c7c7dc0b2c57..8150144cbec0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables` Documentation -The `routetables` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `routetables` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") payload := routetables.RouteTable{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") read, err := client.Get(ctx, id, routetables.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") payload := routetables.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/client.go index 26c9fb104ad9..b52049cd5f7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/client.go @@ -15,7 +15,7 @@ type RouteTablesClient struct { } func NewRouteTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteTablesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routetables", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routetables", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RouteTablesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/id_routetable.go index 0f3c938daf78..a18bf05ff67c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/id_routetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/id_routetable.go @@ -42,7 +42,7 @@ func ParseRouteTableID(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_get.go index cb19ef16deb2..6a2409acbfb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get var model RouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_updatetags.go index b2db87b8208b..258335fc6008 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/method_updatetags.go @@ -49,7 +49,6 @@ func (c RouteTablesClient) UpdateTags(ctx context.Context, id RouteTableId, inpu var model RouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/version.go index 9921c52edb9a..239a243facc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/routetables/version.go @@ -1,12 +1,10 @@ package routetables -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routetables/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routetables/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/README.md index a8bcf49a2e31..fb3fd8fe1d1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets` Documentation -The `subnets` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `subnets` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") payload := subnets.Subnet{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/client.go index b1f947b47be9..d3ece632ec64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/client.go @@ -15,7 +15,7 @@ type SubnetsClient struct { } func NewSubnetsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubnetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "subnets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "subnets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SubnetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/method_get.go index d77795ad632f..9340f66305d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G var model Subnet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/version.go index 983da187adcb..2a982840c64e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/subnets/version.go @@ -1,12 +1,10 @@ package subnets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subnets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subnets/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/README.md index dc1dcb56d737..f3ae8b4c71ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans` Documentation -The `virtualwans` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `virtualwans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") payload := virtualwans.VpnServerConfigurationPolicyGroup{ // ... @@ -42,7 +42,7 @@ if err := client.ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") read, err := client.ConfigurationPolicyGroupsGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") // alternatively `client.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.VirtualWanVpnProfileParameters{ // ... @@ -104,7 +104,7 @@ if err := client.GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx, ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") payload := virtualwans.HubRouteTable{ // ... @@ -121,7 +121,7 @@ if err := client.HubRouteTablesCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -133,7 +133,7 @@ if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") read, err := client.HubRouteTablesGet(ctx, id) if err != nil { @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.HubRouteTablesList(ctx, id)` can be used to do batched pagination items, err := client.HubRouteTablesListComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") payload := virtualwans.HubVirtualNetworkConnection{ // ... @@ -183,7 +183,7 @@ if err := client.HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx, id, pay ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -195,7 +195,7 @@ if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") read, err := client.HubVirtualNetworkConnectionsGet(ctx, id) if err != nil { @@ -211,7 +211,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.HubVirtualNetworkConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.HubVirtualNetworkConnectionsListComplete(ctx, id) @@ -228,7 +228,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") payload := virtualwans.VpnGatewayNatRule{ // ... @@ -245,7 +245,7 @@ if err := client.NatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -257,7 +257,7 @@ if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") read, err := client.NatRulesGet(ctx, id) if err != nil { @@ -273,7 +273,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") // alternatively `client.NatRulesListByVpnGateway(ctx, id)` can be used to do batched pagination items, err := client.NatRulesListByVpnGatewayComplete(ctx, id) @@ -290,7 +290,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") payload := virtualwans.NetworkVirtualApplianceConnection{ // ... @@ -307,7 +307,7 @@ if err := client.NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx, i ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -319,7 +319,7 @@ if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") read, err := client.NetworkVirtualApplianceConnectionsGet(ctx, id) if err != nil { @@ -335,7 +335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") // alternatively `client.NetworkVirtualApplianceConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkVirtualApplianceConnectionsListComplete(ctx, id) @@ -352,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := virtualwans.P2SVpnGateway{ // ... @@ -369,7 +369,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -381,7 +381,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -431,7 +431,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") payload := virtualwans.RouteMap{ // ... @@ -448,7 +448,7 @@ if err := client.RouteMapsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -460,7 +460,7 @@ if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") read, err := client.RouteMapsGet(ctx, id) if err != nil { @@ -476,7 +476,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.RouteMapsList(ctx, id)` can be used to do batched pagination items, err := client.RouteMapsListComplete(ctx, id) @@ -493,7 +493,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") payload := virtualwans.RoutingIntent{ // ... @@ -510,7 +510,7 @@ if err := client.RoutingIntentCreateOrUpdateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -522,7 +522,7 @@ if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") read, err := client.RoutingIntentGet(ctx, id) if err != nil { @@ -538,7 +538,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.RoutingIntentList(ctx, id)` can be used to do batched pagination items, err := client.RoutingIntentListComplete(ctx, id) @@ -555,7 +555,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") read, err := client.SupportedSecurityProviders(ctx, id) if err != nil { @@ -571,7 +571,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.TagsObject{ // ... @@ -592,7 +592,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") payload := virtualwans.BgpConnection{ // ... @@ -609,7 +609,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -621,7 +621,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -637,7 +637,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubBgpConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubBgpConnectionsListComplete(ctx, id) @@ -654,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -666,7 +666,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -678,7 +678,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") payload := virtualwans.HubIPConfiguration{ // ... @@ -695,7 +695,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -707,7 +707,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -723,7 +723,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubIPConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubIPConfigurationListComplete(ctx, id) @@ -740,7 +740,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") payload := virtualwans.VirtualHubRouteTableV2{ // ... @@ -757,7 +757,7 @@ if err := client.VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -769,7 +769,7 @@ if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") read, err := client.VirtualHubRouteTableV2sGet(ctx, id) if err != nil { @@ -785,7 +785,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubRouteTableV2sList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubRouteTableV2sListComplete(ctx, id) @@ -802,7 +802,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.VirtualHub{ // ... @@ -819,7 +819,7 @@ if err := client.VirtualHubsCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -831,7 +831,7 @@ if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") read, err := client.VirtualHubsGet(ctx, id) if err != nil { @@ -847,7 +847,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.EffectiveRoutesParameters{ // ... @@ -864,7 +864,7 @@ if err := client.VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.GetInboundRoutesParameters{ // ... @@ -881,7 +881,7 @@ if err := client.VirtualHubsGetInboundRoutesThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.GetOutboundRoutesParameters{ // ... @@ -932,7 +932,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.TagsObject{ // ... @@ -953,7 +953,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.VirtualWAN{ // ... @@ -970,7 +970,7 @@ if err := client.VirtualWansCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -982,7 +982,7 @@ if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") read, err := client.VirtualWansGet(ctx, id) if err != nil { @@ -1032,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnection{ // ... @@ -1049,7 +1049,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1061,7 +1061,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1077,7 +1077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") // alternatively `client.VpnConnectionsListByVpnGateway(ctx, id)` can be used to do batched pagination items, err := client.VpnConnectionsListByVpnGatewayComplete(ctx, id) @@ -1094,7 +1094,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1111,7 +1111,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1128,7 +1128,7 @@ if err := client.VpnConnectionsStopPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := virtualwans.VpnGateway{ // ... @@ -1145,7 +1145,7 @@ if err := client.VpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1157,7 +1157,7 @@ if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") read, err := client.VpnGatewaysGet(ctx, id) if err != nil { @@ -1207,7 +1207,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue", "vpnLinkConnectionValue") +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName", "linkConnectionName") if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { // handle the error @@ -1219,7 +1219,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1236,7 +1236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx, id); err != nil { // handle the error @@ -1248,7 +1248,7 @@ if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") payload := virtualwans.VpnServerConfiguration{ // ... @@ -1265,7 +1265,7 @@ if err := client.VpnServerConfigurationsCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1277,7 +1277,7 @@ if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") read, err := client.VpnServerConfigurationsGet(ctx, id) if err != nil { @@ -1327,7 +1327,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue", "vpnLinkConnectionValue") +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName", "linkConnectionName") read, err := client.VpnSiteLinkConnectionsGet(ctx, id) if err != nil { @@ -1343,7 +1343,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue", "vpnSiteLinkValue") +id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName", "vpnSiteLinkName") read, err := client.VpnSiteLinksGet(ctx, id) if err != nil { @@ -1359,7 +1359,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") // alternatively `client.VpnSiteLinksListByVpnSite(ctx, id)` can be used to do batched pagination items, err := client.VpnSiteLinksListByVpnSiteComplete(ctx, id) @@ -1376,7 +1376,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.GetVpnSitesConfigurationRequest{ // ... @@ -1393,7 +1393,7 @@ if err := client.VpnSitesConfigurationDownloadThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") payload := virtualwans.VpnSite{ // ... @@ -1410,7 +1410,7 @@ if err := client.VpnSitesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1422,7 +1422,7 @@ if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") read, err := client.VpnSitesGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/client.go index bf0a24c960f7..0d7276430725 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/client.go @@ -15,7 +15,7 @@ type VirtualWANsClient struct { } func NewVirtualWANsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualWANsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualwans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualwans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualWANsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_configurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_configurationpolicygroup.go index 7ebd0347f4de..058775a50d01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_configurationpolicygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_configurationpolicygroup.go @@ -44,7 +44,7 @@ func ParseConfigurationPolicyGroupID(input string) (*ConfigurationPolicyGroupId, } id := ConfigurationPolicyGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationPolicyGroupIDInsensitively(input string) (*ConfigurationP } id := ConfigurationPolicyGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationPolicyGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), - resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationValue"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), resourceids.StaticSegment("staticConfigurationPolicyGroups", "configurationPolicyGroups", "configurationPolicyGroups"), - resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupValue"), + resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubroutetable.go index 46e51d4c4265..5c93c30fb695 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubroutetable.go @@ -44,7 +44,7 @@ func ParseHubRouteTableID(input string) (*HubRouteTableId, error) { } id := HubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHubRouteTableIDInsensitively(input string) (*HubRouteTableId, error) { } id := HubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HubRouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticHubRouteTables", "hubRouteTables", "hubRouteTables"), - resourceids.UserSpecifiedSegment("hubRouteTableName", "hubRouteTableValue"), + resourceids.UserSpecifiedSegment("hubRouteTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubvirtualnetworkconnection.go index 92e4c4c7d5d0..3db347a9c762 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubvirtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_hubvirtualnetworkconnection.go @@ -44,7 +44,7 @@ func ParseHubVirtualNetworkConnectionID(input string) (*HubVirtualNetworkConnect } id := HubVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHubVirtualNetworkConnectionIDInsensitively(input string) (*HubVirtualN } id := HubVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HubVirtualNetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticHubVirtualNetworkConnections", "hubVirtualNetworkConnections", "hubVirtualNetworkConnections"), - resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "hubVirtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_natrule.go index f2dca44d7fa6..5441dc04ec9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_natrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_natrule.go @@ -44,7 +44,7 @@ func ParseNatRuleID(input string) (*NatRuleId, error) { } id := NatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNatRuleIDInsensitively(input string) (*NatRuleId, error) { } id := NatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NatRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), - resourceids.UserSpecifiedSegment("natRuleName", "natRuleValue"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualappliance.go index 2dc156a927c0..3b7e0a17a90f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualappliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualappliance.go @@ -42,7 +42,7 @@ func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, e } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualA } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualapplianceconnection.go index d39f2a000d02..eea1f6b9dd20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualapplianceconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_networkvirtualapplianceconnection.go @@ -44,7 +44,7 @@ func ParseNetworkVirtualApplianceConnectionID(input string) (*NetworkVirtualAppl } id := NetworkVirtualApplianceConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkVirtualApplianceConnectionIDInsensitively(input string) (*Netwo } id := NetworkVirtualApplianceConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkVirtualApplianceConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), resourceids.StaticSegment("staticNetworkVirtualApplianceConnections", "networkVirtualApplianceConnections", "networkVirtualApplianceConnections"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "networkVirtualApplianceConnectionValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routemap.go index c95aeaafbfd6..cf9525f1046b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routemap.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routemap.go @@ -44,7 +44,7 @@ func ParseRouteMapID(input string) (*RouteMapId, error) { } id := RouteMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRouteMapIDInsensitively(input string) (*RouteMapId, error) { } id := RouteMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RouteMapId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRouteMaps", "routeMaps", "routeMaps"), - resourceids.UserSpecifiedSegment("routeMapName", "routeMapValue"), + resourceids.UserSpecifiedSegment("routeMapName", "routeMapName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routingintent.go index de16e7a38611..cb05e57eb4ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routingintent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_routingintent.go @@ -44,7 +44,7 @@ func ParseRoutingIntentID(input string) (*RoutingIntentId, error) { } id := RoutingIntentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRoutingIntentIDInsensitively(input string) (*RoutingIntentId, error) { } id := RoutingIntentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RoutingIntentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRoutingIntent", "routingIntent", "routingIntent"), - resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentValue"), + resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhub.go index ec4a18686e58..b406438486cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhub.go @@ -42,7 +42,7 @@ func ParseVirtualHubID(input string) (*VirtualHubId, error) { } id := VirtualHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualHubIDInsensitively(input string) (*VirtualHubId, error) { } id := VirtualHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualHubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhubroutetable.go index b2cd55910b39..db641540b540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhubroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualhubroutetable.go @@ -44,7 +44,7 @@ func ParseVirtualHubRouteTableID(input string) (*VirtualHubRouteTableId, error) } id := VirtualHubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualHubRouteTableIDInsensitively(input string) (*VirtualHubRouteTab } id := VirtualHubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualHubRouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualwan.go index e8489bfa13e9..7ba331877309 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualwan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_virtualwan.go @@ -42,7 +42,7 @@ func ParseVirtualWANID(input string) (*VirtualWANId, error) { } id := VirtualWANId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualWANIDInsensitively(input string) (*VirtualWANId, error) { } id := VirtualWANId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualWANId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualWans", "virtualWans", "virtualWans"), - resourceids.UserSpecifiedSegment("virtualWanName", "virtualWanValue"), + resourceids.UserSpecifiedSegment("virtualWanName", "virtualWANName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpngateway.go index 6889f4d78bc6..0ba0e40f11cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpngateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpngateway.go @@ -42,7 +42,7 @@ func ParseVpnGatewayID(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnGatewayIDInsensitively(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnlinkconnection.go index b40c9d3b7bee..6ee7f540d57d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnlinkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnlinkconnection.go @@ -46,7 +46,7 @@ func ParseVpnLinkConnectionID(input string) (*VpnLinkConnectionId, error) { } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVpnLinkConnectionIDInsensitively(input string) (*VpnLinkConnectionId, } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VpnLinkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), resourceids.StaticSegment("staticVpnConnections", "vpnConnections", "vpnConnections"), - resourceids.UserSpecifiedSegment("vpnConnectionName", "vpnConnectionValue"), + resourceids.UserSpecifiedSegment("vpnConnectionName", "connectionName"), resourceids.StaticSegment("staticVpnLinkConnections", "vpnLinkConnections", "vpnLinkConnections"), - resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "vpnLinkConnectionValue"), + resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "linkConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnserverconfiguration.go index 604356fc28fc..641107f1430f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnserverconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnserverconfiguration.go @@ -42,7 +42,7 @@ func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, err } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigu } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnServerConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), - resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationValue"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsite.go index 4e20baefd21a..241994cde17e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsite.go @@ -42,7 +42,7 @@ func ParseVpnSiteID(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnSiteIDInsensitively(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), - resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteValue"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsitelink.go index a0b1676b210a..fcfd5aa34ed5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsitelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/id_vpnsitelink.go @@ -44,7 +44,7 @@ func ParseVpnSiteLinkID(input string) (*VpnSiteLinkId, error) { } id := VpnSiteLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVpnSiteLinkIDInsensitively(input string) (*VpnSiteLinkId, error) { } id := VpnSiteLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VpnSiteLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), - resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteValue"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), resourceids.StaticSegment("staticVpnSiteLinks", "vpnSiteLinks", "vpnSiteLinks"), - resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkValue"), + resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupsget.go index 491fc15d5b2f..d8feaa4f23ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_configurationpolicygroupsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsGet(ctx context.Context, id var model VpnServerConfigurationPolicyGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubroutetablesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubroutetablesget.go index 36dc9467d464..e714731e2bf1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubroutetablesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubroutetablesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) HubRouteTablesGet(ctx context.Context, id HubRouteTab var model HubRouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionsget.go index 852857adc595..f08f465d3c19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_hubvirtualnetworkconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsGet(ctx context.Context, var model HubVirtualNetworkConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_natrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_natrulesget.go index 9ba7ca45bea8..c81f0b6e89a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_natrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_natrulesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) NatRulesGet(ctx context.Context, id NatRuleId) (resul var model VpnGatewayNatRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionsget.go index ed429bdb5369..783b3251a6c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_networkvirtualapplianceconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsGet(ctx context.Con var model NetworkVirtualApplianceConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewaysget.go index 804013badcc1..ec7e18c347ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewaysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_p2svpngatewaysget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) P2sVpnGatewaysGet(ctx context.Context, id commonids.V var model P2SVpnGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routemapsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routemapsget.go index 925002f31e71..c1db2c3033aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routemapsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routemapsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) RouteMapsGet(ctx context.Context, id RouteMapId) (res var model RouteMap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routingintentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routingintentget.go index ae61d3b41b53..fea07e77795f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routingintentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_routingintentget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) RoutingIntentGet(ctx context.Context, id RoutingInten var model RoutingIntent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_supportedsecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_supportedsecurityproviders.go index 616d9dd0cd4f..3351ee7549f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_supportedsecurityproviders.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_supportedsecurityproviders.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) SupportedSecurityProviders(ctx context.Context, id Vi var model VirtualWanSecurityProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_updatetags.go index 6115890e78c3..42f292d4aeab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_updatetags.go @@ -49,7 +49,6 @@ func (c VirtualWANsClient) UpdateTags(ctx context.Context, id VirtualWANId, inpu var model VirtualWAN result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionget.go index 525c6b3cabef..e4d4c41773aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubbgpconnectionget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionGet(ctx context.Context, id co var model BgpConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationget.go index ca3c9a88dd3a..c4abe2347849 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubipconfigurationget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationGet(ctx context.Context, id var model HubIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2sget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2sget.go index 7c542fcfe689..0d274e1355a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2sget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubroutetablev2sget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sGet(ctx context.Context, id Vi var model VirtualHubRouteTableV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsget.go index 3f2e419720f2..0b1bcbe8573f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualHubsGet(ctx context.Context, id VirtualHubId) var model VirtualHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsupdatetags.go index be5399a45152..23f6df527430 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualhubsupdatetags.go @@ -49,7 +49,6 @@ func (c VirtualWANsClient) VirtualHubsUpdateTags(ctx context.Context, id Virtual var model VirtualHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualwansget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualwansget.go index 41dbd00d7f22..66d801a779aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualwansget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_virtualwansget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualWansGet(ctx context.Context, id VirtualWANId) var model VirtualWAN result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionsget.go index 812232759b1f..ca7d4d2a9b44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnconnectionsget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VpnConnectionsGet(ctx context.Context, id commonids.V var model VpnConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpngatewaysget.go index bfa13a547eb6..0793829ea759 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpngatewaysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpngatewaysget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnGatewaysGet(ctx context.Context, id VpnGatewayId) var model VpnGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationsget.go index e5b009a11540..5355630843f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnserverconfigurationsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnServerConfigurationsGet(ctx context.Context, id Vp var model VpnServerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkconnectionsget.go index 088e1b48de55..b2fed5d6de1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinkconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSiteLinkConnectionsGet(ctx context.Context, id Vpn var model VpnSiteLinkConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinksget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinksget.go index c16e84b36917..018f1ad8f67b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinksget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitelinksget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSiteLinksGet(ctx context.Context, id VpnSiteLinkId var model VpnSiteLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitesget.go index 6494e6d64493..a250df018ce7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/method_vpnsitesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSitesGet(ctx context.Context, id VpnSiteId) (resul var model VpnSite result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/version.go index d2d134fd98a1..7621db0cee61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/virtualwans/version.go @@ -1,12 +1,10 @@ package virtualwans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualwans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualwans/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md index 7fbbc21ff048..dd0f0ba80e53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses` Documentation -The `vmsspublicipaddresses` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName", "publicIpAddressName") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesComplete(ctx, id) @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/client.go index 3213cbf73fe0..218145b65b93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/client.go @@ -15,7 +15,7 @@ type VMSSPublicIPAddressesClient struct { } func NewVMSSPublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*VMSSPublicIPAddressesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vmsspublicipaddresses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vmsspublicipaddresses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VMSSPublicIPAddressesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/id_virtualmachinescaleset.go index 6907f32662f2..4a616c362b3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index 482b018c7dcb..aa1a988346af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -35,6 +35,7 @@ func (o PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOption func (o PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP var model PublicIPAddress result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/version.go index ab6e5c22e38f..9cfb57f0d154 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/vmsspublicipaddresses/version.go @@ -1,12 +1,10 @@ package vmsspublicipaddresses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vmsspublicipaddresses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md index c029a5159ea7..b9d49b8b139b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies` Documentation -The `webapplicationfirewallpolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-09-01`). +The `webapplicationfirewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") payload := webapplicationfirewallpolicies.WebApplicationFirewallPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/client.go index ac148c537333..225049a73616 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/client.go @@ -15,7 +15,7 @@ type WebApplicationFirewallPoliciesClient struct { } func NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebApplicationFirewallPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go index 9c48316d9e71..0a49b366bfce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go @@ -42,7 +42,7 @@ func ParseApplicationGatewayWebApplicationFirewallPolicyID(input string) (*Appli } id := ApplicationGatewayWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively(input st } id := ApplicationGatewayWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGatewayWebApplicationFirewallPolicyId) Segments() []resource resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies"), - resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "applicationGatewayWebApplicationFirewallPolicyValue"), + resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "policyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_createorupdate.go index a30ca59994f4..556b406a3c28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context var model WebApplicationFirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_get.go index 039195586991..b34138178e00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/method_get.go @@ -45,7 +45,6 @@ func (c WebApplicationFirewallPoliciesClient) Get(ctx context.Context, id Applic var model WebApplicationFirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/version.go index 62010648f745..d9ef711eec69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-09-01/webapplicationfirewallpolicies/version.go @@ -1,12 +1,10 @@ package webapplicationfirewallpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webapplicationfirewallpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webapplicationfirewallpolicies/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md index 6338f82bbe13..a54921a3febe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections` Documentation -The `adminrulecollections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `adminrulecollections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue") +id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName") payload := adminrulecollections.AdminRuleCollection{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue") +id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName") if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, adminrulecollections.DefaultDeleteOpera ```go ctx := context.TODO() -id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue") +id := adminrulecollections.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue") +id := adminrulecollections.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") // alternatively `client.List(ctx, id, adminrulecollections.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, adminrulecollections.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go index adbf2674d97b..a0e144b1d96a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/client.go @@ -15,7 +15,7 @@ type AdminRuleCollectionsClient struct { } func NewAdminRuleCollectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRuleCollectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "adminrulecollections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "adminrulecollections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AdminRuleCollectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go index 5c84e59671ef..da27349f55ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_rulecollection.go @@ -46,7 +46,7 @@ func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { } id := RuleCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) } id := RuleCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RuleCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationValue"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "configurationName"), resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionValue"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go index b8186efef3b5..314559846aab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/id_securityadminconfiguration.go @@ -44,7 +44,7 @@ func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfiguratio } id := SecurityAdminConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdmi } id := SecurityAdminConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationValue"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go index 67a6db6eb7b5..00810feb46ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AdminRuleCollectionsClient) CreateOrUpdate(ctx context.Context, id RuleC var model AdminRuleCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go index ec55f3fa7e62..68d0021749bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go index 8beb93c5ecaf..1aec0f98a6ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_get.go @@ -45,7 +45,6 @@ func (c AdminRuleCollectionsClient) Get(ctx context.Context, id RuleCollectionId var model AdminRuleCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go index f4b9bfcdd610..2ef5b46d0a4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go index 7f7954e366c8..fc30bf71af1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrulecollections/version.go @@ -1,12 +1,10 @@ package adminrulecollections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/adminrulecollections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/adminrulecollections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md index e22e4ae21638..fe07dab3ad73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules` Documentation -The `adminrules` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `adminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue", "ruleValue") +id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName", "ruleName") payload := adminrules.BaseAdminRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue", "ruleValue") +id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName", "ruleName") if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, adminrules.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue", "ruleValue") +id := adminrules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adminrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue", "ruleCollectionValue") +id := adminrules.NewRuleCollectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName", "ruleCollectionName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go index 40da5b4d0a4e..811271711b61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/client.go @@ -15,7 +15,7 @@ type AdminRulesClient struct { } func NewAdminRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "adminrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "adminrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AdminRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go index 3b1324490628..028cb6ac27da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rule.go @@ -48,7 +48,7 @@ func ParseRuleID(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseRuleIDInsensitively(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id RuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationValue"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "configurationName"), resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionValue"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), resourceids.StaticSegment("staticRules", "rules", "rules"), - resourceids.UserSpecifiedSegment("ruleName", "ruleValue"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go index 6dd9dd5b0a82..b621d89f9ed8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/id_rulecollection.go @@ -46,7 +46,7 @@ func ParseRuleCollectionID(input string) (*RuleCollectionId, error) { } id := RuleCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error) } id := RuleCollectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RuleCollectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationValue"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "configurationName"), resourceids.StaticSegment("staticRuleCollections", "ruleCollections", "ruleCollections"), - resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionValue"), + resourceids.UserSpecifiedSegment("ruleCollectionName", "ruleCollectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go index d936a5666f11..250f646ce081 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_createorupdate.go @@ -15,7 +15,7 @@ import ( type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *BaseAdminRule + Model BaseAdminRule } // CreateOrUpdate ... @@ -53,11 +53,11 @@ func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input B if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalBaseAdminRuleImplementation(respObj) + model, err := UnmarshalBaseAdminRuleImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go index 9b07dbc4a79b..c5deb3a7b1f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go index 94337a0e139b..52f80e411e8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *BaseAdminRule + Model BaseAdminRule } // Get ... @@ -48,11 +48,11 @@ func (c AdminRulesClient) Get(ctx context.Context, id RuleId) (result GetOperati if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalBaseAdminRuleImplementation(respObj) + model, err := UnmarshalBaseAdminRuleImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go index 97915114117c..85aa73c80e35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/method_list.go @@ -73,7 +73,7 @@ func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result temp := make([]BaseAdminRule, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalBaseAdminRuleImplementation(v) + val, err := UnmarshalBaseAdminRuleImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for BaseAdminRule (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go index 8544cf3cd716..74d9a7cd9c13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_adminrule.go @@ -16,13 +16,26 @@ type AdminRule struct { Properties *AdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from BaseAdminRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s AdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { + return BaseBaseAdminRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = AdminRule{} func (s AdminRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s AdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AdminRule: %+v", err) } + decoded["kind"] = "Custom" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go index bbcabba727eb..ed6bfa3adb9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_baseadminrule.go @@ -4,24 +4,48 @@ import ( "encoding/json" "fmt" "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" ) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BaseAdminRule interface { + BaseAdminRule() BaseBaseAdminRuleImpl +} + +var _ BaseAdminRule = BaseBaseAdminRuleImpl{} + +type BaseBaseAdminRuleImpl struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { + return s } -// RawBaseAdminRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ BaseAdminRule = RawBaseAdminRuleImpl{} + +// RawBaseAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawBaseAdminRuleImpl struct { - Type string - Values map[string]interface{} + baseAdminRule BaseBaseAdminRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawBaseAdminRuleImpl) BaseAdminRule() BaseBaseAdminRuleImpl { + return s.baseAdminRule } -func unmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { +func UnmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { if input == nil { return nil, nil } @@ -31,9 +55,9 @@ func unmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { return nil, fmt.Errorf("unmarshaling BaseAdminRule into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Custom") { @@ -52,10 +76,15 @@ func unmarshalBaseAdminRuleImplementation(input []byte) (BaseAdminRule, error) { return out, nil } - out := RawBaseAdminRuleImpl{ - Type: value, - Values: temp, + var parent BaseBaseAdminRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseBaseAdminRuleImpl: %+v", err) } - return out, nil + + return RawBaseAdminRuleImpl{ + baseAdminRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go index 7a93ae7edc96..3695c8332dc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/model_defaultadminrule.go @@ -16,13 +16,26 @@ type DefaultAdminRule struct { Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from BaseAdminRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AdminRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s DefaultAdminRule) BaseAdminRule() BaseBaseAdminRuleImpl { + return BaseBaseAdminRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = DefaultAdminRule{} func (s DefaultAdminRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s DefaultAdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DefaultAdminRule: %+v", err) } + decoded["kind"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go index ac0a75782a67..1fc017e754d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/adminrules/version.go @@ -1,12 +1,10 @@ package adminrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/adminrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/adminrules/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md index 2711cc919a39..a3385ee718e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections` Documentation -The `applicationgatewayprivateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `applicationgatewayprivateendpointconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue", "privateEndpointConnectionValue") +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "connectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue", "privateEndpointConnectionValue") +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -69,7 +69,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue", "privateEndpointConnectionValue") +id := applicationgatewayprivateendpointconnections.NewApplicationGatewayPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName", "connectionName") payload := applicationgatewayprivateendpointconnections.ApplicationGatewayPrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go index 10a57c1c475e..2218d4c59f1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/client.go @@ -15,7 +15,7 @@ type ApplicationGatewayPrivateEndpointConnectionsClient struct { } func NewApplicationGatewayPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewayPrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgatewayprivateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgatewayprivateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGatewayPrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go index e1cb47957615..c8739b388e88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgateway.go @@ -42,7 +42,7 @@ func ParseApplicationGatewayID(input string) (*ApplicationGatewayId, error) { } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGatewayIDInsensitively(input string) (*ApplicationGatewayId } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), - resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayValue"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go index aad51fee91ba..56c45d490820 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/id_applicationgatewayprivateendpointconnection.go @@ -44,7 +44,7 @@ func ParseApplicationGatewayPrivateEndpointConnectionID(input string) (*Applicat } id := ApplicationGatewayPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationGatewayPrivateEndpointConnectionIDInsensitively(input strin } id := ApplicationGatewayPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationGatewayPrivateEndpointConnectionId) Segments() []resourceids resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), - resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayValue"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go index f3f7a21ab284..dace2e6df652 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationGatewayPrivateEndpointConnectionsClient) Get(ctx context.Cont var model ApplicationGatewayPrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go index 1b4f66adb608..a24110f3eeed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivateendpointconnections/version.go @@ -1,12 +1,10 @@ package applicationgatewayprivateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgatewayprivateendpointconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md index ae7762605e32..c6b7d5ed7202 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources` Documentation -The `applicationgatewayprivatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `applicationgatewayprivatelinkresources` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgatewayprivatelinkresources.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgatewayprivatelinkresources.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go index 9e0646415266..81bc1b2fb1d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/client.go @@ -15,7 +15,7 @@ type ApplicationGatewayPrivateLinkResourcesClient struct { } func NewApplicationGatewayPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewayPrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgatewayprivatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgatewayprivatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGatewayPrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go index f86cb06512e6..365cb9522ea0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/id_applicationgateway.go @@ -42,7 +42,7 @@ func ParseApplicationGatewayID(input string) (*ApplicationGatewayId, error) { } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGatewayIDInsensitively(input string) (*ApplicationGatewayId } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), - resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayValue"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go index 91d2fb62a6ee..869c6b2db404 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewayprivatelinkresources/version.go @@ -1,12 +1,10 @@ package applicationgatewayprivatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgatewayprivatelinkresources/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/README.md index 81e4a6fc227d..4508e9cbab20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways` Documentation -The `applicationgateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `applicationgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") if err := client.BackendHealthThenPoll(ctx, id, applicationgateways.DefaultBackendHealthOperationOptions()); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.BackendHealthThenPoll(ctx, id, applicationgateways.DefaultBacke ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") payload := applicationgateways.ApplicationGatewayOnDemandProbe{ // ... @@ -54,7 +54,7 @@ if err := client.BackendHealthOnDemandThenPoll(ctx, id, payload, applicationgate ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") payload := applicationgateways.ApplicationGateway{ // ... @@ -71,7 +71,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") read, err := client.Get(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewPredefinedPolicyID("12345678-1234-9876-4563-123456789012", "predefinedPolicyValue") +id := applicationgateways.NewPredefinedPolicyID("12345678-1234-9876-4563-123456789012", "predefinedPolicyName") read, err := client.GetSslPredefinedPolicy(ctx, id) if err != nil { @@ -246,7 +246,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -258,7 +258,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -270,7 +270,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayValue") +id := applicationgateways.NewApplicationGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayName") payload := applicationgateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/client.go index 9608bf471068..3cd17d717260 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/client.go @@ -15,7 +15,7 @@ type ApplicationGatewaysClient struct { } func NewApplicationGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_applicationgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_applicationgateway.go index 0611edc85135..90637014b692 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_applicationgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_applicationgateway.go @@ -42,7 +42,7 @@ func ParseApplicationGatewayID(input string) (*ApplicationGatewayId, error) { } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGatewayIDInsensitively(input string) (*ApplicationGatewayId } id := ApplicationGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGateways", "applicationGateways", "applicationGateways"), - resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayValue"), + resourceids.UserSpecifiedSegment("applicationGatewayName", "applicationGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_predefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_predefinedpolicy.go index f22e541bda31..098e66be9e45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_predefinedpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/id_predefinedpolicy.go @@ -40,7 +40,7 @@ func ParsePredefinedPolicyID(input string) (*PredefinedPolicyId, error) { } id := PredefinedPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePredefinedPolicyIDInsensitively(input string) (*PredefinedPolicyId, er } id := PredefinedPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -109,7 +109,7 @@ func (id PredefinedPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticApplicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions", "applicationGatewayAvailableSslOptions"), resourceids.StaticSegment("staticDefault", "default", "default"), resourceids.StaticSegment("staticPredefinedPolicies", "predefinedPolicies", "predefinedPolicies"), - resourceids.UserSpecifiedSegment("predefinedPolicyName", "predefinedPolicyValue"), + resourceids.UserSpecifiedSegment("predefinedPolicyName", "predefinedPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go index 21c25eb922c6..2ab399ab3f9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealth.go @@ -37,6 +37,7 @@ func (o BackendHealthOperationOptions) ToHeaders() *client.Headers { func (o BackendHealthOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go index 2db3547857af..a22fd7135ce6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_backendhealthondemand.go @@ -37,6 +37,7 @@ func (o BackendHealthOnDemandOperationOptions) ToHeaders() *client.Headers { func (o BackendHealthOnDemandOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_get.go index 03000d91a472..c25227f49ca2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationGatewaysClient) Get(ctx context.Context, id ApplicationGatewa var model ApplicationGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_getsslpredefinedpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_getsslpredefinedpolicy.go index 97530703e81c..d42b5d2730ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_getsslpredefinedpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_getsslpredefinedpolicy.go @@ -45,7 +45,6 @@ func (c ApplicationGatewaysClient) GetSslPredefinedPolicy(ctx context.Context, i var model ApplicationGatewaySslPredefinedPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablerequestheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablerequestheaders.go index 634799c7f706..8132f0945cfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablerequestheaders.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablerequestheaders.go @@ -47,7 +47,6 @@ func (c ApplicationGatewaysClient) ListAvailableRequestHeaders(ctx context.Conte var model []string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableresponseheaders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableresponseheaders.go index fe99c70d2e79..89bdb636e2ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableresponseheaders.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableresponseheaders.go @@ -47,7 +47,6 @@ func (c ApplicationGatewaysClient) ListAvailableResponseHeaders(ctx context.Cont var model []string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableservervariables.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableservervariables.go index b48bb86d765b..f2a0d8c4b796 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableservervariables.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailableservervariables.go @@ -47,7 +47,6 @@ func (c ApplicationGatewaysClient) ListAvailableServerVariables(ctx context.Cont var model []string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablessloptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablessloptions.go index 386a33e5e844..f446cd3730a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablessloptions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablessloptions.go @@ -47,7 +47,6 @@ func (c ApplicationGatewaysClient) ListAvailableSslOptions(ctx context.Context, var model ApplicationGatewayAvailableSslOptions result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablewafrulesets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablewafrulesets.go index 3df1a2db564a..ee2a21477a57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablewafrulesets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_listavailablewafrulesets.go @@ -47,7 +47,6 @@ func (c ApplicationGatewaysClient) ListAvailableWafRuleSets(ctx context.Context, var model ApplicationGatewayAvailableWafRuleSetsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_updatetags.go index d22b36155599..875c2ce138d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/method_updatetags.go @@ -49,7 +49,6 @@ func (c ApplicationGatewaysClient) UpdateTags(ctx context.Context, id Applicatio var model ApplicationGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/version.go index d48fcac7be09..52b278c23286 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgateways/version.go @@ -1,12 +1,10 @@ package applicationgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md index 7f061f94ea04..d00c76532c41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests` Documentation -The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `applicationgatewaywafdynamicmanifests` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.DefaultGet(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := applicationgatewaywafdynamicmanifests.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.Get(ctx, id)` can be used to do batched pagination items, err := client.GetComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go index 507d8e559292..c8cf9d79e64e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/client.go @@ -15,7 +15,7 @@ type ApplicationGatewayWafDynamicManifestsClient struct { } func NewApplicationGatewayWafDynamicManifestsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationGatewayWafDynamicManifestsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationgatewaywafdynamicmanifests", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationgatewaywafdynamicmanifests", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationGatewayWafDynamicManifestsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go index 03b931e4e2fd..38c2aa68f214 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go index 0a6682174de4..41ec3674d2fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/method_defaultget.go @@ -46,7 +46,6 @@ func (c ApplicationGatewayWafDynamicManifestsClient) DefaultGet(ctx context.Cont var model ApplicationGatewayWafDynamicManifestResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go index 83c45ed9b8f7..888716ce6f2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationgatewaywafdynamicmanifests/version.go @@ -1,12 +1,10 @@ package applicationgatewaywafdynamicmanifests -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationgatewaywafdynamicmanifests/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md index 43e96015e396..194318439e2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups` Documentation -The `applicationsecuritygroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `applicationsecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") payload := applicationsecuritygroups.ApplicationSecurityGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupValue") +id := applicationsecuritygroups.NewApplicationSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationSecurityGroupName") payload := applicationsecuritygroups.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go index e607d64a7d39..81de33d92a02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/client.go @@ -15,7 +15,7 @@ type ApplicationSecurityGroupsClient struct { } func NewApplicationSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplicationSecurityGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "applicationsecuritygroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ApplicationSecurityGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go index a776d455c057..65cacde62c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/id_applicationsecuritygroup.go @@ -42,7 +42,7 @@ func ParseApplicationSecurityGroupID(input string) (*ApplicationSecurityGroupId, } id := ApplicationSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationSecurityGroupIDInsensitively(input string) (*ApplicationSec } id := ApplicationSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationSecurityGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationSecurityGroups", "applicationSecurityGroups", "applicationSecurityGroups"), - resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupValue"), + resourceids.UserSpecifiedSegment("applicationSecurityGroupName", "applicationSecurityGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go index 5990e4033ff6..88fdcf2df15b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_get.go @@ -45,7 +45,6 @@ func (c ApplicationSecurityGroupsClient) Get(ctx context.Context, id Application var model ApplicationSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go index 0343cea5693e..3337e0dc239b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/method_updatetags.go @@ -49,7 +49,6 @@ func (c ApplicationSecurityGroupsClient) UpdateTags(ctx context.Context, id Appl var model ApplicationSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go index 1f70ba981981..ce3e93ca31c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/applicationsecuritygroups/version.go @@ -1,12 +1,10 @@ package applicationsecuritygroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/applicationsecuritygroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/applicationsecuritygroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md index 4ada091c5fa5..465d0ed0ba50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations` Documentation -The `availabledelegations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `availabledelegations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabledelegations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := availabledelegations.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.AvailableDelegationsList(ctx, id)` can be used to do batched pagination items, err := client.AvailableDelegationsListComplete(ctx, id) @@ -41,7 +41,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabledelegations.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := availabledelegations.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.AvailableResourceGroupDelegationsList(ctx, id)` can be used to do batched pagination items, err := client.AvailableResourceGroupDelegationsListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go index ff6ff754bce7..2b7153e2c608 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/client.go @@ -15,7 +15,7 @@ type AvailableDelegationsClient struct { } func NewAvailableDelegationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailableDelegationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "availabledelegations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "availabledelegations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AvailableDelegationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go index 411da0105461..e4d894a60896 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go index 18b359986fcc..26af2ff9777f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go index 74dc7e268abe..d0e5dfca13d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availabledelegations/version.go @@ -1,12 +1,10 @@ package availabledelegations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/availabledelegations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/availabledelegations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md index 23e91ec7011d..357d038a2383 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases` Documentation -The `availableservicealiases` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `availableservicealiases` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availableservicealiases.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := availableservicealiases.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -41,7 +41,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availableservicealiases.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := availableservicealiases.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go index 383e80f6061a..5f9e19acaa81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/client.go @@ -15,7 +15,7 @@ type AvailableServiceAliasesClient struct { } func NewAvailableServiceAliasesClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailableServiceAliasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "availableservicealiases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "availableservicealiases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AvailableServiceAliasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go index 5bff2b437594..65846cc20dd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go index 7ec8519458c7..653b48ba9128 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go index 4d4fe38a72e0..4ee314520ba2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/availableservicealiases/version.go @@ -1,12 +1,10 @@ package availableservicealiases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/availableservicealiases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/availableservicealiases/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md index ffc3961c69a0..171197e2921d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls` Documentation -The `azurefirewalls` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `azurefirewalls` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.AzureFirewallsListLearnedPrefixesThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.AzureFirewall{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") read, err := client.Get(ctx, id) if err != nil { @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.FirewallPacketCaptureParameters{ // ... @@ -133,7 +133,7 @@ if err := client.PacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallValue") +id := azurefirewalls.NewAzureFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureFirewallName") payload := azurefirewalls.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go index e1119aea9257..02df961b70b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/client.go @@ -15,7 +15,7 @@ type AzureFirewallsClient struct { } func NewAzureFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureFirewallsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "azurefirewalls", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "azurefirewalls", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AzureFirewallsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go index 20ab073f4485..5c55ccb6a6a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/id_azurefirewall.go @@ -42,7 +42,7 @@ func ParseAzureFirewallID(input string) (*AzureFirewallId, error) { } id := AzureFirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAzureFirewallIDInsensitively(input string) (*AzureFirewallId, error) { } id := AzureFirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AzureFirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticAzureFirewalls", "azureFirewalls", "azureFirewalls"), - resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallValue"), + resourceids.UserSpecifiedSegment("azureFirewallName", "azureFirewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go index 7fa6155aa4ab..e98027949215 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/method_get.go @@ -45,7 +45,6 @@ func (c AzureFirewallsClient) Get(ctx context.Context, id AzureFirewallId) (resu var model AzureFirewall result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go index d05cd1766d1f..50167a781bf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/azurefirewalls/version.go @@ -1,12 +1,10 @@ package azurefirewalls -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/azurefirewalls/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/azurefirewalls/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md index 220cdef0313f..7e49393f26a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts` Documentation -The `bastionhosts` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionHost{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -71,7 +71,7 @@ if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkTokenListRequest{ // ... @@ -88,7 +88,7 @@ if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.SessionIds{ // ... @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") read, err := client.Get(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") // alternatively `client.GetActiveSessions(ctx, id)` can be used to do batched pagination items, err := client.GetActiveSessionsComplete(ctx, id) @@ -143,7 +143,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -221,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go index 95e06c7f523d..f77ea65ff0a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/client.go @@ -15,7 +15,7 @@ type BastionHostsClient struct { } func NewBastionHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*BastionHostsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "bastionhosts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "bastionhosts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BastionHostsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go index 66012e2eda55..655e58ea53f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/id_bastionhost.go @@ -42,7 +42,7 @@ func ParseBastionHostID(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBastionHostIDInsensitively(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BastionHostId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticBastionHosts", "bastionHosts", "bastionHosts"), - resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostValue"), + resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go index 71b1a85a45fa..7d0d6c578df1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/method_get.go @@ -45,7 +45,6 @@ func (c BastionHostsClient) Get(ctx context.Context, id BastionHostId) (result G var model BastionHost result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go index 0083c60a863c..9ba19b0d0041 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionhosts/version.go @@ -1,12 +1,10 @@ package bastionhosts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/bastionhosts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/bastionhosts/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md index 353bf352f37e..362f51616cff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink` Documentation -The `bastionshareablelink` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `bastionshareablelink` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionshareablelink.BastionShareableLinkListRequest{ // ... @@ -41,7 +41,7 @@ if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionshareablelink.BastionShareableLinkTokenListRequest{ // ... @@ -58,7 +58,7 @@ if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionshareablelink.BastionShareableLinkListRequest{ // ... @@ -80,7 +80,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionshareablelink.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionshareablelink.BastionShareableLinkListRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go index 9c49b25b52f7..39fc8e4cbddc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/client.go @@ -15,7 +15,7 @@ type BastionShareableLinkClient struct { } func NewBastionShareableLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*BastionShareableLinkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "bastionshareablelink", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "bastionshareablelink", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BastionShareableLinkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go index b2cc2bfc5be5..dbb59b639968 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/id_bastionhost.go @@ -42,7 +42,7 @@ func ParseBastionHostID(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBastionHostIDInsensitively(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BastionHostId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticBastionHosts", "bastionHosts", "bastionHosts"), - resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostValue"), + resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go index c7fff050a76e..85195401518e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bastionshareablelink/version.go @@ -1,12 +1,10 @@ package bastionshareablelink -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/bastionshareablelink/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/bastionshareablelink/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md index e5403e154545..19cf1d6b7ccb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities` Documentation -The `bgpservicecommunities` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `bgpservicecommunities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go index 07cf4f596499..0fbe7d0bd519 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/client.go @@ -15,7 +15,7 @@ type BgpServiceCommunitiesClient struct { } func NewBgpServiceCommunitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*BgpServiceCommunitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "bgpservicecommunities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "bgpservicecommunities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BgpServiceCommunitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go index a8370a93d5c9..90d5d499d605 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/bgpservicecommunities/version.go @@ -1,12 +1,10 @@ package bgpservicecommunities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/bgpservicecommunities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/bgpservicecommunities/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md index aae01bd66f3c..cc32cdfa1c5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities` Documentation -The `checkdnsavailabilities` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `checkdnsavailabilities` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := checkdnsavailabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := checkdnsavailabilities.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.CheckDnsNameAvailability(ctx, id, checkdnsavailabilities.DefaultCheckDnsNameAvailabilityOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go index 14eb1a4baa05..3641ce2ee39e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/client.go @@ -15,7 +15,7 @@ type CheckDnsAvailabilitiesClient struct { } func NewCheckDnsAvailabilitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckDnsAvailabilitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "checkdnsavailabilities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "checkdnsavailabilities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CheckDnsAvailabilitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go index 1adf8c560dab..054cfdb305ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go index 276e19a8dd4c..aa291abadeb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/method_checkdnsnameavailability.go @@ -34,6 +34,7 @@ func (o CheckDnsNameAvailabilityOperationOptions) ToHeaders() *client.Headers { func (o CheckDnsNameAvailabilityOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CheckDnsAvailabilitiesClient) CheckDnsNameAvailability(ctx context.Conte var model DnsNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go index 96c92ccdb8cf..901e04955d14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/checkdnsavailabilities/version.go @@ -1,12 +1,10 @@ package checkdnsavailabilities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/checkdnsavailabilities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/checkdnsavailabilities/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md index 178fea12b224..0f3e04b6a43f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses` Documentation -The `cloudservicepublicipaddresses` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `cloudservicepublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewCloudServicesPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName", "publicIPAddressName") read, err := client.PublicIPAddressesGetCloudServicePublicIPAddress(ctx, id, cloudservicepublicipaddresses.DefaultPublicIPAddressesGetCloudServicePublicIPAddressOperationOptions()) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cloudservicepublicipaddresses.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue") +id := cloudservicepublicipaddresses.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") // alternatively `client.PublicIPAddressesListCloudServicePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServicePublicIPAddressesComplete(ctx, id) @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewCloudServicesIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName", "ipConfigurationName") // alternatively `client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListCloudServiceRoleInstancePublicIPAddressesComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go index 4eebc5f720f8..3ffc0d7ae836 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/client.go @@ -15,7 +15,7 @@ type CloudServicePublicIPAddressesClient struct { } func NewCloudServicePublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*CloudServicePublicIPAddressesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cloudservicepublicipaddresses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cloudservicepublicipaddresses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CloudServicePublicIPAddressesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go index 2750d8acfa0b..c99703d0a693 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/id_providercloudservice.go @@ -42,7 +42,7 @@ func ParseProviderCloudServiceID(input string) (*ProviderCloudServiceId, error) } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderCloudServiceIDInsensitively(input string) (*ProviderCloudServi } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderCloudServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go index b3e6c192d397..dabdeb2c12e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/method_publicipaddressesgetcloudservicepublicipaddress.go @@ -35,6 +35,7 @@ func (o PublicIPAddressesGetCloudServicePublicIPAddressOperationOptions) ToHeade func (o PublicIPAddressesGetCloudServicePublicIPAddressOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c CloudServicePublicIPAddressesClient) PublicIPAddressesGetCloudServicePub var model PublicIPAddress result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go index 13e8a9d46785..affd2c94cc8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/cloudservicepublicipaddresses/version.go @@ -1,12 +1,10 @@ package cloudservicepublicipaddresses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cloudservicepublicipaddresses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cloudservicepublicipaddresses/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md index c54ef6441dd7..50175098beaf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors` Documentation -The `connectionmonitors` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `connectionmonitors` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") payload := connectionmonitors.ConnectionMonitor{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, connectionmonitors.Def ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := connectionmonitors.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") read, err := client.List(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") if err := client.QueryThenPoll(ctx, id); err != nil { // handle the error @@ -97,7 +97,7 @@ if err := client.QueryThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -109,7 +109,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -121,7 +121,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "connectionMonitorValue") +id := connectionmonitors.NewConnectionMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "connectionMonitorName") payload := connectionmonitors.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go index a8ff516ce503..c23a27cd53b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/client.go @@ -15,7 +15,7 @@ type ConnectionMonitorsClient struct { } func NewConnectionMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionMonitorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectionmonitors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectionmonitors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectionMonitorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go index 10d851fd213c..556a942bd1ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_connectionmonitor.go @@ -44,7 +44,7 @@ func ParseConnectionMonitorID(input string) (*ConnectionMonitorId, error) { } id := ConnectionMonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectionMonitorIDInsensitively(input string) (*ConnectionMonitorId, } id := ConnectionMonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectionMonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), resourceids.StaticSegment("staticConnectionMonitors", "connectionMonitors", "connectionMonitors"), - resourceids.UserSpecifiedSegment("connectionMonitorName", "connectionMonitorValue"), + resourceids.UserSpecifiedSegment("connectionMonitorName", "connectionMonitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go index c112368b0b71..4b6c56cb216b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go index f2d252c628d5..069036d65fef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_createorupdate.go @@ -37,6 +37,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go index 883ffbdfd404..8087a322df34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_get.go @@ -45,7 +45,6 @@ func (c ConnectionMonitorsClient) Get(ctx context.Context, id ConnectionMonitorI var model ConnectionMonitorResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go index 40de4efcac77..46eea3af26b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_list.go @@ -46,7 +46,6 @@ func (c ConnectionMonitorsClient) List(ctx context.Context, id NetworkWatcherId) var model ConnectionMonitorListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go index 04091a0b16cb..e6e1f8be8d12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/method_updatetags.go @@ -49,7 +49,6 @@ func (c ConnectionMonitorsClient) UpdateTags(ctx context.Context, id ConnectionM var model ConnectionMonitorResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go index 3ea1ebdcccbe..017a7248272e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectionmonitors/version.go @@ -1,12 +1,10 @@ package connectionmonitors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectionmonitors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectionmonitors/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md index 85487e40647f..63fa66a4d9b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations` Documentation -The `connectivityconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `connectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "connectivityConfigurationValue") +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") payload := connectivityconfigurations.ConnectivityConfiguration{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "connectivityConfigurationValue") +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, connectivityconfigurations.DefaultDelet ```go ctx := context.TODO() -id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "connectivityConfigurationValue") +id := connectivityconfigurations.NewConnectivityConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := connectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") // alternatively `client.List(ctx, id, connectivityconfigurations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, connectivityconfigurations.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go index 7fb783f963a7..8d9088537705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/client.go @@ -15,7 +15,7 @@ type ConnectivityConfigurationsClient struct { } func NewConnectivityConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectivityConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connectivityconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connectivityconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectivityConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go index d00d054bd40a..49a4ba3aaf01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_connectivityconfiguration.go @@ -44,7 +44,7 @@ func ParseConnectivityConfigurationID(input string) (*ConnectivityConfigurationI } id := ConnectivityConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectivityConfigurationIDInsensitively(input string) (*ConnectivityC } id := ConnectivityConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectivityConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticConnectivityConfigurations", "connectivityConfigurations", "connectivityConfigurations"), - resourceids.UserSpecifiedSegment("connectivityConfigurationName", "connectivityConfigurationValue"), + resourceids.UserSpecifiedSegment("connectivityConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go index 1f7b8c3216bf..2c2e4adba2f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go index 3ad8680898da..e8278cdba638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConnectivityConfigurationsClient) CreateOrUpdate(ctx context.Context, id var model ConnectivityConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go index 8646fac9ed8d..a1c5884b210a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go index d8769033b0a7..3471bd0faf14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c ConnectivityConfigurationsClient) Get(ctx context.Context, id Connectivi var model ConnectivityConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go index 95ba68f0bc11..6663f9e80ae2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go index 62ecf9513b1b..ba474b9067d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/connectivityconfigurations/version.go @@ -1,12 +1,10 @@ package connectivityconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connectivityconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connectivityconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md index cd0ecbad9715..3997e559c6ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes` Documentation -The `customipprefixes` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `customipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixValue") +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIpPrefixName") payload := customipprefixes.CustomIPPrefix{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixValue") +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIpPrefixName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixValue") +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIpPrefixName") read, err := client.Get(ctx, id, customipprefixes.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIPPrefixValue") +id := customipprefixes.NewCustomIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "customIpPrefixName") payload := customipprefixes.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go index 1e1c6887c4ab..2b241f7b0e76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/client.go @@ -15,7 +15,7 @@ type CustomIPPrefixesClient struct { } func NewCustomIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*CustomIPPrefixesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "customipprefixes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "customipprefixes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CustomIPPrefixesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go index d4206cbdfb53..a41316cfa684 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/id_customipprefix.go @@ -42,7 +42,7 @@ func ParseCustomIPPrefixID(input string) (*CustomIPPrefixId, error) { } id := CustomIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCustomIPPrefixIDInsensitively(input string) (*CustomIPPrefixId, error) } id := CustomIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CustomIPPrefixId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticCustomIPPrefixes", "customIPPrefixes", "customIPPrefixes"), - resourceids.UserSpecifiedSegment("customIPPrefixName", "customIPPrefixValue"), + resourceids.UserSpecifiedSegment("customIPPrefixName", "customIpPrefixName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go index 9215609651ab..61164d79480e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c CustomIPPrefixesClient) Get(ctx context.Context, id CustomIPPrefixId, op var model CustomIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go index c61802109c39..2962a005ed86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/method_updatetags.go @@ -49,7 +49,6 @@ func (c CustomIPPrefixesClient) UpdateTags(ctx context.Context, id CustomIPPrefi var model CustomIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go index d8b18dff4cd6..a23ca4411470 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/customipprefixes/version.go @@ -1,12 +1,10 @@ package customipprefixes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/customipprefixes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/customipprefixes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md index 37002c0710ec..7ce7de395e08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies` Documentation -The `ddoscustompolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `ddoscustompolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyValue") +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") payload := ddoscustompolicies.DdosCustomPolicy{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyValue") +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyValue") +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyValue") +id := ddoscustompolicies.NewDdosCustomPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosCustomPolicyName") payload := ddoscustompolicies.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go index e6985cefaeeb..93a9d3ac0d4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/client.go @@ -15,7 +15,7 @@ type DdosCustomPoliciesClient struct { } func NewDdosCustomPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*DdosCustomPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ddoscustompolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ddoscustompolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DdosCustomPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go index 1898126aafc2..ca83ded00345 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/id_ddoscustompolicy.go @@ -42,7 +42,7 @@ func ParseDdosCustomPolicyID(input string) (*DdosCustomPolicyId, error) { } id := DdosCustomPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDdosCustomPolicyIDInsensitively(input string) (*DdosCustomPolicyId, er } id := DdosCustomPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DdosCustomPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDdosCustomPolicies", "ddosCustomPolicies", "ddosCustomPolicies"), - resourceids.UserSpecifiedSegment("ddosCustomPolicyName", "ddosCustomPolicyValue"), + resourceids.UserSpecifiedSegment("ddosCustomPolicyName", "ddosCustomPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go index 07a8cdf6ad05..288dcc99b4a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_get.go @@ -45,7 +45,6 @@ func (c DdosCustomPoliciesClient) Get(ctx context.Context, id DdosCustomPolicyId var model DdosCustomPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go index b64aa2cb5190..1e74f849d0b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/method_updatetags.go @@ -49,7 +49,6 @@ func (c DdosCustomPoliciesClient) UpdateTags(ctx context.Context, id DdosCustomP var model DdosCustomPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go index 9a348c9dac26..706cecc08dfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddoscustompolicies/version.go @@ -1,12 +1,10 @@ package ddoscustompolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ddoscustompolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ddoscustompolicies/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md index 9af0eb86b63a..a543966d2726 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans` Documentation -The `ddosprotectionplans` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `ddosprotectionplans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") payload := ddosprotectionplans.DdosProtectionPlan{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanValue") +id := ddosprotectionplans.NewDdosProtectionPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ddosProtectionPlanName") payload := ddosprotectionplans.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go index de83f23ea42d..e117bf49a8f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/client.go @@ -15,7 +15,7 @@ type DdosProtectionPlansClient struct { } func NewDdosProtectionPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*DdosProtectionPlansClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ddosprotectionplans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ddosprotectionplans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DdosProtectionPlansClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go index 1be4cad64d92..b886f8a4b1fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/id_ddosprotectionplan.go @@ -42,7 +42,7 @@ func ParseDdosProtectionPlanID(input string) (*DdosProtectionPlanId, error) { } id := DdosProtectionPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDdosProtectionPlanIDInsensitively(input string) (*DdosProtectionPlanId } id := DdosProtectionPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DdosProtectionPlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDdosProtectionPlans", "ddosProtectionPlans", "ddosProtectionPlans"), - resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanValue"), + resourceids.UserSpecifiedSegment("ddosProtectionPlanName", "ddosProtectionPlanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go index 9003f8a00c35..7a92875442ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_get.go @@ -45,7 +45,6 @@ func (c DdosProtectionPlansClient) Get(ctx context.Context, id DdosProtectionPla var model DdosProtectionPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go index 07e469082e66..a5b91c81b71e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/method_updatetags.go @@ -49,7 +49,6 @@ func (c DdosProtectionPlansClient) UpdateTags(ctx context.Context, id DdosProtec var model DdosProtectionPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go index dc1e04d4a4be..edb69fa969ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ddosprotectionplans/version.go @@ -1,12 +1,10 @@ package ddosprotectionplans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ddosprotectionplans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ddosprotectionplans/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md index 3f9eb004cb0f..6006c196528d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration` Documentation -The `dscpconfiguration` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `dscpconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationValue") +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") payload := dscpconfiguration.DscpConfiguration{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationValue") +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationValue") +id := dscpconfiguration.NewDscpConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dscpConfigurationName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go index ed6cfe7aa080..76ab56d49777 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/client.go @@ -15,7 +15,7 @@ type DscpConfigurationClient struct { } func NewDscpConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*DscpConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dscpconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dscpconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DscpConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go index 8eb56f33d981..3f91fca9e7d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/id_dscpconfiguration.go @@ -42,7 +42,7 @@ func ParseDscpConfigurationID(input string) (*DscpConfigurationId, error) { } id := DscpConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDscpConfigurationIDInsensitively(input string) (*DscpConfigurationId, } id := DscpConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DscpConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticDscpConfigurations", "dscpConfigurations", "dscpConfigurations"), - resourceids.UserSpecifiedSegment("dscpConfigurationName", "dscpConfigurationValue"), + resourceids.UserSpecifiedSegment("dscpConfigurationName", "dscpConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go index 1563a9b978bd..cb94f50eba52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c DscpConfigurationClient) Get(ctx context.Context, id DscpConfigurationId var model DscpConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go index 4ebfa641d8d9..64f1b8056fdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfiguration/version.go @@ -1,12 +1,10 @@ package dscpconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dscpconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dscpconfiguration/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md index 396deb6d988d..d8dd7bd8d7c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations` Documentation -The `dscpconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `dscpconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go index ef38b8d05338..f8740f737f69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/client.go @@ -15,7 +15,7 @@ type DscpConfigurationsClient struct { } func NewDscpConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*DscpConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dscpconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dscpconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DscpConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go index 0812d4daaf2c..291ded8f891a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/dscpconfigurations/version.go @@ -1,12 +1,10 @@ package dscpconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dscpconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dscpconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md index 29e4aff7f71c..63abca9937a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices` Documentation -The `endpointservices` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `endpointservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := endpointservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := endpointservices.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.AvailableEndpointServicesList(ctx, id)` can be used to do batched pagination items, err := client.AvailableEndpointServicesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go index c04faa1ffd87..44e82b37c462 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/client.go @@ -15,7 +15,7 @@ type EndpointServicesClient struct { } func NewEndpointServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*EndpointServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "endpointservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "endpointservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EndpointServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go index b3f9df038611..f2b06140acf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go index 2e19df5c828b..590185eb2a4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/endpointservices/version.go @@ -1,12 +1,10 @@ package endpointservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/endpointservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/endpointservices/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md index da599e67a92d..b62ebd11e6ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable` Documentation -The `expressroutecircuitarptable` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitarptable.NewArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "arpTableValue") +id := expressroutecircuitarptable.NewArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCircuitsListArpTable(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCircuitsListArpTableComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go index a927b3e2a418..b13a5d9774ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitArpTableClient struct { } func NewExpressRouteCircuitArpTableClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitArpTableClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitarptable", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitarptable", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitArpTableClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go index c01410283c14..0f33d89bfd95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/id_arptable.go @@ -46,7 +46,7 @@ func ParseArpTableID(input string) (*ArpTableId, error) { } id := ArpTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseArpTableIDInsensitively(input string) (*ArpTableId, error) { } id := ArpTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ArpTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticArpTables", "arpTables", "arpTables"), - resourceids.UserSpecifiedSegment("arpTableName", "arpTableValue"), + resourceids.UserSpecifiedSegment("arpTableName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go index 75b40b5db379..560b7f653555 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitarptable/version.go @@ -1,12 +1,10 @@ package expressroutecircuitarptable -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitarptable/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitarptable/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md index 4446f8cbb8e6..6c83970d0a6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations` Documentation -The `expressroutecircuitauthorizations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "authorizationValue") +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "authorizationName") payload := expressroutecircuitauthorizations.ExpressRouteCircuitAuthorization{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "authorizationValue") +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "authorizationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "authorizationValue") +id := expressroutecircuitauthorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "authorizationName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuitauthorizations.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go index 8060a80be1eb..2d3988ae8a8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitAuthorizationsClient struct { } func NewExpressRouteCircuitAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitAuthorizationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitauthorizations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitauthorizations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitAuthorizationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go index b659c5a5b8c5..b8b16a2153da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_authorization.go @@ -44,7 +44,7 @@ func ParseAuthorizationID(input string) (*AuthorizationId, error) { } id := AuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationIDInsensitively(input string) (*AuthorizationId, error) { } id := AuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), - resourceids.UserSpecifiedSegment("authorizationName", "authorizationValue"), + resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go index a46fa52bf5d4..7626fffc08ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/id_expressroutecircuit.go @@ -42,7 +42,7 @@ func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuit } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go index 19e783a86753..823c3b06cfc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteCircuitAuthorizationsClient) Get(ctx context.Context, id Aut var model ExpressRouteCircuitAuthorization result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go index a7d64d7839ed..6a23b660d109 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitauthorizations/version.go @@ -1,12 +1,10 @@ package expressroutecircuitauthorizations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitauthorizations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitauthorizations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md index 8b1ba4916f72..1a126f3dba58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections` Documentation -The `expressroutecircuitconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "connectionValue") +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "connectionName") payload := expressroutecircuitconnections.ExpressRouteCircuitConnection{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "connectionValue") +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "connectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "connectionValue") +id := expressroutecircuitconnections.NewPeeringConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go index 333eff0e189f..6ce57a4cb92c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitConnectionsClient struct { } func NewExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go index 0e2e6d6c894e..7c1fb7730b79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/id_peeringconnection.go @@ -46,7 +46,7 @@ func ParsePeeringConnectionID(input string) (*PeeringConnectionId, error) { } id := PeeringConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePeeringConnectionIDInsensitively(input string) (*PeeringConnectionId, } id := PeeringConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PeeringConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionValue"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go index 0a4a18dd7cc5..ca510dffdd4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteCircuitConnectionsClient) Get(ctx context.Context, id Peerin var model ExpressRouteCircuitConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go index e15f8b6a71d8..d14d3ebb8deb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitconnections/version.go @@ -1,12 +1,10 @@ package expressroutecircuitconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md index 21b1c97b344a..eb6be299277a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings` Documentation -The `expressroutecircuitpeerings` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") payload := expressroutecircuitpeerings.ExpressRouteCircuitPeering{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuitpeerings.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go index 63ac4daefad3..ce7c06a4f7b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitPeeringsClient struct { } func NewExpressRouteCircuitPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitPeeringsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitpeerings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitpeerings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitPeeringsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go index 51f74b9a362a..d901b679f337 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/id_expressroutecircuit.go @@ -42,7 +42,7 @@ func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuit } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go index 0937d0e96a96..217363c38a10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/method_get.go @@ -46,7 +46,6 @@ func (c ExpressRouteCircuitPeeringsClient) Get(ctx context.Context, id commonids var model ExpressRouteCircuitPeering result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go index 52009464de04..e1a25aedb019 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitpeerings/version.go @@ -1,12 +1,10 @@ package expressroutecircuitpeerings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitpeerings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitpeerings/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md index c277fb17bb19..a421dfe8f202 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable` Documentation -The `expressroutecircuitroutestable` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitroutestable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitroutestable.NewPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "routeTableValue") +id := expressroutecircuitroutestable.NewPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCircuitsListRoutesTable(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCircuitsListRoutesTableComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go index 925b7f29bae4..64933522e0c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitRoutesTableClient struct { } func NewExpressRouteCircuitRoutesTableClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitRoutesTableClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitroutestable", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitroutestable", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitRoutesTableClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go index 895e343bf354..d929441f3796 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/id_peeringroutetable.go @@ -46,7 +46,7 @@ func ParsePeeringRouteTableID(input string) (*PeeringRouteTableId, error) { } id := PeeringRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePeeringRouteTableIDInsensitively(input string) (*PeeringRouteTableId, } id := PeeringRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PeeringRouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go index eebea9ad8c3d..6b442c304e96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestable/version.go @@ -1,12 +1,10 @@ package expressroutecircuitroutestable -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitroutestable/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitroutestable/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md index c8b52c8d4454..d9c47555f450 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary` Documentation -The `expressroutecircuitroutestablesummary` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitroutestablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuitroutestablesummary.NewRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "routeTablesSummaryValue") +id := expressroutecircuitroutestablesummary.NewRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCircuitsListRoutesTableSummary(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCircuitsListRoutesTableSummaryComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go index 5565926cb765..1964d42b872b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitRoutesTableSummaryClient struct { } func NewExpressRouteCircuitRoutesTableSummaryClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitRoutesTableSummaryClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitroutestablesummary", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitroutestablesummary", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitRoutesTableSummaryClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go index 16c5b0c301a3..937535957437 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/id_routetablessummary.go @@ -46,7 +46,7 @@ func ParseRouteTablesSummaryID(input string) (*RouteTablesSummaryId, error) { } id := RouteTablesSummaryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRouteTablesSummaryIDInsensitively(input string) (*RouteTablesSummaryId } id := RouteTablesSummaryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RouteTablesSummaryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticRouteTablesSummary", "routeTablesSummary", "routeTablesSummary"), - resourceids.UserSpecifiedSegment("routeTablesSummaryName", "routeTablesSummaryValue"), + resourceids.UserSpecifiedSegment("routeTablesSummaryName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go index 776f82a1b931..5d76832ab827 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitroutestablesummary/version.go @@ -1,12 +1,10 @@ package expressroutecircuitroutestablesummary -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitroutestablesummary/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/README.md index f7efe107b4e9..076a3e224fb2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits` Documentation -The `expressroutecircuits` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuits` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") payload := expressroutecircuits.ExpressRouteCircuit{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuits.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") payload := expressroutecircuits.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/client.go index cd12ab163e63..e618de828285 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitsClient struct { } func NewExpressRouteCircuitsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuits", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuits", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/id_expressroutecircuit.go index d48e8e429e73..d3a73edd48ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/id_expressroutecircuit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/id_expressroutecircuit.go @@ -42,7 +42,7 @@ func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuit } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_get.go index 2047441e60b9..f44a9d7ab3de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteCircuitsClient) Get(ctx context.Context, id ExpressRouteCirc var model ExpressRouteCircuit result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_updatetags.go index 8426eb683b23..2188a40d7836 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/method_updatetags.go @@ -49,7 +49,6 @@ func (c ExpressRouteCircuitsClient) UpdateTags(ctx context.Context, id ExpressRo var model ExpressRouteCircuit result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/version.go index 8293ecde4f63..54e0b1e57e63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuits/version.go @@ -1,12 +1,10 @@ package expressroutecircuits -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuits/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuits/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md index 19e9815334ae..5487180a279d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats` Documentation -The `expressroutecircuitstats` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecircuitstats` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") read, err := client.ExpressRouteCircuitsGetPeeringStats(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecircuitstats.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue") +id := expressroutecircuitstats.NewExpressRouteCircuitID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName") read, err := client.ExpressRouteCircuitsGetStats(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go index 43a397e1cc17..697e4ff28173 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/client.go @@ -15,7 +15,7 @@ type ExpressRouteCircuitStatsClient struct { } func NewExpressRouteCircuitStatsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCircuitStatsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecircuitstats", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecircuitstats", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCircuitStatsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go index cf235dfe96fb..38c9ef16c4a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/id_expressroutecircuit.go @@ -42,7 +42,7 @@ func ParseExpressRouteCircuitID(input string) (*ExpressRouteCircuitId, error) { } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCircuitIDInsensitively(input string) (*ExpressRouteCircuit } id := ExpressRouteCircuitId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCircuitId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go index 5473e8458e6e..14b01a4f877a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetpeeringstats.go @@ -47,7 +47,6 @@ func (c ExpressRouteCircuitStatsClient) ExpressRouteCircuitsGetPeeringStats(ctx var model ExpressRouteCircuitStats result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go index 4bd3c09b58ee..093f31815f0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/method_expressroutecircuitsgetstats.go @@ -46,7 +46,6 @@ func (c ExpressRouteCircuitStatsClient) ExpressRouteCircuitsGetStats(ctx context var model ExpressRouteCircuitStats result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go index 3b7fa6960a87..cf7a49d347a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecircuitstats/version.go @@ -1,12 +1,10 @@ package expressroutecircuitstats -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecircuitstats/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecircuitstats/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md index 973bd55fede0..bcd03cf47768 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections` Documentation -The `expressrouteconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue", "expressRouteConnectionValue") +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "connectionName") payload := expressrouteconnections.ExpressRouteConnection{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue", "expressRouteConnectionValue") +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "connectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue", "expressRouteConnectionValue") +id := expressrouteconnections.NewExpressRouteConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue") +id := expressrouteconnections.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go index 59b056f90da6..379d1d228801 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/client.go @@ -15,7 +15,7 @@ type ExpressRouteConnectionsClient struct { } func NewExpressRouteConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go index 7bba12f409b0..971a1ebe796a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressrouteconnection.go @@ -44,7 +44,7 @@ func ParseExpressRouteConnectionID(input string) (*ExpressRouteConnectionId, err } id := ExpressRouteConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExpressRouteConnectionIDInsensitively(input string) (*ExpressRouteConn } id := ExpressRouteConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExpressRouteConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), - resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayValue"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), resourceids.StaticSegment("staticExpressRouteConnections", "expressRouteConnections", "expressRouteConnections"), - resourceids.UserSpecifiedSegment("expressRouteConnectionName", "expressRouteConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go index 6df37b9a7d8d..cad59206c916 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/id_expressroutegateway.go @@ -42,7 +42,7 @@ func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { } id := ExpressRouteGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGateway } id := ExpressRouteGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), - resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayValue"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go index ae0992fa45d5..0116eaca5cf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteConnectionsClient) Get(ctx context.Context, id ExpressRouteC var model ExpressRouteConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go index e9090e1dd561..d6233e938c49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/method_list.go @@ -46,7 +46,6 @@ func (c ExpressRouteConnectionsClient) List(ctx context.Context, id ExpressRoute var model ExpressRouteConnectionList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go index 12280cb6f2b2..4059fb601ed4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteconnections/version.go @@ -1,12 +1,10 @@ package expressrouteconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md index 325182359788..8dc68b4ebf8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable` Documentation -The `expressroutecrossconnectionarptable` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionarptable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecrossconnectionarptable.NewPeeringArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "arpTableValue") +id := expressroutecrossconnectionarptable.NewPeeringArpTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCrossConnectionsListArpTable(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCrossConnectionsListArpTableComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go index 07328f2f394a..57ec192ecdb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/client.go @@ -15,7 +15,7 @@ type ExpressRouteCrossConnectionArpTableClient struct { } func NewExpressRouteCrossConnectionArpTableClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCrossConnectionArpTableClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecrossconnectionarptable", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecrossconnectionarptable", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCrossConnectionArpTableClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go index a90eea8a4cba..0589efdc27b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/id_peeringarptable.go @@ -46,7 +46,7 @@ func ParsePeeringArpTableID(input string) (*PeeringArpTableId, error) { } id := PeeringArpTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePeeringArpTableIDInsensitively(input string) (*PeeringArpTableId, erro } id := PeeringArpTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PeeringArpTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticArpTables", "arpTables", "arpTables"), - resourceids.UserSpecifiedSegment("arpTableName", "arpTableValue"), + resourceids.UserSpecifiedSegment("arpTableName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go index 455b31f5bc36..901342a916ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionarptable/version.go @@ -1,12 +1,10 @@ package expressroutecrossconnectionarptable -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecrossconnectionarptable/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md index 9ff762b57423..d7c75b7ca449 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings` Documentation -The `expressroutecrossconnectionpeerings` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue") +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName") payload := expressroutecrossconnectionpeerings.ExpressRouteCrossConnectionPeering{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue") +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue") +id := expressroutecrossconnectionpeerings.NewPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue") +id := expressroutecrossconnectionpeerings.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go index 90cbc899dcb7..d2b06fe732dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/client.go @@ -15,7 +15,7 @@ type ExpressRouteCrossConnectionPeeringsClient struct { } func NewExpressRouteCrossConnectionPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCrossConnectionPeeringsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecrossconnectionpeerings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecrossconnectionpeerings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCrossConnectionPeeringsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go index 626b69cff735..0971af25620c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_expressroutecrossconnection.go @@ -42,7 +42,7 @@ func ParseExpressRouteCrossConnectionID(input string) (*ExpressRouteCrossConnect } id := ExpressRouteCrossConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCrossConnectionIDInsensitively(input string) (*ExpressRout } id := ExpressRouteCrossConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCrossConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go index f9e45b10c997..83a9563a48d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/id_peering.go @@ -44,7 +44,7 @@ func ParsePeeringID(input string) (*PeeringId, error) { } id := PeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePeeringIDInsensitively(input string) (*PeeringId, error) { } id := PeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PeeringId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go index b53171627d6e..4fbd73485bb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteCrossConnectionPeeringsClient) Get(ctx context.Context, id P var model ExpressRouteCrossConnectionPeering result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go index 8dc794bbd108..36b0b29e07c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionpeerings/version.go @@ -1,12 +1,10 @@ package expressroutecrossconnectionpeerings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecrossconnectionpeerings/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md index ce896e47edd2..e6ceccee07a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable` Documentation -The `expressroutecrossconnectionroutetable` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionroutetable` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "routeTableValue") +id := expressroutecrossconnectionroutetable.NewExpressRouteCrossConnectionPeeringRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCrossConnectionsListRoutesTable(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCrossConnectionsListRoutesTableComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go index 210d81d68a99..6b8b935dba0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/client.go @@ -15,7 +15,7 @@ type ExpressRouteCrossConnectionRouteTableClient struct { } func NewExpressRouteCrossConnectionRouteTableClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCrossConnectionRouteTableClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecrossconnectionroutetable", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecrossconnectionroutetable", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCrossConnectionRouteTableClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go index 9a8910626cd7..b6d27ada3781 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/id_expressroutecrossconnectionpeeringroutetable.go @@ -46,7 +46,7 @@ func ParseExpressRouteCrossConnectionPeeringRouteTableID(input string) (*Express } id := ExpressRouteCrossConnectionPeeringRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseExpressRouteCrossConnectionPeeringRouteTableIDInsensitively(input stri } id := ExpressRouteCrossConnectionPeeringRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ExpressRouteCrossConnectionPeeringRouteTableId) Segments() []resourceid resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go index 75c933a3225d..fc08bb11bbb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetable/version.go @@ -1,12 +1,10 @@ package expressroutecrossconnectionroutetable -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetable/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md index 8b68daff17cd..a6c40702c9f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary` Documentation -The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecrossconnectionroutetablesummary` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecrossconnectionroutetablesummary.NewPeeringRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue", "peeringValue", "routeTablesSummaryValue") +id := expressroutecrossconnectionroutetablesummary.NewPeeringRouteTablesSummaryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName", "peeringName", "devicePath") // alternatively `client.ExpressRouteCrossConnectionsListRoutesTableSummary(ctx, id)` can be used to do batched pagination items, err := client.ExpressRouteCrossConnectionsListRoutesTableSummaryComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go index 5329fa515af9..aaf83cd3840e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/client.go @@ -15,7 +15,7 @@ type ExpressRouteCrossConnectionRouteTableSummaryClient struct { } func NewExpressRouteCrossConnectionRouteTableSummaryClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCrossConnectionRouteTableSummaryClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecrossconnectionroutetablesummary", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecrossconnectionroutetablesummary", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCrossConnectionRouteTableSummaryClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go index ea69383cd3ac..df854619ed99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/id_peeringroutetablessummary.go @@ -46,7 +46,7 @@ func ParsePeeringRouteTablesSummaryID(input string) (*PeeringRouteTablesSummaryI } id := PeeringRouteTablesSummaryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePeeringRouteTablesSummaryIDInsensitively(input string) (*PeeringRouteT } id := PeeringRouteTablesSummaryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PeeringRouteTablesSummaryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticRouteTablesSummary", "routeTablesSummary", "routeTablesSummary"), - resourceids.UserSpecifiedSegment("routeTablesSummaryName", "routeTablesSummaryValue"), + resourceids.UserSpecifiedSegment("routeTablesSummaryName", "devicePath"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go index 0bf163eae3d7..d57384ba64d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnectionroutetablesummary/version.go @@ -1,12 +1,10 @@ package expressroutecrossconnectionroutetablesummary -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecrossconnectionroutetablesummary/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md index 31298cb1b3e2..edbc9f79b6bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections` Documentation -The `expressroutecrossconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutecrossconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue") +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName") payload := expressroutecrossconnections.ExpressRouteCrossConnection{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue") +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -92,7 +92,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCrossConnectionValue") +id := expressroutecrossconnections.NewExpressRouteCrossConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "crossConnectionName") payload := expressroutecrossconnections.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go index 67aa896c58d5..5df85aad3d6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/client.go @@ -15,7 +15,7 @@ type ExpressRouteCrossConnectionsClient struct { } func NewExpressRouteCrossConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteCrossConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutecrossconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutecrossconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteCrossConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go index 3748db0d3a23..dcaf8883d78e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/id_expressroutecrossconnection.go @@ -42,7 +42,7 @@ func ParseExpressRouteCrossConnectionID(input string) (*ExpressRouteCrossConnect } id := ExpressRouteCrossConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteCrossConnectionIDInsensitively(input string) (*ExpressRout } id := ExpressRouteCrossConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteCrossConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCrossConnections", "expressRouteCrossConnections", "expressRouteCrossConnections"), - resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "expressRouteCrossConnectionValue"), + resourceids.UserSpecifiedSegment("expressRouteCrossConnectionName", "crossConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go index 250556ca005b..e68e3ddc46d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteCrossConnectionsClient) Get(ctx context.Context, id ExpressR var model ExpressRouteCrossConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go index 0c627c7653ae..e55953bde8f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/method_updatetags.go @@ -49,7 +49,6 @@ func (c ExpressRouteCrossConnectionsClient) UpdateTags(ctx context.Context, id E var model ExpressRouteCrossConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go index 2079790500c5..0dea6676bacf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutecrossconnections/version.go @@ -1,12 +1,10 @@ package expressroutecrossconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutecrossconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutecrossconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/README.md index ba46c8559550..df204e94a6ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways` Documentation -The `expressroutegateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutegateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue") +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") payload := expressroutegateways.ExpressRouteGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue") +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue") +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayValue") +id := expressroutegateways.NewExpressRouteGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteGatewayName") payload := expressroutegateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/client.go index a1f21a852ef6..292ef72ff7b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/client.go @@ -15,7 +15,7 @@ type ExpressRouteGatewaysClient struct { } func NewExpressRouteGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutegateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutegateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/id_expressroutegateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/id_expressroutegateway.go index 0e06d43d2987..924fe72c4ec5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/id_expressroutegateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/id_expressroutegateway.go @@ -42,7 +42,7 @@ func ParseExpressRouteGatewayID(input string) (*ExpressRouteGatewayId, error) { } id := ExpressRouteGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRouteGatewayIDInsensitively(input string) (*ExpressRouteGateway } id := ExpressRouteGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRouteGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteGateways", "expressRouteGateways", "expressRouteGateways"), - resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayValue"), + resourceids.UserSpecifiedSegment("expressRouteGatewayName", "expressRouteGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_get.go index 74f38c464bbe..3fe9ab488d07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteGatewaysClient) Get(ctx context.Context, id ExpressRouteGate var model ExpressRouteGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbyresourcegroup.go index 4676a67757af..f76de802a392 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ExpressRouteGatewaysClient) ListByResourceGroup(ctx context.Context, id var model ExpressRouteGatewayList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbysubscription.go index ba74ca537ae4..840cb62145e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c ExpressRouteGatewaysClient) ListBySubscription(ctx context.Context, id c var model ExpressRouteGatewayList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/version.go index 801aede386b4..fbf5dd2fe2cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutegateways/version.go @@ -1,12 +1,10 @@ package expressroutegateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutegateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutegateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md index 163e59453588..481eba0d555a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks` Documentation -The `expressroutelinks` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressroutelinks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressroutelinks.NewLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue", "linkValue") +id := expressroutelinks.NewLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "linkName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressroutelinks.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressroutelinks.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go index 42ba283bf4ac..5b75ccca68fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/client.go @@ -15,7 +15,7 @@ type ExpressRouteLinksClient struct { } func NewExpressRouteLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteLinksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressroutelinks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressroutelinks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteLinksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go index fdf651cde653..6e1bb1a7c09a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_expressrouteport.go @@ -42,7 +42,7 @@ func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, er } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRoutePortId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortValue"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go index ff86b5a2798f..b4b3d9bb8d75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/id_link.go @@ -44,7 +44,7 @@ func ParseLinkID(input string) (*LinkId, error) { } id := LinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLinkIDInsensitively(input string) (*LinkId, error) { } id := LinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortValue"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), resourceids.StaticSegment("staticLinks", "links", "links"), - resourceids.UserSpecifiedSegment("linkName", "linkValue"), + resourceids.UserSpecifiedSegment("linkName", "linkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go index 25857a7f294f..3f132947b997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRouteLinksClient) Get(ctx context.Context, id LinkId) (result Get var model ExpressRouteLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go index 41fc5c14777c..68fe0163e3ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressroutelinks/version.go @@ -1,12 +1,10 @@ package expressroutelinks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressroutelinks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressroutelinks/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md index fc86fc644083..fb4c6d7d8f54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations` Documentation -The `expressrouteportauthorizations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteportauthorizations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue", "authorizationValue") +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") payload := expressrouteportauthorizations.ExpressRoutePortAuthorization{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue", "authorizationValue") +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue", "authorizationValue") +id := expressrouteportauthorizations.NewExpressRoutePortAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName", "authorizationName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteportauthorizations.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go index a6a1e906e851..3405a1acb863 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/client.go @@ -15,7 +15,7 @@ type ExpressRoutePortAuthorizationsClient struct { } func NewExpressRoutePortAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortAuthorizationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteportauthorizations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteportauthorizations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRoutePortAuthorizationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go index 9fffd1964c0c..b9d13e5b8432 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteport.go @@ -42,7 +42,7 @@ func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, er } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRoutePortId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortValue"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go index 4042eea17184..f0a6e19528d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/id_expressrouteportauthorization.go @@ -44,7 +44,7 @@ func ParseExpressRoutePortAuthorizationID(input string) (*ExpressRoutePortAuthor } id := ExpressRoutePortAuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseExpressRoutePortAuthorizationIDInsensitively(input string) (*ExpressRo } id := ExpressRoutePortAuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ExpressRoutePortAuthorizationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortValue"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), - resourceids.UserSpecifiedSegment("authorizationName", "authorizationValue"), + resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go index 0dd81644eba2..c8df23b8dfde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRoutePortAuthorizationsClient) Get(ctx context.Context, id Expres var model ExpressRoutePortAuthorization result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go index 3f5f5b9a9b18..1bf60f25da32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportauthorizations/version.go @@ -1,12 +1,10 @@ package expressrouteportauthorizations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteportauthorizations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteportauthorizations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/README.md index a786b983d084..f29ac7ad3a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports` Documentation -The `expressrouteports` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") payload := expressrouteports.ExpressRoutePort{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") payload := expressrouteports.GenerateExpressRoutePortsLOARequest{ // ... @@ -75,7 +75,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") read, err := client.Get(ctx, id) if err != nil { @@ -125,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortValue") +id := expressrouteports.NewExpressRoutePortID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRoutePortName") payload := expressrouteports.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/client.go index 7b73cfca2af2..82e57d5b54f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/client.go @@ -15,7 +15,7 @@ type ExpressRoutePortsClient struct { } func NewExpressRoutePortsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteports", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteports", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRoutePortsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/id_expressrouteport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/id_expressrouteport.go index 6ac3a3831e87..17c2ee16ba03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/id_expressrouteport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/id_expressrouteport.go @@ -42,7 +42,7 @@ func ParseExpressRoutePortID(input string) (*ExpressRoutePortId, error) { } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseExpressRoutePortIDInsensitively(input string) (*ExpressRoutePortId, er } id := ExpressRoutePortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ExpressRoutePortId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePorts", "expressRoutePorts", "expressRoutePorts"), - resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortValue"), + resourceids.UserSpecifiedSegment("expressRoutePortName", "expressRoutePortName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_generateloa.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_generateloa.go index d0010451bf9c..d5725e743a69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_generateloa.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_generateloa.go @@ -50,7 +50,6 @@ func (c ExpressRoutePortsClient) GenerateLOA(ctx context.Context, id ExpressRout var model GenerateExpressRoutePortsLOAResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_get.go index 0f35b842ad66..dda9cada8505 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRoutePortsClient) Get(ctx context.Context, id ExpressRoutePortId) var model ExpressRoutePort result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_updatetags.go index fef0242df718..7ce98b9327bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/method_updatetags.go @@ -49,7 +49,6 @@ func (c ExpressRoutePortsClient) UpdateTags(ctx context.Context, id ExpressRoute var model ExpressRoutePort result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/version.go index 05d35e0060da..a4ed747b8bf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteports/version.go @@ -1,12 +1,10 @@ package expressrouteports -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteports/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteports/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md index d4c9792d5a8a..5f4322ed2e75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations` Documentation -The `expressrouteportslocations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteportslocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteportslocations.NewExpressRoutePortsLocationID("12345678-1234-9876-4563-123456789012", "expressRoutePortsLocationValue") +id := expressrouteportslocations.NewExpressRoutePortsLocationID("12345678-1234-9876-4563-123456789012", "locationName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go index 070961a7825c..11ea98b6cb3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/client.go @@ -15,7 +15,7 @@ type ExpressRoutePortsLocationsClient struct { } func NewExpressRoutePortsLocationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRoutePortsLocationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteportslocations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteportslocations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRoutePortsLocationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go index 94e09ce7a77a..73fe725b0df1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/id_expressrouteportslocation.go @@ -40,7 +40,7 @@ func ParseExpressRoutePortsLocationID(input string) (*ExpressRoutePortsLocationI } id := ExpressRoutePortsLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseExpressRoutePortsLocationIDInsensitively(input string) (*ExpressRouteP } id := ExpressRoutePortsLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ExpressRoutePortsLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRoutePortsLocations", "expressRoutePortsLocations", "expressRoutePortsLocations"), - resourceids.UserSpecifiedSegment("expressRoutePortsLocationName", "expressRoutePortsLocationValue"), + resourceids.UserSpecifiedSegment("expressRoutePortsLocationName", "locationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go index 58048a2240ad..414229520792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/method_get.go @@ -45,7 +45,6 @@ func (c ExpressRoutePortsLocationsClient) Get(ctx context.Context, id ExpressRou var model ExpressRoutePortsLocation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go index 7aef4850b257..bc904c8fb8e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteportslocations/version.go @@ -1,12 +1,10 @@ package expressrouteportslocations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteportslocations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteportslocations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md index cfa65a4aa105..e19d28b36b3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports` Documentation -The `expressrouteproviderports` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteproviderports` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := expressrouteproviderports.NewExpressRouteProviderPortID("12345678-1234-9876-4563-123456789012", "expressRouteProviderPortValue") +id := expressrouteproviderports.NewExpressRouteProviderPortID("12345678-1234-9876-4563-123456789012", "providerport") read, err := client.ExpressRouteProviderPort(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go index 696d17bbfd6a..dad656ec6d0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/client.go @@ -15,7 +15,7 @@ type ExpressRouteProviderPortsClient struct { } func NewExpressRouteProviderPortsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteProviderPortsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteproviderports", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteproviderports", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteProviderPortsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go index 2e734bb82c3e..866b4c25f4f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/id_expressrouteproviderport.go @@ -40,7 +40,7 @@ func ParseExpressRouteProviderPortID(input string) (*ExpressRouteProviderPortId, } id := ExpressRouteProviderPortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseExpressRouteProviderPortIDInsensitively(input string) (*ExpressRoutePr } id := ExpressRouteProviderPortId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ExpressRouteProviderPortId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteProviderPorts", "expressRouteProviderPorts", "expressRouteProviderPorts"), - resourceids.UserSpecifiedSegment("expressRouteProviderPortName", "expressRouteProviderPortValue"), + resourceids.UserSpecifiedSegment("expressRouteProviderPortName", "providerport"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go index 95cb93096c71..c264bf3b8aa6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_expressrouteproviderport.go @@ -45,7 +45,6 @@ func (c ExpressRouteProviderPortsClient) ExpressRouteProviderPort(ctx context.Co var model ExpressRouteProviderPort result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go index ad8f2e59e375..93d35794cf0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/method_locationlist.go @@ -40,6 +40,7 @@ func (o LocationListOperationOptions) ToHeaders() *client.Headers { func (o LocationListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go index b9be3d116d54..598703ffe4f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteproviderports/version.go @@ -1,12 +1,10 @@ package expressrouteproviderports -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteproviderports/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteproviderports/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md index 9c47ffdcc971..d5360cbd62d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders` Documentation -The `expressrouteserviceproviders` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `expressrouteserviceproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go index d071b668e371..a20fad2a136d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/client.go @@ -15,7 +15,7 @@ type ExpressRouteServiceProvidersClient struct { } func NewExpressRouteServiceProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ExpressRouteServiceProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "expressrouteserviceproviders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "expressrouteserviceproviders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ExpressRouteServiceProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go index ff1526ca8cdd..b4db33f2c73b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/expressrouteserviceproviders/version.go @@ -1,12 +1,10 @@ package expressrouteserviceproviders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/expressrouteserviceproviders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/expressrouteserviceproviders/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/README.md index 1efe2a7af775..7f20d712333a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies` Documentation -The `firewallpolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `firewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.FirewallPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") if err := client.FirewallPolicyDeploymentsDeployThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.FirewallPolicyDeploymentsDeployThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.FirewallPolicyDraft{ // ... @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyDraftsDelete(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyDraftsGet(ctx, id) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignatureOverridesFilterValuesQuery{ // ... @@ -140,7 +140,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.IDPSQueryObject{ // ... @@ -161,7 +161,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyIdpsSignaturesOverridesGet(ctx, id) if err != nil { @@ -177,7 +177,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.FirewallPolicyIdpsSignaturesOverridesList(ctx, id) if err != nil { @@ -193,7 +193,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignaturesOverrides{ // ... @@ -214,7 +214,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.SignaturesOverrides{ // ... @@ -235,7 +235,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") payload := firewallpolicies.FirewallPolicyRuleCollectionGroupDraft{ // ... @@ -256,7 +256,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") read, err := client.FirewallPolicyRuleCollectionGroupDraftsDelete(ctx, id) if err != nil { @@ -272,7 +272,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicies.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") read, err := client.FirewallPolicyRuleCollectionGroupDraftsGet(ctx, id) if err != nil { @@ -288,7 +288,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") read, err := client.Get(ctx, id, firewallpolicies.DefaultGetOperationOptions()) if err != nil { @@ -338,7 +338,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicies.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") payload := firewallpolicies.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/client.go index a162ae7a1c4a..fba92b74070b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/client.go @@ -15,7 +15,7 @@ type FirewallPoliciesClient struct { } func NewFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_firewallpolicy.go index b3ab374101cf..fdb530b04703 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_firewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_firewallpolicy.go @@ -42,7 +42,7 @@ func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyValue"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_rulecollectiongroup.go index 8e6983cfa1eb..66f9d049a7c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_rulecollectiongroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/id_rulecollectiongroup.go @@ -44,7 +44,7 @@ func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { } id := RuleCollectionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroup } id := RuleCollectionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RuleCollectionGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyValue"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), - resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupValue"), + resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go index 357da5c76f6e..a355d78a7670 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftscreateorupdate.go @@ -51,7 +51,6 @@ func (c FirewallPoliciesClient) FirewallPolicyDraftsCreateOrUpdate(ctx context.C var model FirewallPolicyDraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftsget.go index 19de14230bb3..804027dd9523 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicydraftsget.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyDraftsGet(ctx context.Context, id var model FirewallPolicyDraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go index e13bba542e44..afb4f37a3fa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesfiltervalueslist.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesFilterValuesList(ctx var model SignatureOverridesFilterValuesResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go index 3317a5b30467..657d39e5a745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignatureslist.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesList(ctx context.Con var model QueryResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go index 0a494459f55c..4ff22b6ea426 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesget.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesGet(ctx con var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go index 0fb145a6c0cf..253dc4d80739 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverrideslist.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesList(ctx co var model SignaturesOverridesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go index 99eb2fc1d387..ebb6a03296b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridespatch.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPatch(ctx c var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go index 2b131f1a401b..51a0cf8dcc59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyidpssignaturesoverridesput.go @@ -50,7 +50,6 @@ func (c FirewallPoliciesClient) FirewallPolicyIdpsSignaturesOverridesPut(ctx con var model SignaturesOverrides result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go index 19def263e370..168eab6a2f23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftscreateorupdate.go @@ -51,7 +51,6 @@ func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsCreateOrU var model FirewallPolicyRuleCollectionGroupDraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go index 46a0e076225e..8d2027a6a40d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_firewallpolicyrulecollectiongroupdraftsget.go @@ -46,7 +46,6 @@ func (c FirewallPoliciesClient) FirewallPolicyRuleCollectionGroupDraftsGet(ctx c var model FirewallPolicyRuleCollectionGroupDraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_get.go index 2eee26d038ad..c57af3124f02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c FirewallPoliciesClient) Get(ctx context.Context, id FirewallPolicyId, op var model FirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_updatetags.go index 05b103ecce7e..66cfb5cb6d4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/method_updatetags.go @@ -49,7 +49,6 @@ func (c FirewallPoliciesClient) UpdateTags(ctx context.Context, id FirewallPolic var model FirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_applicationrule.go index 29202064c8ab..f7d2f0c3f47e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_applicationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_applicationrule.go @@ -23,8 +23,18 @@ type ApplicationRule struct { WebCategories *[]string `json:"webCategories,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = ApplicationRule{} @@ -38,9 +48,10 @@ func (s ApplicationRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) } + decoded["ruleType"] = "ApplicationRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go index 53b5f41f1d35..1253bbae7421 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyfilterrulecollection.go @@ -15,8 +15,18 @@ type FirewallPolicyFilterRuleCollection struct { Rules *[]FirewallPolicyRule `json:"rules,omitempty"` // Fields inherited from FirewallPolicyRuleCollection - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } } var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} @@ -30,9 +40,10 @@ func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) } + decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" encoded, err = json.Marshal(decoded) @@ -46,15 +57,20 @@ func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyFilterRuleCollection - var decoded alias + var decoded struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Action = decoded.Action s.Name = decoded.Name s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -69,7 +85,7 @@ func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { output := make([]FirewallPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) } @@ -77,5 +93,6 @@ func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { } s.Rules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicynatrulecollection.go index 71ddc01e8c25..8bb8e5f0f6a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicynatrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicynatrulecollection.go @@ -15,8 +15,18 @@ type FirewallPolicyNatRuleCollection struct { Rules *[]FirewallPolicyRule `json:"rules,omitempty"` // Fields inherited from FirewallPolicyRuleCollection - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } } var _ json.Marshaler = FirewallPolicyNatRuleCollection{} @@ -30,9 +40,10 @@ func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) } + decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" encoded, err = json.Marshal(decoded) @@ -46,15 +57,20 @@ func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyNatRuleCollection - var decoded alias + var decoded struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Action = decoded.Action s.Name = decoded.Name s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -69,7 +85,7 @@ func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { output := make([]FirewallPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) } @@ -77,5 +93,6 @@ func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { } s.Rules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrule.go index 057fc40d54fb..08c058378ae5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrule.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FirewallPolicyRule interface { + FirewallPolicyRule() BaseFirewallPolicyRuleImpl } -// RawFirewallPolicyRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} + +type BaseFirewallPolicyRuleImpl struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s +} + +var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} + +// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFirewallPolicyRuleImpl struct { - Type string - Values map[string]interface{} + firewallPolicyRule BaseFirewallPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s.firewallPolicyRule } -func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { +func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) } - value, ok := temp["ruleType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ApplicationRule") { @@ -60,10 +79,15 @@ func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule return out, nil } - out := RawFirewallPolicyRuleImpl{ - Type: value, - Values: temp, + var parent BaseFirewallPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) } - return out, nil + + return RawFirewallPolicyRuleImpl{ + firewallPolicyRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollection.go index 69c3d27a2bb6..8e3be4c748e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollection.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FirewallPolicyRuleCollection interface { + FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl } -// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} + +type BaseFirewallPolicyRuleCollectionImpl struct { + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s +} + +var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} + +// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFirewallPolicyRuleCollectionImpl struct { - Type string - Values map[string]interface{} + firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s.firewallPolicyRuleCollection } -func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { +func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (Firewall return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) } - value, ok := temp["ruleCollectionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleCollectionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { @@ -52,10 +71,15 @@ func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (Firewall return out, nil } - out := RawFirewallPolicyRuleCollectionImpl{ - Type: value, - Values: temp, + var parent BaseFirewallPolicyRuleCollectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) } - return out, nil + + return RawFirewallPolicyRuleCollectionImpl{ + firewallPolicyRuleCollection: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go index 376fd8c32ecf..a25c504563ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_firewallpolicyrulecollectiongroupdraftproperties.go @@ -17,10 +17,12 @@ type FirewallPolicyRuleCollectionGroupDraftProperties struct { var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupDraftProperties{} func (s *FirewallPolicyRuleCollectionGroupDraftProperties) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyRuleCollectionGroupDraftProperties - var decoded alias + var decoded struct { + Priority *int64 `json:"priority,omitempty"` + Size *string `json:"size,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyRuleCollectionGroupDraftProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Priority = decoded.Priority @@ -39,7 +41,7 @@ func (s *FirewallPolicyRuleCollectionGroupDraftProperties) UnmarshalJSON(bytes [ output := make([]FirewallPolicyRuleCollection, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleCollectionImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupDraftProperties': %+v", i, err) } @@ -47,5 +49,6 @@ func (s *FirewallPolicyRuleCollectionGroupDraftProperties) UnmarshalJSON(bytes [ } s.RuleCollections = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_natrule.go index 0c83394fd205..29ada8c31d1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_natrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_natrule.go @@ -21,8 +21,18 @@ type NatRule struct { TranslatedPort *string `json:"translatedPort,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = NatRule{} @@ -36,9 +46,10 @@ func (s NatRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) } + decoded["ruleType"] = "NatRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_networkrule.go index 95108d1b710f..aa890c1a8bb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_networkrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/model_networkrule.go @@ -20,8 +20,18 @@ type NetworkRule struct { SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = NetworkRule{} @@ -35,9 +45,10 @@ func (s NetworkRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) } + decoded["ruleType"] = "NetworkRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/version.go index c170b6ebb8f1..41bfaea15e4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicies/version.go @@ -1,12 +1,10 @@ package firewallpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallpolicies/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md index 6dd0738f134c..10bf14d64488 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups` Documentation -The `firewallpolicyrulecollectiongroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `firewallpolicyrulecollectiongroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") payload := firewallpolicyrulecollectiongroups.FirewallPolicyRuleCollectionGroup{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue", "ruleCollectionGroupValue") +id := firewallpolicyrulecollectiongroups.NewRuleCollectionGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName", "ruleCollectionGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyValue") +id := firewallpolicyrulecollectiongroups.NewFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallPolicyName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go index ef562ceb4a00..2c48ff99f6d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/client.go @@ -15,7 +15,7 @@ type FirewallPolicyRuleCollectionGroupsClient struct { } func NewFirewallPolicyRuleCollectionGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallPolicyRuleCollectionGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallpolicyrulecollectiongroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallpolicyrulecollectiongroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallPolicyRuleCollectionGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go index 9a3d14e21937..fbd53108c846 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_firewallpolicy.go @@ -42,7 +42,7 @@ func ParseFirewallPolicyID(input string) (*FirewallPolicyId, error) { } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallPolicyIDInsensitively(input string) (*FirewallPolicyId, error) } id := FirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyValue"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go index 5af7b6ffe792..6828a1a73813 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/id_rulecollectiongroup.go @@ -44,7 +44,7 @@ func ParseRuleCollectionGroupID(input string) (*RuleCollectionGroupId, error) { } id := RuleCollectionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRuleCollectionGroupIDInsensitively(input string) (*RuleCollectionGroup } id := RuleCollectionGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RuleCollectionGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticFirewallPolicies", "firewallPolicies", "firewallPolicies"), - resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyValue"), + resourceids.UserSpecifiedSegment("firewallPolicyName", "firewallPolicyName"), resourceids.StaticSegment("staticRuleCollectionGroups", "ruleCollectionGroups", "ruleCollectionGroups"), - resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupValue"), + resourceids.UserSpecifiedSegment("ruleCollectionGroupName", "ruleCollectionGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go index 9c1602d71773..2f494c219705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/method_get.go @@ -45,7 +45,6 @@ func (c FirewallPolicyRuleCollectionGroupsClient) Get(ctx context.Context, id Ru var model FirewallPolicyRuleCollectionGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go index 3e2815413eda..00f2de60a642 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_applicationrule.go @@ -23,8 +23,18 @@ type ApplicationRule struct { WebCategories *[]string `json:"webCategories,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s ApplicationRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = ApplicationRule{} @@ -38,9 +48,10 @@ func (s ApplicationRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ApplicationRule: %+v", err) } + decoded["ruleType"] = "ApplicationRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go index 6e9762da4922..142e33508f8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyfilterrulecollection.go @@ -15,8 +15,18 @@ type FirewallPolicyFilterRuleCollection struct { Rules *[]FirewallPolicyRule `json:"rules,omitempty"` // Fields inherited from FirewallPolicyRuleCollection - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyFilterRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } } var _ json.Marshaler = FirewallPolicyFilterRuleCollection{} @@ -30,9 +40,10 @@ func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FirewallPolicyFilterRuleCollection: %+v", err) } + decoded["ruleCollectionType"] = "FirewallPolicyFilterRuleCollection" encoded, err = json.Marshal(decoded) @@ -46,15 +57,20 @@ func (s FirewallPolicyFilterRuleCollection) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &FirewallPolicyFilterRuleCollection{} func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyFilterRuleCollection - var decoded alias + var decoded struct { + Action *FirewallPolicyFilterRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyFilterRuleCollection: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Action = decoded.Action s.Name = decoded.Name s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -69,7 +85,7 @@ func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { output := make([]FirewallPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyFilterRuleCollection': %+v", i, err) } @@ -77,5 +93,6 @@ func (s *FirewallPolicyFilterRuleCollection) UnmarshalJSON(bytes []byte) error { } s.Rules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go index 114889c0540b..5e7e93c25d3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicynatrulecollection.go @@ -15,8 +15,18 @@ type FirewallPolicyNatRuleCollection struct { Rules *[]FirewallPolicyRule `json:"rules,omitempty"` // Fields inherited from FirewallPolicyRuleCollection - Name *string `json:"name,omitempty"` - Priority *int64 `json:"priority,omitempty"` + + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s FirewallPolicyNatRuleCollection) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return BaseFirewallPolicyRuleCollectionImpl{ + Name: s.Name, + Priority: s.Priority, + RuleCollectionType: s.RuleCollectionType, + } } var _ json.Marshaler = FirewallPolicyNatRuleCollection{} @@ -30,9 +40,10 @@ func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FirewallPolicyNatRuleCollection: %+v", err) } + decoded["ruleCollectionType"] = "FirewallPolicyNatRuleCollection" encoded, err = json.Marshal(decoded) @@ -46,15 +57,20 @@ func (s FirewallPolicyNatRuleCollection) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &FirewallPolicyNatRuleCollection{} func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyNatRuleCollection - var decoded alias + var decoded struct { + Action *FirewallPolicyNatRuleCollectionAction `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyNatRuleCollection: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Action = decoded.Action s.Name = decoded.Name s.Priority = decoded.Priority + s.RuleCollectionType = decoded.RuleCollectionType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -69,7 +85,7 @@ func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { output := make([]FirewallPolicyRule, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Rules' for 'FirewallPolicyNatRuleCollection': %+v", i, err) } @@ -77,5 +93,6 @@ func (s *FirewallPolicyNatRuleCollection) UnmarshalJSON(bytes []byte) error { } s.Rules = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go index 5cd71ef998ac..01e93308b207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrule.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FirewallPolicyRule interface { + FirewallPolicyRule() BaseFirewallPolicyRuleImpl } -// RawFirewallPolicyRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FirewallPolicyRule = BaseFirewallPolicyRuleImpl{} + +type BaseFirewallPolicyRuleImpl struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s BaseFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s +} + +var _ FirewallPolicyRule = RawFirewallPolicyRuleImpl{} + +// RawFirewallPolicyRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFirewallPolicyRuleImpl struct { - Type string - Values map[string]interface{} + firewallPolicyRule BaseFirewallPolicyRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleImpl) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return s.firewallPolicyRule } -func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { +func UnmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule return nil, fmt.Errorf("unmarshaling FirewallPolicyRule into map[string]interface: %+v", err) } - value, ok := temp["ruleType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ApplicationRule") { @@ -60,10 +79,15 @@ func unmarshalFirewallPolicyRuleImplementation(input []byte) (FirewallPolicyRule return out, nil } - out := RawFirewallPolicyRuleImpl{ - Type: value, - Values: temp, + var parent BaseFirewallPolicyRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleImpl: %+v", err) } - return out, nil + + return RawFirewallPolicyRuleImpl{ + firewallPolicyRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go index 30f1b958dc85..8f68d85c04f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollection.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FirewallPolicyRuleCollection interface { + FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl } -// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FirewallPolicyRuleCollection = BaseFirewallPolicyRuleCollectionImpl{} + +type BaseFirewallPolicyRuleCollectionImpl struct { + Name *string `json:"name,omitempty"` + Priority *int64 `json:"priority,omitempty"` + RuleCollectionType FirewallPolicyRuleCollectionType `json:"ruleCollectionType"` +} + +func (s BaseFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s +} + +var _ FirewallPolicyRuleCollection = RawFirewallPolicyRuleCollectionImpl{} + +// RawFirewallPolicyRuleCollectionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFirewallPolicyRuleCollectionImpl struct { - Type string - Values map[string]interface{} + firewallPolicyRuleCollection BaseFirewallPolicyRuleCollectionImpl + Type string + Values map[string]interface{} +} + +func (s RawFirewallPolicyRuleCollectionImpl) FirewallPolicyRuleCollection() BaseFirewallPolicyRuleCollectionImpl { + return s.firewallPolicyRuleCollection } -func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { +func UnmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (FirewallPolicyRuleCollection, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (Firewall return nil, fmt.Errorf("unmarshaling FirewallPolicyRuleCollection into map[string]interface: %+v", err) } - value, ok := temp["ruleCollectionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["ruleCollectionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FirewallPolicyFilterRuleCollection") { @@ -52,10 +71,15 @@ func unmarshalFirewallPolicyRuleCollectionImplementation(input []byte) (Firewall return out, nil } - out := RawFirewallPolicyRuleCollectionImpl{ - Type: value, - Values: temp, + var parent BaseFirewallPolicyRuleCollectionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFirewallPolicyRuleCollectionImpl: %+v", err) } - return out, nil + + return RawFirewallPolicyRuleCollectionImpl{ + firewallPolicyRuleCollection: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go index e395e7aa41f1..ae95dcb3fd9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_firewallpolicyrulecollectiongroupproperties.go @@ -18,10 +18,13 @@ type FirewallPolicyRuleCollectionGroupProperties struct { var _ json.Unmarshaler = &FirewallPolicyRuleCollectionGroupProperties{} func (s *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(bytes []byte) error { - type alias FirewallPolicyRuleCollectionGroupProperties - var decoded alias + var decoded struct { + Priority *int64 `json:"priority,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Size *string `json:"size,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FirewallPolicyRuleCollectionGroupProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Priority = decoded.Priority @@ -41,7 +44,7 @@ func (s *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(bytes []byte output := make([]FirewallPolicyRuleCollection, 0) for i, val := range listTemp { - impl, err := unmarshalFirewallPolicyRuleCollectionImplementation(val) + impl, err := UnmarshalFirewallPolicyRuleCollectionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'RuleCollections' for 'FirewallPolicyRuleCollectionGroupProperties': %+v", i, err) } @@ -49,5 +52,6 @@ func (s *FirewallPolicyRuleCollectionGroupProperties) UnmarshalJSON(bytes []byte } s.RuleCollections = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go index 5354374d68c8..2e80421cd233 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_natrule.go @@ -21,8 +21,18 @@ type NatRule struct { TranslatedPort *string `json:"translatedPort,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NatRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = NatRule{} @@ -36,9 +46,10 @@ func (s NatRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NatRule: %+v", err) } + decoded["ruleType"] = "NatRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go index 7548f48a1948..902314377596 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/model_networkrule.go @@ -20,8 +20,18 @@ type NetworkRule struct { SourceIPGroups *[]string `json:"sourceIpGroups,omitempty"` // Fields inherited from FirewallPolicyRule - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` + + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + RuleType FirewallPolicyRuleType `json:"ruleType"` +} + +func (s NetworkRule) FirewallPolicyRule() BaseFirewallPolicyRuleImpl { + return BaseFirewallPolicyRuleImpl{ + Description: s.Description, + Name: s.Name, + RuleType: s.RuleType, + } } var _ json.Marshaler = NetworkRule{} @@ -35,9 +45,10 @@ func (s NetworkRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NetworkRule: %+v", err) } + decoded["ruleType"] = "NetworkRule" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go index 29a8e24418e7..5a0c081ae4ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/firewallpolicyrulecollectiongroups/version.go @@ -1,12 +1,10 @@ package firewallpolicyrulecollectiongroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallpolicyrulecollectiongroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md index 8dfaa0365be0..cbb5c4df3737 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs` Documentation -The `flowlogs` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `flowlogs` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") payload := flowlogs.FlowLog{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := flowlogs.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "flowLogValue") +id := flowlogs.NewFlowLogID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "flowLogName") payload := flowlogs.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go index 9368055263b1..6294aac57742 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/client.go @@ -15,7 +15,7 @@ type FlowLogsClient struct { } func NewFlowLogsClientWithBaseURI(sdkApi sdkEnv.Api) (*FlowLogsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "flowlogs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "flowlogs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FlowLogsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go index 65f0fddaf417..17a0f248d39b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_flowlog.go @@ -44,7 +44,7 @@ func ParseFlowLogID(input string) (*FlowLogId, error) { } id := FlowLogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFlowLogIDInsensitively(input string) (*FlowLogId, error) { } id := FlowLogId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FlowLogId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), resourceids.StaticSegment("staticFlowLogs", "flowLogs", "flowLogs"), - resourceids.UserSpecifiedSegment("flowLogName", "flowLogValue"), + resourceids.UserSpecifiedSegment("flowLogName", "flowLogName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go index 480aa5be3442..2862a3cc6b0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go index 91942eff6d32..8677d6603547 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_get.go @@ -45,7 +45,6 @@ func (c FlowLogsClient) Get(ctx context.Context, id FlowLogId) (result GetOperat var model FlowLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go index 7ef9682b5649..1f7aec168713 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/method_updatetags.go @@ -49,7 +49,6 @@ func (c FlowLogsClient) UpdateTags(ctx context.Context, id FlowLogId, input Tags var model FlowLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go index 006db6d4a205..18b431977a55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/flowlogs/version.go @@ -1,12 +1,10 @@ package flowlogs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/flowlogs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/flowlogs/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md index 34b7eb548af4..0a0bdb4f5b0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations` Documentation -The `ipallocations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `ipallocations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationValue") +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") payload := ipallocations.IPAllocation{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationValue") +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationValue") +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") read, err := client.Get(ctx, id, ipallocations.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationValue") +id := ipallocations.NewIPAllocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipAllocationName") payload := ipallocations.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go index 0450bb3a6854..05538bf07b73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/client.go @@ -15,7 +15,7 @@ type IPAllocationsClient struct { } func NewIPAllocationsClientWithBaseURI(sdkApi sdkEnv.Api) (*IPAllocationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ipallocations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ipallocations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IPAllocationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go index 1f45e0c491f7..da61235dccb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/id_ipallocation.go @@ -42,7 +42,7 @@ func ParseIPAllocationID(input string) (*IPAllocationId, error) { } id := IPAllocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIPAllocationIDInsensitively(input string) (*IPAllocationId, error) { } id := IPAllocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IPAllocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticIpAllocations", "ipAllocations", "ipAllocations"), - resourceids.UserSpecifiedSegment("ipAllocationName", "ipAllocationValue"), + resourceids.UserSpecifiedSegment("ipAllocationName", "ipAllocationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go index ad7247cf4952..d7ccc3afb375 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c IPAllocationsClient) Get(ctx context.Context, id IPAllocationId, options var model IPAllocation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go index 792fe909fcb6..f6fe36ff651b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/method_updatetags.go @@ -49,7 +49,6 @@ func (c IPAllocationsClient) UpdateTags(ctx context.Context, id IPAllocationId, var model IPAllocation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go index cca291192b0f..d25dcbc7ec55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipallocations/version.go @@ -1,12 +1,10 @@ package ipallocations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ipallocations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ipallocations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md index 205b7498a4b6..9a98c35e77f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups` Documentation -The `ipgroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `ipgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupValue") +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupsName") payload := ipgroups.IPGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupValue") +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupsName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupValue") +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupsName") read, err := client.Get(ctx, id, ipgroups.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupValue") +id := ipgroups.NewIPGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "ipGroupsName") payload := ipgroups.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go index 3e21fe9f946b..2e7f5ae81168 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/client.go @@ -15,7 +15,7 @@ type IPGroupsClient struct { } func NewIPGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*IPGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ipgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ipgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating IPGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go index 7b564788b085..255122bcafce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/id_ipgroup.go @@ -42,7 +42,7 @@ func ParseIPGroupID(input string) (*IPGroupId, error) { } id := IPGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseIPGroupIDInsensitively(input string) (*IPGroupId, error) { } id := IPGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id IPGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticIpGroups", "ipGroups", "ipGroups"), - resourceids.UserSpecifiedSegment("ipGroupName", "ipGroupValue"), + resourceids.UserSpecifiedSegment("ipGroupName", "ipGroupsName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go index b0d5717d9637..8e06e373c584 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c IPGroupsClient) Get(ctx context.Context, id IPGroupId, options GetOperat var model IPGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go index 67a51b18e054..bce76083d7a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/method_updategroups.go @@ -49,7 +49,6 @@ func (c IPGroupsClient) UpdateGroups(ctx context.Context, id IPGroupId, input Ta var model IPGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go index 1256d503b41f..c2080311cc25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/ipgroups/version.go @@ -1,12 +1,10 @@ package ipgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ipgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ipgroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md index b8fe8c22ce94..55cb0e1893ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers` Documentation -The `loadbalancers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `loadbalancers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") payload := loadbalancers.LoadBalancer{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") read, err := client.Get(ctx, id, loadbalancers.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") payload := loadbalancers.InboundNatRule{ // ... @@ -87,7 +87,7 @@ if err := client.InboundNatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -99,7 +99,7 @@ if err := client.InboundNatRulesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "inboundNatRuleValue") +id := loadbalancers.NewInboundNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "inboundNatRuleName") read, err := client.InboundNatRulesGet(ctx, id, loadbalancers.DefaultInboundNatRulesGetOperationOptions()) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.InboundNatRulesList(ctx, id)` can be used to do batched pagination items, err := client.InboundNatRulesListComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "groupName", "loadBalancerName", "backendPoolName") payload := loadbalancers.QueryInboundNatRulePortMappingRequest{ // ... @@ -183,7 +183,7 @@ if err := client.ListInboundNatRulePortMappingsThenPoll(ctx, id, payload); err ! ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") payload := loadbalancers.BackendAddressPool{ // ... @@ -200,7 +200,7 @@ if err := client.LoadBalancerBackendAddressPoolsCreateOrUpdateThenPoll(ctx, id, ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -212,7 +212,7 @@ if err := client.LoadBalancerBackendAddressPoolsDeleteThenPoll(ctx, id); err != ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "backendAddressPoolValue") +id := loadbalancers.NewLoadBalancerBackendAddressPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "backendAddressPoolName") read, err := client.LoadBalancerBackendAddressPoolsGet(ctx, id) if err != nil { @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerBackendAddressPoolsList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerBackendAddressPoolsListComplete(ctx, id) @@ -245,7 +245,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "frontendIPConfigurationValue") +id := loadbalancers.NewFrontendIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "frontendIPConfigurationName") read, err := client.LoadBalancerFrontendIPConfigurationsGet(ctx, id) if err != nil { @@ -261,7 +261,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerFrontendIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerFrontendIPConfigurationsListComplete(ctx, id) @@ -278,7 +278,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "loadBalancingRuleValue") +id := loadbalancers.NewLoadBalancingRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "loadBalancingRuleName") read, err := client.LoadBalancerLoadBalancingRulesGet(ctx, id) if err != nil { @@ -294,7 +294,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerLoadBalancingRulesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerLoadBalancingRulesListComplete(ctx, id) @@ -311,7 +311,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerNetworkInterfacesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerNetworkInterfacesListComplete(ctx, id) @@ -328,7 +328,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "outboundRuleValue") +id := loadbalancers.NewOutboundRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "outboundRuleName") read, err := client.LoadBalancerOutboundRulesGet(ctx, id) if err != nil { @@ -344,7 +344,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerOutboundRulesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerOutboundRulesListComplete(ctx, id) @@ -361,7 +361,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue", "probeValue") +id := loadbalancers.NewProbeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName", "probeName") read, err := client.LoadBalancerProbesGet(ctx, id) if err != nil { @@ -377,7 +377,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") // alternatively `client.LoadBalancerProbesList(ctx, id)` can be used to do batched pagination items, err := client.LoadBalancerProbesListComplete(ctx, id) @@ -394,7 +394,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "loadBalancerValue") +id := loadbalancers.NewLoadBalancerID("12345678-1234-9876-4563-123456789012", "groupName", "loadBalancerName") payload := loadbalancers.MigrateLoadBalancerToIPBasedRequest{ // ... @@ -415,7 +415,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := loadbalancers.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := loadbalancers.LoadBalancerVipSwapRequest{ // ... @@ -432,7 +432,7 @@ if err := client.SwapPublicIPAddressesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerValue") +id := loadbalancers.NewProviderLoadBalancerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "loadBalancerName") payload := loadbalancers.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go index 3d84973a7097..e0ea457759eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/client.go @@ -15,7 +15,7 @@ type LoadBalancersClient struct { } func NewLoadBalancersClientWithBaseURI(sdkApi sdkEnv.Api) (*LoadBalancersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "loadbalancers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "loadbalancers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LoadBalancersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go index 57be52cf3373..8ed580c9198f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_backendaddresspool.go @@ -44,7 +44,7 @@ func ParseBackendAddressPoolID(input string) (*BackendAddressPoolId, error) { } id := BackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackendAddressPoolIDInsensitively(input string) (*BackendAddressPoolId } id := BackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -117,13 +117,13 @@ func (id BackendAddressPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticBackendAddressPools", "backendAddressPools", "backendAddressPools"), - resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolValue"), + resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go index dd3cba98217a..ed800474fe97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_frontendipconfiguration.go @@ -44,7 +44,7 @@ func ParseFrontendIPConfigurationID(input string) (*FrontendIPConfigurationId, e } id := FrontendIPConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFrontendIPConfigurationIDInsensitively(input string) (*FrontendIPConfi } id := FrontendIPConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FrontendIPConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticFrontendIPConfigurations", "frontendIPConfigurations", "frontendIPConfigurations"), - resourceids.UserSpecifiedSegment("frontendIPConfigurationName", "frontendIPConfigurationValue"), + resourceids.UserSpecifiedSegment("frontendIPConfigurationName", "frontendIPConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go index a460bece3520..0e4b79cc6198 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_inboundnatrule.go @@ -44,7 +44,7 @@ func ParseInboundNatRuleID(input string) (*InboundNatRuleId, error) { } id := InboundNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInboundNatRuleIDInsensitively(input string) (*InboundNatRuleId, error) } id := InboundNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InboundNatRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticInboundNatRules", "inboundNatRules", "inboundNatRules"), - resourceids.UserSpecifiedSegment("inboundNatRuleName", "inboundNatRuleValue"), + resourceids.UserSpecifiedSegment("inboundNatRuleName", "inboundNatRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go index 35278257e30e..ef69db4bf71d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancer.go @@ -42,7 +42,7 @@ func ParseLoadBalancerID(input string) (*LoadBalancerId, error) { } id := LoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLoadBalancerIDInsensitively(input string) (*LoadBalancerId, error) { } id := LoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,11 +111,11 @@ func (id LoadBalancerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go index d8fafa2347f2..f50fa912ccd1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancerbackendaddresspool.go @@ -44,7 +44,7 @@ func ParseLoadBalancerBackendAddressPoolID(input string) (*LoadBalancerBackendAd } id := LoadBalancerBackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLoadBalancerBackendAddressPoolIDInsensitively(input string) (*LoadBala } id := LoadBalancerBackendAddressPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LoadBalancerBackendAddressPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticBackendAddressPools", "backendAddressPools", "backendAddressPools"), - resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolValue"), + resourceids.UserSpecifiedSegment("backendAddressPoolName", "backendAddressPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go index 31e911e38af6..9ff4866e0d2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_loadbalancingrule.go @@ -44,7 +44,7 @@ func ParseLoadBalancingRuleID(input string) (*LoadBalancingRuleId, error) { } id := LoadBalancingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLoadBalancingRuleIDInsensitively(input string) (*LoadBalancingRuleId, } id := LoadBalancingRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LoadBalancingRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticLoadBalancingRules", "loadBalancingRules", "loadBalancingRules"), - resourceids.UserSpecifiedSegment("loadBalancingRuleName", "loadBalancingRuleValue"), + resourceids.UserSpecifiedSegment("loadBalancingRuleName", "loadBalancingRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go index 4a38c5ea3e7b..06ff0a743e62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go index 898376373003..8b262df0308b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_outboundrule.go @@ -44,7 +44,7 @@ func ParseOutboundRuleID(input string) (*OutboundRuleId, error) { } id := OutboundRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOutboundRuleIDInsensitively(input string) (*OutboundRuleId, error) { } id := OutboundRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OutboundRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticOutboundRules", "outboundRules", "outboundRules"), - resourceids.UserSpecifiedSegment("outboundRuleName", "outboundRuleValue"), + resourceids.UserSpecifiedSegment("outboundRuleName", "outboundRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go index 46ab09a65c98..4cc4bf66c116 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_probe.go @@ -44,7 +44,7 @@ func ParseProbeID(input string) (*ProbeId, error) { } id := ProbeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProbeIDInsensitively(input string) (*ProbeId, error) { } id := ProbeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProbeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), resourceids.StaticSegment("staticProbes", "probes", "probes"), - resourceids.UserSpecifiedSegment("probeName", "probeValue"), + resourceids.UserSpecifiedSegment("probeName", "probeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go index 88ab98c83ad8..54e6f1dc4ec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/id_providerloadbalancer.go @@ -42,7 +42,7 @@ func ParseProviderLoadBalancerID(input string) (*ProviderLoadBalancerId, error) } id := ProviderLoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLoadBalancerIDInsensitively(input string) (*ProviderLoadBalanc } id := ProviderLoadBalancerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLoadBalancerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLoadBalancers", "loadBalancers", "loadBalancers"), - resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerValue"), + resourceids.UserSpecifiedSegment("loadBalancerName", "loadBalancerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go index 2cf9ca241b7f..50fdc569bc4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LoadBalancersClient) Get(ctx context.Context, id ProviderLoadBalancerId, var model LoadBalancer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go index 92acfa0220be..d925ef58b2c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_inboundnatrulesget.go @@ -34,6 +34,7 @@ func (o InboundNatRulesGetOperationOptions) ToHeaders() *client.Headers { func (o InboundNatRulesGetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LoadBalancersClient) InboundNatRulesGet(ctx context.Context, id InboundN var model InboundNatRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go index 96451e224519..7fef83148f3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerbackendaddresspoolsget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerBackendAddressPoolsGet(ctx context.Cont var model BackendAddressPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go index eeb2cc8b0edb..6c16550699be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerfrontendipconfigurationsget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerFrontendIPConfigurationsGet(ctx context var model FrontendIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go index 265ec20a693b..76a4fc9b62f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerloadbalancingrulesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerLoadBalancingRulesGet(ctx context.Conte var model LoadBalancingRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go index 5e221d463299..7d54de6e71d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalanceroutboundrulesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerOutboundRulesGet(ctx context.Context, i var model OutboundRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go index 2901255109e5..d67e998c3279 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_loadbalancerprobesget.go @@ -45,7 +45,6 @@ func (c LoadBalancersClient) LoadBalancerProbesGet(ctx context.Context, id Probe var model Probe result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go index 249adebb4a88..6474ae09f76f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_migratetoipbased.go @@ -50,7 +50,6 @@ func (c LoadBalancersClient) MigrateToIPBased(ctx context.Context, id LoadBalanc var model MigratedPools result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go index dd8a45613262..d3fc584efb26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/method_updatetags.go @@ -49,7 +49,6 @@ func (c LoadBalancersClient) UpdateTags(ctx context.Context, id ProviderLoadBala var model LoadBalancer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go index 1d95c935c8e2..52931b4a027e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/loadbalancers/version.go @@ -1,12 +1,10 @@ package loadbalancers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/loadbalancers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/loadbalancers/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/README.md index bed3e60aac95..c35762c7e683 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways` Documentation -The `localnetworkgateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `localnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayValue") +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") payload := localnetworkgateways.LocalNetworkGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayValue") +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayValue") +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayValue") +id := localnetworkgateways.NewLocalNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localNetworkGatewayName") payload := localnetworkgateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/client.go index 90a3468c9f34..c821de0dcf3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/client.go @@ -15,7 +15,7 @@ type LocalNetworkGatewaysClient struct { } func NewLocalNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalNetworkGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localnetworkgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localnetworkgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalNetworkGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/id_localnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/id_localnetworkgateway.go index b3c0d3a03395..1b8d0c5ae7aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/id_localnetworkgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/id_localnetworkgateway.go @@ -42,7 +42,7 @@ func ParseLocalNetworkGatewayID(input string) (*LocalNetworkGatewayId, error) { } id := LocalNetworkGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalNetworkGatewayIDInsensitively(input string) (*LocalNetworkGateway } id := LocalNetworkGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalNetworkGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocalNetworkGateways", "localNetworkGateways", "localNetworkGateways"), - resourceids.UserSpecifiedSegment("localNetworkGatewayName", "localNetworkGatewayValue"), + resourceids.UserSpecifiedSegment("localNetworkGatewayName", "localNetworkGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_get.go index 08da8072f93a..678e40b00646 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_get.go @@ -45,7 +45,6 @@ func (c LocalNetworkGatewaysClient) Get(ctx context.Context, id LocalNetworkGate var model LocalNetworkGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_updatetags.go index c20950665de6..cacff76aaeba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/method_updatetags.go @@ -49,7 +49,6 @@ func (c LocalNetworkGatewaysClient) UpdateTags(ctx context.Context, id LocalNetw var model LocalNetworkGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/version.go index f1821de666ae..2a6d227f7677 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/localnetworkgateways/version.go @@ -1,12 +1,10 @@ package localnetworkgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localnetworkgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localnetworkgateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md index 1fed7e647cad..e7dc9a7b6006 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways` Documentation -The `natgateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `natgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") payload := natgateways.NatGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") read, err := client.Get(ctx, id, natgateways.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayValue") +id := natgateways.NewNatGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "natGatewayName") payload := natgateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go index 10d7c1f9e5fd..13334ca10a15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/client.go @@ -15,7 +15,7 @@ type NatGatewaysClient struct { } func NewNatGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*NatGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "natgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "natgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NatGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go index 95f33162e5e9..f830790bd5d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/id_natgateway.go @@ -42,7 +42,7 @@ func ParseNatGatewayID(input string) (*NatGatewayId, error) { } id := NatGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNatGatewayIDInsensitively(input string) (*NatGatewayId, error) { } id := NatGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NatGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNatGateways", "natGateways", "natGateways"), - resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayValue"), + resourceids.UserSpecifiedSegment("natGatewayName", "natGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go index 1360eae28731..3997df407c6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NatGatewaysClient) Get(ctx context.Context, id NatGatewayId, options Get var model NatGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go index b5dbabece39b..2480442d1cdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/method_updatetags.go @@ -49,7 +49,6 @@ func (c NatGatewaysClient) UpdateTags(ctx context.Context, id NatGatewayId, inpu var model NatGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go index f75b143874e9..e81482d13fd1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/natgateways/version.go @@ -1,12 +1,10 @@ package natgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/natgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/natgateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md index 6ba79ba2b29c..2e21ff9935d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups` Documentation -The `networkgroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkgroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") payload := networkgroups.NetworkGroup{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, networkgroups.DefaultDeleteOperationOpt ```go ctx := context.TODO() -id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := networkgroups.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkgroups.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") // alternatively `client.List(ctx, id, networkgroups.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, networkgroups.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go index 3cfe1e1eebf1..89171a64b6d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/client.go @@ -15,7 +15,7 @@ type NetworkGroupsClient struct { } func NewNetworkGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkgroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkgroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go index e92b4d5d7c09..912a7fb25c3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkgroup.go @@ -44,7 +44,7 @@ func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupValue"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go index 58b8bb2d432b..427d707220af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go index 3ab74eeca371..89e0b5c2b0c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_createorupdate.go @@ -36,6 +36,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c NetworkGroupsClient) CreateOrUpdate(ctx context.Context, id NetworkGroup var model NetworkGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go index 452dbab57a98..45f93907f238 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go index 554db15d0161..503719a73d9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_get.go @@ -45,7 +45,6 @@ func (c NetworkGroupsClient) Get(ctx context.Context, id NetworkGroupId) (result var model NetworkGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go index cff4d8b0a7ae..360af82528fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go index 890386a2be67..fe2835422749 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkgroups/version.go @@ -1,12 +1,10 @@ package networkgroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkgroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkgroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md index 0347be3ae2fe..a798e54ade59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces` Documentation -The `networkinterfaces` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkinterfaces` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.NetworkInterface{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") read, err := client.Get(ctx, id, networkinterfaces.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue", "networkInterfaceValue") +id := networkinterfaces.NewRoleInstanceNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName", "networkInterfaceName") read, err := client.GetCloudServiceNetworkInterface(ctx, id, networkinterfaces.DefaultGetCloudServiceNetworkInterfaceOperationOptions()) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.GetEffectiveRouteTable(ctx, id)` can be used to do batched pagination items, err := client.GetEffectiveRouteTableComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName") read, err := client.GetVirtualMachineScaleSetIPConfiguration(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetIPConfigurationOperationOptions()) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName") read, err := client.GetVirtualMachineScaleSetNetworkInterface(ctx, id, networkinterfaces.DefaultGetVirtualMachineScaleSetNetworkInterfaceOperationOptions()) if err != nil { @@ -169,7 +169,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue") +id := networkinterfaces.NewProviderCloudServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName") // alternatively `client.ListCloudServiceNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListCloudServiceNetworkInterfacesComplete(ctx, id) @@ -186,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceValue", "roleInstanceValue") +id := networkinterfaces.NewRoleInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServiceName", "roleInstanceName") // alternatively `client.ListCloudServiceRoleInstanceNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListCloudServiceRoleInstanceNetworkInterfacesComplete(ctx, id) @@ -203,7 +203,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.ListEffectiveNetworkSecurityGroups(ctx, id)` can be used to do batched pagination items, err := client.ListEffectiveNetworkSecurityGroupsComplete(ctx, id) @@ -220,7 +220,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue") +id := commonids.NewVirtualMachineScaleSetNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName") // alternatively `client.ListVirtualMachineScaleSetIPConfigurations(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions())` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetIPConfigurationsComplete(ctx, id, networkinterfaces.DefaultListVirtualMachineScaleSetIPConfigurationsOperationOptions()) @@ -237,7 +237,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := networkinterfaces.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.ListVirtualMachineScaleSetNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetNetworkInterfacesComplete(ctx, id) @@ -254,7 +254,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue") +id := networkinterfaces.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualmachineIndex") // alternatively `client.ListVirtualMachineScaleSetVMNetworkInterfaces(ctx, id)` can be used to do batched pagination items, err := client.ListVirtualMachineScaleSetVMNetworkInterfacesComplete(ctx, id) @@ -271,7 +271,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewNetworkInterfaceIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "ipConfigurationName") read, err := client.NetworkInterfaceIPConfigurationsGet(ctx, id) if err != nil { @@ -287,7 +287,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceIPConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceIPConfigurationsListComplete(ctx, id) @@ -304,7 +304,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceLoadBalancersList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceLoadBalancersListComplete(ctx, id) @@ -321,7 +321,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue", "tapConfigurationValue") +id := networkinterfaces.NewTapConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName", "tapConfigurationName") read, err := client.NetworkInterfaceTapConfigurationsGet(ctx, id) if err != nil { @@ -337,7 +337,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") // alternatively `client.NetworkInterfaceTapConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkInterfaceTapConfigurationsListComplete(ctx, id) @@ -354,7 +354,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceValue") +id := commonids.NewNetworkInterfaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkInterfaceName") payload := networkinterfaces.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go index cd098aeccdf9..1edd1a6838a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/client.go @@ -15,7 +15,7 @@ type NetworkInterfacesClient struct { } func NewNetworkInterfacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkInterfacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkinterfaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkinterfaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkInterfacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go index e3a9af48f960..d749e9a64f37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_providercloudservice.go @@ -42,7 +42,7 @@ func ParseProviderCloudServiceID(input string) (*ProviderCloudServiceId, error) } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderCloudServiceIDInsensitively(input string) (*ProviderCloudServi } id := ProviderCloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderCloudServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go index 69a75e612e09..49ded1dcadad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstance.go @@ -44,7 +44,7 @@ func ParseRoleInstanceID(input string) (*RoleInstanceId, error) { } id := RoleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRoleInstanceIDInsensitively(input string) (*RoleInstanceId, error) { } id := RoleInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RoleInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceValue"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go index 4a96fd5d010c..a67d978ec638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_roleinstancenetworkinterface.go @@ -46,7 +46,7 @@ func ParseRoleInstanceNetworkInterfaceID(input string) (*RoleInstanceNetworkInte } id := RoleInstanceNetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRoleInstanceNetworkInterfaceIDInsensitively(input string) (*RoleInstan } id := RoleInstanceNetworkInterfaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RoleInstanceNetworkInterfaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceName"), resourceids.StaticSegment("staticRoleInstances", "roleInstances", "roleInstances"), - resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceValue"), + resourceids.UserSpecifiedSegment("roleInstanceName", "roleInstanceName"), resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceValue"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go index 0778222d9c9a..b2916c52d2d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_tapconfiguration.go @@ -44,7 +44,7 @@ func ParseTapConfigurationID(input string) (*TapConfigurationId, error) { } id := TapConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTapConfigurationIDInsensitively(input string) (*TapConfigurationId, er } id := TapConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TapConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkInterfaces", "networkInterfaces", "networkInterfaces"), - resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceValue"), + resourceids.UserSpecifiedSegment("networkInterfaceName", "networkInterfaceName"), resourceids.StaticSegment("staticTapConfigurations", "tapConfigurations", "tapConfigurations"), - resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationValue"), + resourceids.UserSpecifiedSegment("tapConfigurationName", "tapConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go index e2f2dde86841..3e8bac23fd1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachine.go @@ -44,7 +44,7 @@ func ParseVirtualMachineID(input string) (*VirtualMachineId, error) { } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error) } id := VirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), resourceids.StaticSegment("staticVirtualMachines", "virtualMachines", "virtualMachines"), - resourceids.UserSpecifiedSegment("virtualMachineName", "virtualMachineValue"), + resourceids.UserSpecifiedSegment("virtualMachineName", "virtualmachineIndex"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go index e9a264c0a894..63abd7e5d6f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go index e1614af681dd..5a73b976c2c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) Get(ctx context.Context, id commonids.NetworkIn var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go index 7f7c58c444c4..be2ca6e2e399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getcloudservicenetworkinterface.go @@ -34,6 +34,7 @@ func (o GetCloudServiceNetworkInterfaceOperationOptions) ToHeaders() *client.Hea func (o GetCloudServiceNetworkInterfaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkInterfacesClient) GetCloudServiceNetworkInterface(ctx context.Con var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go index 7a3d2b45272a..88f82856ae85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetipconfiguration.go @@ -35,6 +35,7 @@ func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToHeaders() *c func (o GetVirtualMachineScaleSetIPConfigurationOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetIPConfiguration(ctx co var model NetworkInterfaceIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go index 1bef7a3da950..4bad16270bad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_getvirtualmachinescalesetnetworkinterface.go @@ -35,6 +35,7 @@ func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToHeaders() * func (o GetVirtualMachineScaleSetNetworkInterfaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c NetworkInterfacesClient) GetVirtualMachineScaleSetNetworkInterface(ctx c var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go index a18bdaf08cf9..8c1c944f6c81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_listvirtualmachinescalesetipconfigurations.go @@ -40,6 +40,7 @@ func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToHeaders() func (o ListVirtualMachineScaleSetIPConfigurationsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go index 90e537d09827..7134fa1ab75b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfaceipconfigurationsget.go @@ -46,7 +46,6 @@ func (c NetworkInterfacesClient) NetworkInterfaceIPConfigurationsGet(ctx context var model NetworkInterfaceIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go index 868ecfb43d5e..004d700dbcde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_networkinterfacetapconfigurationsget.go @@ -45,7 +45,6 @@ func (c NetworkInterfacesClient) NetworkInterfaceTapConfigurationsGet(ctx contex var model NetworkInterfaceTapConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go index ca8e31de55a8..4365d182729d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/method_updatetags.go @@ -50,7 +50,6 @@ func (c NetworkInterfacesClient) UpdateTags(ctx context.Context, id commonids.Ne var model NetworkInterface result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go index c6b21b3d1c03..16d462edbd37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkinterfaces/version.go @@ -1,12 +1,10 @@ package networkinterfaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkinterfaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkinterfaces/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md index 44e1ec295419..fe78b15b36a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations` Documentation -The `networkmanageractiveconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanageractiveconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanageractiveconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanageractiveconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanageractiveconfigurations.ActiveConfigurationParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go index fd577e53f33b..cc689379d3ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/client.go @@ -15,7 +15,7 @@ type NetworkManagerActiveConfigurationsClient struct { } func NewNetworkManagerActiveConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerActiveConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanageractiveconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanageractiveconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagerActiveConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go index ee0e5e5a9c84..f7d149a7e3c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go index 0a882c8e7311..a9250ed79d9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/method_listactivesecurityadminrules.go @@ -50,7 +50,6 @@ func (c NetworkManagerActiveConfigurationsClient) ListActiveSecurityAdminRules(c var model ActiveSecurityAdminRulesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go index c19193dfd820..22920240b7dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activebasesecurityadminrule.go @@ -10,18 +10,42 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ActiveBaseSecurityAdminRule interface { + ActiveBaseSecurityAdminRule() BaseActiveBaseSecurityAdminRuleImpl } -// RawActiveBaseSecurityAdminRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ActiveBaseSecurityAdminRule = BaseActiveBaseSecurityAdminRuleImpl{} + +type BaseActiveBaseSecurityAdminRuleImpl struct { + CommitTime *string `json:"commitTime,omitempty"` + ConfigurationDescription *string `json:"configurationDescription,omitempty"` + Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` + Region *string `json:"region,omitempty"` + RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` + RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` + RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` +} + +func (s BaseActiveBaseSecurityAdminRuleImpl) ActiveBaseSecurityAdminRule() BaseActiveBaseSecurityAdminRuleImpl { + return s +} + +var _ ActiveBaseSecurityAdminRule = RawActiveBaseSecurityAdminRuleImpl{} + +// RawActiveBaseSecurityAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawActiveBaseSecurityAdminRuleImpl struct { - Type string - Values map[string]interface{} + activeBaseSecurityAdminRule BaseActiveBaseSecurityAdminRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawActiveBaseSecurityAdminRuleImpl) ActiveBaseSecurityAdminRule() BaseActiveBaseSecurityAdminRuleImpl { + return s.activeBaseSecurityAdminRule } -func unmarshalActiveBaseSecurityAdminRuleImplementation(input []byte) (ActiveBaseSecurityAdminRule, error) { +func UnmarshalActiveBaseSecurityAdminRuleImplementation(input []byte) (ActiveBaseSecurityAdminRule, error) { if input == nil { return nil, nil } @@ -31,9 +55,9 @@ func unmarshalActiveBaseSecurityAdminRuleImplementation(input []byte) (ActiveBas return nil, fmt.Errorf("unmarshaling ActiveBaseSecurityAdminRule into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Default") { @@ -52,10 +76,15 @@ func unmarshalActiveBaseSecurityAdminRuleImplementation(input []byte) (ActiveBas return out, nil } - out := RawActiveBaseSecurityAdminRuleImpl{ - Type: value, - Values: temp, + var parent BaseActiveBaseSecurityAdminRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseActiveBaseSecurityAdminRuleImpl: %+v", err) } - return out, nil + + return RawActiveBaseSecurityAdminRuleImpl{ + activeBaseSecurityAdminRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go index 371ee82ef8ce..e708927c42da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activedefaultsecurityadminrule.go @@ -17,15 +17,30 @@ type ActiveDefaultSecurityAdminRule struct { Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from ActiveBaseSecurityAdminRule + CommitTime *string `json:"commitTime,omitempty"` ConfigurationDescription *string `json:"configurationDescription,omitempty"` Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` Region *string `json:"region,omitempty"` RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` } +func (s ActiveDefaultSecurityAdminRule) ActiveBaseSecurityAdminRule() BaseActiveBaseSecurityAdminRuleImpl { + return BaseActiveBaseSecurityAdminRuleImpl{ + CommitTime: s.CommitTime, + ConfigurationDescription: s.ConfigurationDescription, + Id: s.Id, + Kind: s.Kind, + Region: s.Region, + RuleCollectionAppliesToGroups: s.RuleCollectionAppliesToGroups, + RuleCollectionDescription: s.RuleCollectionDescription, + RuleGroups: s.RuleGroups, + } +} + func (o *ActiveDefaultSecurityAdminRule) GetCommitTimeAsTime() (*time.Time, error) { if o.CommitTime == nil { return nil, nil @@ -49,9 +64,10 @@ func (s ActiveDefaultSecurityAdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ActiveDefaultSecurityAdminRule: %+v", err) } + decoded["kind"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go index 70266c6ff7c4..18ae717f1d04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminrule.go @@ -17,15 +17,30 @@ type ActiveSecurityAdminRule struct { Properties *AdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from ActiveBaseSecurityAdminRule + CommitTime *string `json:"commitTime,omitempty"` ConfigurationDescription *string `json:"configurationDescription,omitempty"` Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` Region *string `json:"region,omitempty"` RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` } +func (s ActiveSecurityAdminRule) ActiveBaseSecurityAdminRule() BaseActiveBaseSecurityAdminRuleImpl { + return BaseActiveBaseSecurityAdminRuleImpl{ + CommitTime: s.CommitTime, + ConfigurationDescription: s.ConfigurationDescription, + Id: s.Id, + Kind: s.Kind, + Region: s.Region, + RuleCollectionAppliesToGroups: s.RuleCollectionAppliesToGroups, + RuleCollectionDescription: s.RuleCollectionDescription, + RuleGroups: s.RuleGroups, + } +} + func (o *ActiveSecurityAdminRule) GetCommitTimeAsTime() (*time.Time, error) { if o.CommitTime == nil { return nil, nil @@ -49,9 +64,10 @@ func (s ActiveSecurityAdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ActiveSecurityAdminRule: %+v", err) } + decoded["kind"] = "Custom" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go index c9007f5e0f38..e4419320e246 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/model_activesecurityadminruleslistresult.go @@ -16,10 +16,11 @@ type ActiveSecurityAdminRulesListResult struct { var _ json.Unmarshaler = &ActiveSecurityAdminRulesListResult{} func (s *ActiveSecurityAdminRulesListResult) UnmarshalJSON(bytes []byte) error { - type alias ActiveSecurityAdminRulesListResult - var decoded alias + var decoded struct { + SkipToken *string `json:"skipToken,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ActiveSecurityAdminRulesListResult: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.SkipToken = decoded.SkipToken @@ -37,7 +38,7 @@ func (s *ActiveSecurityAdminRulesListResult) UnmarshalJSON(bytes []byte) error { output := make([]ActiveBaseSecurityAdminRule, 0) for i, val := range listTemp { - impl, err := unmarshalActiveBaseSecurityAdminRuleImplementation(val) + impl, err := UnmarshalActiveBaseSecurityAdminRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'ActiveSecurityAdminRulesListResult': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *ActiveSecurityAdminRulesListResult) UnmarshalJSON(bytes []byte) error { } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go index f5bfcee6f74f..70d5cea35a07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconfigurations/version.go @@ -1,12 +1,10 @@ package networkmanageractiveconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanageractiveconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanageractiveconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md index 82eeb8d011c6..6422cf625665 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations` Documentation -The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanageractiveconnectivityconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanageractiveconnectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanageractiveconnectivityconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanageractiveconnectivityconfigurations.ActiveConfigurationParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go index 25282a2bad50..68760af7c253 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/client.go @@ -15,7 +15,7 @@ type NetworkManagerActiveConnectivityConfigurationsClient struct { } func NewNetworkManagerActiveConnectivityConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerActiveConnectivityConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanageractiveconnectivityconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanageractiveconnectivityconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagerActiveConnectivityConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go index 4b1919fa120d..3fd86366eb35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go index a4c1e51550d8..023b82524c05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/method_listactiveconnectivityconfigurations.go @@ -50,7 +50,6 @@ func (c NetworkManagerActiveConnectivityConfigurationsClient) ListActiveConnecti var model ActiveConnectivityConfigurationsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go index 41c46b1a8b85..613c8e17ca89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanageractiveconnectivityconfigurations/version.go @@ -1,12 +1,10 @@ package networkmanageractiveconnectivityconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanageractiveconnectivityconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md index fc17daa5dc47..a86d8c6d7409 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections` Documentation -The `networkmanagerconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanagerconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupIdValue", "networkManagerConnectionValue") +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") payload := networkmanagerconnections.NetworkManagerConnection{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupIdValue", "networkManagerConnectionValue") +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") read, err := client.ManagementGroupNetworkManagerConnectionsDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupIdValue", "networkManagerConnectionValue") +id := networkmanagerconnections.NewProviders2NetworkManagerConnectionID("managementGroupId", "networkManagerConnectionName") read, err := client.ManagementGroupNetworkManagerConnectionsGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") // alternatively `client.ManagementGroupNetworkManagerConnectionsList(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions())` can be used to do batched pagination items, err := client.ManagementGroupNetworkManagerConnectionsListComplete(ctx, id, networkmanagerconnections.DefaultManagementGroupNetworkManagerConnectionsListOperationOptions()) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionValue") +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") payload := networkmanagerconnections.NetworkManagerConnection{ // ... @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionValue") +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") read, err := client.SubscriptionNetworkManagerConnectionsDelete(ctx, id) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionValue") +id := networkmanagerconnections.NewNetworkManagerConnectionID("12345678-1234-9876-4563-123456789012", "networkManagerConnectionName") read, err := client.SubscriptionNetworkManagerConnectionsGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go index 3cfa72a376e3..809f42be8790 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/client.go @@ -15,7 +15,7 @@ type NetworkManagerConnectionsClient struct { } func NewNetworkManagerConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanagerconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanagerconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagerConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go index 066e316e2cb2..a3050ef7c66a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_networkmanagerconnection.go @@ -40,7 +40,7 @@ func ParseNetworkManagerConnectionID(input string) (*NetworkManagerConnectionId, } id := NetworkManagerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseNetworkManagerConnectionIDInsensitively(input string) (*NetworkManager } id := NetworkManagerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id NetworkManagerConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), - resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionValue"), + resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go index 81d73abef159..a0bb33d6bc5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/id_providers2networkmanagerconnection.go @@ -40,7 +40,7 @@ func ParseProviders2NetworkManagerConnectionID(input string) (*Providers2Network } id := Providers2NetworkManagerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviders2NetworkManagerConnectionIDInsensitively(input string) (*Prov } id := Providers2NetworkManagerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,11 +105,11 @@ func (id Providers2NetworkManagerConnectionId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupIdValue"), + resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupId"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagerConnections", "networkManagerConnections", "networkManagerConnections"), - resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionValue"), + resourceids.UserSpecifiedSegment("networkManagerConnectionName", "networkManagerConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go index cddf43640272..116a8f3da7a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionscreateorupdate.go @@ -50,7 +50,6 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection var model NetworkManagerConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go index 9e0447e4aea7..c4f20220fbe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionsget.go @@ -45,7 +45,6 @@ func (c NetworkManagerConnectionsClient) ManagementGroupNetworkManagerConnection var model NetworkManagerConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go index 3e9eb347a20e..d8b68e162ab2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_managementgroupnetworkmanagerconnectionslist.go @@ -40,6 +40,7 @@ func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToHeaders( func (o ManagementGroupNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go index 4447d41cf063..2d07c99634c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionscreateorupdate.go @@ -50,7 +50,6 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsCr var model NetworkManagerConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go index 5f0b27a080c4..4b89ca96feb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionsget.go @@ -45,7 +45,6 @@ func (c NetworkManagerConnectionsClient) SubscriptionNetworkManagerConnectionsGe var model NetworkManagerConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go index ddf403e8a211..a08f8b1adfc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/method_subscriptionnetworkmanagerconnectionslist.go @@ -40,6 +40,7 @@ func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToHeaders() * func (o SubscriptionNetworkManagerConnectionsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go index fc77e3e62cea..3c6374ebb17e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagerconnections/version.go @@ -1,12 +1,10 @@ package networkmanagerconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanagerconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanagerconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md index 41400d3088ed..2b91a7d84d09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration` Documentation -The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanagereffectiveconnectivityconfiguration` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := networkmanagereffectiveconnectivityconfiguration.QueryRequestOptions{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go index 2f234ee82efa..c6449e001fe3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/client.go @@ -15,7 +15,7 @@ type NetworkManagerEffectiveConnectivityConfigurationClient struct { } func NewNetworkManagerEffectiveConnectivityConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerEffectiveConnectivityConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanagereffectiveconnectivityconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanagereffectiveconnectivityconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagerEffectiveConnectivityConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go index d752edf32eb2..64233acc1956 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/method_listnetworkmanagereffectiveconnectivityconfigurations.go @@ -51,7 +51,6 @@ func (c NetworkManagerEffectiveConnectivityConfigurationClient) ListNetworkManag var model NetworkManagerEffectiveConnectivityConfigurationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go index 1d7fa73abde8..e90fd22ef318 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectiveconnectivityconfiguration/version.go @@ -1,12 +1,10 @@ package networkmanagereffectiveconnectivityconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanagereffectiveconnectivityconfiguration/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md index e4c59e2c53c2..6fb874e9b9d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules` Documentation -The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanagereffectivesecurityadminrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := networkmanagereffectivesecurityadminrules.QueryRequestOptions{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go index c83126c132cb..5685e9afd828 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/client.go @@ -15,7 +15,7 @@ type NetworkManagerEffectiveSecurityAdminRulesClient struct { } func NewNetworkManagerEffectiveSecurityAdminRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagerEffectiveSecurityAdminRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanagereffectivesecurityadminrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanagereffectivesecurityadminrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagerEffectiveSecurityAdminRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go index a69d081c8108..50c941d87560 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/method_listnetworkmanagereffectivesecurityadminrules.go @@ -51,7 +51,6 @@ func (c NetworkManagerEffectiveSecurityAdminRulesClient) ListNetworkManagerEffec var model NetworkManagerEffectiveSecurityAdminRulesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go index 9ef5715f8e42..d77eea3650fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivebasesecurityadminrule.go @@ -10,18 +10,40 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EffectiveBaseSecurityAdminRule interface { + EffectiveBaseSecurityAdminRule() BaseEffectiveBaseSecurityAdminRuleImpl } -// RawEffectiveBaseSecurityAdminRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EffectiveBaseSecurityAdminRule = BaseEffectiveBaseSecurityAdminRuleImpl{} + +type BaseEffectiveBaseSecurityAdminRuleImpl struct { + ConfigurationDescription *string `json:"configurationDescription,omitempty"` + Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` + RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` + RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` + RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` +} + +func (s BaseEffectiveBaseSecurityAdminRuleImpl) EffectiveBaseSecurityAdminRule() BaseEffectiveBaseSecurityAdminRuleImpl { + return s +} + +var _ EffectiveBaseSecurityAdminRule = RawEffectiveBaseSecurityAdminRuleImpl{} + +// RawEffectiveBaseSecurityAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEffectiveBaseSecurityAdminRuleImpl struct { - Type string - Values map[string]interface{} + effectiveBaseSecurityAdminRule BaseEffectiveBaseSecurityAdminRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawEffectiveBaseSecurityAdminRuleImpl) EffectiveBaseSecurityAdminRule() BaseEffectiveBaseSecurityAdminRuleImpl { + return s.effectiveBaseSecurityAdminRule } -func unmarshalEffectiveBaseSecurityAdminRuleImplementation(input []byte) (EffectiveBaseSecurityAdminRule, error) { +func UnmarshalEffectiveBaseSecurityAdminRuleImplementation(input []byte) (EffectiveBaseSecurityAdminRule, error) { if input == nil { return nil, nil } @@ -31,9 +53,9 @@ func unmarshalEffectiveBaseSecurityAdminRuleImplementation(input []byte) (Effect return nil, fmt.Errorf("unmarshaling EffectiveBaseSecurityAdminRule into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Default") { @@ -52,10 +74,15 @@ func unmarshalEffectiveBaseSecurityAdminRuleImplementation(input []byte) (Effect return out, nil } - out := RawEffectiveBaseSecurityAdminRuleImpl{ - Type: value, - Values: temp, + var parent BaseEffectiveBaseSecurityAdminRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEffectiveBaseSecurityAdminRuleImpl: %+v", err) } - return out, nil + + return RawEffectiveBaseSecurityAdminRuleImpl{ + effectiveBaseSecurityAdminRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go index 17d5e7fdeb7b..89d5f651a9f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivedefaultsecurityadminrule.go @@ -14,13 +14,26 @@ type EffectiveDefaultSecurityAdminRule struct { Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from EffectiveBaseSecurityAdminRule + ConfigurationDescription *string `json:"configurationDescription,omitempty"` Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` } +func (s EffectiveDefaultSecurityAdminRule) EffectiveBaseSecurityAdminRule() BaseEffectiveBaseSecurityAdminRuleImpl { + return BaseEffectiveBaseSecurityAdminRuleImpl{ + ConfigurationDescription: s.ConfigurationDescription, + Id: s.Id, + Kind: s.Kind, + RuleCollectionAppliesToGroups: s.RuleCollectionAppliesToGroups, + RuleCollectionDescription: s.RuleCollectionDescription, + RuleGroups: s.RuleGroups, + } +} + var _ json.Marshaler = EffectiveDefaultSecurityAdminRule{} func (s EffectiveDefaultSecurityAdminRule) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s EffectiveDefaultSecurityAdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EffectiveDefaultSecurityAdminRule: %+v", err) } + decoded["kind"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go index ae90f9154f9c..8fcf50ed8988 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_effectivesecurityadminrule.go @@ -14,13 +14,26 @@ type EffectiveSecurityAdminRule struct { Properties *AdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from EffectiveBaseSecurityAdminRule + ConfigurationDescription *string `json:"configurationDescription,omitempty"` Id *string `json:"id,omitempty"` + Kind EffectiveAdminRuleKind `json:"kind"` RuleCollectionAppliesToGroups *[]NetworkManagerSecurityGroupItem `json:"ruleCollectionAppliesToGroups,omitempty"` RuleCollectionDescription *string `json:"ruleCollectionDescription,omitempty"` RuleGroups *[]ConfigurationGroup `json:"ruleGroups,omitempty"` } +func (s EffectiveSecurityAdminRule) EffectiveBaseSecurityAdminRule() BaseEffectiveBaseSecurityAdminRuleImpl { + return BaseEffectiveBaseSecurityAdminRuleImpl{ + ConfigurationDescription: s.ConfigurationDescription, + Id: s.Id, + Kind: s.Kind, + RuleCollectionAppliesToGroups: s.RuleCollectionAppliesToGroups, + RuleCollectionDescription: s.RuleCollectionDescription, + RuleGroups: s.RuleGroups, + } +} + var _ json.Marshaler = EffectiveSecurityAdminRule{} func (s EffectiveSecurityAdminRule) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s EffectiveSecurityAdminRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EffectiveSecurityAdminRule: %+v", err) } + decoded["kind"] = "Custom" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go index 941c8a93ed6b..5d6f71bcb258 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/model_networkmanagereffectivesecurityadminruleslistresult.go @@ -16,10 +16,11 @@ type NetworkManagerEffectiveSecurityAdminRulesListResult struct { var _ json.Unmarshaler = &NetworkManagerEffectiveSecurityAdminRulesListResult{} func (s *NetworkManagerEffectiveSecurityAdminRulesListResult) UnmarshalJSON(bytes []byte) error { - type alias NetworkManagerEffectiveSecurityAdminRulesListResult - var decoded alias + var decoded struct { + SkipToken *string `json:"skipToken,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into NetworkManagerEffectiveSecurityAdminRulesListResult: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.SkipToken = decoded.SkipToken @@ -37,7 +38,7 @@ func (s *NetworkManagerEffectiveSecurityAdminRulesListResult) UnmarshalJSON(byte output := make([]EffectiveBaseSecurityAdminRule, 0) for i, val := range listTemp { - impl, err := unmarshalEffectiveBaseSecurityAdminRuleImplementation(val) + impl, err := UnmarshalEffectiveBaseSecurityAdminRuleImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'NetworkManagerEffectiveSecurityAdminRulesListResult': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *NetworkManagerEffectiveSecurityAdminRulesListResult) UnmarshalJSON(byte } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go index 2513c8fdf3ed..70a1bd7d6c87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagereffectivesecurityadminrules/version.go @@ -1,12 +1,10 @@ package networkmanagereffectivesecurityadminrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanagereffectivesecurityadminrules/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md index c498f7f8f089..35f01c2151f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers` Documentation -The `networkmanagers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkmanagers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManager{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id, networkmanagers.DefaultDeleteOperationO ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManagerCommit{ // ... @@ -125,7 +125,7 @@ if err := client.NetworkManagerCommitsPostThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.NetworkManagerDeploymentStatusParameter{ // ... @@ -146,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := networkmanagers.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") payload := networkmanagers.PatchObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go index b27df28e1263..64a4e7996462 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/client.go @@ -15,7 +15,7 @@ type NetworkManagersClient struct { } func NewNetworkManagersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkManagersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkmanagers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkmanagers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkManagersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go index 634812032949..35d0899f86c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go index 5fb5c949cd63..cdce0892e43c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_createorupdate.go @@ -50,7 +50,6 @@ func (c NetworkManagersClient) CreateOrUpdate(ctx context.Context, id NetworkMan var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go index 016216c8549f..a9619efb0e22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go index c9f3acddeae8..ed6b5d9ec820 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_get.go @@ -45,7 +45,6 @@ func (c NetworkManagersClient) Get(ctx context.Context, id NetworkManagerId) (re var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go index 86b71cf2d942..902c41d52b33 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go index d45e89952b8a..d1e8f2d72a38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_listbysubscription.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go index f9a88725d0fd..db1a1d144ac4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_networkmanagerdeploymentstatuslist.go @@ -50,7 +50,6 @@ func (c NetworkManagersClient) NetworkManagerDeploymentStatusList(ctx context.Co var model NetworkManagerDeploymentStatusListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go index e3810b6e4b43..4aae0d607098 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/method_patch.go @@ -49,7 +49,6 @@ func (c NetworkManagersClient) Patch(ctx context.Context, id NetworkManagerId, i var model NetworkManager result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go index 0c17120afb9e..50a239122378 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkmanagers/version.go @@ -1,12 +1,10 @@ package networkmanagers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkmanagers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkmanagers/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md index 341b912bf063..1ce5978118fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles` Documentation -The `networkprofiles` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkprofiles` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileValue") +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") payload := networkprofiles.NetworkProfile{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileValue") +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileValue") +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") read, err := client.Get(ctx, id, networkprofiles.DefaultGetOperationOptions()) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileValue") +id := networkprofiles.NewNetworkProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkProfileName") payload := networkprofiles.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go index 17b4bf310689..33a4e0626aae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/client.go @@ -15,7 +15,7 @@ type NetworkProfilesClient struct { } func NewNetworkProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkProfilesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkprofiles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkprofiles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkProfilesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go index b1bbf9c93434..e2a16f7fdfa6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/id_networkprofile.go @@ -42,7 +42,7 @@ func ParseNetworkProfileID(input string) (*NetworkProfileId, error) { } id := NetworkProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkProfileIDInsensitively(input string) (*NetworkProfileId, error) } id := NetworkProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkProfiles", "networkProfiles", "networkProfiles"), - resourceids.UserSpecifiedSegment("networkProfileName", "networkProfileValue"), + resourceids.UserSpecifiedSegment("networkProfileName", "networkProfileName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go index 94d3a856780f..24ed5940195d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_createorupdate.go @@ -50,7 +50,6 @@ func (c NetworkProfilesClient) CreateOrUpdate(ctx context.Context, id NetworkPro var model NetworkProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go index 13f989554707..a0149c188f79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkProfilesClient) Get(ctx context.Context, id NetworkProfileId, opt var model NetworkProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go index f0bfb2f14f77..757952def309 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkProfilesClient) UpdateTags(ctx context.Context, id NetworkProfile var model NetworkProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go index aac65a73d704..69bb459bdeeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkprofiles/version.go @@ -1,12 +1,10 @@ package networkprofiles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkprofiles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkprofiles/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/README.md index 8b2fe2c002fb..2ee8791f5328 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups` Documentation -The `networksecuritygroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networksecuritygroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") payload := networksecuritygroups.NetworkSecurityGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") read, err := client.Get(ctx, id, networksecuritygroups.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := networksecuritygroups.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") payload := networksecuritygroups.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/client.go index a8d26110c7ce..d490fa41c780 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/client.go @@ -15,7 +15,7 @@ type NetworkSecurityGroupsClient struct { } func NewNetworkSecurityGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkSecurityGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networksecuritygroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networksecuritygroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkSecurityGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/id_networksecuritygroup.go index 4ab431d74a91..5b1f77f1061b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/id_networksecuritygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/id_networksecuritygroup.go @@ -42,7 +42,7 @@ func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGro } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupValue"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go index 6ebe50d00e54..7728917c0ec6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkSecurityGroupsClient) Get(ctx context.Context, id NetworkSecurity var model NetworkSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_updatetags.go index 362cad00c7d1..6f4b2cd3ce69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkSecurityGroupsClient) UpdateTags(ctx context.Context, id NetworkS var model NetworkSecurityGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/version.go index 86b340032212..de581c23f99c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networksecuritygroups/version.go @@ -1,12 +1,10 @@ package networksecuritygroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networksecuritygroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networksecuritygroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md index 0a44f1ce17cc..1b456a5a7d10 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances` Documentation -The `networkvirtualappliances` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkvirtualappliances` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") payload := networkvirtualappliances.NetworkVirtualAppliance{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") read, err := client.Get(ctx, id, networkvirtualappliances.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "inboundSecurityRuleValue") +id := networkvirtualappliances.NewInboundSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "ruleCollectionName") payload := networkvirtualappliances.InboundSecurityRule{ // ... @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") payload := networkvirtualappliances.NetworkVirtualApplianceInstanceIds{ // ... @@ -138,7 +138,7 @@ if err := client.RestartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := networkvirtualappliances.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") payload := networkvirtualappliances.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go index cfaeae574dec..ab8d70fafa5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/client.go @@ -15,7 +15,7 @@ type NetworkVirtualAppliancesClient struct { } func NewNetworkVirtualAppliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkVirtualAppliancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkvirtualappliances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkvirtualappliances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkVirtualAppliancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go index d920466b92f8..d59b8c173b54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_inboundsecurityrule.go @@ -44,7 +44,7 @@ func ParseInboundSecurityRuleID(input string) (*InboundSecurityRuleId, error) { } id := InboundSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInboundSecurityRuleIDInsensitively(input string) (*InboundSecurityRule } id := InboundSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InboundSecurityRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), resourceids.StaticSegment("staticInboundSecurityRules", "inboundSecurityRules", "inboundSecurityRules"), - resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "inboundSecurityRuleValue"), + resourceids.UserSpecifiedSegment("inboundSecurityRuleName", "ruleCollectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go index f222e101e796..a412e45cbba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/id_networkvirtualappliance.go @@ -42,7 +42,7 @@ func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, e } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualA } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go index 36076f68749a..2310883a4481 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c NetworkVirtualAppliancesClient) Get(ctx context.Context, id NetworkVirtu var model NetworkVirtualAppliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go index 25a5f9e94c5c..a8a8391f4a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkVirtualAppliancesClient) UpdateTags(ctx context.Context, id Netwo var model NetworkVirtualAppliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go index 65ef51ae847a..a69c27b0d17d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkvirtualappliances/version.go @@ -1,12 +1,10 @@ package networkvirtualappliances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkvirtualappliances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkvirtualappliances/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md index 27fcc011dc65..d455e8793628 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers` Documentation -The `networkwatchers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `networkwatchers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.ConnectivityParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CheckConnectivityThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NetworkWatcher{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.AzureReachabilityReportParameters{ // ... @@ -108,7 +108,7 @@ if err := client.GetAzureReachabilityReportThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.FlowLogStatusParameters{ // ... @@ -125,7 +125,7 @@ if err := client.GetFlowLogStatusThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NetworkConfigurationDiagnosticParameters{ // ... @@ -142,7 +142,7 @@ if err := client.GetNetworkConfigurationDiagnosticThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.NextHopParameters{ // ... @@ -159,7 +159,7 @@ if err := client.GetNextHopThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TopologyParameters{ // ... @@ -180,7 +180,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TroubleshootingParameters{ // ... @@ -197,7 +197,7 @@ if err := client.GetTroubleshootingThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.QueryTroubleshootingParameters{ // ... @@ -214,7 +214,7 @@ if err := client.GetTroubleshootingResultThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.SecurityGroupViewParameters{ // ... @@ -263,7 +263,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.AvailableProvidersListParameters{ // ... @@ -280,7 +280,7 @@ if err := client.ListAvailableProvidersThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.FlowLogInformation{ // ... @@ -297,7 +297,7 @@ if err := client.SetFlowLogConfigurationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.TagsObject{ // ... @@ -318,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := networkwatchers.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := networkwatchers.VerificationIPFlowParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go index 2068ab14817c..b544d19c2068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/client.go @@ -15,7 +15,7 @@ type NetworkWatchersClient struct { } func NewNetworkWatchersClientWithBaseURI(sdkApi sdkEnv.Api) (*NetworkWatchersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "networkwatchers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "networkwatchers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NetworkWatchersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go index b8bb1f7f4a66..2e22c948a131 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go index ecb006e20072..5881c4d5c10d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_createorupdate.go @@ -50,7 +50,6 @@ func (c NetworkWatchersClient) CreateOrUpdate(ctx context.Context, id NetworkWat var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go index 000ae087b183..1c429aeb42d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_get.go @@ -45,7 +45,6 @@ func (c NetworkWatchersClient) Get(ctx context.Context, id NetworkWatcherId) (re var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go index 8a1c6caef609..68afb0d82060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_gettopology.go @@ -50,7 +50,6 @@ func (c NetworkWatchersClient) GetTopology(ctx context.Context, id NetworkWatche var model Topology result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go index 8263c7b4f931..36d57f04fef7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_list.go @@ -47,7 +47,6 @@ func (c NetworkWatchersClient) List(ctx context.Context, id commonids.ResourceGr var model NetworkWatcherListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go index 845a24499465..b8bd8d8d4a6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_listall.go @@ -47,7 +47,6 @@ func (c NetworkWatchersClient) ListAll(ctx context.Context, id commonids.Subscri var model NetworkWatcherListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go index 1ace78e7dc56..0ad45fd1f1a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/method_updatetags.go @@ -49,7 +49,6 @@ func (c NetworkWatchersClient) UpdateTags(ctx context.Context, id NetworkWatcher var model NetworkWatcher result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go index 47118849999a..24d0fce3ffe2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/networkwatchers/version.go @@ -1,12 +1,10 @@ package networkwatchers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/networkwatchers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/networkwatchers/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md index 48f61b8188c4..49155d7e1f83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways` Documentation -The `p2svpngateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `p2svpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := p2svpngateways.P2SVpnConnectionRequest{ // ... @@ -42,7 +42,7 @@ if err := client.DisconnectP2sVpnConnectionsThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := p2svpngateways.P2SVpnProfileParameters{ // ... @@ -59,7 +59,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -71,7 +71,7 @@ if err := client.GetP2sVpnConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := p2svpngateways.P2SVpnConnectionHealthRequest{ // ... @@ -88,7 +88,7 @@ if err := client.GetP2sVpnConnectionHealthDetailedThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.ResetThenPoll(ctx, id); err != nil { // handle the error @@ -100,7 +100,7 @@ if err := client.ResetThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := p2svpngateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go index 3d458041de0c..b2a2ec08b883 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/client.go @@ -15,7 +15,7 @@ type P2sVpnGatewaysClient struct { } func NewP2sVpnGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*P2sVpnGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "p2svpngateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "p2svpngateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating P2sVpnGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go index da9953e9996c..fe9fc581b5e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/p2svpngateways/version.go @@ -1,12 +1,10 @@ package p2svpngateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/p2svpngateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/p2svpngateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md index 5f50d46c9f56..e886067a2ed2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures` Documentation -The `packetcaptures` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `packetcaptures` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "packetCaptureValue") +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") payload := packetcaptures.PacketCapture{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "packetCaptureValue") +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "packetCaptureValue") +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "packetCaptureValue") +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") if err := client.GetStatusThenPoll(ctx, id); err != nil { // handle the error @@ -81,7 +81,7 @@ if err := client.GetStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := packetcaptures.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") read, err := client.List(ctx, id) if err != nil { @@ -97,7 +97,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue", "packetCaptureValue") +id := packetcaptures.NewPacketCaptureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName", "packetCaptureName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go index 03aa779a5b95..9acbfd7c6f73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/client.go @@ -15,7 +15,7 @@ type PacketCapturesClient struct { } func NewPacketCapturesClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCapturesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "packetcaptures", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "packetcaptures", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PacketCapturesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go index d9eafa5f0995..df59b51a3161 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go index 8b30ad1ebd6f..80f04f9f292e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/id_packetcapture.go @@ -44,7 +44,7 @@ func ParsePacketCaptureID(input string) (*PacketCaptureId, error) { } id := PacketCaptureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePacketCaptureIDInsensitively(input string) (*PacketCaptureId, error) { } id := PacketCaptureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PacketCaptureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), resourceids.StaticSegment("staticPacketCaptures", "packetCaptures", "packetCaptures"), - resourceids.UserSpecifiedSegment("packetCaptureName", "packetCaptureValue"), + resourceids.UserSpecifiedSegment("packetCaptureName", "packetCaptureName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go index 2226c032beaf..9f32b393d102 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_get.go @@ -45,7 +45,6 @@ func (c PacketCapturesClient) Get(ctx context.Context, id PacketCaptureId) (resu var model PacketCaptureResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go index 49bbc661b3c4..08e6f4248639 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/method_list.go @@ -46,7 +46,6 @@ func (c PacketCapturesClient) List(ctx context.Context, id NetworkWatcherId) (re var model PacketCaptureListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go index 969757768e0b..149c536f1d4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/packetcaptures/version.go @@ -1,12 +1,10 @@ package packetcaptures -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/packetcaptures/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/packetcaptures/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md index bc13ae741d46..94f0e333f1ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections` Documentation -The `peerexpressroutecircuitconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `peerexpressroutecircuitconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := peerexpressroutecircuitconnections.NewPeerConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue", "peerConnectionValue") +id := peerexpressroutecircuitconnections.NewPeerConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "expressRouteCircuitValue", "peeringValue") +id := commonids.NewExpressRouteCircuitPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "circuitName", "peeringName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go index c0c578a280fb..6f26d87afd57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/client.go @@ -15,7 +15,7 @@ type PeerExpressRouteCircuitConnectionsClient struct { } func NewPeerExpressRouteCircuitConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PeerExpressRouteCircuitConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "peerexpressroutecircuitconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "peerexpressroutecircuitconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PeerExpressRouteCircuitConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go index 6bde16a10c54..4c26579b339e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/id_peerconnection.go @@ -46,7 +46,7 @@ func ParsePeerConnectionID(input string) (*PeerConnectionId, error) { } id := PeerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParsePeerConnectionIDInsensitively(input string) (*PeerConnectionId, error) } id := PeerConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id PeerConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticExpressRouteCircuits", "expressRouteCircuits", "expressRouteCircuits"), - resourceids.UserSpecifiedSegment("expressRouteCircuitName", "expressRouteCircuitValue"), + resourceids.UserSpecifiedSegment("expressRouteCircuitName", "circuitName"), resourceids.StaticSegment("staticPeerings", "peerings", "peerings"), - resourceids.UserSpecifiedSegment("peeringName", "peeringValue"), + resourceids.UserSpecifiedSegment("peeringName", "peeringName"), resourceids.StaticSegment("staticPeerConnections", "peerConnections", "peerConnections"), - resourceids.UserSpecifiedSegment("peerConnectionName", "peerConnectionValue"), + resourceids.UserSpecifiedSegment("peerConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go index 844c3c67e07d..554ac17ad6f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/method_get.go @@ -45,7 +45,6 @@ func (c PeerExpressRouteCircuitConnectionsClient) Get(ctx context.Context, id Pe var model PeerExpressRouteCircuitConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go index 55eda65ac215..20015a147315 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/peerexpressroutecircuitconnections/version.go @@ -1,12 +1,10 @@ package peerexpressroutecircuitconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/peerexpressroutecircuitconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md index 13e156be9bb3..2d5799b6f5da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups` Documentation -The `privatednszonegroups` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `privatednszonegroups` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue", "privateDnsZoneGroupValue") +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") payload := privatednszonegroups.PrivateDnsZoneGroup{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue", "privateDnsZoneGroupValue") +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue", "privateDnsZoneGroupValue") +id := privatednszonegroups.NewPrivateDnsZoneGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName", "privateDnsZoneGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privatednszonegroups.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go index 99ce8b6667e0..58e48fe8e2e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/client.go @@ -15,7 +15,7 @@ type PrivateDnsZoneGroupsClient struct { } func NewPrivateDnsZoneGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateDnsZoneGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatednszonegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatednszonegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateDnsZoneGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go index 9399f9157d37..9d6d9b40c00a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privatednszonegroup.go @@ -44,7 +44,7 @@ func ParsePrivateDnsZoneGroupID(input string) (*PrivateDnsZoneGroupId, error) { } id := PrivateDnsZoneGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateDnsZoneGroupIDInsensitively(input string) (*PrivateDnsZoneGroup } id := PrivateDnsZoneGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateDnsZoneGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointValue"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), resourceids.StaticSegment("staticPrivateDnsZoneGroups", "privateDnsZoneGroups", "privateDnsZoneGroups"), - resourceids.UserSpecifiedSegment("privateDnsZoneGroupName", "privateDnsZoneGroupValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneGroupName", "privateDnsZoneGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go index a9f6cc5dff23..858dc908589e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/id_privateendpoint.go @@ -42,7 +42,7 @@ func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, erro } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointValue"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go index 3c25fca99b72..b0a317bbf4db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/method_get.go @@ -45,7 +45,6 @@ func (c PrivateDnsZoneGroupsClient) Get(ctx context.Context, id PrivateDnsZoneGr var model PrivateDnsZoneGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go index 278a401ef28a..6ddb0eb09e16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatednszonegroups/version.go @@ -1,12 +1,10 @@ package privatednszonegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatednszonegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatednszonegroups/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md index c7da88ef649e..c60ca548bcbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints` Documentation -The `privateendpoints` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `privateendpoints` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := privateendpoints.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.AvailablePrivateEndpointTypesList(ctx, id)` can be used to do batched pagination items, err := client.AvailablePrivateEndpointTypesListComplete(ctx, id) @@ -42,7 +42,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := privateendpoints.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.AvailablePrivateEndpointTypesListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.AvailablePrivateEndpointTypesListByResourceGroupComplete(ctx, id) @@ -59,7 +59,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") payload := privateendpoints.PrivateEndpoint{ // ... @@ -76,7 +76,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -88,7 +88,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateEndpointName") read, err := client.Get(ctx, id, privateendpoints.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go index 149437b13342..d03b3dc1800b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/client.go @@ -15,7 +15,7 @@ type PrivateEndpointsClient struct { } func NewPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go index 54b43b4b1f23..f90051a67257 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go index a104325012e4..09fd6278c207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_privateendpoint.go @@ -42,7 +42,7 @@ func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, erro } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointValue"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go index a70739b937d4..cb389eabe349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go index 80cad93eef6c..559e0f436c5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId, o var model PrivateEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go index d3a13cfb7234..5181a4f29087 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privateendpoints/version.go @@ -1,12 +1,10 @@ package privateendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpoints/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/README.md index d8d18c0da8b0..e528cdae1a1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices` Documentation -The `privatelinkservices` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `privatelinkservices` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ // ... @@ -42,7 +42,7 @@ if err := client.CheckPrivateLinkServiceVisibilityThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") payload := privatelinkservices.CheckPrivateLinkServiceVisibilityRequest{ // ... @@ -59,7 +59,7 @@ if err := client.CheckPrivateLinkServiceVisibilityByResourceGroupThenPoll(ctx, i ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue") +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") payload := privatelinkservices.PrivateLinkService{ // ... @@ -76,7 +76,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue") +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -88,7 +88,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue", "privateEndpointConnectionValue") +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "peConnectionName") if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -100,7 +100,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue") +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") read, err := client.Get(ctx, id, privatelinkservices.DefaultGetOperationOptions()) if err != nil { @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue", "privateEndpointConnectionValue") +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "peConnectionName") read, err := client.GetPrivateEndpointConnection(ctx, id, privatelinkservices.DefaultGetPrivateEndpointConnectionOperationOptions()) if err != nil { @@ -149,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := privatelinkservices.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ListAutoApprovedPrivateLinkServices(ctx, id)` can be used to do batched pagination items, err := client.ListAutoApprovedPrivateLinkServicesComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := privatelinkservices.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.ListAutoApprovedPrivateLinkServicesByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListAutoApprovedPrivateLinkServicesByResourceGroupComplete(ctx, id) @@ -200,7 +200,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue") +id := privatelinkservices.NewPrivateLinkServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName") // alternatively `client.ListPrivateEndpointConnections(ctx, id)` can be used to do batched pagination items, err := client.ListPrivateEndpointConnectionsComplete(ctx, id) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateLinkServiceValue", "privateEndpointConnectionValue") +id := privatelinkservices.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceName", "peConnectionName") payload := privatelinkservices.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/client.go index 5bd46867c3eb..e097e552e3f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/client.go @@ -15,7 +15,7 @@ type PrivateLinkServicesClient struct { } func NewPrivateLinkServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_location.go index 34e4ed805209..c2338e0d7ee9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privateendpointconnection.go index 3f98898492db..0bb8766006b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), - resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceValue"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "serviceName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "peConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privatelinkservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privatelinkservice.go index d88a974cca5d..c093bc5f0e7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privatelinkservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_privatelinkservice.go @@ -42,7 +42,7 @@ func ParsePrivateLinkServiceID(input string) (*PrivateLinkServiceId, error) { } id := PrivateLinkServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateLinkServiceIDInsensitively(input string) (*PrivateLinkServiceId } id := PrivateLinkServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateLinkServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateLinkServices", "privateLinkServices", "privateLinkServices"), - resourceids.UserSpecifiedSegment("privateLinkServiceName", "privateLinkServiceValue"), + resourceids.UserSpecifiedSegment("privateLinkServiceName", "serviceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_providerlocation.go index c7433defeb69..929b9472fbc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_get.go index 87bddc4d4aab..3be1df5bb535 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PrivateLinkServicesClient) Get(ctx context.Context, id PrivateLinkServic var model PrivateLinkService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go index 032d20762548..7690b7c62af4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_getprivateendpointconnection.go @@ -34,6 +34,7 @@ func (o GetPrivateEndpointConnectionOperationOptions) ToHeaders() *client.Header func (o GetPrivateEndpointConnectionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PrivateLinkServicesClient) GetPrivateEndpointConnection(ctx context.Cont var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_updateprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_updateprivateendpointconnection.go index 90a383fd3a16..b108db06f2a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_updateprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/method_updateprivateendpointconnection.go @@ -49,7 +49,6 @@ func (c PrivateLinkServicesClient) UpdatePrivateEndpointConnection(ctx context.C var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/version.go index ca67526be414..a06cf409f144 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/privatelinkservices/version.go @@ -1,12 +1,10 @@ package privatelinkservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkservices/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md index e6997f455500..18e8df0d101d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses` Documentation -The `publicipaddresses` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `publicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressesName") payload := publicipaddresses.PublicIPAddress{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressesName") if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DdosProtectionStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressesName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressesName") read, err := client.Get(ctx, id, publicipaddresses.DefaultGetOperationOptions()) if err != nil { @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressValue") +id := commonids.NewPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPAddressesName") payload := publicipaddresses.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go index 4c28c5373850..54f2b0113c7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/client.go @@ -15,7 +15,7 @@ type PublicIPAddressesClient struct { } func NewPublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPAddressesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publicipaddresses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publicipaddresses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublicIPAddressesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go index 7045aad83728..2548c9b4db60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c PublicIPAddressesClient) Get(ctx context.Context, id commonids.PublicIPA var model PublicIPAddress result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go index 55be79fcfce9..622a0a8c202f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/method_updatetags.go @@ -50,7 +50,6 @@ func (c PublicIPAddressesClient) UpdateTags(ctx context.Context, id commonids.Pu var model PublicIPAddress result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go index 355312beb5b9..52df067607a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipaddresses/version.go @@ -1,12 +1,10 @@ package publicipaddresses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publicipaddresses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publicipaddresses/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/README.md index a90506b04568..7463ba6b1835 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes` Documentation -The `publicipprefixes` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `publicipprefixes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") payload := publicipprefixes.PublicIPPrefix{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") read, err := client.Get(ctx, id, publicipprefixes.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIPPrefixValue") +id := publicipprefixes.NewPublicIPPrefixID("12345678-1234-9876-4563-123456789012", "example-resource-group", "publicIpPrefixName") payload := publicipprefixes.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/client.go index 7dfe8ac9af12..78db89733876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/client.go @@ -15,7 +15,7 @@ type PublicIPPrefixesClient struct { } func NewPublicIPPrefixesClientWithBaseURI(sdkApi sdkEnv.Api) (*PublicIPPrefixesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "publicipprefixes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "publicipprefixes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PublicIPPrefixesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/id_publicipprefix.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/id_publicipprefix.go index 2fe61b6d66bc..ba849d0aad0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/id_publicipprefix.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/id_publicipprefix.go @@ -42,7 +42,7 @@ func ParsePublicIPPrefixID(input string) (*PublicIPPrefixId, error) { } id := PublicIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePublicIPPrefixIDInsensitively(input string) (*PublicIPPrefixId, error) } id := PublicIPPrefixId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PublicIPPrefixId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPublicIPPrefixes", "publicIPPrefixes", "publicIPPrefixes"), - resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIPPrefixValue"), + resourceids.UserSpecifiedSegment("publicIPPrefixName", "publicIpPrefixName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_get.go index 15104f806131..4d05c32931a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PublicIPPrefixesClient) Get(ctx context.Context, id PublicIPPrefixId, op var model PublicIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_updatetags.go index e5257fc9717d..3111479b00a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/method_updatetags.go @@ -49,7 +49,6 @@ func (c PublicIPPrefixesClient) UpdateTags(ctx context.Context, id PublicIPPrefi var model PublicIPPrefix result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/version.go index bc5af520d2c6..326b97b4960b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/publicipprefixes/version.go @@ -1,12 +1,10 @@ package publicipprefixes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/publicipprefixes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/publicipprefixes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md index f5a0cc9da128..fc7bf7a3a0ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules` Documentation -The `routefilterrules` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `routefilterrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue", "routeFilterRuleValue") +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "ruleName") payload := routefilterrules.RouteFilterRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue", "routeFilterRuleValue") +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "ruleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue", "routeFilterRuleValue") +id := routefilterrules.NewRouteFilterRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routefilterrules.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilterrules.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") // alternatively `client.ListByRouteFilter(ctx, id)` can be used to do batched pagination items, err := client.ListByRouteFilterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go index 018917d75d93..87a6916e467b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/client.go @@ -15,7 +15,7 @@ type RouteFilterRulesClient struct { } func NewRouteFilterRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteFilterRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routefilterrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routefilterrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RouteFilterRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go index fc7b97a96ead..9cb0ba95fc88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilter.go @@ -42,7 +42,7 @@ func ParseRouteFilterID(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteFilterIDInsensitively(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteFilterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), - resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterValue"), + resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go index ef13326b0c4a..120d8a966e08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/id_routefilterrule.go @@ -44,7 +44,7 @@ func ParseRouteFilterRuleID(input string) (*RouteFilterRuleId, error) { } id := RouteFilterRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRouteFilterRuleIDInsensitively(input string) (*RouteFilterRuleId, erro } id := RouteFilterRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RouteFilterRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), - resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterValue"), + resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), resourceids.StaticSegment("staticRouteFilterRules", "routeFilterRules", "routeFilterRules"), - resourceids.UserSpecifiedSegment("routeFilterRuleName", "routeFilterRuleValue"), + resourceids.UserSpecifiedSegment("routeFilterRuleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go index c28ac9946372..66ebdba141b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/method_get.go @@ -45,7 +45,6 @@ func (c RouteFilterRulesClient) Get(ctx context.Context, id RouteFilterRuleId) ( var model RouteFilterRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go index edc52cbc29d1..af9896c7f073 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilterrules/version.go @@ -1,12 +1,10 @@ package routefilterrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routefilterrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routefilterrules/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md index ee63c6c6ee27..1de10a5d3567 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters` Documentation -The `routefilters` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `routefilters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") payload := routefilters.RouteFilter{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") read, err := client.Get(ctx, id, routefilters.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterValue") +id := routefilters.NewRouteFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeFilterName") payload := routefilters.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go index e4faeb1d622b..5bf2183b43df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/client.go @@ -15,7 +15,7 @@ type RouteFiltersClient struct { } func NewRouteFiltersClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteFiltersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routefilters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routefilters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RouteFiltersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go index 18b55731fae6..0e497c52d8bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/id_routefilter.go @@ -42,7 +42,7 @@ func ParseRouteFilterID(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteFilterIDInsensitively(input string) (*RouteFilterId, error) { } id := RouteFilterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteFilterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteFilters", "routeFilters", "routeFilters"), - resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterValue"), + resourceids.UserSpecifiedSegment("routeFilterName", "routeFilterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go index d44bd6d46b01..f57a061fb522 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RouteFiltersClient) Get(ctx context.Context, id RouteFilterId, options G var model RouteFilter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go index 33bbd5301d9d..5fe88949683e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/method_updatetags.go @@ -49,7 +49,6 @@ func (c RouteFiltersClient) UpdateTags(ctx context.Context, id RouteFilterId, in var model RouteFilter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go index a9b55c70849c..7b396bc540e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routefilters/version.go @@ -1,12 +1,10 @@ package routefilters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routefilters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routefilters/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md index b0f5eedb17b3..f9f99529dbc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes` Documentation -The `routes` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `routes` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue", "routeValue") +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") payload := routes.Route{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue", "routeValue") +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue", "routeValue") +id := routes.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName", "routeName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routes.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go index 4372f6947415..88e9f135cd15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/client.go @@ -15,7 +15,7 @@ type RoutesClient struct { } func NewRoutesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RoutesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go index c9e2c02ee1f7..55f4d71097a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_route.go @@ -44,7 +44,7 @@ func ParseRouteID(input string) (*RouteId, error) { } id := RouteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRouteIDInsensitively(input string) (*RouteId, error) { } id := RouteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RouteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), resourceids.StaticSegment("staticRoutes", "routes", "routes"), - resourceids.UserSpecifiedSegment("routeName", "routeValue"), + resourceids.UserSpecifiedSegment("routeName", "routeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go index 459719bc26c6..3fc7a0152246 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/id_routetable.go @@ -42,7 +42,7 @@ func ParseRouteTableID(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go index 8f641d28c5b8..306c6528c392 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/method_get.go @@ -45,7 +45,6 @@ func (c RoutesClient) Get(ctx context.Context, id RouteId) (result GetOperationR var model Route result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go index c2f4d35fea14..b345e5186e5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routes/version.go @@ -1,12 +1,10 @@ package routes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routes/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/README.md index dc3a641ef4bf..7169c1dd3004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables` Documentation -The `routetables` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `routetables` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") payload := routetables.RouteTable{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") read, err := client.Get(ctx, id, routetables.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableValue") +id := routetables.NewRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "routeTableName") payload := routetables.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/client.go index 26c9fb104ad9..b52049cd5f7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/client.go @@ -15,7 +15,7 @@ type RouteTablesClient struct { } func NewRouteTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*RouteTablesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "routetables", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "routetables", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RouteTablesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/id_routetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/id_routetable.go index 0f3c938daf78..a18bf05ff67c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/id_routetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/id_routetable.go @@ -42,7 +42,7 @@ func ParseRouteTableID(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRouteTableIDInsensitively(input string) (*RouteTableId, error) { } id := RouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_get.go index cb19ef16deb2..6a2409acbfb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c RouteTablesClient) Get(ctx context.Context, id RouteTableId, options Get var model RouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_updatetags.go index b2db87b8208b..258335fc6008 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/method_updatetags.go @@ -49,7 +49,6 @@ func (c RouteTablesClient) UpdateTags(ctx context.Context, id RouteTableId, inpu var model RouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/version.go index 0d160ec074dc..bcbbea5d19b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/routetables/version.go @@ -1,12 +1,10 @@ package routetables -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/routetables/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/routetables/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md index 795b3997f96e..8fe6d3f7d00c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections` Documentation -The `scopeconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `scopeconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "scopeConnectionValue") +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") payload := scopeconnections.ScopeConnection{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "scopeConnectionValue") +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "scopeConnectionValue") +id := scopeconnections.NewScopeConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "scopeConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := scopeconnections.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") // alternatively `client.List(ctx, id, scopeconnections.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, scopeconnections.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go index aa7247e35c72..81942e9b5e95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/client.go @@ -15,7 +15,7 @@ type ScopeConnectionsClient struct { } func NewScopeConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ScopeConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "scopeconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "scopeconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ScopeConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go index 259fe7f2afae..9deea7f39437 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go index dd1d78f3b945..9af347c43b63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/id_scopeconnection.go @@ -44,7 +44,7 @@ func ParseScopeConnectionID(input string) (*ScopeConnectionId, error) { } id := ScopeConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseScopeConnectionIDInsensitively(input string) (*ScopeConnectionId, erro } id := ScopeConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ScopeConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticScopeConnections", "scopeConnections", "scopeConnections"), - resourceids.UserSpecifiedSegment("scopeConnectionName", "scopeConnectionValue"), + resourceids.UserSpecifiedSegment("scopeConnectionName", "scopeConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go index c0784b21bd5c..08383ec6587f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ScopeConnectionsClient) CreateOrUpdate(ctx context.Context, id ScopeConn var model ScopeConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go index 97616b65ce8b..67789a31c53e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_get.go @@ -45,7 +45,6 @@ func (c ScopeConnectionsClient) Get(ctx context.Context, id ScopeConnectionId) ( var model ScopeConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go index c819623c65e2..c9f73b614110 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go index a424fa20846b..0d7f8f4c7f4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/scopeconnections/version.go @@ -1,12 +1,10 @@ package scopeconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/scopeconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/scopeconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md index 3d5c57cb86af..58fbc13cebdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations` Documentation -The `securityadminconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `securityadminconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue") +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") payload := securityadminconfigurations.SecurityAdminConfiguration{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue") +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id, securityadminconfigurations.DefaultDele ```go ctx := context.TODO() -id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "securityAdminConfigurationValue") +id := securityadminconfigurations.NewSecurityAdminConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue") +id := securityadminconfigurations.NewNetworkManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName") // alternatively `client.List(ctx, id, securityadminconfigurations.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, securityadminconfigurations.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go index 7629a2dcefb3..c4acda9a655c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/client.go @@ -15,7 +15,7 @@ type SecurityAdminConfigurationsClient struct { } func NewSecurityAdminConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityAdminConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "securityadminconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "securityadminconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SecurityAdminConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go index cc45635d1cc8..5829592a2f1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_networkmanager.go @@ -42,7 +42,7 @@ func ParseNetworkManagerID(input string) (*NetworkManagerId, error) { } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkManagerIDInsensitively(input string) (*NetworkManagerId, error) } id := NetworkManagerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkManagerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go index c481f6a158bb..30b23886bf37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/id_securityadminconfiguration.go @@ -44,7 +44,7 @@ func ParseSecurityAdminConfigurationID(input string) (*SecurityAdminConfiguratio } id := SecurityAdminConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSecurityAdminConfigurationIDInsensitively(input string) (*SecurityAdmi } id := SecurityAdminConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SecurityAdminConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticSecurityAdminConfigurations", "securityAdminConfigurations", "securityAdminConfigurations"), - resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "securityAdminConfigurationValue"), + resourceids.UserSpecifiedSegment("securityAdminConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go index e285ab5384c1..2406a218954f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c SecurityAdminConfigurationsClient) CreateOrUpdate(ctx context.Context, i var model SecurityAdminConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go index 82087f7a71c5..98f2658625f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go index 6046f27ef91e..65a62286882d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_get.go @@ -45,7 +45,6 @@ func (c SecurityAdminConfigurationsClient) Get(ctx context.Context, id SecurityA var model SecurityAdminConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go index 8fc4c2c91dc3..a4abe4c74d37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go index 2eea2ba61b0e..6e069e589d3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityadminconfigurations/version.go @@ -1,12 +1,10 @@ package securityadminconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/securityadminconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/securityadminconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md index b5100f84ca10..84517d3ef7cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders` Documentation -The `securitypartnerproviders` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `securitypartnerproviders` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue") +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") payload := securitypartnerproviders.SecurityPartnerProvider{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue") +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue") +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderValue") +id := securitypartnerproviders.NewSecurityPartnerProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "securityPartnerProviderName") payload := securitypartnerproviders.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go index e87ed7e5d0eb..7752e07fcf37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/client.go @@ -15,7 +15,7 @@ type SecurityPartnerProvidersClient struct { } func NewSecurityPartnerProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityPartnerProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "securitypartnerproviders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "securitypartnerproviders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SecurityPartnerProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go index 32dd3433d4a1..6cdcf1022eed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/id_securitypartnerprovider.go @@ -42,7 +42,7 @@ func ParseSecurityPartnerProviderID(input string) (*SecurityPartnerProviderId, e } id := SecurityPartnerProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSecurityPartnerProviderIDInsensitively(input string) (*SecurityPartner } id := SecurityPartnerProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SecurityPartnerProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticSecurityPartnerProviders", "securityPartnerProviders", "securityPartnerProviders"), - resourceids.UserSpecifiedSegment("securityPartnerProviderName", "securityPartnerProviderValue"), + resourceids.UserSpecifiedSegment("securityPartnerProviderName", "securityPartnerProviderName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go index ca56a913bc78..5b244206a3f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_get.go @@ -45,7 +45,6 @@ func (c SecurityPartnerProvidersClient) Get(ctx context.Context, id SecurityPart var model SecurityPartnerProvider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go index 7cbef507221b..dfd04e92e889 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/method_updatetags.go @@ -49,7 +49,6 @@ func (c SecurityPartnerProvidersClient) UpdateTags(ctx context.Context, id Secur var model SecurityPartnerProvider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go index b146cabadecc..f39202b8b1b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securitypartnerproviders/version.go @@ -1,12 +1,10 @@ package securitypartnerproviders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/securitypartnerproviders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/securitypartnerproviders/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md index 14c7282f4161..ad31a0539efa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules` Documentation -The `securityrules` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `securityrules` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue", "securityRuleValue") +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") payload := securityrules.SecurityRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue", "defaultSecurityRuleValue") +id := securityrules.NewDefaultSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "defaultSecurityRuleName") read, err := client.DefaultSecurityRulesGet(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") // alternatively `client.DefaultSecurityRulesList(ctx, id)` can be used to do batched pagination items, err := client.DefaultSecurityRulesListComplete(ctx, id) @@ -74,7 +74,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue", "securityRuleValue") +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -86,7 +86,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue", "securityRuleValue") +id := securityrules.NewSecurityRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName", "securityRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupValue") +id := securityrules.NewNetworkSecurityGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkSecurityGroupName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go index 1fbf9b2c78ca..fe76b456975e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/client.go @@ -15,7 +15,7 @@ type SecurityRulesClient struct { } func NewSecurityRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "securityrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "securityrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SecurityRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go index a09823c4a350..0a8b4713607d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_defaultsecurityrule.go @@ -44,7 +44,7 @@ func ParseDefaultSecurityRuleID(input string) (*DefaultSecurityRuleId, error) { } id := DefaultSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDefaultSecurityRuleIDInsensitively(input string) (*DefaultSecurityRule } id := DefaultSecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DefaultSecurityRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupValue"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), resourceids.StaticSegment("staticDefaultSecurityRules", "defaultSecurityRules", "defaultSecurityRules"), - resourceids.UserSpecifiedSegment("defaultSecurityRuleName", "defaultSecurityRuleValue"), + resourceids.UserSpecifiedSegment("defaultSecurityRuleName", "defaultSecurityRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go index 9b818e973d9d..c684ad866966 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_networksecuritygroup.go @@ -42,7 +42,7 @@ func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error) } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGro } id := NetworkSecurityGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkSecurityGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupValue"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go index da153b38f424..105879c11331 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/id_securityrule.go @@ -44,7 +44,7 @@ func ParseSecurityRuleID(input string) (*SecurityRuleId, error) { } id := SecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSecurityRuleIDInsensitively(input string) (*SecurityRuleId, error) { } id := SecurityRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SecurityRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkSecurityGroups", "networkSecurityGroups", "networkSecurityGroups"), - resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupValue"), + resourceids.UserSpecifiedSegment("networkSecurityGroupName", "networkSecurityGroupName"), resourceids.StaticSegment("staticSecurityRules", "securityRules", "securityRules"), - resourceids.UserSpecifiedSegment("securityRuleName", "securityRuleValue"), + resourceids.UserSpecifiedSegment("securityRuleName", "securityRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go index a672fd767b72..0d436a237068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_defaultsecurityrulesget.go @@ -45,7 +45,6 @@ func (c SecurityRulesClient) DefaultSecurityRulesGet(ctx context.Context, id Def var model SecurityRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go index effcc9d3d7b2..85ddb4310ff1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/method_get.go @@ -45,7 +45,6 @@ func (c SecurityRulesClient) Get(ctx context.Context, id SecurityRuleId) (result var model SecurityRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go index b5fa1aa3a32c..eb8a34469b80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/securityrules/version.go @@ -1,12 +1,10 @@ package securityrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/securityrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/securityrules/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/README.md index d0a65ce75488..ce6eb94a813f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies` Documentation -The `serviceendpointpolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `serviceendpointpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue") +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") payload := serviceendpointpolicies.ServiceEndpointPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue") +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue") +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") read, err := client.Get(ctx, id, serviceendpointpolicies.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue") +id := serviceendpointpolicies.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") payload := serviceendpointpolicies.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/client.go index d92547bd44bb..4efc8d43b2ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/client.go @@ -15,7 +15,7 @@ type ServiceEndpointPoliciesClient struct { } func NewServiceEndpointPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceEndpointPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serviceendpointpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serviceendpointpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceEndpointPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/id_serviceendpointpolicy.go index 4b66cdb57fee..651f7f56783e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/id_serviceendpointpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/id_serviceendpointpolicy.go @@ -42,7 +42,7 @@ func ParseServiceEndpointPolicyID(input string) (*ServiceEndpointPolicyId, error } id := ServiceEndpointPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceEndpointPolicyIDInsensitively(input string) (*ServiceEndpointPo } id := ServiceEndpointPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceEndpointPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticServiceEndpointPolicies", "serviceEndpointPolicies", "serviceEndpointPolicies"), - resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyValue"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go index 8929b01c755b..ce97f45af4d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ServiceEndpointPoliciesClient) Get(ctx context.Context, id ServiceEndpoi var model ServiceEndpointPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_updatetags.go index 92a472479adc..d260b3470330 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/method_updatetags.go @@ -49,7 +49,6 @@ func (c ServiceEndpointPoliciesClient) UpdateTags(ctx context.Context, id Servic var model ServiceEndpointPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/version.go index 19ed4f1b403e..7ff17beff19d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicies/version.go @@ -1,12 +1,10 @@ package serviceendpointpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serviceendpointpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serviceendpointpolicies/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md index a3c2eaedd157..cbe875beabc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions` Documentation -The `serviceendpointpolicydefinitions` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `serviceendpointpolicydefinitions` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue", "serviceEndpointPolicyDefinitionValue") +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") payload := serviceendpointpolicydefinitions.ServiceEndpointPolicyDefinition{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue", "serviceEndpointPolicyDefinitionValue") +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue", "serviceEndpointPolicyDefinitionValue") +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName", "serviceEndpointPolicyDefinitionName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyValue") +id := serviceendpointpolicydefinitions.NewServiceEndpointPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serviceEndpointPolicyName") // alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByResourceGroupComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go index c75845bd1b54..0b0e9163605c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/client.go @@ -15,7 +15,7 @@ type ServiceEndpointPolicyDefinitionsClient struct { } func NewServiceEndpointPolicyDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceEndpointPolicyDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serviceendpointpolicydefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serviceendpointpolicydefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceEndpointPolicyDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go index 2d85c6599860..901a08b5cfcd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicy.go @@ -42,7 +42,7 @@ func ParseServiceEndpointPolicyID(input string) (*ServiceEndpointPolicyId, error } id := ServiceEndpointPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServiceEndpointPolicyIDInsensitively(input string) (*ServiceEndpointPo } id := ServiceEndpointPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServiceEndpointPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticServiceEndpointPolicies", "serviceEndpointPolicies", "serviceEndpointPolicies"), - resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyValue"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go index edee1adbeda0..2af5450738c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/id_serviceendpointpolicydefinition.go @@ -44,7 +44,7 @@ func ParseServiceEndpointPolicyDefinitionID(input string) (*ServiceEndpointPolic } id := ServiceEndpointPolicyDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServiceEndpointPolicyDefinitionIDInsensitively(input string) (*Service } id := ServiceEndpointPolicyDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServiceEndpointPolicyDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticServiceEndpointPolicies", "serviceEndpointPolicies", "serviceEndpointPolicies"), - resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyValue"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyName", "serviceEndpointPolicyName"), resourceids.StaticSegment("staticServiceEndpointPolicyDefinitions", "serviceEndpointPolicyDefinitions", "serviceEndpointPolicyDefinitions"), - resourceids.UserSpecifiedSegment("serviceEndpointPolicyDefinitionName", "serviceEndpointPolicyDefinitionValue"), + resourceids.UserSpecifiedSegment("serviceEndpointPolicyDefinitionName", "serviceEndpointPolicyDefinitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go index e9e63e502326..8aff5f741672 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/method_get.go @@ -45,7 +45,6 @@ func (c ServiceEndpointPolicyDefinitionsClient) Get(ctx context.Context, id Serv var model ServiceEndpointPolicyDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go index f28b903be5ae..4fad17904f57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/serviceendpointpolicydefinitions/version.go @@ -1,12 +1,10 @@ package serviceendpointpolicydefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serviceendpointpolicydefinitions/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md index 898ce2e60506..c5a0e25fd879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags` Documentation -The `servicetags` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `servicetags` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.ServiceTagInformationList(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions())` can be used to do batched pagination items, err := client.ServiceTagInformationListComplete(ctx, id, servicetags.DefaultServiceTagInformationListOperationOptions()) @@ -41,7 +41,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := servicetags.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.ServiceTagsList(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go index 7037716c1cf9..33295761773a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/client.go @@ -15,7 +15,7 @@ type ServiceTagsClient struct { } func NewServiceTagsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceTagsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servicetags", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servicetags", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceTagsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go index b22b2cb34d79..82d35d1f77c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go index 7c6de375541f..1150809dc2b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetaginformationlist.go @@ -40,6 +40,7 @@ func (o ServiceTagInformationListOperationOptions) ToHeaders() *client.Headers { func (o ServiceTagInformationListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go index f83c293d79bb..a25ce1872536 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/method_servicetagslist.go @@ -46,7 +46,6 @@ func (c ServiceTagsClient) ServiceTagsList(ctx context.Context, id LocationId) ( var model ServiceTagsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go index 55cddfd065ef..bc7a69e798e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/servicetags/version.go @@ -1,12 +1,10 @@ package servicetags -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servicetags/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servicetags/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md index cc2c14809eab..8704ed2ed7bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers` Documentation -The `staticmembers` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `staticmembers` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue", "staticMemberValue") +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") payload := staticmembers.StaticMember{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue", "staticMemberValue") +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue", "staticMemberValue") +id := staticmembers.NewStaticMemberID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName", "staticMemberName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerValue", "networkGroupValue") +id := staticmembers.NewNetworkGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkManagerName", "networkGroupName") // alternatively `client.List(ctx, id, staticmembers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, staticmembers.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go index 0bd2daa81d66..9357db6d5f3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/client.go @@ -15,7 +15,7 @@ type StaticMembersClient struct { } func NewStaticMembersClientWithBaseURI(sdkApi sdkEnv.Api) (*StaticMembersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "staticmembers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "staticmembers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StaticMembersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go index cbc610731ad4..d846cd377f4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_networkgroup.go @@ -44,7 +44,7 @@ func ParseNetworkGroupID(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkGroupIDInsensitively(input string) (*NetworkGroupId, error) { } id := NetworkGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupValue"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go index e972ef7ffc29..7bbcff626d34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/id_staticmember.go @@ -46,7 +46,7 @@ func ParseStaticMemberID(input string) (*StaticMemberId, error) { } id := StaticMemberId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseStaticMemberIDInsensitively(input string) (*StaticMemberId, error) { } id := StaticMemberId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id StaticMemberId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkManagers", "networkManagers", "networkManagers"), - resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerValue"), + resourceids.UserSpecifiedSegment("networkManagerName", "networkManagerName"), resourceids.StaticSegment("staticNetworkGroups", "networkGroups", "networkGroups"), - resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupValue"), + resourceids.UserSpecifiedSegment("networkGroupName", "networkGroupName"), resourceids.StaticSegment("staticStaticMembers", "staticMembers", "staticMembers"), - resourceids.UserSpecifiedSegment("staticMemberName", "staticMemberValue"), + resourceids.UserSpecifiedSegment("staticMemberName", "staticMemberName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go index 6921f0aedf3a..f4ad175116b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_createorupdate.go @@ -50,7 +50,6 @@ func (c StaticMembersClient) CreateOrUpdate(ctx context.Context, id StaticMember var model StaticMember result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go index 11fc970af6aa..8f9d30b17abe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_get.go @@ -45,7 +45,6 @@ func (c StaticMembersClient) Get(ctx context.Context, id StaticMemberId) (result var model StaticMember result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go index ac0788a5a341..ef104e6865f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go index a9e0f4752be7..4e136e775aab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/staticmembers/version.go @@ -1,12 +1,10 @@ package staticmembers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/staticmembers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/staticmembers/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/README.md index 7e32b503ceae..93d686c9656d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets` Documentation -The `subnets` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `subnets` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") payload := subnets.Subnet{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") read, err := client.Get(ctx, id, subnets.DefaultGetOperationOptions()) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/client.go index b1f947b47be9..d3ece632ec64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/client.go @@ -15,7 +15,7 @@ type SubnetsClient struct { } func NewSubnetsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubnetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "subnets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "subnets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SubnetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/method_get.go index d77795ad632f..9340f66305d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c SubnetsClient) Get(ctx context.Context, id commonids.SubnetId, options G var model Subnet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/version.go index 33b5dc7fb8a1..9aee27352b9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/subnets/version.go @@ -1,12 +1,10 @@ package subnets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subnets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subnets/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md index 8bb79fc4b2c1..c081df22d795 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics` Documentation -The `trafficanalytics` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `trafficanalytics` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := trafficanalytics.FlowLogStatusParameters{ // ... @@ -41,7 +41,7 @@ if err := client.NetworkWatchersGetFlowLogStatusThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherValue") +id := trafficanalytics.NewNetworkWatcherID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkWatcherName") payload := trafficanalytics.FlowLogInformation{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go index 78e1d6ab331d..91c746485a34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/client.go @@ -15,7 +15,7 @@ type TrafficAnalyticsClient struct { } func NewTrafficAnalyticsClientWithBaseURI(sdkApi sdkEnv.Api) (*TrafficAnalyticsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "trafficanalytics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "trafficanalytics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TrafficAnalyticsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go index f13408f03b5c..331d6af7e176 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/id_networkwatcher.go @@ -42,7 +42,7 @@ func ParseNetworkWatcherID(input string) (*NetworkWatcherId, error) { } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkWatcherIDInsensitively(input string) (*NetworkWatcherId, error) } id := NetworkWatcherId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkWatcherId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkWatchers", "networkWatchers", "networkWatchers"), - resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherValue"), + resourceids.UserSpecifiedSegment("networkWatcherName", "networkWatcherName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go index 270406057d80..ca09dc5d2324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/trafficanalytics/version.go @@ -1,12 +1,10 @@ package trafficanalytics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/trafficanalytics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/trafficanalytics/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md index 562f3bee5e9b..557b8ec210b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages` Documentation -The `usages` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `usages` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := usages.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go index 772d6a5be35b..5b6ce18413b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/client.go @@ -15,7 +15,7 @@ type UsagesClient struct { } func NewUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*UsagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "usages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "usages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UsagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go index 6499c99bc79b..2fe99ba303b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go index 6715f1676b01..1f75d534194e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/usages/version.go @@ -1,12 +1,10 @@ package usages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/usages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/usages/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md index cccaf901249c..69ff94255e26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap` Documentation -The `vipswap` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `vipswap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "cloudServiceValue") +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "groupName", "resourceName") payload := vipswap.SwapResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "cloudServiceValue") +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "groupName", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "resourceGroupValue", "cloudServiceValue") +id := vipswap.NewCloudServiceID("12345678-1234-9876-4563-123456789012", "groupName", "resourceName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go index 2a7d8c2afe71..d573391540e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/client.go @@ -15,7 +15,7 @@ type VipSwapClient struct { } func NewVipSwapClientWithBaseURI(sdkApi sdkEnv.Api) (*VipSwapClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vipswap", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vipswap", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VipSwapClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go index 5801e90709d1..0b7dd65e3bd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/id_cloudservice.go @@ -42,7 +42,7 @@ func ParseCloudServiceID(input string) (*CloudServiceId, error) { } id := CloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCloudServiceIDInsensitively(input string) (*CloudServiceId, error) { } id := CloudServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,11 +111,11 @@ func (id CloudServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), - resourceids.UserSpecifiedSegment("resourceGroupName", "resourceGroupValue"), + resourceids.UserSpecifiedSegment("resourceGroupName", "groupName"), resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticCloudServices", "cloudServices", "cloudServices"), - resourceids.UserSpecifiedSegment("cloudServiceName", "cloudServiceValue"), + resourceids.UserSpecifiedSegment("cloudServiceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go index 2d61c8f37e02..598d23716767 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_get.go @@ -46,7 +46,6 @@ func (c VipSwapClient) Get(ctx context.Context, id CloudServiceId) (result GetOp var model SwapResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go index 32407cc2c5c6..35cd678f8c44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/method_list.go @@ -46,7 +46,6 @@ func (c VipSwapClient) List(ctx context.Context, id CloudServiceId) (result List var model SwapResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go index e7ec77ea960a..e6db46609f42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vipswap/version.go @@ -1,12 +1,10 @@ package vipswap -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vipswap/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vipswap/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md index 5bc1733befab..1326274a1aa8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites` Documentation -The `virtualappliancesites` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualappliancesites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "virtualApplianceSiteValue") +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "siteName") payload := virtualappliancesites.VirtualApplianceSite{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "virtualApplianceSiteValue") +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "siteName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "virtualApplianceSiteValue") +id := virtualappliancesites.NewVirtualApplianceSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "siteName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualappliancesites.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := virtualappliancesites.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go index 415b8e6e46b8..e99ff0ccd1bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/client.go @@ -15,7 +15,7 @@ type VirtualApplianceSitesClient struct { } func NewVirtualApplianceSitesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualApplianceSitesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualappliancesites", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualappliancesites", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualApplianceSitesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go index d414a3c2d420..acb6a0d74134 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_networkvirtualappliance.go @@ -42,7 +42,7 @@ func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, e } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualA } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go index a0500e43c749..87e626d1b0ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/id_virtualappliancesite.go @@ -44,7 +44,7 @@ func ParseVirtualApplianceSiteID(input string) (*VirtualApplianceSiteId, error) } id := VirtualApplianceSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualApplianceSiteIDInsensitively(input string) (*VirtualApplianceSi } id := VirtualApplianceSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualApplianceSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), resourceids.StaticSegment("staticVirtualApplianceSites", "virtualApplianceSites", "virtualApplianceSites"), - resourceids.UserSpecifiedSegment("virtualApplianceSiteName", "virtualApplianceSiteValue"), + resourceids.UserSpecifiedSegment("virtualApplianceSiteName", "siteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go index c78f7f1cf64d..820f76d71d28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/method_get.go @@ -45,7 +45,6 @@ func (c VirtualApplianceSitesClient) Get(ctx context.Context, id VirtualApplianc var model VirtualApplianceSite result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go index 68c6291c89ae..7138ce3a1ee1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualappliancesites/version.go @@ -1,12 +1,10 @@ package virtualappliancesites -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualappliancesites/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualappliancesites/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md index c9adc572fa53..979887c315e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus` Documentation -The `virtualapplianceskus` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualapplianceskus` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualapplianceskus.NewNetworkVirtualApplianceSkuID("12345678-1234-9876-4563-123456789012", "networkVirtualApplianceSkuValue") +id := virtualapplianceskus.NewNetworkVirtualApplianceSkuID("12345678-1234-9876-4563-123456789012", "skuName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go index db6e9902bb93..90d73eb61040 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/client.go @@ -15,7 +15,7 @@ type VirtualApplianceSkusClient struct { } func NewVirtualApplianceSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualApplianceSkusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualapplianceskus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualapplianceskus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualApplianceSkusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go index a2683ac973a4..46855c565e35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/id_networkvirtualappliancesku.go @@ -40,7 +40,7 @@ func ParseNetworkVirtualApplianceSkuID(input string) (*NetworkVirtualApplianceSk } id := NetworkVirtualApplianceSkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseNetworkVirtualApplianceSkuIDInsensitively(input string) (*NetworkVirtu } id := NetworkVirtualApplianceSkuId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id NetworkVirtualApplianceSkuId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualApplianceSkus", "networkVirtualApplianceSkus", "networkVirtualApplianceSkus"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceSkuName", "networkVirtualApplianceSkuValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceSkuName", "skuName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go index 87cc1eef20e0..c570427c4a39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/method_get.go @@ -45,7 +45,6 @@ func (c VirtualApplianceSkusClient) Get(ctx context.Context, id NetworkVirtualAp var model NetworkVirtualApplianceSku result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go index 4d3d92fd637f..a532397fa46e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualapplianceskus/version.go @@ -1,12 +1,10 @@ package virtualapplianceskus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualapplianceskus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualapplianceskus/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/README.md index b5eff494cbad..8a40ef040e4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections` Documentation -The `virtualnetworkgatewayconnections` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworkgatewayconnections` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.VirtualNetworkGatewayConnection{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") if err := client.GetIkeSasThenPoll(ctx, id); err != nil { // handle the error @@ -82,7 +82,7 @@ if err := client.GetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") read, err := client.GetSharedKey(ctx, id) if err != nil { @@ -115,7 +115,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") if err := client.ResetConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -127,7 +127,7 @@ if err := client.ResetConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.ConnectionResetSharedKey{ // ... @@ -144,7 +144,7 @@ if err := client.ResetSharedKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.ConnectionSharedKey{ // ... @@ -161,7 +161,7 @@ if err := client.SetSharedKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.VpnPacketCaptureStartParameters{ // ... @@ -178,7 +178,7 @@ if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.VpnPacketCaptureStopParameters{ // ... @@ -195,7 +195,7 @@ if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgatewayconnections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgatewayconnections.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/client.go index f0cf4471c900..b74a1276981e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/client.go @@ -15,7 +15,7 @@ type VirtualNetworkGatewayConnectionsClient struct { } func NewVirtualNetworkGatewayConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewayConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworkgatewayconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgatewayconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkGatewayConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/id_connection.go index 23a8c6154a78..fcc51d5666bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/id_connection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/id_connection.go @@ -42,7 +42,7 @@ func ParseConnectionID(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionValue"), + resourceids.UserSpecifiedSegment("connectionName", "virtualNetworkGatewayConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_get.go index e00568d96cbb..842bab814e9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkGatewayConnectionsClient) Get(ctx context.Context, id Conn var model VirtualNetworkGatewayConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_getsharedkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_getsharedkey.go index bc9ecd134667..3606b2efb656 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_getsharedkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/method_getsharedkey.go @@ -46,7 +46,6 @@ func (c VirtualNetworkGatewayConnectionsClient) GetSharedKey(ctx context.Context var model ConnectionSharedKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/version.go index ec7a647754c6..5ceb4d62c8a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgatewayconnections/version.go @@ -1,12 +1,10 @@ package virtualnetworkgatewayconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworkgatewayconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworkgatewayconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md index 73a96048ef13..0e7463e6c86e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways` Documentation -The `virtualnetworkgateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworkgateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VirtualNetworkGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.P2SVpnConnectionRequest{ // ... @@ -71,7 +71,7 @@ if err := client.DisconnectVirtualNetworkGatewayVpnConnectionsThenPoll(ctx, id, ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VpnClientParameters{ // ... @@ -88,7 +88,7 @@ if err := client.GenerateVpnProfileThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VpnClientParameters{ // ... @@ -105,7 +105,7 @@ if err := client.GeneratevpnclientpackageThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") read, err := client.Get(ctx, id) if err != nil { @@ -121,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.DefaultGetAdvertisedRoutesOperationOptions()); err != nil { // handle the error @@ -133,7 +133,7 @@ if err := client.GetAdvertisedRoutesThenPoll(ctx, id, virtualnetworkgateways.Def ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.DefaultGetBgpPeerStatusOperationOptions()); err != nil { // handle the error @@ -145,7 +145,7 @@ if err := client.GetBgpPeerStatusThenPoll(ctx, id, virtualnetworkgateways.Defaul ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -157,7 +157,7 @@ if err := client.GetLearnedRoutesThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetVpnProfilePackageUrlThenPoll(ctx, id); err != nil { // handle the error @@ -169,7 +169,7 @@ if err := client.GetVpnProfilePackageUrlThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { // handle the error @@ -181,7 +181,7 @@ if err := client.GetVpnclientConnectionHealthThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.GetVpnclientIPsecParametersThenPoll(ctx, id); err != nil { // handle the error @@ -210,7 +210,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") // alternatively `client.ListConnections(ctx, id)` can be used to do batched pagination items, err := client.ListConnectionsComplete(ctx, id) @@ -227,7 +227,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOperationOptions()); err != nil { // handle the error @@ -239,7 +239,7 @@ if err := client.ResetThenPoll(ctx, id, virtualnetworkgateways.DefaultResetOpera ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { // handle the error @@ -251,7 +251,7 @@ if err := client.ResetVpnClientSharedKeyThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VpnClientIPsecParameters{ // ... @@ -268,7 +268,7 @@ if err := client.SetVpnclientIPsecParametersThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VpnPacketCaptureStartParameters{ // ... @@ -285,7 +285,7 @@ if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.VpnPacketCaptureStopParameters{ // ... @@ -302,7 +302,7 @@ if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") read, err := client.SupportedVpnDevices(ctx, id) if err != nil { @@ -318,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") payload := virtualnetworkgateways.TagsObject{ // ... @@ -335,7 +335,7 @@ if err := client.UpdateTagsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue", "natRuleValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") payload := virtualnetworkgateways.VirtualNetworkGatewayNatRule{ // ... @@ -352,7 +352,7 @@ if err := client.VirtualNetworkGatewayNatRulesCreateOrUpdateThenPoll(ctx, id, pa ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue", "natRuleValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -364,7 +364,7 @@ if err := client.VirtualNetworkGatewayNatRulesDeleteThenPoll(ctx, id); err != ni ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue", "natRuleValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName", "natRuleName") read, err := client.VirtualNetworkGatewayNatRulesGet(ctx, id) if err != nil { @@ -380,7 +380,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayValue") +id := virtualnetworkgateways.NewVirtualNetworkGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayName") // alternatively `client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGateway(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayComplete(ctx, id) @@ -397,7 +397,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := virtualnetworkgateways.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkGatewayConnectionName") payload := virtualnetworkgateways.VpnDeviceScriptParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go index 32ede23bc601..56907b3d1b47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/client.go @@ -15,7 +15,7 @@ type VirtualNetworkGatewaysClient struct { } func NewVirtualNetworkGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworkgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go index fb9191036b56..fb0eb751b399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_connection.go @@ -42,7 +42,7 @@ func ParseConnectionID(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionValue"), + resourceids.UserSpecifiedSegment("connectionName", "virtualNetworkGatewayConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go index 4763c88cab1b..37161e508ae5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgateway.go @@ -42,7 +42,7 @@ func ParseVirtualNetworkGatewayID(input string) (*VirtualNetworkGatewayId, error } id := VirtualNetworkGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualNetworkGatewayIDInsensitively(input string) (*VirtualNetworkGat } id := VirtualNetworkGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualNetworkGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), - resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayValue"), + resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go index 41c5df8eedd4..eefda2a39b13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/id_virtualnetworkgatewaynatrule.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkGatewayNatRuleID(input string) (*VirtualNetworkGatewayNa } id := VirtualNetworkGatewayNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkGatewayNatRuleIDInsensitively(input string) (*VirtualNet } id := VirtualNetworkGatewayNatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkGatewayNatRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualNetworkGateways", "virtualNetworkGateways", "virtualNetworkGateways"), - resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayValue"), + resourceids.UserSpecifiedSegment("virtualNetworkGatewayName", "virtualNetworkGatewayName"), resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), - resourceids.UserSpecifiedSegment("natRuleName", "natRuleValue"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go index 0f42a04cd89f..403f9e12374f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkGatewaysClient) Get(ctx context.Context, id VirtualNetwork var model VirtualNetworkGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go index d0dde50a8c63..969c71ee3172 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getadvertisedroutes.go @@ -37,6 +37,7 @@ func (o GetAdvertisedRoutesOperationOptions) ToHeaders() *client.Headers { func (o GetAdvertisedRoutesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go index 5e6a04ac485d..33e243af246e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_getbgppeerstatus.go @@ -37,6 +37,7 @@ func (o GetBgpPeerStatusOperationOptions) ToHeaders() *client.Headers { func (o GetBgpPeerStatusOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go index 433a2126e075..fb6210d0c1ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_reset.go @@ -37,6 +37,7 @@ func (o ResetOperationOptions) ToHeaders() *client.Headers { func (o ResetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go index c7d78912ab2f..7b81cd2d32c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_supportedvpndevices.go @@ -46,7 +46,6 @@ func (c VirtualNetworkGatewaysClient) SupportedVpnDevices(ctx context.Context, i var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go index 8347acb37cd6..10dc0fac1a6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_virtualnetworkgatewaynatrulesget.go @@ -45,7 +45,6 @@ func (c VirtualNetworkGatewaysClient) VirtualNetworkGatewayNatRulesGet(ctx conte var model VirtualNetworkGatewayNatRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go index b26739321492..0dbfcf3f88f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/method_vpndeviceconfigurationscript.go @@ -50,7 +50,6 @@ func (c VirtualNetworkGatewaysClient) VpnDeviceConfigurationScript(ctx context.C var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go index 82e499633cba..135ef9d21e7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkgateways/version.go @@ -1,12 +1,10 @@ package virtualnetworkgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworkgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworkgateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md index 2e811185d5f0..5eef086fd7b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings` Documentation -The `virtualnetworkpeerings` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworkpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "virtualNetworkPeeringValue") +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") payload := virtualnetworkpeerings.VirtualNetworkPeering{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworkpeerings ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "virtualNetworkPeeringValue") +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "virtualNetworkPeeringValue") +id := virtualnetworkpeerings.NewVirtualNetworkPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "virtualNetworkPeeringName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go index 8eb7455514c6..a8632e2ec55e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/client.go @@ -15,7 +15,7 @@ type VirtualNetworkPeeringsClient struct { } func NewVirtualNetworkPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkPeeringsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworkpeerings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkpeerings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkPeeringsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go index a72d63bb3a55..03298e7f7068 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/id_virtualnetworkpeering.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkPeeringID(input string) (*VirtualNetworkPeeringId, error } id := VirtualNetworkPeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkPeeringIDInsensitively(input string) (*VirtualNetworkPee } id := VirtualNetworkPeeringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkPeeringId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualNetworks", "virtualNetworks", "virtualNetworks"), - resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkValue"), + resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkName"), resourceids.StaticSegment("staticVirtualNetworkPeerings", "virtualNetworkPeerings", "virtualNetworkPeerings"), - resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "virtualNetworkPeeringValue"), + resourceids.UserSpecifiedSegment("virtualNetworkPeeringName", "virtualNetworkPeeringName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go index aba174940d21..950797b73028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_createorupdate.go @@ -37,6 +37,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go index 81671aa625e2..8bc92358897c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkPeeringsClient) Get(ctx context.Context, id VirtualNetwork var model VirtualNetworkPeering result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go index 3c2b16d74c69..15fd63fe3252 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworkpeerings/version.go @@ -1,12 +1,10 @@ package virtualnetworkpeerings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworkpeerings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworkpeerings/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md index 97896ffc4f62..f834ef3c4a90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks` Documentation -The `virtualnetworks` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := virtualnetworks.VirtualNetwork{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") read, err := client.Get(ctx, id, virtualnetworks.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") // alternatively `client.ResourceNavigationLinksList(ctx, id)` can be used to do batched pagination items, err := client.ResourceNavigationLinksListComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") // alternatively `client.ServiceAssociationLinksList(ctx, id)` can be used to do batched pagination items, err := client.ServiceAssociationLinksListComplete(ctx, id) @@ -138,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") payload := virtualnetworks.PrepareNetworkPoliciesRequest{ // ... @@ -155,7 +155,7 @@ if err := client.SubnetsPrepareNetworkPoliciesThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue", "subnetValue") +id := commonids.NewSubnetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName", "subnetName") payload := virtualnetworks.UnprepareNetworkPoliciesRequest{ // ... @@ -172,7 +172,7 @@ if err := client.SubnetsUnprepareNetworkPoliciesThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := virtualnetworks.TagsObject{ // ... @@ -193,7 +193,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") read, err := client.VirtualNetworksCheckIPAddressAvailability(ctx, id, virtualnetworks.DefaultVirtualNetworksCheckIPAddressAvailabilityOperationOptions()) if err != nil { @@ -209,7 +209,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.VirtualNetworksListDdosProtectionStatus(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions())` can be used to do batched pagination items, err := client.VirtualNetworksListDdosProtectionStatusComplete(ctx, id, virtualnetworks.DefaultVirtualNetworksListDdosProtectionStatusOperationOptions()) @@ -226,7 +226,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := commonids.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") // alternatively `client.VirtualNetworksListUsage(ctx, id)` can be used to do batched pagination items, err := client.VirtualNetworksListUsageComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go index 15c346279f67..9acbb6c10272 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/client.go @@ -15,7 +15,7 @@ type VirtualNetworksClient struct { } func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go index 189fd2689c13..db1b8807d3eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id commonids.VirtualNetw var model VirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go index 8e2d6ea92a22..3e63f83e2a68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_updatetags.go @@ -50,7 +50,6 @@ func (c VirtualNetworksClient) UpdateTags(ctx context.Context, id commonids.Virt var model VirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go index 1f434189786b..bcd41a4d5518 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkscheckipaddressavailability.go @@ -35,6 +35,7 @@ func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToHeaders() * func (o VirtualNetworksCheckIPAddressAvailabilityOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c VirtualNetworksClient) VirtualNetworksCheckIPAddressAvailability(ctx con var model IPAddressAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go index d48736807d5b..cfc2cb53d45d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/method_virtualnetworkslistddosprotectionstatus.go @@ -44,6 +44,7 @@ func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToHeaders() *cl func (o VirtualNetworksListDdosProtectionStatusOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go index e1782e1a1196..5c44fd0fa197 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworks/version.go @@ -1,12 +1,10 @@ package virtualnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworks/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md index d4e7e316bd8a..8915c9ef368d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap` Documentation -The `virtualnetworktap` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworktap` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapValue") +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "tapName") payload := virtualnetworktap.VirtualNetworkTap{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapValue") +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "tapName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapValue") +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "tapName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkTapValue") +id := virtualnetworktap.NewVirtualNetworkTapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "tapName") payload := virtualnetworktap.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go index 4444f3072d89..71e5a9092ba3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/client.go @@ -15,7 +15,7 @@ type VirtualNetworkTapClient struct { } func NewVirtualNetworkTapClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkTapClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworktap", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworktap", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkTapClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go index 5bf0638a304f..87f32e385acc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/id_virtualnetworktap.go @@ -42,7 +42,7 @@ func ParseVirtualNetworkTapID(input string) (*VirtualNetworkTapId, error) { } id := VirtualNetworkTapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualNetworkTapIDInsensitively(input string) (*VirtualNetworkTapId, } id := VirtualNetworkTapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualNetworkTapId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualNetworkTaps", "virtualNetworkTaps", "virtualNetworkTaps"), - resourceids.UserSpecifiedSegment("virtualNetworkTapName", "virtualNetworkTapValue"), + resourceids.UserSpecifiedSegment("virtualNetworkTapName", "tapName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go index 7d8ef7767eef..cbeab75581af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkTapClient) Get(ctx context.Context, id VirtualNetworkTapId var model VirtualNetworkTap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go index 2079b8bdf80b..3d2dd5367917 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/method_updatetags.go @@ -49,7 +49,6 @@ func (c VirtualNetworkTapClient) UpdateTags(ctx context.Context, id VirtualNetwo var model VirtualNetworkTap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go index eef70525f1aa..e715032dda2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktap/version.go @@ -1,12 +1,10 @@ package virtualnetworktap -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworktap/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworktap/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md index c5bc1932be8e..fe8923048d37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps` Documentation -The `virtualnetworktaps` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualnetworktaps` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go index 33de6824de7a..072baab91433 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/client.go @@ -15,7 +15,7 @@ type VirtualNetworkTapsClient struct { } func NewVirtualNetworkTapsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkTapsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworktaps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworktaps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkTapsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go index c7a131aec5f9..52ec91fec734 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualnetworktaps/version.go @@ -1,12 +1,10 @@ package virtualnetworktaps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworktaps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworktaps/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md index 38c48b08d541..5120cb7e36dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings` Documentation -The `virtualrouterpeerings` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualrouterpeerings` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") payload := virtualrouterpeerings.VirtualRouterPeering{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue", "peeringValue") +id := commonids.NewVirtualRouterPeeringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName", "peeringName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualrouterpeerings.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue") +id := virtualrouterpeerings.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go index 6b55e901ef54..b8bf140b1c18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/client.go @@ -15,7 +15,7 @@ type VirtualRouterPeeringsClient struct { } func NewVirtualRouterPeeringsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualRouterPeeringsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualrouterpeerings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualrouterpeerings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualRouterPeeringsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go index 85fff5b9af32..055c6f72b1cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/id_virtualrouter.go @@ -42,7 +42,7 @@ func ParseVirtualRouterID(input string) (*VirtualRouterId, error) { } id := VirtualRouterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualRouterIDInsensitively(input string) (*VirtualRouterId, error) { } id := VirtualRouterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualRouterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualRouters", "virtualRouters", "virtualRouters"), - resourceids.UserSpecifiedSegment("virtualRouterName", "virtualRouterValue"), + resourceids.UserSpecifiedSegment("virtualRouterName", "virtualRouterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go index 684fe0cb2fc2..8b9d7a1569d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/method_get.go @@ -46,7 +46,6 @@ func (c VirtualRouterPeeringsClient) Get(ctx context.Context, id commonids.Virtu var model VirtualRouterPeering result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go index 64a28f5ce6a6..d166e98ed83b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouterpeerings/version.go @@ -1,12 +1,10 @@ package virtualrouterpeerings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualrouterpeerings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualrouterpeerings/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md index 24c86d3abd7f..8cb0d81d80f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters` Documentation -The `virtualrouters` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualrouters` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue") +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") payload := virtualrouters.VirtualRouter{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue") +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterValue") +id := virtualrouters.NewVirtualRouterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualRouterName") read, err := client.Get(ctx, id, virtualrouters.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go index 37e6baf91a89..ca9adf26c794 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/client.go @@ -15,7 +15,7 @@ type VirtualRoutersClient struct { } func NewVirtualRoutersClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualRoutersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualrouters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualrouters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualRoutersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go index 3e9ac08d3a1a..ca7d65615d0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/id_virtualrouter.go @@ -42,7 +42,7 @@ func ParseVirtualRouterID(input string) (*VirtualRouterId, error) { } id := VirtualRouterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualRouterIDInsensitively(input string) (*VirtualRouterId, error) { } id := VirtualRouterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualRouterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualRouters", "virtualRouters", "virtualRouters"), - resourceids.UserSpecifiedSegment("virtualRouterName", "virtualRouterValue"), + resourceids.UserSpecifiedSegment("virtualRouterName", "virtualRouterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go index 39415fad17f5..4eaa68180fae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, optio var model VirtualRouter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go index 2adf28e68408..7218d712615a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualrouters/version.go @@ -1,12 +1,10 @@ package virtualrouters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualrouters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualrouters/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/README.md index 774ddc1fbb22..90dcfb128b9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans` Documentation -The `virtualwans` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `virtualwans` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") payload := virtualwans.VpnServerConfigurationPolicyGroup{ // ... @@ -42,7 +42,7 @@ if err := client.ConfigurationPolicyGroupsCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.ConfigurationPolicyGroupsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue", "configurationPolicyGroupValue") +id := virtualwans.NewConfigurationPolicyGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName", "configurationPolicyGroupName") read, err := client.ConfigurationPolicyGroupsGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") // alternatively `client.ConfigurationPolicyGroupsListByVpnServerConfiguration(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationPolicyGroupsListByVpnServerConfigurationComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.VirtualWanVpnProfileParameters{ // ... @@ -104,7 +104,7 @@ if err := client.GeneratevirtualwanvpnserverconfigurationvpnprofileThenPoll(ctx, ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") payload := virtualwans.HubRouteTable{ // ... @@ -121,7 +121,7 @@ if err := client.HubRouteTablesCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -133,7 +133,7 @@ if err := client.HubRouteTablesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubRouteTableValue") +id := virtualwans.NewHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") read, err := client.HubRouteTablesGet(ctx, id) if err != nil { @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.HubRouteTablesList(ctx, id)` can be used to do batched pagination items, err := client.HubRouteTablesListComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") payload := virtualwans.HubVirtualNetworkConnection{ // ... @@ -183,7 +183,7 @@ if err := client.HubVirtualNetworkConnectionsCreateOrUpdateThenPoll(ctx, id, pay ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -195,7 +195,7 @@ if err := client.HubVirtualNetworkConnectionsDeleteThenPoll(ctx, id); err != nil ```go ctx := context.TODO() -id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "hubVirtualNetworkConnectionValue") +id := virtualwans.NewHubVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "connectionName") read, err := client.HubVirtualNetworkConnectionsGet(ctx, id) if err != nil { @@ -211,7 +211,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.HubVirtualNetworkConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.HubVirtualNetworkConnectionsListComplete(ctx, id) @@ -228,7 +228,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") payload := virtualwans.VpnGatewayNatRule{ // ... @@ -245,7 +245,7 @@ if err := client.NatRulesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -257,7 +257,7 @@ if err := client.NatRulesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "natRuleValue") +id := virtualwans.NewNatRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "natRuleName") read, err := client.NatRulesGet(ctx, id) if err != nil { @@ -273,7 +273,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") // alternatively `client.NatRulesListByVpnGateway(ctx, id)` can be used to do batched pagination items, err := client.NatRulesListByVpnGatewayComplete(ctx, id) @@ -290,7 +290,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") payload := virtualwans.NetworkVirtualApplianceConnection{ // ... @@ -307,7 +307,7 @@ if err := client.NetworkVirtualApplianceConnectionsCreateOrUpdateThenPoll(ctx, i ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -319,7 +319,7 @@ if err := client.NetworkVirtualApplianceConnectionsDeleteThenPoll(ctx, id); err ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue", "networkVirtualApplianceConnectionValue") +id := virtualwans.NewNetworkVirtualApplianceConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName", "connectionName") read, err := client.NetworkVirtualApplianceConnectionsGet(ctx, id) if err != nil { @@ -335,7 +335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceValue") +id := virtualwans.NewNetworkVirtualApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "networkVirtualApplianceName") // alternatively `client.NetworkVirtualApplianceConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.NetworkVirtualApplianceConnectionsListComplete(ctx, id) @@ -352,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := virtualwans.P2SVpnGateway{ // ... @@ -369,7 +369,7 @@ if err := client.P2sVpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -381,7 +381,7 @@ if err := client.P2sVpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "p2sVpnGatewayValue") +id := commonids.NewVirtualWANP2SVPNGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") read, err := client.P2sVpnGatewaysGet(ctx, id) if err != nil { @@ -431,7 +431,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") payload := virtualwans.RouteMap{ // ... @@ -448,7 +448,7 @@ if err := client.RouteMapsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -460,7 +460,7 @@ if err := client.RouteMapsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeMapValue") +id := virtualwans.NewRouteMapID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeMapName") read, err := client.RouteMapsGet(ctx, id) if err != nil { @@ -476,7 +476,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.RouteMapsList(ctx, id)` can be used to do batched pagination items, err := client.RouteMapsListComplete(ctx, id) @@ -493,7 +493,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") payload := virtualwans.RoutingIntent{ // ... @@ -510,7 +510,7 @@ if err := client.RoutingIntentCreateOrUpdateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -522,7 +522,7 @@ if err := client.RoutingIntentDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routingIntentValue") +id := virtualwans.NewRoutingIntentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routingIntentName") read, err := client.RoutingIntentGet(ctx, id) if err != nil { @@ -538,7 +538,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.RoutingIntentList(ctx, id)` can be used to do batched pagination items, err := client.RoutingIntentListComplete(ctx, id) @@ -555,7 +555,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") read, err := client.SupportedSecurityProviders(ctx, id) if err != nil { @@ -571,7 +571,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.TagsObject{ // ... @@ -592,7 +592,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") payload := virtualwans.BgpConnection{ // ... @@ -609,7 +609,7 @@ if err := client.VirtualHubBgpConnectionCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -621,7 +621,7 @@ if err := client.VirtualHubBgpConnectionDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") read, err := client.VirtualHubBgpConnectionGet(ctx, id) if err != nil { @@ -637,7 +637,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubBgpConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubBgpConnectionsListComplete(ctx, id) @@ -654,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -666,7 +666,7 @@ if err := client.VirtualHubBgpConnectionsListAdvertisedRoutesThenPoll(ctx, id); ```go ctx := context.TODO() -id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "bgpConnectionValue") +id := commonids.NewVirtualHubBGPConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hubName", "connectionName") if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err != nil { // handle the error @@ -678,7 +678,7 @@ if err := client.VirtualHubBgpConnectionsListLearnedRoutesThenPoll(ctx, id); err ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") payload := virtualwans.HubIPConfiguration{ // ... @@ -695,7 +695,7 @@ if err := client.VirtualHubIPConfigurationCreateOrUpdateThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -707,7 +707,7 @@ if err := client.VirtualHubIPConfigurationDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "ipConfigurationValue") +id := commonids.NewVirtualHubIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "ipConfigName") read, err := client.VirtualHubIPConfigurationGet(ctx, id) if err != nil { @@ -723,7 +723,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubIPConfigurationList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubIPConfigurationListComplete(ctx, id) @@ -740,7 +740,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") payload := virtualwans.VirtualHubRouteTableV2{ // ... @@ -757,7 +757,7 @@ if err := client.VirtualHubRouteTableV2sCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -769,7 +769,7 @@ if err := client.VirtualHubRouteTableV2sDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue", "routeTableValue") +id := virtualwans.NewVirtualHubRouteTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName", "routeTableName") read, err := client.VirtualHubRouteTableV2sGet(ctx, id) if err != nil { @@ -785,7 +785,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") // alternatively `client.VirtualHubRouteTableV2sList(ctx, id)` can be used to do batched pagination items, err := client.VirtualHubRouteTableV2sListComplete(ctx, id) @@ -802,7 +802,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.VirtualHub{ // ... @@ -819,7 +819,7 @@ if err := client.VirtualHubsCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -831,7 +831,7 @@ if err := client.VirtualHubsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") read, err := client.VirtualHubsGet(ctx, id) if err != nil { @@ -847,7 +847,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.EffectiveRoutesParameters{ // ... @@ -864,7 +864,7 @@ if err := client.VirtualHubsGetEffectiveVirtualHubRoutesThenPoll(ctx, id, payloa ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.GetInboundRoutesParameters{ // ... @@ -881,7 +881,7 @@ if err := client.VirtualHubsGetInboundRoutesThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.GetOutboundRoutesParameters{ // ... @@ -932,7 +932,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubValue") +id := virtualwans.NewVirtualHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualHubName") payload := virtualwans.TagsObject{ // ... @@ -953,7 +953,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.VirtualWAN{ // ... @@ -970,7 +970,7 @@ if err := client.VirtualWansCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -982,7 +982,7 @@ if err := client.VirtualWansDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") read, err := client.VirtualWansGet(ctx, id) if err != nil { @@ -1032,7 +1032,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnection{ // ... @@ -1049,7 +1049,7 @@ if err := client.VpnConnectionsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1061,7 +1061,7 @@ if err := client.VpnConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") read, err := client.VpnConnectionsGet(ctx, id) if err != nil { @@ -1077,7 +1077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") // alternatively `client.VpnConnectionsListByVpnGateway(ctx, id)` can be used to do batched pagination items, err := client.VpnConnectionsListByVpnGatewayComplete(ctx, id) @@ -1094,7 +1094,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnectionPacketCaptureStartParameters{ // ... @@ -1111,7 +1111,7 @@ if err := client.VpnConnectionsStartPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") payload := virtualwans.VpnConnectionPacketCaptureStopParameters{ // ... @@ -1128,7 +1128,7 @@ if err := client.VpnConnectionsStopPacketCaptureThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := virtualwans.VpnGateway{ // ... @@ -1145,7 +1145,7 @@ if err := client.VpnGatewaysCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1157,7 +1157,7 @@ if err := client.VpnGatewaysDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := virtualwans.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") read, err := client.VpnGatewaysGet(ctx, id) if err != nil { @@ -1207,7 +1207,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue", "vpnLinkConnectionValue") +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName", "linkConnectionName") if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { // handle the error @@ -1219,7 +1219,7 @@ if err := client.VpnLinkConnectionsGetIkeSasThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue") +id := commonids.NewVPNConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName") // alternatively `client.VpnLinkConnectionsListByVpnConnection(ctx, id)` can be used to do batched pagination items, err := client.VpnLinkConnectionsListByVpnConnectionComplete(ctx, id) @@ -1236,7 +1236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx, id); err != nil { // handle the error @@ -1248,7 +1248,7 @@ if err := client.VpnServerConfigurationsAssociatedWithVirtualWanListThenPoll(ctx ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") payload := virtualwans.VpnServerConfiguration{ // ... @@ -1265,7 +1265,7 @@ if err := client.VpnServerConfigurationsCreateOrUpdateThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1277,7 +1277,7 @@ if err := client.VpnServerConfigurationsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := virtualwans.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") read, err := client.VpnServerConfigurationsGet(ctx, id) if err != nil { @@ -1327,7 +1327,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue", "vpnConnectionValue", "vpnLinkConnectionValue") +id := virtualwans.NewVpnLinkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName", "connectionName", "linkConnectionName") read, err := client.VpnSiteLinkConnectionsGet(ctx, id) if err != nil { @@ -1343,7 +1343,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue", "vpnSiteLinkValue") +id := virtualwans.NewVpnSiteLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName", "vpnSiteLinkName") read, err := client.VpnSiteLinksGet(ctx, id) if err != nil { @@ -1359,7 +1359,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") // alternatively `client.VpnSiteLinksListByVpnSite(ctx, id)` can be used to do batched pagination items, err := client.VpnSiteLinksListByVpnSiteComplete(ctx, id) @@ -1376,7 +1376,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWanValue") +id := virtualwans.NewVirtualWANID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualWANName") payload := virtualwans.GetVpnSitesConfigurationRequest{ // ... @@ -1393,7 +1393,7 @@ if err := client.VpnSitesConfigurationDownloadThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") payload := virtualwans.VpnSite{ // ... @@ -1410,7 +1410,7 @@ if err := client.VpnSitesCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -1422,7 +1422,7 @@ if err := client.VpnSitesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := virtualwans.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") read, err := client.VpnSitesGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/client.go index bf0a24c960f7..0d7276430725 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/client.go @@ -15,7 +15,7 @@ type VirtualWANsClient struct { } func NewVirtualWANsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualWANsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualwans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualwans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualWANsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_configurationpolicygroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_configurationpolicygroup.go index 7ebd0347f4de..058775a50d01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_configurationpolicygroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_configurationpolicygroup.go @@ -44,7 +44,7 @@ func ParseConfigurationPolicyGroupID(input string) (*ConfigurationPolicyGroupId, } id := ConfigurationPolicyGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationPolicyGroupIDInsensitively(input string) (*ConfigurationP } id := ConfigurationPolicyGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationPolicyGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), - resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationValue"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), resourceids.StaticSegment("staticConfigurationPolicyGroups", "configurationPolicyGroups", "configurationPolicyGroups"), - resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupValue"), + resourceids.UserSpecifiedSegment("configurationPolicyGroupName", "configurationPolicyGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubroutetable.go index 46e51d4c4265..5c93c30fb695 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubroutetable.go @@ -44,7 +44,7 @@ func ParseHubRouteTableID(input string) (*HubRouteTableId, error) { } id := HubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHubRouteTableIDInsensitively(input string) (*HubRouteTableId, error) { } id := HubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HubRouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticHubRouteTables", "hubRouteTables", "hubRouteTables"), - resourceids.UserSpecifiedSegment("hubRouteTableName", "hubRouteTableValue"), + resourceids.UserSpecifiedSegment("hubRouteTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubvirtualnetworkconnection.go index 92e4c4c7d5d0..3db347a9c762 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubvirtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_hubvirtualnetworkconnection.go @@ -44,7 +44,7 @@ func ParseHubVirtualNetworkConnectionID(input string) (*HubVirtualNetworkConnect } id := HubVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHubVirtualNetworkConnectionIDInsensitively(input string) (*HubVirtualN } id := HubVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HubVirtualNetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticHubVirtualNetworkConnections", "hubVirtualNetworkConnections", "hubVirtualNetworkConnections"), - resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "hubVirtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("hubVirtualNetworkConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_natrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_natrule.go index f2dca44d7fa6..5441dc04ec9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_natrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_natrule.go @@ -44,7 +44,7 @@ func ParseNatRuleID(input string) (*NatRuleId, error) { } id := NatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNatRuleIDInsensitively(input string) (*NatRuleId, error) { } id := NatRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NatRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), resourceids.StaticSegment("staticNatRules", "natRules", "natRules"), - resourceids.UserSpecifiedSegment("natRuleName", "natRuleValue"), + resourceids.UserSpecifiedSegment("natRuleName", "natRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualappliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualappliance.go index 2dc156a927c0..3b7e0a17a90f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualappliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualappliance.go @@ -42,7 +42,7 @@ func ParseNetworkVirtualApplianceID(input string) (*NetworkVirtualApplianceId, e } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNetworkVirtualApplianceIDInsensitively(input string) (*NetworkVirtualA } id := NetworkVirtualApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NetworkVirtualApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualapplianceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualapplianceconnection.go index d39f2a000d02..eea1f6b9dd20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualapplianceconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_networkvirtualapplianceconnection.go @@ -44,7 +44,7 @@ func ParseNetworkVirtualApplianceConnectionID(input string) (*NetworkVirtualAppl } id := NetworkVirtualApplianceConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkVirtualApplianceConnectionIDInsensitively(input string) (*Netwo } id := NetworkVirtualApplianceConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkVirtualApplianceConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticNetworkVirtualAppliances", "networkVirtualAppliances", "networkVirtualAppliances"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceName", "networkVirtualApplianceName"), resourceids.StaticSegment("staticNetworkVirtualApplianceConnections", "networkVirtualApplianceConnections", "networkVirtualApplianceConnections"), - resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "networkVirtualApplianceConnectionValue"), + resourceids.UserSpecifiedSegment("networkVirtualApplianceConnectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routemap.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routemap.go index c95aeaafbfd6..cf9525f1046b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routemap.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routemap.go @@ -44,7 +44,7 @@ func ParseRouteMapID(input string) (*RouteMapId, error) { } id := RouteMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRouteMapIDInsensitively(input string) (*RouteMapId, error) { } id := RouteMapId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RouteMapId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRouteMaps", "routeMaps", "routeMaps"), - resourceids.UserSpecifiedSegment("routeMapName", "routeMapValue"), + resourceids.UserSpecifiedSegment("routeMapName", "routeMapName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routingintent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routingintent.go index de16e7a38611..cb05e57eb4ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routingintent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_routingintent.go @@ -44,7 +44,7 @@ func ParseRoutingIntentID(input string) (*RoutingIntentId, error) { } id := RoutingIntentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRoutingIntentIDInsensitively(input string) (*RoutingIntentId, error) { } id := RoutingIntentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RoutingIntentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRoutingIntent", "routingIntent", "routingIntent"), - resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentValue"), + resourceids.UserSpecifiedSegment("routingIntentName", "routingIntentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhub.go index ec4a18686e58..b406438486cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhub.go @@ -42,7 +42,7 @@ func ParseVirtualHubID(input string) (*VirtualHubId, error) { } id := VirtualHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualHubIDInsensitively(input string) (*VirtualHubId, error) { } id := VirtualHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualHubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhubroutetable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhubroutetable.go index b2cd55910b39..db641540b540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhubroutetable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualhubroutetable.go @@ -44,7 +44,7 @@ func ParseVirtualHubRouteTableID(input string) (*VirtualHubRouteTableId, error) } id := VirtualHubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualHubRouteTableIDInsensitively(input string) (*VirtualHubRouteTab } id := VirtualHubRouteTableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualHubRouteTableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualHubs", "virtualHubs", "virtualHubs"), - resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubValue"), + resourceids.UserSpecifiedSegment("virtualHubName", "virtualHubName"), resourceids.StaticSegment("staticRouteTables", "routeTables", "routeTables"), - resourceids.UserSpecifiedSegment("routeTableName", "routeTableValue"), + resourceids.UserSpecifiedSegment("routeTableName", "routeTableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualwan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualwan.go index e8489bfa13e9..7ba331877309 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualwan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_virtualwan.go @@ -42,7 +42,7 @@ func ParseVirtualWANID(input string) (*VirtualWANId, error) { } id := VirtualWANId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualWANIDInsensitively(input string) (*VirtualWANId, error) { } id := VirtualWANId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualWANId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVirtualWans", "virtualWans", "virtualWans"), - resourceids.UserSpecifiedSegment("virtualWanName", "virtualWanValue"), + resourceids.UserSpecifiedSegment("virtualWanName", "virtualWANName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpngateway.go index 6889f4d78bc6..0ba0e40f11cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpngateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpngateway.go @@ -42,7 +42,7 @@ func ParseVpnGatewayID(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnGatewayIDInsensitively(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnlinkconnection.go index b40c9d3b7bee..6ee7f540d57d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnlinkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnlinkconnection.go @@ -46,7 +46,7 @@ func ParseVpnLinkConnectionID(input string) (*VpnLinkConnectionId, error) { } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVpnLinkConnectionIDInsensitively(input string) (*VpnLinkConnectionId, } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VpnLinkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), resourceids.StaticSegment("staticVpnConnections", "vpnConnections", "vpnConnections"), - resourceids.UserSpecifiedSegment("vpnConnectionName", "vpnConnectionValue"), + resourceids.UserSpecifiedSegment("vpnConnectionName", "connectionName"), resourceids.StaticSegment("staticVpnLinkConnections", "vpnLinkConnections", "vpnLinkConnections"), - resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "vpnLinkConnectionValue"), + resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "linkConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnserverconfiguration.go index 604356fc28fc..641107f1430f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnserverconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnserverconfiguration.go @@ -42,7 +42,7 @@ func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, err } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigu } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnServerConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), - resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationValue"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsite.go index 4e20baefd21a..241994cde17e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsite.go @@ -42,7 +42,7 @@ func ParseVpnSiteID(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnSiteIDInsensitively(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), - resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteValue"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsitelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsitelink.go index a0b1676b210a..fcfd5aa34ed5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsitelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/id_vpnsitelink.go @@ -44,7 +44,7 @@ func ParseVpnSiteLinkID(input string) (*VpnSiteLinkId, error) { } id := VpnSiteLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVpnSiteLinkIDInsensitively(input string) (*VpnSiteLinkId, error) { } id := VpnSiteLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VpnSiteLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), - resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteValue"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), resourceids.StaticSegment("staticVpnSiteLinks", "vpnSiteLinks", "vpnSiteLinks"), - resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkValue"), + resourceids.UserSpecifiedSegment("vpnSiteLinkName", "vpnSiteLinkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupsget.go index 491fc15d5b2f..d8feaa4f23ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_configurationpolicygroupsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) ConfigurationPolicyGroupsGet(ctx context.Context, id var model VpnServerConfigurationPolicyGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubroutetablesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubroutetablesget.go index 36dc9467d464..e714731e2bf1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubroutetablesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubroutetablesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) HubRouteTablesGet(ctx context.Context, id HubRouteTab var model HubRouteTable result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionsget.go index 852857adc595..f08f465d3c19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_hubvirtualnetworkconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) HubVirtualNetworkConnectionsGet(ctx context.Context, var model HubVirtualNetworkConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_natrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_natrulesget.go index 9ba7ca45bea8..c81f0b6e89a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_natrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_natrulesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) NatRulesGet(ctx context.Context, id NatRuleId) (resul var model VpnGatewayNatRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionsget.go index ed429bdb5369..783b3251a6c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_networkvirtualapplianceconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) NetworkVirtualApplianceConnectionsGet(ctx context.Con var model NetworkVirtualApplianceConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewaysget.go index 804013badcc1..ec7e18c347ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewaysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_p2svpngatewaysget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) P2sVpnGatewaysGet(ctx context.Context, id commonids.V var model P2SVpnGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routemapsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routemapsget.go index 925002f31e71..c1db2c3033aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routemapsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routemapsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) RouteMapsGet(ctx context.Context, id RouteMapId) (res var model RouteMap result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routingintentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routingintentget.go index ae61d3b41b53..fea07e77795f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routingintentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_routingintentget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) RoutingIntentGet(ctx context.Context, id RoutingInten var model RoutingIntent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_supportedsecurityproviders.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_supportedsecurityproviders.go index 616d9dd0cd4f..3351ee7549f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_supportedsecurityproviders.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_supportedsecurityproviders.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) SupportedSecurityProviders(ctx context.Context, id Vi var model VirtualWanSecurityProviders result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_updatetags.go index 6115890e78c3..42f292d4aeab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_updatetags.go @@ -49,7 +49,6 @@ func (c VirtualWANsClient) UpdateTags(ctx context.Context, id VirtualWANId, inpu var model VirtualWAN result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionget.go index 525c6b3cabef..e4d4c41773aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubbgpconnectionget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VirtualHubBgpConnectionGet(ctx context.Context, id co var model BgpConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationget.go index ca3c9a88dd3a..c4abe2347849 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubipconfigurationget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VirtualHubIPConfigurationGet(ctx context.Context, id var model HubIPConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2sget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2sget.go index 7c542fcfe689..0d274e1355a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2sget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubroutetablev2sget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualHubRouteTableV2sGet(ctx context.Context, id Vi var model VirtualHubRouteTableV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsget.go index 3f2e419720f2..0b1bcbe8573f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualHubsGet(ctx context.Context, id VirtualHubId) var model VirtualHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsupdatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsupdatetags.go index be5399a45152..23f6df527430 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsupdatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualhubsupdatetags.go @@ -49,7 +49,6 @@ func (c VirtualWANsClient) VirtualHubsUpdateTags(ctx context.Context, id Virtual var model VirtualHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualwansget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualwansget.go index 41dbd00d7f22..66d801a779aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualwansget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_virtualwansget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VirtualWansGet(ctx context.Context, id VirtualWANId) var model VirtualWAN result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionsget.go index 812232759b1f..ca7d4d2a9b44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnconnectionsget.go @@ -46,7 +46,6 @@ func (c VirtualWANsClient) VpnConnectionsGet(ctx context.Context, id commonids.V var model VpnConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpngatewaysget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpngatewaysget.go index bfa13a547eb6..0793829ea759 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpngatewaysget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpngatewaysget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnGatewaysGet(ctx context.Context, id VpnGatewayId) var model VpnGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationsget.go index e5b009a11540..5355630843f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnserverconfigurationsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnServerConfigurationsGet(ctx context.Context, id Vp var model VpnServerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkconnectionsget.go index 088e1b48de55..b2fed5d6de1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinkconnectionsget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSiteLinkConnectionsGet(ctx context.Context, id Vpn var model VpnSiteLinkConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinksget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinksget.go index c16e84b36917..018f1ad8f67b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinksget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitelinksget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSiteLinksGet(ctx context.Context, id VpnSiteLinkId var model VpnSiteLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitesget.go index 6494e6d64493..a250df018ce7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/method_vpnsitesget.go @@ -45,7 +45,6 @@ func (c VirtualWANsClient) VpnSitesGet(ctx context.Context, id VpnSiteId) (resul var model VpnSite result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/version.go index 2e144d959dc7..6d77ede8bbde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/virtualwans/version.go @@ -1,12 +1,10 @@ package virtualwans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualwans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualwans/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md index a83a4757f689..084d0659e9f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses` Documentation -The `vmsspublicipaddresses` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `vmsspublicipaddresses` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue", "publicIPAddressValue") +id := commonids.NewVirtualMachineScaleSetPublicIPAddressID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName", "publicIpAddressName") read, err := client.PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddress(ctx, id, vmsspublicipaddresses.DefaultPublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions()) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue") +id := vmsspublicipaddresses.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesComplete(ctx, id) @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "virtualMachineValue", "networkInterfaceValue", "ipConfigurationValue") +id := commonids.NewVirtualMachineScaleSetIPConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetName", "virtualMachineIndex", "networkInterfaceName", "ipConfigurationName") // alternatively `client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddresses(ctx, id)` can be used to do batched pagination items, err := client.PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go index 3213cbf73fe0..218145b65b93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/client.go @@ -15,7 +15,7 @@ type VMSSPublicIPAddressesClient struct { } func NewVMSSPublicIPAddressesClientWithBaseURI(sdkApi sdkEnv.Api) (*VMSSPublicIPAddressesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vmsspublicipaddresses", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vmsspublicipaddresses", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VMSSPublicIPAddressesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go index 6907f32662f2..4a616c362b3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/id_virtualmachinescaleset.go @@ -42,7 +42,7 @@ func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, err } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineSc } id := VirtualMachineScaleSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCompute", "Microsoft.Compute", "Microsoft.Compute"), resourceids.StaticSegment("staticVirtualMachineScaleSets", "virtualMachineScaleSets", "virtualMachineScaleSets"), - resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetValue"), + resourceids.UserSpecifiedSegment("virtualMachineScaleSetName", "virtualMachineScaleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go index 482b018c7dcb..aa1a988346af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/method_publicipaddressesgetvirtualmachinescalesetpublicipaddress.go @@ -35,6 +35,7 @@ func (o PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOption func (o PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c VMSSPublicIPAddressesClient) PublicIPAddressesGetVirtualMachineScaleSetP var model PublicIPAddress result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go index 9c53103fce2f..81d29217141a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vmsspublicipaddresses/version.go @@ -1,12 +1,10 @@ package vmsspublicipaddresses -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vmsspublicipaddresses/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vmsspublicipaddresses/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md index aa6f23fa92e4..60954afe3ca5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways` Documentation -The `vpngateways` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `vpngateways` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") if err := client.ResetThenPoll(ctx, id, vpngateways.DefaultResetOperationOptions()); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.ResetThenPoll(ctx, id, vpngateways.DefaultResetOperationOptions ```go ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := vpngateways.VpnGatewayPacketCaptureStartParameters{ // ... @@ -53,7 +53,7 @@ if err := client.StartPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := vpngateways.VpnGatewayPacketCaptureStopParameters{ // ... @@ -70,7 +70,7 @@ if err := client.StopPacketCaptureThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnGatewayValue") +id := vpngateways.NewVpnGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "gatewayName") payload := vpngateways.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go index 5679554f1a54..c17671a8ad96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/client.go @@ -15,7 +15,7 @@ type VpnGatewaysClient struct { } func NewVpnGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*VpnGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vpngateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vpngateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VpnGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go index 4a48b9a79162..52e05b7b7b89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/id_vpngateway.go @@ -42,7 +42,7 @@ func ParseVpnGatewayID(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnGatewayIDInsensitively(input string) (*VpnGatewayId, error) { } id := VpnGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go index 8228267e86c3..06856815c748 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/method_reset.go @@ -37,6 +37,7 @@ func (o ResetOperationOptions) ToHeaders() *client.Headers { func (o ResetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go index c250a7590557..9bc4a65216d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpngateways/version.go @@ -1,12 +1,10 @@ package vpngateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vpngateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vpngateways/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go index 3fbef685129b..abb23ca4c394 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/client.go @@ -15,7 +15,7 @@ type VpnLinkConnectionsClient struct { } func NewVpnLinkConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*VpnLinkConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vpnlinkconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vpnlinkconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VpnLinkConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go index e1dd95afd3a9..33a950d143f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/id_vpnlinkconnection.go @@ -46,7 +46,7 @@ func ParseVpnLinkConnectionID(input string) (*VpnLinkConnectionId, error) { } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVpnLinkConnectionIDInsensitively(input string) (*VpnLinkConnectionId, } id := VpnLinkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VpnLinkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnGateways", "vpnGateways", "vpnGateways"), - resourceids.UserSpecifiedSegment("vpnGatewayName", "vpnGatewayValue"), + resourceids.UserSpecifiedSegment("vpnGatewayName", "gatewayName"), resourceids.StaticSegment("staticVpnConnections", "vpnConnections", "vpnConnections"), - resourceids.UserSpecifiedSegment("vpnConnectionName", "vpnConnectionValue"), + resourceids.UserSpecifiedSegment("vpnConnectionName", "connectionName"), resourceids.StaticSegment("staticVpnLinkConnections", "vpnLinkConnections", "vpnLinkConnections"), - resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "vpnLinkConnectionValue"), + resourceids.UserSpecifiedSegment("vpnLinkConnectionName", "linkConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go index eb6ed5abcf12..836405ca7705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnlinkconnections/version.go @@ -1,12 +1,10 @@ package vpnlinkconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vpnlinkconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vpnlinkconnections/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md index 756591e035c9..1572bdf4af4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations` Documentation -The `vpnserverconfigurations` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `vpnserverconfigurations` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vpnserverconfigurations.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationValue") +id := vpnserverconfigurations.NewVpnServerConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnServerConfigurationName") payload := vpnserverconfigurations.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go index 6209cc6af8d9..661d154e5195 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/client.go @@ -15,7 +15,7 @@ type VpnServerConfigurationsClient struct { } func NewVpnServerConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*VpnServerConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vpnserverconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vpnserverconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VpnServerConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go index 56b67386806b..73435f9a7769 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/id_vpnserverconfiguration.go @@ -42,7 +42,7 @@ func ParseVpnServerConfigurationID(input string) (*VpnServerConfigurationId, err } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnServerConfigurationIDInsensitively(input string) (*VpnServerConfigu } id := VpnServerConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnServerConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnServerConfigurations", "vpnServerConfigurations", "vpnServerConfigurations"), - resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationValue"), + resourceids.UserSpecifiedSegment("vpnServerConfigurationName", "vpnServerConfigurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go index 7a675d1584d5..f9decf387a7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/method_updatetags.go @@ -49,7 +49,6 @@ func (c VpnServerConfigurationsClient) UpdateTags(ctx context.Context, id VpnSer var model VpnServerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go index 6e78c18d7b2b..70a571db1075 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnserverconfigurations/version.go @@ -1,12 +1,10 @@ package vpnserverconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vpnserverconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vpnserverconfigurations/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md index 55bee448c21c..662e89f75839 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites` Documentation -The `vpnsites` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `vpnsites` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vpnsites.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteValue") +id := vpnsites.NewVpnSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vpnSiteName") payload := vpnsites.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go index 241eb9e94eab..2c56ae704cdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/client.go @@ -15,7 +15,7 @@ type VpnSitesClient struct { } func NewVpnSitesClientWithBaseURI(sdkApi sdkEnv.Api) (*VpnSitesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vpnsites", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vpnsites", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VpnSitesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go index 4b42ecf0a1e7..3f8913159cb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/id_vpnsite.go @@ -42,7 +42,7 @@ func ParseVpnSiteID(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVpnSiteIDInsensitively(input string) (*VpnSiteId, error) { } id := VpnSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VpnSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticVpnSites", "vpnSites", "vpnSites"), - resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteValue"), + resourceids.UserSpecifiedSegment("vpnSiteName", "vpnSiteName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go index 083418399861..aa5af2cd3300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/method_updatetags.go @@ -49,7 +49,6 @@ func (c VpnSitesClient) UpdateTags(ctx context.Context, id VpnSiteId, input Tags var model VpnSite result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go index 272a1f742c43..df39cd94050d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/vpnsites/version.go @@ -1,12 +1,10 @@ package vpnsites -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vpnsites/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vpnsites/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/README.md index 6d953b40cc3b..43c2aeb5e4ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies` Documentation -The `webapplicationfirewallpolicies` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `webapplicationfirewallpolicies` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") payload := webapplicationfirewallpolicies.WebApplicationFirewallPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGatewayWebApplicationFirewallPolicyValue") +id := webapplicationfirewallpolicies.NewApplicationGatewayWebApplicationFirewallPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/client.go index ac148c537333..225049a73616 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/client.go @@ -15,7 +15,7 @@ type WebApplicationFirewallPoliciesClient struct { } func NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webapplicationfirewallpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebApplicationFirewallPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go index 9c48316d9e71..0a49b366bfce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/id_applicationgatewaywebapplicationfirewallpolicy.go @@ -42,7 +42,7 @@ func ParseApplicationGatewayWebApplicationFirewallPolicyID(input string) (*Appli } id := ApplicationGatewayWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplicationGatewayWebApplicationFirewallPolicyIDInsensitively(input st } id := ApplicationGatewayWebApplicationFirewallPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplicationGatewayWebApplicationFirewallPolicyId) Segments() []resource resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticApplicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies", "applicationGatewayWebApplicationFirewallPolicies"), - resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "applicationGatewayWebApplicationFirewallPolicyValue"), + resourceids.UserSpecifiedSegment("applicationGatewayWebApplicationFirewallPolicyName", "policyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_createorupdate.go index a30ca59994f4..556b406a3c28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WebApplicationFirewallPoliciesClient) CreateOrUpdate(ctx context.Context var model WebApplicationFirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_get.go index 039195586991..b34138178e00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/method_get.go @@ -45,7 +45,6 @@ func (c WebApplicationFirewallPoliciesClient) Get(ctx context.Context, id Applic var model WebApplicationFirewallPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/version.go index 1ae435f4990d..1ceeadaaf634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webapplicationfirewallpolicies/version.go @@ -1,12 +1,10 @@ package webapplicationfirewallpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webapplicationfirewallpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webapplicationfirewallpolicies/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md index 82b94f437892..a026a5ec583c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories` Documentation -The `webcategories` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2023-11-01`). +The `webcategories` SDK allows for interaction with Azure Resource Manager `network` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webcategories.NewAzureWebCategoryID("12345678-1234-9876-4563-123456789012", "azureWebCategoryValue") +id := webcategories.NewAzureWebCategoryID("12345678-1234-9876-4563-123456789012", "name") read, err := client.Get(ctx, id, webcategories.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go index 075aa15b06b0..980ef7260269 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/client.go @@ -15,7 +15,7 @@ type WebCategoriesClient struct { } func NewWebCategoriesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebCategoriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webcategories", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webcategories", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebCategoriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go index 1417d2f6d854..5971766dc63d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/id_azurewebcategory.go @@ -40,7 +40,7 @@ func ParseAzureWebCategoryID(input string) (*AzureWebCategoryId, error) { } id := AzureWebCategoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseAzureWebCategoryIDInsensitively(input string) (*AzureWebCategoryId, er } id := AzureWebCategoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id AzureWebCategoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticAzureWebCategories", "azureWebCategories", "azureWebCategories"), - resourceids.UserSpecifiedSegment("azureWebCategoryName", "azureWebCategoryValue"), + resourceids.UserSpecifiedSegment("azureWebCategoryName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go index 6150a24fbf48..bcebcf476db7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c WebCategoriesClient) Get(ctx context.Context, id AzureWebCategoryId, opt var model AzureWebCategory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go index 3eab7e1b57f2..0a9df0a65b7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2023-11-01/webcategories/version.go @@ -1,12 +1,10 @@ package webcategories -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webcategories/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webcategories/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/README.md index 88400c89ff97..d7f30862eaaa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts` Documentation -The `bastionhosts` SDK allows for interaction with the Azure Resource Manager Service `network` (API Version `2024-01-01`). +The `bastionhosts` SDK allows for interaction with Azure Resource Manager `network` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionHost{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -71,7 +71,7 @@ if err := client.DeleteBastionShareableLinkThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkTokenListRequest{ // ... @@ -88,7 +88,7 @@ if err := client.DeleteBastionShareableLinkByTokenThenPoll(ctx, id, payload); er ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.SessionIds{ // ... @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") read, err := client.Get(ctx, id) if err != nil { @@ -126,7 +126,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") // alternatively `client.GetActiveSessions(ctx, id)` can be used to do batched pagination items, err := client.GetActiveSessionsComplete(ctx, id) @@ -143,7 +143,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.BastionShareableLinkListRequest{ // ... @@ -221,7 +221,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostValue") +id := bastionhosts.NewBastionHostID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bastionHostName") payload := bastionhosts.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/client.go index 95e06c7f523d..f77ea65ff0a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/client.go @@ -15,7 +15,7 @@ type BastionHostsClient struct { } func NewBastionHostsClientWithBaseURI(sdkApi sdkEnv.Api) (*BastionHostsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "bastionhosts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "bastionhosts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BastionHostsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/id_bastionhost.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/id_bastionhost.go index 66012e2eda55..655e58ea53f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/id_bastionhost.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/id_bastionhost.go @@ -42,7 +42,7 @@ func ParseBastionHostID(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseBastionHostIDInsensitively(input string) (*BastionHostId, error) { } id := BastionHostId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id BastionHostId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticBastionHosts", "bastionHosts", "bastionHosts"), - resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostValue"), + resourceids.UserSpecifiedSegment("bastionHostName", "bastionHostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/method_get.go index 71b1a85a45fa..7d0d6c578df1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/method_get.go @@ -45,7 +45,6 @@ func (c BastionHostsClient) Get(ctx context.Context, id BastionHostId) (result G var model BastionHost result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/version.go index 34627770e6da..26d20ffa6472 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/network/2024-01-01/bastionhosts/version.go @@ -1,12 +1,10 @@ package bastionhosts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/bastionhosts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/bastionhosts/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md index 6c4d5579e235..07cac7dadefd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors` Documentation -The `azuretrafficcollectors` SDK allows for interaction with the Azure Resource Manager Service `networkfunction` (API Version `2022-11-01`). +The `azuretrafficcollectors` SDK allows for interaction with Azure Resource Manager `networkfunction` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -59,7 +59,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue") +id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName") payload := azuretrafficcollectors.AzureTrafficCollector{ // ... @@ -76,7 +76,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue") +id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -88,7 +88,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue") +id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue") +id := azuretrafficcollectors.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName") payload := azuretrafficcollectors.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/client.go index 872404d3f6c1..2a28058026ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/client.go @@ -15,7 +15,7 @@ type AzureTrafficCollectorsClient struct { } func NewAzureTrafficCollectorsClientWithBaseURI(sdkApi sdkEnv.Api) (*AzureTrafficCollectorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "azuretrafficcollectors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "azuretrafficcollectors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AzureTrafficCollectorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/id_azuretrafficcollector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/id_azuretrafficcollector.go index 57e1dd83bd55..3d2926860138 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/id_azuretrafficcollector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/id_azuretrafficcollector.go @@ -42,7 +42,7 @@ func ParseAzureTrafficCollectorID(input string) (*AzureTrafficCollectorId, error } id := AzureTrafficCollectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAzureTrafficCollectorIDInsensitively(input string) (*AzureTrafficColle } id := AzureTrafficCollectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AzureTrafficCollectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetworkFunction", "Microsoft.NetworkFunction", "Microsoft.NetworkFunction"), resourceids.StaticSegment("staticAzureTrafficCollectors", "azureTrafficCollectors", "azureTrafficCollectors"), - resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorValue"), + resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_get.go index bec8a6575a8b..af64540f0b8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_get.go @@ -45,7 +45,6 @@ func (c AzureTrafficCollectorsClient) Get(ctx context.Context, id AzureTrafficCo var model AzureTrafficCollector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_updatetags.go index 03af113864ad..86c979d246d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/method_updatetags.go @@ -49,7 +49,6 @@ func (c AzureTrafficCollectorsClient) UpdateTags(ctx context.Context, id AzureTr var model AzureTrafficCollector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/version.go index 114ccc2f415e..d9c2d60b87f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/azuretrafficcollectors/version.go @@ -1,12 +1,10 @@ package azuretrafficcollectors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/azuretrafficcollectors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/azuretrafficcollectors/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/README.md index e90c27c8601c..1b664c98fa52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies` Documentation -The `collectorpolicies` SDK allows for interaction with the Azure Resource Manager Service `networkfunction` (API Version `2022-11-01`). +The `collectorpolicies` SDK allows for interaction with Azure Resource Manager `networkfunction` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue", "collectorPolicyValue") +id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName", "collectorPolicyName") payload := collectorpolicies.CollectorPolicy{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue", "collectorPolicyValue") +id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName", "collectorPolicyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue", "collectorPolicyValue") +id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName", "collectorPolicyName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := collectorpolicies.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue") +id := collectorpolicies.NewAzureTrafficCollectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorValue", "collectorPolicyValue") +id := collectorpolicies.NewCollectorPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "azureTrafficCollectorName", "collectorPolicyName") payload := collectorpolicies.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/client.go index 99cc12d89cee..bc5155dc934d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/client.go @@ -15,7 +15,7 @@ type CollectorPoliciesClient struct { } func NewCollectorPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*CollectorPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "collectorpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "collectorpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CollectorPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_azuretrafficcollector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_azuretrafficcollector.go index f0fa6304b51f..44ebbe57a599 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_azuretrafficcollector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_azuretrafficcollector.go @@ -42,7 +42,7 @@ func ParseAzureTrafficCollectorID(input string) (*AzureTrafficCollectorId, error } id := AzureTrafficCollectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAzureTrafficCollectorIDInsensitively(input string) (*AzureTrafficColle } id := AzureTrafficCollectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AzureTrafficCollectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetworkFunction", "Microsoft.NetworkFunction", "Microsoft.NetworkFunction"), resourceids.StaticSegment("staticAzureTrafficCollectors", "azureTrafficCollectors", "azureTrafficCollectors"), - resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorValue"), + resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_collectorpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_collectorpolicy.go index d638ba3cb8e8..9c58c2fdc0e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_collectorpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/id_collectorpolicy.go @@ -44,7 +44,7 @@ func ParseCollectorPolicyID(input string) (*CollectorPolicyId, error) { } id := CollectorPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCollectorPolicyIDInsensitively(input string) (*CollectorPolicyId, erro } id := CollectorPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CollectorPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetworkFunction", "Microsoft.NetworkFunction", "Microsoft.NetworkFunction"), resourceids.StaticSegment("staticAzureTrafficCollectors", "azureTrafficCollectors", "azureTrafficCollectors"), - resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorValue"), + resourceids.UserSpecifiedSegment("azureTrafficCollectorName", "azureTrafficCollectorName"), resourceids.StaticSegment("staticCollectorPolicies", "collectorPolicies", "collectorPolicies"), - resourceids.UserSpecifiedSegment("collectorPolicyName", "collectorPolicyValue"), + resourceids.UserSpecifiedSegment("collectorPolicyName", "collectorPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_get.go index 80c311e88dd5..f37a66f916bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_get.go @@ -45,7 +45,6 @@ func (c CollectorPoliciesClient) Get(ctx context.Context, id CollectorPolicyId) var model CollectorPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_updatetags.go index 9a0740b3af9d..99eb15c634e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/method_updatetags.go @@ -49,7 +49,6 @@ func (c CollectorPoliciesClient) UpdateTags(ctx context.Context, id CollectorPol var model CollectorPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/version.go index c160b617c347..8569bbd92548 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/networkfunction/2022-11-01/collectorpolicies/version.go @@ -1,12 +1,10 @@ package collectorpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/collectorpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/collectorpolicies/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/README.md index 92b02a7a4184..b2cf52c973af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors` Documentation -The `monitors` SDK allows for interaction with the Azure Resource Manager Service `newrelic` (API Version `2022-07-01`). +The `monitors` SDK allows for interaction with Azure Resource Manager `newrelic` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.NewRelicMonitorResource{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") if err := client.DeleteThenPoll(ctx, id, monitors.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, monitors.DefaultDeleteOperationOptions( ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.MetricsRequest{ // ... @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.MetricsStatusRequest{ // ... @@ -112,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.AppServicesGetRequest{ // ... @@ -168,7 +168,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.HostsGetRequest{ // ... @@ -190,7 +190,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.ListMonitoredResources(ctx, id)` can be used to do batched pagination items, err := client.ListMonitoredResourcesComplete(ctx, id) @@ -207,7 +207,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.SwitchBillingRequest{ // ... @@ -228,7 +228,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.NewRelicMonitorResourceUpdate{ // ... @@ -249,7 +249,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.VMHostPayload(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/client.go index 6a08c03de8b3..da8f22135b82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/client.go @@ -15,7 +15,7 @@ type MonitorsClient struct { } func NewMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "monitors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "monitors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MonitorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/id_monitor.go index 70a840717391..379d6327722c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNewRelicObservability", "NewRelic.Observability", "NewRelic.Observability"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_delete.go index 2c8a078705eb..aa13e5512009 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_get.go index b9b5fbf65771..286a09b150b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_get.go @@ -45,7 +45,6 @@ func (c MonitorsClient) Get(ctx context.Context, id MonitorId) (result GetOperat var model NewRelicMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricrules.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricrules.go index 40aeaa8acb74..804f2a608a89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricrules.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricrules.go @@ -50,7 +50,6 @@ func (c MonitorsClient) GetMetricRules(ctx context.Context, id MonitorId, input var model MetricRules result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricstatus.go index bd98fa1927ca..810b07d5f833 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_getmetricstatus.go @@ -50,7 +50,6 @@ func (c MonitorsClient) GetMetricStatus(ctx context.Context, id MonitorId, input var model MetricsStatusResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_switchbilling.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_switchbilling.go index c2257067e47e..97b304c06a06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_switchbilling.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_switchbilling.go @@ -52,7 +52,6 @@ func (c MonitorsClient) SwitchBilling(ctx context.Context, id MonitorId, input S var model NewRelicMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_update.go index 4e92eec75fac..f04008b932f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_update.go @@ -49,7 +49,6 @@ func (c MonitorsClient) Update(ctx context.Context, id MonitorId, input NewRelic var model NewRelicMonitorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_vmhostpayload.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_vmhostpayload.go index 1dd12f5aa1bf..2ebf2c23fa85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_vmhostpayload.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/method_vmhostpayload.go @@ -46,7 +46,6 @@ func (c MonitorsClient) VMHostPayload(ctx context.Context, id MonitorId) (result var model VMExtensionPayload result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/version.go index c3ae92aacabd..bf345cdde784 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/monitors/version.go @@ -1,12 +1,10 @@ package monitors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/monitors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/monitors/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/README.md index 0691d3a67645..5186c452ff2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules` Documentation -The `tagrules` SDK allows for interaction with the Azure Resource Manager Service `newrelic` (API Version `2022-07-01`). +The `tagrules` SDK allows for interaction with Azure Resource Manager `newrelic` (API Version `2022-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") payload := tagrules.TagRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tagrules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := tagrules.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.ListByNewRelicMonitorResource(ctx, id)` can be used to do batched pagination items, err := client.ListByNewRelicMonitorResourceComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "tagRuleValue") +id := tagrules.NewTagRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "ruleSetName") payload := tagrules.TagRuleUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/client.go index e35a62f31162..1353e3786ef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/client.go @@ -15,7 +15,7 @@ type TagRulesClient struct { } func NewTagRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*TagRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tagrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tagrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TagRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_monitor.go index 182e03185377..b65a5dea3653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNewRelicObservability", "NewRelic.Observability", "NewRelic.Observability"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_tagrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_tagrule.go index 41ce9939101e..bb6020fe85a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_tagrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/id_tagrule.go @@ -44,7 +44,7 @@ func ParseTagRuleID(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTagRuleIDInsensitively(input string) (*TagRuleId, error) { } id := TagRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TagRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNewRelicObservability", "NewRelic.Observability", "NewRelic.Observability"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), resourceids.StaticSegment("staticTagRules", "tagRules", "tagRules"), - resourceids.UserSpecifiedSegment("tagRuleName", "tagRuleValue"), + resourceids.UserSpecifiedSegment("tagRuleName", "ruleSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_get.go index 474586ae5757..1e082f6ccfad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_get.go @@ -45,7 +45,6 @@ func (c TagRulesClient) Get(ctx context.Context, id TagRuleId) (result GetOperat var model TagRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_update.go index 506548949c95..2d13398b1675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/method_update.go @@ -49,7 +49,6 @@ func (c TagRulesClient) Update(ctx context.Context, id TagRuleId, input TagRuleU var model TagRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/version.go index c7df0f2437ea..f70208fb38df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/newrelic/2022-07-01/tagrules/version.go @@ -1,12 +1,10 @@ package tagrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tagrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tagrules/2022-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md index b96160dec159..f563baa6e1ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate` Documentation -The `nginxcertificate` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2024-06-01-preview`). +The `nginxcertificate` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "certificateValue") +id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "certificateName") payload := nginxcertificate.NginxCertificate{ // ... @@ -41,7 +41,7 @@ if err := client.CertificatesCreateOrUpdateThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "certificateValue") +id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "certificateName") if err := client.CertificatesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.CertificatesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "certificateValue") +id := nginxcertificate.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "certificateName") read, err := client.CertificatesGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := nginxcertificate.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxcertificate.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") // alternatively `client.CertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CertificatesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go index afeaf1e338a2..336c79aab81b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/client.go @@ -15,7 +15,7 @@ type NginxCertificateClient struct { } func NewNginxCertificateClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxCertificateClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "nginxcertificate", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "nginxcertificate", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NginxCertificateClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go index cce2197f7fd7..6953311959f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go index be10f98b5576..061b73c073ce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/id_nginxdeployment.go @@ -42,7 +42,7 @@ func ParseNginxDeploymentID(input string) (*NginxDeploymentId, error) { } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNginxDeploymentIDInsensitively(input string) (*NginxDeploymentId, erro } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NginxDeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go index 6b8832d8eb6c..eda3885e158f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/method_certificatesget.go @@ -45,7 +45,6 @@ func (c NginxCertificateClient) CertificatesGet(ctx context.Context, id Certific var model NginxCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go index a7cab5e10c6d..55591c430fa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxcertificate/version.go @@ -1,12 +1,10 @@ package nginxcertificate -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/nginxcertificate/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/nginxcertificate/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md index 0258d9fb5dcd..93b8a637350f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration` Documentation -The `nginxconfiguration` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2024-06-01-preview`). +The `nginxconfiguration` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "configurationValue") +id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "configurationName") payload := nginxconfiguration.NginxConfiguration{ // ... @@ -41,7 +41,7 @@ if err := client.ConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != ```go ctx := context.TODO() -id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "configurationValue") +id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "configurationName") if err := client.ConfigurationsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.ConfigurationsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "configurationValue") +id := nginxconfiguration.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "configurationName") read, err := client.ConfigurationsGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := nginxconfiguration.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxconfiguration.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") // alternatively `client.ConfigurationsList(ctx, id)` can be used to do batched pagination items, err := client.ConfigurationsListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go index d845625bb590..4b2716041865 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/client.go @@ -15,7 +15,7 @@ type NginxConfigurationClient struct { } func NewNginxConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "nginxconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "nginxconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NginxConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go index f8a7f55611ee..c714eae36051 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go index 68f2adda8637..e359a29b5826 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/id_nginxdeployment.go @@ -42,7 +42,7 @@ func ParseNginxDeploymentID(input string) (*NginxDeploymentId, error) { } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNginxDeploymentIDInsensitively(input string) (*NginxDeploymentId, erro } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NginxDeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go index fd35b6eb8f76..581a836f57ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/method_configurationsget.go @@ -45,7 +45,6 @@ func (c NginxConfigurationClient) ConfigurationsGet(ctx context.Context, id Conf var model NginxConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go index 3fcb4bfbc88e..c2a5408e9849 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfiguration/version.go @@ -1,12 +1,10 @@ package nginxconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/nginxconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/nginxconfiguration/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md index 959b80f7f26a..2191418a77a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis` Documentation -The `nginxconfigurationanalysis` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2024-06-01-preview`). +The `nginxconfigurationanalysis` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nginxconfigurationanalysis.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue", "configurationValue") +id := nginxconfigurationanalysis.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName", "configurationName") payload := nginxconfigurationanalysis.AnalysisCreate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go index c35a72f8247a..f47cb464b957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/client.go @@ -15,7 +15,7 @@ type NginxConfigurationAnalysisClient struct { } func NewNginxConfigurationAnalysisClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxConfigurationAnalysisClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "nginxconfigurationanalysis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "nginxconfigurationanalysis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NginxConfigurationAnalysisClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go index 7c08c8dfa9de..06b670e325fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go index 2c91a12e8559..9ab6de7a6c12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/method_configurationsanalysis.go @@ -50,7 +50,6 @@ func (c NginxConfigurationAnalysisClient) ConfigurationsAnalysis(ctx context.Con var model AnalysisResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go index 48bdd2a99c39..ed68660d2961 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxconfigurationanalysis/version.go @@ -1,12 +1,10 @@ package nginxconfigurationanalysis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/nginxconfigurationanalysis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/nginxconfigurationanalysis/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md index 41cf55ca837f..1a38a1dd562a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment` Documentation -The `nginxdeployment` SDK allows for interaction with the Azure Resource Manager Service `nginx` (API Version `2024-06-01-preview`). +The `nginxdeployment` SDK allows for interaction with Azure Resource Manager `nginx` (API Version `2024-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") payload := nginxdeployment.NginxDeployment{ // ... @@ -42,7 +42,7 @@ if err := client.DeploymentsCreateOrUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") if err := client.DeploymentsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeploymentsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") read, err := client.DeploymentsGet(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "nginxDeploymentValue") +id := nginxdeployment.NewNginxDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentName") payload := nginxdeployment.NginxDeploymentUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go index 7f5e031b02e1..493f06f65d1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/client.go @@ -15,7 +15,7 @@ type NginxDeploymentClient struct { } func NewNginxDeploymentClientWithBaseURI(sdkApi sdkEnv.Api) (*NginxDeploymentClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "nginxdeployment", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "nginxdeployment", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NginxDeploymentClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go index dd965d354cfc..e327d5bf8843 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/id_nginxdeployment.go @@ -42,7 +42,7 @@ func ParseNginxDeploymentID(input string) (*NginxDeploymentId, error) { } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNginxDeploymentIDInsensitively(input string) (*NginxDeploymentId, erro } id := NginxDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NginxDeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticNginxNginxPlus", "Nginx.NginxPlus", "Nginx.NginxPlus"), resourceids.StaticSegment("staticNginxDeployments", "nginxDeployments", "nginxDeployments"), - resourceids.UserSpecifiedSegment("nginxDeploymentName", "nginxDeploymentValue"), + resourceids.UserSpecifiedSegment("nginxDeploymentName", "deploymentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go index 51818e9df349..cbf98927207a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/method_deploymentsget.go @@ -45,7 +45,6 @@ func (c NginxDeploymentClient) DeploymentsGet(ctx context.Context, id NginxDeplo var model NginxDeployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go index 821a4a635efe..c1ae933345b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2024-06-01-preview/nginxdeployment/version.go @@ -1,12 +1,10 @@ package nginxdeployment -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/nginxdeployment/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/nginxdeployment/2024-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/README.md index 892db6505bbe..55fa98c01e9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs` Documentation -The `hubs` SDK allows for interaction with the Azure Resource Manager Service `notificationhubs` (API Version `2023-09-01`). +The `hubs` SDK allows for interaction with Azure Resource Manager `notificationhubs` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := hubs.CheckAvailabilityParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") payload := hubs.NotificationHubResource{ // ... @@ -66,7 +66,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue") +id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName", "authorizationRuleName") payload := hubs.SharedAccessAuthorizationRuleResource{ // ... @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") read, err := client.NotificationHubsDebugSend(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") read, err := client.NotificationHubsDelete(ctx, id) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue") +id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName", "authorizationRuleName") read, err := client.NotificationHubsDeleteAuthorizationRule(ctx, id) if err != nil { @@ -135,7 +135,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") read, err := client.NotificationHubsGet(ctx, id) if err != nil { @@ -151,7 +151,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue") +id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName", "authorizationRuleName") read, err := client.NotificationHubsGetAuthorizationRule(ctx, id) if err != nil { @@ -167,7 +167,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") read, err := client.NotificationHubsGetPnsCredentials(ctx, id) if err != nil { @@ -183,7 +183,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.NotificationHubsList(ctx, id, hubs.DefaultNotificationHubsListOperationOptions())` can be used to do batched pagination items, err := client.NotificationHubsListComplete(ctx, id, hubs.DefaultNotificationHubsListOperationOptions()) @@ -200,7 +200,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") // alternatively `client.NotificationHubsListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.NotificationHubsListAuthorizationRulesComplete(ctx, id) @@ -217,7 +217,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue") +id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName", "authorizationRuleName") read, err := client.NotificationHubsListKeys(ctx, id) if err != nil { @@ -233,7 +233,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue") +id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName", "authorizationRuleName") payload := hubs.PolicyKeyResource{ // ... @@ -254,7 +254,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue") +id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "notificationHubName") payload := hubs.NotificationHubPatchParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/client.go index c5d60953536a..db6c72574cce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/client.go @@ -15,7 +15,7 @@ type HubsClient struct { } func NewHubsClientWithBaseURI(sdkApi sdkEnv.Api) (*HubsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hubs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hubs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HubsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_namespace.go index ad31a9d6ebf4..fcee3a6c3bf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNotificationHubs", "Microsoft.NotificationHubs", "Microsoft.NotificationHubs"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhub.go index d479d34200fb..8c1477daa97c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhub.go @@ -44,7 +44,7 @@ func ParseNotificationHubID(input string) (*NotificationHubId, error) { } id := NotificationHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNotificationHubIDInsensitively(input string) (*NotificationHubId, erro } id := NotificationHubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NotificationHubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNotificationHubs", "Microsoft.NotificationHubs", "Microsoft.NotificationHubs"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticNotificationHubs", "notificationHubs", "notificationHubs"), - resourceids.UserSpecifiedSegment("notificationHubName", "notificationHubValue"), + resourceids.UserSpecifiedSegment("notificationHubName", "notificationHubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhubauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhubauthorizationrule.go index 33dace896110..1ecf92728ac6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhubauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/id_notificationhubauthorizationrule.go @@ -46,7 +46,7 @@ func ParseNotificationHubAuthorizationRuleID(input string) (*NotificationHubAuth } id := NotificationHubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseNotificationHubAuthorizationRuleIDInsensitively(input string) (*Notifi } id := NotificationHubAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id NotificationHubAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNotificationHubs", "Microsoft.NotificationHubs", "Microsoft.NotificationHubs"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticNotificationHubs", "notificationHubs", "notificationHubs"), - resourceids.UserSpecifiedSegment("notificationHubName", "notificationHubValue"), + resourceids.UserSpecifiedSegment("notificationHubName", "notificationHubName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubschecknotificationhubavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubschecknotificationhubavailability.go index 00a7c9acad77..0f82aaf563ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubschecknotificationhubavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubschecknotificationhubavailability.go @@ -50,7 +50,6 @@ func (c HubsClient) NotificationHubsCheckNotificationHubAvailability(ctx context var model CheckAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdate.go index 8383789b298c..5829978cc1fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdate.go @@ -50,7 +50,6 @@ func (c HubsClient) NotificationHubsCreateOrUpdate(ctx context.Context, id Notif var model NotificationHubResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdateauthorizationrule.go index 973ca95f91b3..05df2da56308 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubscreateorupdateauthorizationrule.go @@ -50,7 +50,6 @@ func (c HubsClient) NotificationHubsCreateOrUpdateAuthorizationRule(ctx context. var model SharedAccessAuthorizationRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsdebugsend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsdebugsend.go index d183cb3ae165..52a6ca634f1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsdebugsend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsdebugsend.go @@ -46,7 +46,6 @@ func (c HubsClient) NotificationHubsDebugSend(ctx context.Context, id Notificati var model DebugSendResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsget.go index d70357899db6..7e89602128ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsget.go @@ -45,7 +45,6 @@ func (c HubsClient) NotificationHubsGet(ctx context.Context, id NotificationHubI var model NotificationHubResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetauthorizationrule.go index 39b2c44e9c0b..169f0304a00b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetauthorizationrule.go @@ -45,7 +45,6 @@ func (c HubsClient) NotificationHubsGetAuthorizationRule(ctx context.Context, id var model SharedAccessAuthorizationRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetpnscredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetpnscredentials.go index 4a304d127222..06c55c031908 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetpnscredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsgetpnscredentials.go @@ -46,7 +46,6 @@ func (c HubsClient) NotificationHubsGetPnsCredentials(ctx context.Context, id No var model PnsCredentialsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go index 4970dba0957b..c83f62873e68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslist.go @@ -39,6 +39,7 @@ func (o NotificationHubsListOperationOptions) ToHeaders() *client.Headers { func (o NotificationHubsListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistkeys.go index aa4c2ef9dd80..f83363747cfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubslistkeys.go @@ -46,7 +46,6 @@ func (c HubsClient) NotificationHubsListKeys(ctx context.Context, id Notificatio var model ResourceListKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsregeneratekeys.go index 448856fba902..cafd673159f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsregeneratekeys.go @@ -50,7 +50,6 @@ func (c HubsClient) NotificationHubsRegenerateKeys(ctx context.Context, id Notif var model ResourceListKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsupdate.go index 94343e8e3804..fbf96c704bad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/method_notificationhubsupdate.go @@ -49,7 +49,6 @@ func (c HubsClient) NotificationHubsUpdate(ctx context.Context, id NotificationH var model NotificationHubResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/version.go index f09f22407166..c3ddb29a0152 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs/version.go @@ -1,12 +1,10 @@ package hubs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hubs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hubs/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/README.md index dc9248c2cf12..ff29a400d17a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces` Documentation -The `namespaces` SDK allows for interaction with the Azure Resource Manager Service `notificationhubs` (API Version `2023-09-01`). +The `namespaces` SDK allows for interaction with Azure Resource Manager `notificationhubs` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.NamespaceResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespaces.SharedAccessAuthorizationRuleResource{ // ... @@ -84,7 +84,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Delete(ctx, id) if err != nil { @@ -100,7 +100,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.DeleteAuthorizationRule(ctx, id) if err != nil { @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.GetAuthorizationRule(ctx, id) if err != nil { @@ -148,7 +148,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.GetPnsCredentials(ctx, id) if err != nil { @@ -198,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.ListAuthorizationRulesComplete(ctx, id) @@ -215,7 +215,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -231,7 +231,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespaces.PolicyKeyResource{ // ... @@ -252,7 +252,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.NamespacePatchParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/client.go index c0bca4870e18..6a91c8e7de9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/client.go @@ -15,7 +15,7 @@ type NamespacesClient struct { } func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_authorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_authorizationrule.go index 9850cb9d1b5c..576976b7565a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_authorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_authorizationrule.go @@ -44,7 +44,7 @@ func ParseAuthorizationRuleID(input string) (*AuthorizationRuleId, error) { } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationRuleIDInsensitively(input string) (*AuthorizationRuleId, } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNotificationHubs", "Microsoft.NotificationHubs", "Microsoft.NotificationHubs"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_namespace.go index 93228b498b86..073d97d1c28b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNotificationHubs", "Microsoft.NotificationHubs", "Microsoft.NotificationHubs"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_checkavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_checkavailability.go index 5bcc2949329f..dd55175daecb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_checkavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_checkavailability.go @@ -51,7 +51,6 @@ func (c NamespacesClient) CheckAvailability(ctx context.Context, id commonids.Su var model CheckAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_createorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_createorupdateauthorizationrule.go index 66f97336f00b..ac43735f04a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_createorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_createorupdateauthorizationrule.go @@ -50,7 +50,6 @@ func (c NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, i var model SharedAccessAuthorizationRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_get.go index 0ec5efd9dd0f..05c6f6643c1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_get.go @@ -45,7 +45,6 @@ func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOp var model NamespaceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getauthorizationrule.go index 9bf152d36048..e7943f65b71a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getauthorizationrule.go @@ -45,7 +45,6 @@ func (c NamespacesClient) GetAuthorizationRule(ctx context.Context, id Authoriza var model SharedAccessAuthorizationRuleResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getpnscredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getpnscredentials.go index e429aaf1ccc4..43b961d1ea88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getpnscredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_getpnscredentials.go @@ -46,7 +46,6 @@ func (c NamespacesClient) GetPnsCredentials(ctx context.Context, id NamespaceId) var model PnsCredentialsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go index a899e019aa0d..9b173eca961e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go index c8c956b2708f..c101170074f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listall.go @@ -40,6 +40,7 @@ func (o ListAllOperationOptions) ToHeaders() *client.Headers { func (o ListAllOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listkeys.go index b687f64db490..5bfec38dbcff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_listkeys.go @@ -46,7 +46,6 @@ func (c NamespacesClient) ListKeys(ctx context.Context, id AuthorizationRuleId) var model ResourceListKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_regeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_regeneratekeys.go index 0065bfd2bef7..7f1081cb62dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_regeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_regeneratekeys.go @@ -50,7 +50,6 @@ func (c NamespacesClient) RegenerateKeys(ctx context.Context, id AuthorizationRu var model ResourceListKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_update.go index 20b73963ab74..c33927e2b898 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/method_update.go @@ -49,7 +49,6 @@ func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input Name var model NamespaceResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/version.go index 4f41179bf748..3282d9f96e1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/namespaces/version.go @@ -1,12 +1,10 @@ package namespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespaces/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/README.md index b6a4fd958a1b..38797656e49a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries` Documentation -The `querypackqueries` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2019-09-01`). +The `querypackqueries` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2019-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "queryValue") +id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName", "id") read, err := client.QueriesDelete(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "queryValue") +id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName", "id") read, err := client.QueriesGet(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypackqueries.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypackqueries.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") // alternatively `client.QueriesList(ctx, id, querypackqueries.DefaultQueriesListOperationOptions())` can be used to do batched pagination items, err := client.QueriesListComplete(ctx, id, querypackqueries.DefaultQueriesListOperationOptions()) @@ -73,7 +73,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "queryValue") +id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName", "id") payload := querypackqueries.LogAnalyticsQueryPackQuery{ // ... @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypackqueries.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypackqueries.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") payload := querypackqueries.LogAnalyticsQueryPackQuerySearchProperties{ // ... @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue", "queryValue") +id := querypackqueries.NewQueryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName", "id") payload := querypackqueries.LogAnalyticsQueryPackQuery{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/client.go index ab93dbedc621..d858936012ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/client.go @@ -15,7 +15,7 @@ type QueryPackQueriesClient struct { } func NewQueryPackQueriesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryPackQueriesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "querypackqueries", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "querypackqueries", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueryPackQueriesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_query.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_query.go index a208226e04c6..50185e56b24b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_query.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_query.go @@ -44,7 +44,7 @@ func ParseQueryID(input string) (*QueryId, error) { } id := QueryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseQueryIDInsensitively(input string) (*QueryId, error) { } id := QueryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id QueryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticQueryPacks", "queryPacks", "queryPacks"), - resourceids.UserSpecifiedSegment("queryPackName", "queryPackValue"), + resourceids.UserSpecifiedSegment("queryPackName", "queryPackName"), resourceids.StaticSegment("staticQueries", "queries", "queries"), - resourceids.UserSpecifiedSegment("queryName", "queryValue"), + resourceids.UserSpecifiedSegment("queryName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_querypack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_querypack.go index 519b4ad1aaf8..4f2002aa0090 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_querypack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/id_querypack.go @@ -42,7 +42,7 @@ func ParseQueryPackID(input string) (*QueryPackId, error) { } id := QueryPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseQueryPackIDInsensitively(input string) (*QueryPackId, error) { } id := QueryPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id QueryPackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticQueryPacks", "queryPacks", "queryPacks"), - resourceids.UserSpecifiedSegment("queryPackName", "queryPackValue"), + resourceids.UserSpecifiedSegment("queryPackName", "queryPackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesget.go index a23ba78653a6..ff8ffe93a7a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesget.go @@ -45,7 +45,6 @@ func (c QueryPackQueriesClient) QueriesGet(ctx context.Context, id QueryId) (res var model LogAnalyticsQueryPackQuery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go index 278058205dbc..f6173d9275c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_querieslist.go @@ -40,6 +40,7 @@ func (o QueriesListOperationOptions) ToHeaders() *client.Headers { func (o QueriesListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesput.go index e3a2b66a6a94..ecf150a81953 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesput.go @@ -49,7 +49,6 @@ func (c QueryPackQueriesClient) QueriesPut(ctx context.Context, id QueryId, inpu var model LogAnalyticsQueryPackQuery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go index b37a40c80c9c..7342fa8eeec9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriessearch.go @@ -40,6 +40,7 @@ func (o QueriesSearchOperationOptions) ToHeaders() *client.Headers { func (o QueriesSearchOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesupdate.go index 2d4aa8b2be89..8a547b353c8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/method_queriesupdate.go @@ -49,7 +49,6 @@ func (c QueryPackQueriesClient) QueriesUpdate(ctx context.Context, id QueryId, i var model LogAnalyticsQueryPackQuery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/version.go index ae64696c36c6..e890aa73c6ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypackqueries/version.go @@ -1,12 +1,10 @@ package querypackqueries -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/querypackqueries/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/querypackqueries/2019-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/README.md index 942563a11431..4e827ab435cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks` Documentation -The `querypacks` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2019-09-01`). +The `querypacks` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2019-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") payload := querypacks.LogAnalyticsQueryPack{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") read, err := client.Get(ctx, id) if err != nil { @@ -133,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackValue") +id := querypacks.NewQueryPackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "queryPackName") payload := querypacks.TagsResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/client.go index 0fc8fcf5c5c9..5efc5278ddde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/client.go @@ -15,7 +15,7 @@ type QueryPacksClient struct { } func NewQueryPacksClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryPacksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "querypacks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "querypacks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueryPacksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/id_querypack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/id_querypack.go index 7685c22183a8..3fe4cc2c22f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/id_querypack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/id_querypack.go @@ -42,7 +42,7 @@ func ParseQueryPackID(input string) (*QueryPackId, error) { } id := QueryPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseQueryPackIDInsensitively(input string) (*QueryPackId, error) { } id := QueryPackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id QueryPackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticQueryPacks", "queryPacks", "queryPacks"), - resourceids.UserSpecifiedSegment("queryPackName", "queryPackValue"), + resourceids.UserSpecifiedSegment("queryPackName", "queryPackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdate.go index cc2e68937df1..84a18b58e60e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdate.go @@ -50,7 +50,6 @@ func (c QueryPacksClient) CreateOrUpdate(ctx context.Context, id QueryPackId, in var model LogAnalyticsQueryPack result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdatewithoutname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdatewithoutname.go index 2a551eb74f2c..08a4740145cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdatewithoutname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_createorupdatewithoutname.go @@ -51,7 +51,6 @@ func (c QueryPacksClient) CreateOrUpdateWithoutName(ctx context.Context, id comm var model LogAnalyticsQueryPack result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_get.go index 1de39dec4d60..019de126545f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_get.go @@ -45,7 +45,6 @@ func (c QueryPacksClient) Get(ctx context.Context, id QueryPackId) (result GetOp var model LogAnalyticsQueryPack result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_updatetags.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_updatetags.go index d650a8795255..d4f837328408 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_updatetags.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/method_updatetags.go @@ -49,7 +49,6 @@ func (c QueryPacksClient) UpdateTags(ctx context.Context, id QueryPackId, input var model LogAnalyticsQueryPack result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/version.go index a95b1f7465c4..cadf70067271 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2019-09-01/querypacks/version.go @@ -1,12 +1,10 @@ package querypacks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/querypacks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/querypacks/2019-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/README.md index ef5cefbfee2a..79a71e6acdb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport` Documentation -The `dataexport` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `dataexport` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataExportValue") +id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataExportName") payload := dataexport.DataExport{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataExportValue") +id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataExportName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataExportValue") +id := dataexport.NewDataExportID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataExportName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dataexport.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := dataexport.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListByWorkspace(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/client.go index 19ed82dc0f08..5113e66d9c0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/client.go @@ -15,7 +15,7 @@ type DataExportClient struct { } func NewDataExportClientWithBaseURI(sdkApi sdkEnv.Api) (*DataExportClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dataexport", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dataexport", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataExportClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_dataexport.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_dataexport.go index eb4a8ae15347..a8de549cff8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_dataexport.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_dataexport.go @@ -44,7 +44,7 @@ func ParseDataExportID(input string) (*DataExportId, error) { } id := DataExportId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataExportIDInsensitively(input string) (*DataExportId, error) { } id := DataExportId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DataExportId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticDataExports", "dataExports", "dataExports"), - resourceids.UserSpecifiedSegment("dataExportName", "dataExportValue"), + resourceids.UserSpecifiedSegment("dataExportName", "dataExportName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_workspace.go index d4d3637046fa..c2506a768f91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_createorupdate.go index 03002752607f..6715bd687d95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DataExportClient) CreateOrUpdate(ctx context.Context, id DataExportId, i var model DataExport result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_get.go index fbad79dffd17..31181e611276 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_get.go @@ -45,7 +45,6 @@ func (c DataExportClient) Get(ctx context.Context, id DataExportId) (result GetO var model DataExport result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_listbyworkspace.go index 7b067ae2549b..aa783d2a0418 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/method_listbyworkspace.go @@ -46,7 +46,6 @@ func (c DataExportClient) ListByWorkspace(ctx context.Context, id WorkspaceId) ( var model DataExportListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/version.go index 9a7114faae88..453c47033691 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/dataexport/version.go @@ -1,12 +1,10 @@ package dataexport -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dataexport/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dataexport/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/README.md index 11cb9b0cbff9..9276e47e2420 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources` Documentation -The `datasources` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `datasources` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataSourceValue") +id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataSourceName") payload := datasources.DataSource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataSourceValue") +id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataSourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataSourceValue") +id := datasources.NewDataSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "dataSourceName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datasources.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := datasources.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.ListByWorkspace(ctx, id, datasources.DefaultListByWorkspaceOperationOptions())` can be used to do batched pagination items, err := client.ListByWorkspaceComplete(ctx, id, datasources.DefaultListByWorkspaceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/client.go index 5c880321274b..ab9ec31dddcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/client.go @@ -15,7 +15,7 @@ type DataSourcesClient struct { } func NewDataSourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*DataSourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datasources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datasources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataSourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_datasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_datasource.go index 310dd13d7892..2a95ddb8e6c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_datasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_datasource.go @@ -44,7 +44,7 @@ func ParseDataSourceID(input string) (*DataSourceId, error) { } id := DataSourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataSourceIDInsensitively(input string) (*DataSourceId, error) { } id := DataSourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DataSourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticDataSources", "dataSources", "dataSources"), - resourceids.UserSpecifiedSegment("dataSourceName", "dataSourceValue"), + resourceids.UserSpecifiedSegment("dataSourceName", "dataSourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_workspace.go index e68409f6998b..5325c571db51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_createorupdate.go index 23131864f915..0f409fcbaabb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DataSourcesClient) CreateOrUpdate(ctx context.Context, id DataSourceId, var model DataSource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_get.go index ce3217e06cc4..388310f131ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_get.go @@ -45,7 +45,6 @@ func (c DataSourcesClient) Get(ctx context.Context, id DataSourceId) (result Get var model DataSource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go index 27abd72a59df..909910b2332f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/method_listbyworkspace.go @@ -39,6 +39,7 @@ func (o ListByWorkspaceOperationOptions) ToHeaders() *client.Headers { func (o ListByWorkspaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/version.go index 3b9864f840d6..eeb4b13a8815 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/datasources/version.go @@ -1,12 +1,10 @@ package datasources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datasources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datasources/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/README.md index bf4685276860..ae260000170f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices` Documentation -The `linkedservices` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `linkedservices` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "linkedServiceValue") +id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "linkedServiceName") payload := linkedservices.LinkedService{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "linkedServiceValue") +id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "linkedServiceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "linkedServiceValue") +id := linkedservices.NewLinkedServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "linkedServiceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := linkedservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := linkedservices.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListByWorkspace(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/client.go index c016c4a2bb87..3dad68f5d5e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/client.go @@ -15,7 +15,7 @@ type LinkedServicesClient struct { } func NewLinkedServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*LinkedServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "linkedservices", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "linkedservices", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LinkedServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_linkedservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_linkedservice.go index f8c09a593a99..a2f3b24e4911 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_linkedservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_linkedservice.go @@ -44,7 +44,7 @@ func ParseLinkedServiceID(input string) (*LinkedServiceId, error) { } id := LinkedServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLinkedServiceIDInsensitively(input string) (*LinkedServiceId, error) { } id := LinkedServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LinkedServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticLinkedServices", "linkedServices", "linkedServices"), - resourceids.UserSpecifiedSegment("linkedServiceName", "linkedServiceValue"), + resourceids.UserSpecifiedSegment("linkedServiceName", "linkedServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_workspace.go index 4966f3d66fe6..16b754510d2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_get.go index bb490dfbf7b2..f4d0d98ffdde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_get.go @@ -45,7 +45,6 @@ func (c LinkedServicesClient) Get(ctx context.Context, id LinkedServiceId) (resu var model LinkedService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_listbyworkspace.go index 48944a1aca89..9c72f2b544d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/method_listbyworkspace.go @@ -46,7 +46,6 @@ func (c LinkedServicesClient) ListByWorkspace(ctx context.Context, id WorkspaceI var model LinkedServiceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/version.go index bda0bc9da97d..46aac81d4247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedservices/version.go @@ -1,12 +1,10 @@ package linkedservices -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/linkedservices/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/linkedservices/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/README.md index 9bf73a25928e..dbe7b298cd8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts` Documentation -The `linkedstorageaccounts` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `linkedstorageaccounts` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "Alerts") +id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "Alerts") payload := linkedstorageaccounts.LinkedStorageAccountsResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "Alerts") +id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "Alerts") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "Alerts") +id := linkedstorageaccounts.NewDataSourceTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "Alerts") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := linkedstorageaccounts.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := linkedstorageaccounts.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListByWorkspace(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/client.go index 79be37a0eaa2..951ac7536f6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/client.go @@ -15,7 +15,7 @@ type LinkedStorageAccountsClient struct { } func NewLinkedStorageAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*LinkedStorageAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "linkedstorageaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "linkedstorageaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LinkedStorageAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_datasourcetype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_datasourcetype.go index 0be17e30d4b1..42d6a1c2a50a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_datasourcetype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_datasourcetype.go @@ -44,7 +44,7 @@ func ParseDataSourceTypeID(input string) (*DataSourceTypeId, error) { } id := DataSourceTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDataSourceTypeIDInsensitively(input string) (*DataSourceTypeId, error) } id := DataSourceTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id DataSourceTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticLinkedStorageAccounts", "linkedStorageAccounts", "linkedStorageAccounts"), resourceids.ConstantSegment("dataSourceType", PossibleValuesForDataSourceType(), "Alerts"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_workspace.go index fb67d5b36349..1f6d261f8a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_createorupdate.go index 732b8f3c97bd..713373c104fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_createorupdate.go @@ -49,7 +49,6 @@ func (c LinkedStorageAccountsClient) CreateOrUpdate(ctx context.Context, id Data var model LinkedStorageAccountsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_get.go index 823a7c4ca3cc..085a74b9f9a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_get.go @@ -45,7 +45,6 @@ func (c LinkedStorageAccountsClient) Get(ctx context.Context, id DataSourceTypeI var model LinkedStorageAccountsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_listbyworkspace.go index 750a4b73ef7c..2e40bd1dc6c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/method_listbyworkspace.go @@ -46,7 +46,6 @@ func (c LinkedStorageAccountsClient) ListByWorkspace(ctx context.Context, id Wor var model LinkedStorageAccountsListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/version.go index 0ffafcf0449d..4c84db8ffdd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/linkedstorageaccounts/version.go @@ -1,12 +1,10 @@ package linkedstorageaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/linkedstorageaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/linkedstorageaccounts/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/README.md index cf05f30c1e39..e6035473804d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches` Documentation -The `savedsearches` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `savedsearches` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "savedSearchIdValue") +id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "savedSearchId") payload := savedsearches.SavedSearch{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "savedSearchIdValue") +id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "savedSearchId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "savedSearchIdValue") +id := savedsearches.NewSavedSearchID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "savedSearchId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := savedsearches.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := savedsearches.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListByWorkspace(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/client.go index f96f8e1f7935..feb243cf4e4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/client.go @@ -15,7 +15,7 @@ type SavedSearchesClient struct { } func NewSavedSearchesClientWithBaseURI(sdkApi sdkEnv.Api) (*SavedSearchesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "savedsearches", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "savedsearches", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SavedSearchesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_savedsearch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_savedsearch.go index 940ab0b970d3..ede0c729bf52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_savedsearch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_savedsearch.go @@ -44,7 +44,7 @@ func ParseSavedSearchID(input string) (*SavedSearchId, error) { } id := SavedSearchId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSavedSearchIDInsensitively(input string) (*SavedSearchId, error) { } id := SavedSearchId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SavedSearchId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticSavedSearches", "savedSearches", "savedSearches"), - resourceids.UserSpecifiedSegment("savedSearchId", "savedSearchIdValue"), + resourceids.UserSpecifiedSegment("savedSearchId", "savedSearchId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_workspace.go index a875e592288f..bbbfffcfcedc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_createorupdate.go index b5488dfdcc7e..69d3a92a12df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_createorupdate.go @@ -49,7 +49,6 @@ func (c SavedSearchesClient) CreateOrUpdate(ctx context.Context, id SavedSearchI var model SavedSearch result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_get.go index 7071f71c730e..cd5ba498ecbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_get.go @@ -45,7 +45,6 @@ func (c SavedSearchesClient) Get(ctx context.Context, id SavedSearchId) (result var model SavedSearch result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_listbyworkspace.go index 5e27f7fc6d6b..6c253f74e3a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/method_listbyworkspace.go @@ -46,7 +46,6 @@ func (c SavedSearchesClient) ListByWorkspace(ctx context.Context, id WorkspaceId var model SavedSearchesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/version.go index 333041cc823c..94980d5a2c55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/savedsearches/version.go @@ -1,12 +1,10 @@ package savedsearches -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/savedsearches/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/savedsearches/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/README.md index 36552c7ac446..0881a000347c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights` Documentation -The `storageinsights` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `storageinsights` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "storageInsightConfigValue") +id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "storageInsightName") payload := storageinsights.StorageInsight{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "storageInsightConfigValue") +id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "storageInsightName") read, err := client.StorageInsightConfigsDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "storageInsightConfigValue") +id := storageinsights.NewStorageInsightConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "storageInsightName") read, err := client.StorageInsightConfigsGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storageinsights.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := storageinsights.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.StorageInsightConfigsListByWorkspace(ctx, id)` can be used to do batched pagination items, err := client.StorageInsightConfigsListByWorkspaceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/client.go index 45c605974755..8db4661f5724 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/client.go @@ -15,7 +15,7 @@ type StorageInsightsClient struct { } func NewStorageInsightsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageInsightsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storageinsights", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storageinsights", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageInsightsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_storageinsightconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_storageinsightconfig.go index 2c24b1d768c3..c2e3183fb0f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_storageinsightconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_storageinsightconfig.go @@ -44,7 +44,7 @@ func ParseStorageInsightConfigID(input string) (*StorageInsightConfigId, error) } id := StorageInsightConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseStorageInsightConfigIDInsensitively(input string) (*StorageInsightConf } id := StorageInsightConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id StorageInsightConfigId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticStorageInsightConfigs", "storageInsightConfigs", "storageInsightConfigs"), - resourceids.UserSpecifiedSegment("storageInsightConfigName", "storageInsightConfigValue"), + resourceids.UserSpecifiedSegment("storageInsightConfigName", "storageInsightName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_workspace.go index 392b886c68e8..f90f45ddb97d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigscreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigscreateorupdate.go index b631394509dc..8f2360466e4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigscreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigscreateorupdate.go @@ -50,7 +50,6 @@ func (c StorageInsightsClient) StorageInsightConfigsCreateOrUpdate(ctx context.C var model StorageInsight result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigsget.go index 58ee9d57ebf4..ec74aa1f07cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/method_storageinsightconfigsget.go @@ -45,7 +45,6 @@ func (c StorageInsightsClient) StorageInsightConfigsGet(ctx context.Context, id var model StorageInsight result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/version.go index 25d748fb8dde..eaa8bd22e14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/storageinsights/version.go @@ -1,12 +1,10 @@ package storageinsights -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storageinsights/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storageinsights/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/README.md index b5ec02f51908..09d95eda17f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2020-08-01`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2020-08-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := workspaces.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "gatewayIdValue") +id := workspaces.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "gatewayId") read, err := client.GatewaysDelete(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "intelligencePackValue") +id := workspaces.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "intelligencePackName") read, err := client.IntelligencePacksDisable(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "intelligencePackValue") +id := workspaces.NewIntelligencePackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "intelligencePackName") read, err := client.IntelligencePacksEnable(ctx, id) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.IntelligencePacksList(ctx, id) if err != nil { @@ -166,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ManagementGroupsList(ctx, id) if err != nil { @@ -182,7 +182,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.SchemaGet(ctx, id) if err != nil { @@ -198,7 +198,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.SharedKeysGetSharedKeys(ctx, id) if err != nil { @@ -214,7 +214,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.SharedKeysRegenerate(ctx, id) if err != nil { @@ -230,7 +230,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspacePatch{ // ... @@ -251,7 +251,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.UsagesList(ctx, id) if err != nil { @@ -267,7 +267,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "purgeIdValue") +id := workspaces.NewOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "purgeId") read, err := client.WorkspacePurgeGetPurgeStatus(ctx, id) if err != nil { @@ -283,7 +283,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspacePurgeBody{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_gateway.go index acc37589b7fe..ca187d0ee65b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_gateway.go @@ -44,7 +44,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayId", "gatewayIdValue"), + resourceids.UserSpecifiedSegment("gatewayId", "gatewayId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_intelligencepack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_intelligencepack.go index 4ea1c4be8d42..5a01f4d44e05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_intelligencepack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_intelligencepack.go @@ -44,7 +44,7 @@ func ParseIntelligencePackID(input string) (*IntelligencePackId, error) { } id := IntelligencePackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseIntelligencePackIDInsensitively(input string) (*IntelligencePackId, er } id := IntelligencePackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id IntelligencePackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticIntelligencePacks", "intelligencePacks", "intelligencePacks"), - resourceids.UserSpecifiedSegment("intelligencePackName", "intelligencePackValue"), + resourceids.UserSpecifiedSegment("intelligencePackName", "intelligencePackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_operation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_operation.go index 103b2fb2e60e..4a9ea94f6bb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_operation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_operation.go @@ -44,7 +44,7 @@ func ParseOperationID(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOperationIDInsensitively(input string) (*OperationId, error) { } id := OperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticOperations", "operations", "operations"), - resourceids.UserSpecifiedSegment("purgeId", "purgeIdValue"), + resourceids.UserSpecifiedSegment("purgeId", "purgeId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_workspace.go index b9e04bd69f69..9d25173b3993 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go index 7a3578c51089..1189ee0127ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_intelligencepackslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_intelligencepackslist.go index e6f4f354783f..1e92df537ca2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_intelligencepackslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_intelligencepackslist.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) IntelligencePacksList(ctx context.Context, id Workspac var model []IntelligencePack result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_list.go index e0b5ea8aa5c8..7981337e0f00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_list.go @@ -47,7 +47,6 @@ func (c WorkspacesClient) List(ctx context.Context, id commonids.SubscriptionId) var model WorkspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_listbyresourcegroup.go index 06a582462620..80e71d20aa01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. var model WorkspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_managementgroupslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_managementgroupslist.go index df774a46e7fb..596c5d1dab16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_managementgroupslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_managementgroupslist.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) ManagementGroupsList(ctx context.Context, id Workspace var model WorkspaceListManagementGroupsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_schemaget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_schemaget.go index c6d626ff127b..eb7127f39af3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_schemaget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_schemaget.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) SchemaGet(ctx context.Context, id WorkspaceId) (result var model SearchGetSchemaResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysgetsharedkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysgetsharedkeys.go index 4d2c51fa343c..91f8d2b6d414 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysgetsharedkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysgetsharedkeys.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) SharedKeysGetSharedKeys(ctx context.Context, id Worksp var model SharedKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysregenerate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysregenerate.go index 09bf6d4449e4..df4473f50077 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysregenerate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_sharedkeysregenerate.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) SharedKeysRegenerate(ctx context.Context, id Workspace var model SharedKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_update.go index b7cb243bd8a5..cd8c04ff9c2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_update.go @@ -49,7 +49,6 @@ func (c WorkspacesClient) Update(ctx context.Context, id WorkspaceId, input Work var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_usageslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_usageslist.go index 1f5055e6e1f8..16742cf72848 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_usageslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_usageslist.go @@ -46,7 +46,6 @@ func (c WorkspacesClient) UsagesList(ctx context.Context, id WorkspaceId) (resul var model WorkspaceListUsagesResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgegetpurgestatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgegetpurgestatus.go index 7f729a335c87..223c603de91d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgegetpurgestatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgegetpurgestatus.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) WorkspacePurgeGetPurgeStatus(ctx context.Context, id O var model WorkspacePurgeStatusResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgepurge.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgepurge.go index f3e8061b718a..2899a83661e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgepurge.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/method_workspacepurgepurge.go @@ -50,7 +50,6 @@ func (c WorkspacesClient) WorkspacePurgePurge(ctx context.Context, id WorkspaceI var model WorkspacePurgeResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/version.go index 34a779bd0007..2b227d3f58b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2020-08-01/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-08-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2020-08-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/README.md index 340c455082a5..b9da78bf9f99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2022-10-01`). +The `clusters` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.Cluster{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/id_cluster.go index c3194d648b6b..0bb42eab67cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/method_get.go index 73c53aa936be..8265f74e8631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/method_get.go @@ -45,7 +45,6 @@ func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperat var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/version.go index 0c41c0fec497..4d14626b6793 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/README.md index cffb6cdec393..e4704281058f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables` Documentation -The `tables` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2022-10-01`). +The `tables` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") read, err := client.CancelSearch(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") payload := tables.Table{ // ... @@ -57,7 +57,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -69,7 +69,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") read, err := client.Get(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tables.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := tables.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.ListByWorkspace(ctx, id) if err != nil { @@ -101,7 +101,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") read, err := client.Migrate(ctx, id) if err != nil { @@ -117,7 +117,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "tableValue") +id := tables.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "tableName") payload := tables.Table{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/client.go index 406ff177ddbd..d448018bd46f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/client.go @@ -15,7 +15,7 @@ type TablesClient struct { } func NewTablesClientWithBaseURI(sdkApi sdkEnv.Api) (*TablesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tables", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tables", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TablesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_table.go index d1aba74a90f8..5dbc9e51d283 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_table.go @@ -44,7 +44,7 @@ func ParseTableID(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTableIDInsensitively(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_workspace.go index daf8916b51c1..a7abfc487d38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_get.go index d442fe1f0b5b..6418a17d96de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_get.go @@ -45,7 +45,6 @@ func (c TablesClient) Get(ctx context.Context, id TableId) (result GetOperationR var model Table result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_listbyworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_listbyworkspace.go index b2f0592c9863..a22495c0a5e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_listbyworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/method_listbyworkspace.go @@ -46,7 +46,6 @@ func (c TablesClient) ListByWorkspace(ctx context.Context, id WorkspaceId) (resu var model TablesListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/version.go index 538187ee2860..49d1301cf4d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/tables/version.go @@ -1,12 +1,10 @@ package tables -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tables/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tables/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/README.md index d32a4dead713..c003c907a4a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces` Documentation -The `workspaces` SDK allows for interaction with the Azure Resource Manager Service `operationalinsights` (API Version `2022-10-01`). +The `workspaces` SDK allows for interaction with Azure Resource Manager `operationalinsights` (API Version `2022-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.Workspace{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, workspaces.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := workspaces.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") payload := workspaces.WorkspacePatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/client.go index d599252c05cd..c6ef3485d225 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/client.go @@ -15,7 +15,7 @@ type WorkspacesClient struct { } func NewWorkspacesClientWithBaseURI(sdkApi sdkEnv.Api) (*WorkspacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "workspaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "workspaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WorkspacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/id_workspace.go index b9e04bd69f69..9d25173b3993 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go index 7a3578c51089..1189ee0127ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_get.go index d4a1a279a978..532c4ea30f78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_get.go @@ -45,7 +45,6 @@ func (c WorkspacesClient) Get(ctx context.Context, id WorkspaceId) (result GetOp var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_list.go index e0b5ea8aa5c8..7981337e0f00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_list.go @@ -47,7 +47,6 @@ func (c WorkspacesClient) List(ctx context.Context, id commonids.SubscriptionId) var model WorkspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_listbyresourcegroup.go index 06a582462620..80e71d20aa01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c WorkspacesClient) ListByResourceGroup(ctx context.Context, id commonids. var model WorkspaceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_update.go index b7cb243bd8a5..cd8c04ff9c2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/method_update.go @@ -49,7 +49,6 @@ func (c WorkspacesClient) Update(ctx context.Context, id WorkspaceId, input Work var model Workspace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/version.go index 476267ce8571..dfd2dd25fe81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationalinsights/2022-10-01/workspaces/version.go @@ -1,12 +1,10 @@ package workspaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/workspaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/workspaces/2022-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md index d83830aa05c6..af836fd9cc5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution` Documentation -The `solution` SDK allows for interaction with the Azure Resource Manager Service `operationsmanagement` (API Version `2015-11-01-preview`). +The `solution` SDK allows for interaction with Azure Resource Manager `operationsmanagement` (API Version `2015-11-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue") +id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionName") payload := solution.Solution{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue") +id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue") +id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionValue") +id := solution.NewSolutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "solutionName") payload := solution.SolutionPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/client.go index be3ababf3d89..b3d069c42305 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/client.go @@ -15,7 +15,7 @@ type SolutionClient struct { } func NewSolutionClientWithBaseURI(sdkApi sdkEnv.Api) (*SolutionClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "solution", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "solution", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SolutionClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/id_solution.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/id_solution.go index c69c67c2378c..936778e7fbe9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/id_solution.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/id_solution.go @@ -42,7 +42,7 @@ func ParseSolutionID(input string) (*SolutionId, error) { } id := SolutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSolutionIDInsensitively(input string) (*SolutionId, error) { } id := SolutionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SolutionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationsManagement", "Microsoft.OperationsManagement", "Microsoft.OperationsManagement"), resourceids.StaticSegment("staticSolutions", "solutions", "solutions"), - resourceids.UserSpecifiedSegment("solutionName", "solutionValue"), + resourceids.UserSpecifiedSegment("solutionName", "solutionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_get.go index 7bcda288037d..dd71c03ce245 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_get.go @@ -45,7 +45,6 @@ func (c SolutionClient) Get(ctx context.Context, id SolutionId) (result GetOpera var model Solution result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbyresourcegroup.go index e1c2564602b8..16078ac0b214 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c SolutionClient) ListByResourceGroup(ctx context.Context, id commonids.Re var model SolutionPropertiesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbysubscription.go index b889f943e854..37ba672f6900 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c SolutionClient) ListBySubscription(ctx context.Context, id commonids.Sub var model SolutionPropertiesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/version.go index cd2e94380815..f9512e1bc649 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/operationsmanagement/2015-11-01-preview/solution/version.go @@ -1,12 +1,10 @@ package solution -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-11-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/solution/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/solution/2015-11-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/README.md index d3ae58ffa690..61b8ec2e3796 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact` Documentation -The `contact` SDK allows for interaction with the Azure Resource Manager Service `orbital` (API Version `2022-11-01`). +The `contact` SDK allows for interaction with Azure Resource Manager `orbital` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue", "contactValue") +id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName", "contactName") payload := contact.Contact{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue", "contactValue") +id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName", "contactName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue", "contactValue") +id := contact.NewContactID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName", "contactName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := contact.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := contact.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := contact.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := contact.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") payload := contact.ContactParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/client.go index 06b7b8ac9122..7f5630f5e97c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/client.go @@ -15,7 +15,7 @@ type ContactClient struct { } func NewContactClientWithBaseURI(sdkApi sdkEnv.Api) (*ContactClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "contact", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "contact", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContactClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_contact.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_contact.go index 9fc5c6f4a8ea..2f52f21d0a64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_contact.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_contact.go @@ -44,7 +44,7 @@ func ParseContactID(input string) (*ContactId, error) { } id := ContactId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseContactIDInsensitively(input string) (*ContactId, error) { } id := ContactId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ContactId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOrbital", "Microsoft.Orbital", "Microsoft.Orbital"), resourceids.StaticSegment("staticSpacecrafts", "spacecrafts", "spacecrafts"), - resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftValue"), + resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftName"), resourceids.StaticSegment("staticContacts", "contacts", "contacts"), - resourceids.UserSpecifiedSegment("contactName", "contactValue"), + resourceids.UserSpecifiedSegment("contactName", "contactName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_spacecraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_spacecraft.go index ddcc9d79f292..2ad058d58997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_spacecraft.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/id_spacecraft.go @@ -42,7 +42,7 @@ func ParseSpacecraftID(input string) (*SpacecraftId, error) { } id := SpacecraftId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSpacecraftIDInsensitively(input string) (*SpacecraftId, error) { } id := SpacecraftId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SpacecraftId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOrbital", "Microsoft.Orbital", "Microsoft.Orbital"), resourceids.StaticSegment("staticSpacecrafts", "spacecrafts", "spacecrafts"), - resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftValue"), + resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_get.go index ca90eb24bbec..60f7237cf6d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/method_get.go @@ -45,7 +45,6 @@ func (c ContactClient) Get(ctx context.Context, id ContactId) (result GetOperati var model Contact result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/version.go index ceec4d3407b2..0d04fa59e92c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contact/version.go @@ -1,12 +1,10 @@ package contact -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/contact/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/contact/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/README.md index 46c157e1ef4b..bc8134796ac7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile` Documentation -The `contactprofile` SDK allows for interaction with the Azure Resource Manager Service `orbital` (API Version `2022-11-01`). +The `contactprofile` SDK allows for interaction with Azure Resource Manager `orbital` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileValue") +id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileName") payload := contactprofile.ContactProfile{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileValue") +id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileValue") +id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileValue") +id := contactprofile.NewContactProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "contactProfileName") payload := contactprofile.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/client.go index 30f4fccd0053..b47d22f6fe25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/client.go @@ -15,7 +15,7 @@ type ContactProfileClient struct { } func NewContactProfileClientWithBaseURI(sdkApi sdkEnv.Api) (*ContactProfileClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "contactprofile", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "contactprofile", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ContactProfileClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/id_contactprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/id_contactprofile.go index 91276e3c4838..062087399d91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/id_contactprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/id_contactprofile.go @@ -42,7 +42,7 @@ func ParseContactProfileID(input string) (*ContactProfileId, error) { } id := ContactProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseContactProfileIDInsensitively(input string) (*ContactProfileId, error) } id := ContactProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ContactProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOrbital", "Microsoft.Orbital", "Microsoft.Orbital"), resourceids.StaticSegment("staticContactProfiles", "contactProfiles", "contactProfiles"), - resourceids.UserSpecifiedSegment("contactProfileName", "contactProfileValue"), + resourceids.UserSpecifiedSegment("contactProfileName", "contactProfileName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/method_get.go index 7c6d60be8c7f..179b3bb9d0ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/method_get.go @@ -45,7 +45,6 @@ func (c ContactProfileClient) Get(ctx context.Context, id ContactProfileId) (res var model ContactProfile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/version.go index 2b4ad08b2afb..d54559865a81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/contactprofile/version.go @@ -1,12 +1,10 @@ package contactprofile -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/contactprofile/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/contactprofile/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/README.md index ef2db0e34a8d..196f2f5cd2b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation` Documentation -The `groundstation` SDK allows for interaction with the Azure Resource Manager Service `orbital` (API Version `2022-11-01`). +The `groundstation` SDK allows for interaction with Azure Resource Manager `orbital` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/client.go index 7b8bff86d253..6aecc6ecd093 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/client.go @@ -15,7 +15,7 @@ type GroundStationClient struct { } func NewGroundStationClientWithBaseURI(sdkApi sdkEnv.Api) (*GroundStationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "groundstation", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "groundstation", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GroundStationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go index 7844bdcbea17..57fbc592d963 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/method_availablegroundstationslistbycapability.go @@ -40,6 +40,7 @@ func (o AvailableGroundStationsListByCapabilityOperationOptions) ToHeaders() *cl func (o AvailableGroundStationsListByCapabilityOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/version.go index d1ad6a03aac5..b50fcb486f52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/groundstation/version.go @@ -1,12 +1,10 @@ package groundstation -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/groundstation/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/groundstation/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/README.md index de85d7e389d9..1b48ffe991e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft` Documentation -The `spacecraft` SDK allows for interaction with the Azure Resource Manager Service `orbital` (API Version `2022-11-01`). +The `spacecraft` SDK allows for interaction with Azure Resource Manager `orbital` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") payload := spacecraft.Spacecraft{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftValue") +id := spacecraft.NewSpacecraftID("12345678-1234-9876-4563-123456789012", "example-resource-group", "spacecraftName") payload := spacecraft.TagsObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/client.go index c9566da93011..a7bf26560b8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/client.go @@ -15,7 +15,7 @@ type SpacecraftClient struct { } func NewSpacecraftClientWithBaseURI(sdkApi sdkEnv.Api) (*SpacecraftClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "spacecraft", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "spacecraft", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SpacecraftClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/id_spacecraft.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/id_spacecraft.go index f85a9ea744e9..6f537600973a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/id_spacecraft.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/id_spacecraft.go @@ -42,7 +42,7 @@ func ParseSpacecraftID(input string) (*SpacecraftId, error) { } id := SpacecraftId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSpacecraftIDInsensitively(input string) (*SpacecraftId, error) { } id := SpacecraftId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SpacecraftId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOrbital", "Microsoft.Orbital", "Microsoft.Orbital"), resourceids.StaticSegment("staticSpacecrafts", "spacecrafts", "spacecrafts"), - resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftValue"), + resourceids.UserSpecifiedSegment("spacecraftName", "spacecraftName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/method_get.go index 93049185768c..fd0f609b6dd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/method_get.go @@ -45,7 +45,6 @@ func (c SpacecraftClient) Get(ctx context.Context, id SpacecraftId) (result GetO var model Spacecraft result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/version.go index e8ab09d9962d..7c2916c19310 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/orbital/2022-11-01/spacecraft/version.go @@ -1,12 +1,10 @@ package spacecraft -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/spacecraft/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/spacecraft/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/README.md index f6bc92cfbd14..76c0a7895e9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack` Documentation -The `certificateobjectglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `certificateobjectglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") payload := certificateobjectglobalrulestack.CertificateObjectGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := certificateobjectglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/client.go index 81daa7cb5899..74bea4fa5aa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/client.go @@ -15,7 +15,7 @@ type CertificateObjectGlobalRulestackClient struct { } func NewCertificateObjectGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateObjectGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificateobjectglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificateobjectglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateObjectGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_certificate.go index c3cecabb6ec9..bd222d9a0568 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_certificate.go @@ -40,7 +40,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_globalrulestack.go index 21da85579c25..09bf96e9f757 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_get.go index aa1f5111026a..015062d8672f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c CertificateObjectGlobalRulestackClient) Get(ctx context.Context, id Cert var model CertificateObjectGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/version.go index 2fb0ae27c4d4..95a5e969e9e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectglobalrulestack/version.go @@ -1,12 +1,10 @@ package certificateobjectglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificateobjectglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificateobjectglobalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/README.md index 1b230a63a1d1..82981f05ec3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack` Documentation -The `certificateobjectlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `certificateobjectlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := certificateobjectlocalrulestack.CertificateObjectLocalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := certificateobjectlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/client.go index e799a0619147..a7f1c6890abc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/client.go @@ -15,7 +15,7 @@ type CertificateObjectLocalRulestackClient struct { } func NewCertificateObjectLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateObjectLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificateobjectlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificateobjectlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateObjectLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestack.go index cc5fe21cb4f0..ff2155f4e8a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestackcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestackcertificate.go index 598daafed06c..e9a183dfab6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestackcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/id_localrulestackcertificate.go @@ -44,7 +44,7 @@ func ParseLocalRulestackCertificateID(input string) (*LocalRulestackCertificateI } id := LocalRulestackCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackCertificateIDInsensitively(input string) (*LocalRulestac } id := LocalRulestackCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_get.go index ef20db0a4886..bff5b5250a1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c CertificateObjectLocalRulestackClient) Get(ctx context.Context, id Local var model CertificateObjectLocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/version.go index 3aa7dab9042c..66d222c9ef3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/certificateobjectlocalrulestack/version.go @@ -1,12 +1,10 @@ package certificateobjectlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificateobjectlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificateobjectlocalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md index b061469bd762..c477c078a5b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls` Documentation -The `firewalls` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `firewalls` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.LogSettings{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.FirewallResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetGlobalRulestack(ctx, id) if err != nil { @@ -107,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetLogProfile(ctx, id) if err != nil { @@ -123,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetSupportInfo(ctx, id, firewalls.DefaultGetSupportInfoOperationOptions()) if err != nil { @@ -173,7 +173,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.FirewallResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/client.go index 5268f82e790a..10331bb3c62a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/client.go @@ -15,7 +15,7 @@ type FirewallsClient struct { } func NewFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewalls", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewalls", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/id_firewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/id_firewall.go index fbd64f7719a2..773b888194a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/id_firewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/id_firewall.go @@ -42,7 +42,7 @@ func ParseFirewallID(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallIDInsensitively(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticFirewalls", "firewalls", "firewalls"), - resourceids.UserSpecifiedSegment("firewallName", "firewallValue"), + resourceids.UserSpecifiedSegment("firewallName", "firewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_get.go index 02deaeaf3166..dc50e315a9c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_get.go @@ -45,7 +45,6 @@ func (c FirewallsClient) Get(ctx context.Context, id FirewallId) (result GetOper var model FirewallResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getglobalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getglobalrulestack.go index 50bceaad7d40..0269ad012557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getglobalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getglobalrulestack.go @@ -46,7 +46,6 @@ func (c FirewallsClient) GetGlobalRulestack(ctx context.Context, id FirewallId) var model GlobalRulestackInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getlogprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getlogprofile.go index 3dbe88ec58af..6c18f762889f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getlogprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getlogprofile.go @@ -46,7 +46,6 @@ func (c FirewallsClient) GetLogProfile(ctx context.Context, id FirewallId) (resu var model LogSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go index ca6cea4afef3..e60a81434b84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_getsupportinfo.go @@ -34,6 +34,7 @@ func (o GetSupportInfoOperationOptions) ToHeaders() *client.Headers { func (o GetSupportInfoOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c FirewallsClient) GetSupportInfo(ctx context.Context, id FirewallId, opti var model SupportInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_update.go index 4fc093bd9fa0..3f1bdeadd160 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/method_update.go @@ -49,7 +49,6 @@ func (c FirewallsClient) Update(ctx context.Context, id FirewallId, input Firewa var model FirewallResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/version.go index 40c4144d4baa..ca80ba8d2e2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewalls/version.go @@ -1,12 +1,10 @@ package firewalls -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewalls/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewalls/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/README.md index 31470b7364cb..c023471929e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus` Documentation -The `firewallstatus` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `firewallstatus` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") // alternatively `client.ListByFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListByFirewallsComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/client.go index f55eaa75b88f..94bd4f9beb91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/client.go @@ -15,7 +15,7 @@ type FirewallStatusClient struct { } func NewFirewallStatusClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallStatusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallstatus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallstatus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallStatusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/id_firewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/id_firewall.go index 2b6801d77498..51f828dcdcc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/id_firewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/id_firewall.go @@ -42,7 +42,7 @@ func ParseFirewallID(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallIDInsensitively(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticFirewalls", "firewalls", "firewalls"), - resourceids.UserSpecifiedSegment("firewallName", "firewallValue"), + resourceids.UserSpecifiedSegment("firewallName", "firewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_get.go index bbbd5449ba2b..bb3da66ebb5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/method_get.go @@ -46,7 +46,6 @@ func (c FirewallStatusClient) Get(ctx context.Context, id FirewallId) (result Ge var model FirewallStatusResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/version.go index ee6d95e070c4..b4690d033c40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/firewallstatus/version.go @@ -1,12 +1,10 @@ package firewallstatus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallstatus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallstatus/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/README.md index 497472189634..fd4f6fb37cf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack` Documentation -The `fqdnlistglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `fqdnlistglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") payload := fqdnlistglobalrulestack.FqdnListGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := fqdnlistglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/client.go index 61d88a34950c..2dd9d446fe63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/client.go @@ -15,7 +15,7 @@ type FqdnListGlobalRulestackClient struct { } func NewFqdnListGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fqdnlistglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fqdnlistglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FqdnListGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_fqdnlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_fqdnlist.go index 85757ff14afb..07ba551d9f74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_fqdnlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_fqdnlist.go @@ -40,7 +40,7 @@ func ParseFqdnListID(input string) (*FqdnListId, error) { } id := FqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseFqdnListIDInsensitively(input string) (*FqdnListId, error) { } id := FqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id FqdnListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticFqdnLists", "fqdnLists", "fqdnLists"), - resourceids.UserSpecifiedSegment("fqdnListName", "fqdnListValue"), + resourceids.UserSpecifiedSegment("fqdnListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_globalrulestack.go index 8e1f61c17305..c1ee3b2009b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_get.go index 741f266e4945..4a63617dbb13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c FqdnListGlobalRulestackClient) Get(ctx context.Context, id FqdnListId) ( var model FqdnListGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/version.go index a51d13abdef4..6ecec9e368f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistglobalrulestack/version.go @@ -1,12 +1,10 @@ package fqdnlistglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fqdnlistglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fqdnlistglobalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/README.md index cbb135b14727..2e99b8b3607e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack` Documentation -The `fqdnlistlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `fqdnlistlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := fqdnlistlocalrulestack.FqdnListLocalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := fqdnlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/client.go index 29b8edd66df9..37f786343b4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/client.go @@ -15,7 +15,7 @@ type FqdnListLocalRulestackClient struct { } func NewFqdnListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fqdnlistlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fqdnlistlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FqdnListLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestack.go index 6bf38ae28ca2..6d07dd82a7af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go index d3faacab3b2c..facd15505f43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go @@ -44,7 +44,7 @@ func ParseLocalRulestackFqdnListID(input string) (*LocalRulestackFqdnListId, err } id := LocalRulestackFqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackFqdnListIDInsensitively(input string) (*LocalRulestackFq } id := LocalRulestackFqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackFqdnListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticFqdnLists", "fqdnLists", "fqdnLists"), - resourceids.UserSpecifiedSegment("fqdnListName", "fqdnListValue"), + resourceids.UserSpecifiedSegment("fqdnListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_get.go index c3de4d818d5c..dc0b2bf63436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c FqdnListLocalRulestackClient) Get(ctx context.Context, id LocalRulestack var model FqdnListLocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/version.go index aa4f55b7f64e..7498849960ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/fqdnlistlocalrulestack/version.go @@ -1,12 +1,10 @@ package fqdnlistlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fqdnlistlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fqdnlistlocalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md index f8603bc901e9..f658f66e21dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack` Documentation -The `globalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `globalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") if err := client.CommitThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") payload := globalrulestack.GlobalRulestackResource{ // ... @@ -53,7 +53,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +81,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.GetChangeLog(ctx, id) if err != nil { @@ -114,7 +114,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions())` can be used to do batched pagination items, err := client.ListAppIdsComplete(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions())` can be used to do batched pagination items, err := client.ListCountriesComplete(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListFirewallsComplete(ctx, id) @@ -182,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination items, err := client.ListSecurityServicesComplete(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) @@ -216,7 +216,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.Revert(ctx, id) if err != nil { @@ -232,7 +232,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") payload := globalrulestack.GlobalRulestackResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/client.go index a5bd3e881b8f..82b5f5e02bbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/client.go @@ -15,7 +15,7 @@ type GlobalRulestackClient struct { } func NewGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*GlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "globalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "globalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/id_globalrulestack.go index 6c1df26a788d..ec620a0e6c0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_get.go index a4b332479c53..14480d0838c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c GlobalRulestackClient) Get(ctx context.Context, id GlobalRulestackId) (r var model GlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_getchangelog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_getchangelog.go index eb8fe64fdc0e..9618f3266c76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_getchangelog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_getchangelog.go @@ -46,7 +46,6 @@ func (c GlobalRulestackClient) GetChangeLog(ctx context.Context, id GlobalRulest var model Changelog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go index fe87d9febc39..ee15c4294d97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listadvancedsecurityobjects.go @@ -41,6 +41,7 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToHeaders() *client.Headers func (o ListAdvancedSecurityObjectsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go index 9502e473e1cd..62c2ecd94c5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listappids.go @@ -42,6 +42,7 @@ func (o ListAppIdsOperationOptions) ToHeaders() *client.Headers { func (o ListAppIdsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go index 7500f83f2426..0b6cfdc1713e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listcountries.go @@ -40,6 +40,7 @@ func (o ListCountriesOperationOptions) ToHeaders() *client.Headers { func (o ListCountriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go index 8ef7328d4d80..ceb121db5e2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listpredefinedurlcategories.go @@ -40,6 +40,7 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToHeaders() *client.Headers func (o ListPredefinedUrlCategoriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go index d513d0a796dc..e07e8c6fcb08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_listsecurityservices.go @@ -41,6 +41,7 @@ func (o ListSecurityServicesOperationOptions) ToHeaders() *client.Headers { func (o ListSecurityServicesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_update.go index bed8cdf74497..0f30fab9ae29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/method_update.go @@ -49,7 +49,6 @@ func (c GlobalRulestackClient) Update(ctx context.Context, id GlobalRulestackId, var model GlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/version.go index d5d83092cf87..552d8e03c895 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/globalrulestack/version.go @@ -1,12 +1,10 @@ package globalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/globalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/globalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/README.md index fe9b9772bdc3..3807973a6f75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules` Documentation -The `localrules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `localrules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") payload := localrules.LocalRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.GetCounters(ctx, id, localrules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrules.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, localrules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.ResetCounters(ctx, id, localrules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/client.go index 4151472ef4c3..7b3a2d131342 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/client.go @@ -15,7 +15,7 @@ type LocalRulesClient struct { } func NewLocalRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrule.go index 2160f00cda81..85995a2e630c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrule.go @@ -44,7 +44,7 @@ func ParseLocalRuleID(input string) (*LocalRuleId, error) { } id := LocalRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRuleIDInsensitively(input string) (*LocalRuleId, error) { } id := LocalRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticLocalRules", "localRules", "localRules"), - resourceids.UserSpecifiedSegment("localRuleName", "localRuleValue"), + resourceids.UserSpecifiedSegment("localRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrulestack.go index ecc86869f5c2..b301bac4ebe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_get.go index 21cf89b3e798..9ecd3e5b55da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_get.go @@ -45,7 +45,6 @@ func (c LocalRulesClient) Get(ctx context.Context, id LocalRuleId) (result GetOp var model LocalRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go index 8667a19ac1aa..4892e8843298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulesClient) GetCounters(ctx context.Context, id LocalRuleId, optio var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go index eb986a4d5a7a..b17d5cd5a0f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go index 9263a03dafb7..9ba286d3e410 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulesClient) ResetCounters(ctx context.Context, id LocalRuleId, opt var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/version.go index b7d89a582c4a..e04ddda323a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrules/version.go @@ -1,12 +1,10 @@ package localrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localrules/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md index 04e98f282e2b..4358bf303247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks` Documentation -The `localrulestacks` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `localrulestacks` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") if err := client.CommitThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.CommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") payload := localrulestacks.LocalRulestackResource{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.GetChangeLog(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.GetSupportInfo(ctx, id, localrulestacks.DefaultGetSupportInfoOperationOptions()) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListAppIds(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions())` can be used to do batched pagination items, err := client.ListAppIdsComplete(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions()) @@ -182,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListCountries(ctx, id, localrulestacks.DefaultListCountriesOperationOptions())` can be used to do batched pagination items, err := client.ListCountriesComplete(ctx, id, localrulestacks.DefaultListCountriesOperationOptions()) @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListFirewallsComplete(ctx, id) @@ -216,7 +216,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListPredefinedUrlCategories(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions()) @@ -233,7 +233,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination items, err := client.ListSecurityServicesComplete(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) @@ -250,7 +250,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.Revert(ctx, id) if err != nil { @@ -266,7 +266,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") payload := localrulestacks.LocalRulestackResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/client.go index 55e0d2232edc..8ab21894439d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/client.go @@ -15,7 +15,7 @@ type LocalRulestacksClient struct { } func NewLocalRulestacksClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalRulestacksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localrulestacks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localrulestacks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalRulestacksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/id_localrulestack.go index 8ea2a910928d..57a9e1e4e29b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_get.go index fac59270128d..d3ebee5513b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_get.go @@ -45,7 +45,6 @@ func (c LocalRulestacksClient) Get(ctx context.Context, id LocalRulestackId) (re var model LocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getchangelog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getchangelog.go index 7ae119d9fe11..7e0447014910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getchangelog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getchangelog.go @@ -46,7 +46,6 @@ func (c LocalRulestacksClient) GetChangeLog(ctx context.Context, id LocalRulesta var model Changelog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go index 5f4a6cce25f5..dd12e9e72666 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_getsupportinfo.go @@ -34,6 +34,7 @@ func (o GetSupportInfoOperationOptions) ToHeaders() *client.Headers { func (o GetSupportInfoOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulestacksClient) GetSupportInfo(ctx context.Context, id LocalRules var model SupportInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go index 068e60af1483..392e83539e2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listadvancedsecurityobjects.go @@ -41,6 +41,7 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToHeaders() *client.Headers func (o ListAdvancedSecurityObjectsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go index 1cfaa156ca77..98637d5d442e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listappids.go @@ -42,6 +42,7 @@ func (o ListAppIdsOperationOptions) ToHeaders() *client.Headers { func (o ListAppIdsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go index 4967691f1c62..f6fb52fa709f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listcountries.go @@ -40,6 +40,7 @@ func (o ListCountriesOperationOptions) ToHeaders() *client.Headers { func (o ListCountriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go index 313cb881abd7..6af1d69c3e19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listpredefinedurlcategories.go @@ -40,6 +40,7 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToHeaders() *client.Headers func (o ListPredefinedUrlCategoriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go index 1e5b508ab74f..e9171e758795 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_listsecurityservices.go @@ -41,6 +41,7 @@ func (o ListSecurityServicesOperationOptions) ToHeaders() *client.Headers { func (o ListSecurityServicesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_update.go index 4ec51f5e9f01..bc706baa98a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/method_update.go @@ -49,7 +49,6 @@ func (c LocalRulestacksClient) Update(ctx context.Context, id LocalRulestackId, var model LocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/version.go index 5a52a381d286..46fe943260dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/localrulestacks/version.go @@ -1,12 +1,10 @@ package localrulestacks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localrulestacks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localrulestacks/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/README.md index d2362b7482e3..123d4ed8b281 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules` Documentation -The `postrules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `postrules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") payload := postrules.PostRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.GetCounters(ctx, id, postrules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewGlobalRulestackID("globalRulestackValue") +id := postrules.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, postrules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.ResetCounters(ctx, id, postrules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/client.go index 07fbc41a7f74..e6e3fd5998a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/client.go @@ -15,7 +15,7 @@ type PostRulesClient struct { } func NewPostRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*PostRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "postrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "postrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PostRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_globalrulestack.go index 88be5958cb7c..fb8cc5b71540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_postrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_postrule.go index 681dba0ad436..2825aa1214a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_postrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/id_postrule.go @@ -40,7 +40,7 @@ func ParsePostRuleID(input string) (*PostRuleId, error) { } id := PostRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePostRuleIDInsensitively(input string) (*PostRuleId, error) { } id := PostRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PostRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPostRules", "postRules", "postRules"), - resourceids.UserSpecifiedSegment("postRuleName", "postRuleValue"), + resourceids.UserSpecifiedSegment("postRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_get.go index f1ff32c3d50a..c8fbdfab879c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_get.go @@ -45,7 +45,6 @@ func (c PostRulesClient) Get(ctx context.Context, id PostRuleId) (result GetOper var model PostRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go index 7f5b245bdd31..5c0cefd749cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PostRulesClient) GetCounters(ctx context.Context, id PostRuleId, options var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go index 5f13d57507c9..7e47a545bdbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go index 9b86dfc935b5..1b81f5f4e9fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PostRulesClient) ResetCounters(ctx context.Context, id PostRuleId, optio var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/version.go index f10b492e9d0d..b21b80e04cfd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/postrules/version.go @@ -1,12 +1,10 @@ package postrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/postrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/postrules/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/README.md index e3dc7cb7f0ae..aae37230bb51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack` Documentation -The `prefixlistglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `prefixlistglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") payload := prefixlistglobalrulestack.PrefixListGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := prefixlistglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/client.go index c4cc3cc6d103..d090009d009b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/client.go @@ -15,7 +15,7 @@ type PrefixListGlobalRulestackClient struct { } func NewPrefixListGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*PrefixListGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prefixlistglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prefixlistglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrefixListGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_globalrulestack.go index ec1e50e6f0f2..ccb02c0b49ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_prefixlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_prefixlist.go index cff85c5781e6..6c3711bb90b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_prefixlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/id_prefixlist.go @@ -40,7 +40,7 @@ func ParsePrefixListID(input string) (*PrefixListId, error) { } id := PrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePrefixListIDInsensitively(input string) (*PrefixListId, error) { } id := PrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PrefixListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPrefixLists", "prefixLists", "prefixLists"), - resourceids.UserSpecifiedSegment("prefixListName", "prefixListValue"), + resourceids.UserSpecifiedSegment("prefixListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_get.go index 3460d330fe37..fb4652bea21d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c PrefixListGlobalRulestackClient) Get(ctx context.Context, id PrefixListI var model PrefixListGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/version.go index 44caa4d265f2..50ea7236e1ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistglobalrulestack/version.go @@ -1,12 +1,10 @@ package prefixlistglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prefixlistglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prefixlistglobalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/README.md index 319d3be490bd..0c97e7e7cc34 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack` Documentation -The `prefixlistlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `prefixlistlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := prefixlistlocalrulestack.PrefixListResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := prefixlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/client.go index d8e3c242dcda..d19284d12ee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/client.go @@ -15,7 +15,7 @@ type PrefixListLocalRulestackClient struct { } func NewPrefixListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*PrefixListLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prefixlistlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prefixlistlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrefixListLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestack.go index 1740d71baf73..3dc782e7e323 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestackprefixlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestackprefixlist.go index 0854c6b9b9f5..b59f9eb3ed49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestackprefixlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/id_localrulestackprefixlist.go @@ -44,7 +44,7 @@ func ParseLocalRulestackPrefixListID(input string) (*LocalRulestackPrefixListId, } id := LocalRulestackPrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackPrefixListIDInsensitively(input string) (*LocalRulestack } id := LocalRulestackPrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackPrefixListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticPrefixLists", "prefixLists", "prefixLists"), - resourceids.UserSpecifiedSegment("prefixListName", "prefixListValue"), + resourceids.UserSpecifiedSegment("prefixListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_get.go index 41f4c1fd78e6..9afdf613578a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c PrefixListLocalRulestackClient) Get(ctx context.Context, id LocalRulesta var model PrefixListResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/version.go index 6849fd3d2c89..521fb8d01ec0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prefixlistlocalrulestack/version.go @@ -1,12 +1,10 @@ package prefixlistlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prefixlistlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prefixlistlocalrulestack/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/README.md index c47ebda48c21..009a8d93f082 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules` Documentation -The `prerules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2022-08-29`). +The `prerules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2022-08-29`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") payload := prerules.PreRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.GetCounters(ctx, id, prerules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewGlobalRulestackID("globalRulestackValue") +id := prerules.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, prerules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.ResetCounters(ctx, id, prerules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/client.go index cd19e016b771..4119834a6369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/client.go @@ -15,7 +15,7 @@ type PreRulesClient struct { } func NewPreRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*PreRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prerules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prerules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PreRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_globalrulestack.go index 41b39568dac6..8bd0e3bcd647 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_prerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_prerule.go index 8d8821b1f2b6..588a7364adc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_prerule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/id_prerule.go @@ -40,7 +40,7 @@ func ParsePreRuleID(input string) (*PreRuleId, error) { } id := PreRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePreRuleIDInsensitively(input string) (*PreRuleId, error) { } id := PreRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PreRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPreRules", "preRules", "preRules"), - resourceids.UserSpecifiedSegment("preRuleName", "preRuleValue"), + resourceids.UserSpecifiedSegment("preRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_get.go index fa5856a203c0..81343813cbed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_get.go @@ -45,7 +45,6 @@ func (c PreRulesClient) Get(ctx context.Context, id PreRuleId) (result GetOperat var model PreRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go index e11bb703e5fa..3ebdad40df13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PreRulesClient) GetCounters(ctx context.Context, id PreRuleId, options G var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go index 57b1f95568ef..58abc0fac0d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go index 24728260a672..26009519969a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PreRulesClient) ResetCounters(ctx context.Context, id PreRuleId, options var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/version.go index 262eafe6f8b6..e99546893603 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2022-08-29/prerules/version.go @@ -1,12 +1,10 @@ package prerules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-08-29" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prerules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prerules/2022-08-29" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/README.md index 5906559f3639..4a20f7e1efb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack` Documentation -The `certificateobjectglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `certificateobjectglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") payload := certificateobjectglobalrulestack.CertificateObjectGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackValue", "certificateValue") +id := certificateobjectglobalrulestack.NewCertificateID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificateobjectglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := certificateobjectglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/client.go index 81daa7cb5899..74bea4fa5aa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/client.go @@ -15,7 +15,7 @@ type CertificateObjectGlobalRulestackClient struct { } func NewCertificateObjectGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateObjectGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificateobjectglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificateobjectglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateObjectGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_certificate.go index c3cecabb6ec9..bd222d9a0568 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_certificate.go @@ -40,7 +40,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_globalrulestack.go index 21da85579c25..09bf96e9f757 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_get.go index aa1f5111026a..015062d8672f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c CertificateObjectGlobalRulestackClient) Get(ctx context.Context, id Cert var model CertificateObjectGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/version.go index b0e078c670c2..26452fbd82aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectglobalrulestack/version.go @@ -1,12 +1,10 @@ package certificateobjectglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificateobjectglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificateobjectglobalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/README.md index 9aeaccd9ea4b..02f0955495e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack` Documentation -The `certificateobjectlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `certificateobjectlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := certificateobjectlocalrulestack.CertificateObjectLocalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "certificateValue") +id := certificateobjectlocalrulestack.NewLocalRulestackCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := certificateobjectlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := certificateobjectlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/client.go index e799a0619147..a7f1c6890abc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/client.go @@ -15,7 +15,7 @@ type CertificateObjectLocalRulestackClient struct { } func NewCertificateObjectLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*CertificateObjectLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "certificateobjectlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "certificateobjectlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CertificateObjectLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestack.go index cc5fe21cb4f0..ff2155f4e8a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestackcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestackcertificate.go index 598daafed06c..e9a183dfab6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestackcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/id_localrulestackcertificate.go @@ -44,7 +44,7 @@ func ParseLocalRulestackCertificateID(input string) (*LocalRulestackCertificateI } id := LocalRulestackCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackCertificateIDInsensitively(input string) (*LocalRulestac } id := LocalRulestackCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_get.go index ef20db0a4886..bff5b5250a1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c CertificateObjectLocalRulestackClient) Get(ctx context.Context, id Local var model CertificateObjectLocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/version.go index 6d47568b11b9..5eb9185255b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/certificateobjectlocalrulestack/version.go @@ -1,12 +1,10 @@ package certificateobjectlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/certificateobjectlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/certificateobjectlocalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md index f9967760a5bb..5115ec9089f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls` Documentation -The `firewalls` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `firewalls` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.LogSettings{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.FirewallResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.Get(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetGlobalRulestack(ctx, id) if err != nil { @@ -107,7 +107,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetLogProfile(ctx, id) if err != nil { @@ -123,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.GetSupportInfo(ctx, id, firewalls.DefaultGetSupportInfoOperationOptions()) if err != nil { @@ -173,7 +173,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewalls.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") payload := firewalls.FirewallResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/client.go index 5268f82e790a..10331bb3c62a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/client.go @@ -15,7 +15,7 @@ type FirewallsClient struct { } func NewFirewallsClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewalls", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewalls", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/id_firewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/id_firewall.go index fbd64f7719a2..773b888194a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/id_firewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/id_firewall.go @@ -42,7 +42,7 @@ func ParseFirewallID(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallIDInsensitively(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticFirewalls", "firewalls", "firewalls"), - resourceids.UserSpecifiedSegment("firewallName", "firewallValue"), + resourceids.UserSpecifiedSegment("firewallName", "firewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_get.go index 02deaeaf3166..dc50e315a9c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_get.go @@ -45,7 +45,6 @@ func (c FirewallsClient) Get(ctx context.Context, id FirewallId) (result GetOper var model FirewallResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getglobalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getglobalrulestack.go index 50bceaad7d40..0269ad012557 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getglobalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getglobalrulestack.go @@ -46,7 +46,6 @@ func (c FirewallsClient) GetGlobalRulestack(ctx context.Context, id FirewallId) var model GlobalRulestackInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getlogprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getlogprofile.go index 3dbe88ec58af..6c18f762889f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getlogprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getlogprofile.go @@ -46,7 +46,6 @@ func (c FirewallsClient) GetLogProfile(ctx context.Context, id FirewallId) (resu var model LogSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go index ca6cea4afef3..e60a81434b84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_getsupportinfo.go @@ -34,6 +34,7 @@ func (o GetSupportInfoOperationOptions) ToHeaders() *client.Headers { func (o GetSupportInfoOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c FirewallsClient) GetSupportInfo(ctx context.Context, id FirewallId, opti var model SupportInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_update.go index 4fc093bd9fa0..3f1bdeadd160 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/method_update.go @@ -49,7 +49,6 @@ func (c FirewallsClient) Update(ctx context.Context, id FirewallId, input Firewa var model FirewallResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/version.go index 955e7e4bfa0c..0ba524781039 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewalls/version.go @@ -1,12 +1,10 @@ package firewalls -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewalls/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewalls/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/README.md index b6cc08150ff2..d4ee9afa6e09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus` Documentation -The `firewallstatus` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `firewallstatus` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallValue") +id := firewallstatus.NewFirewallID("12345678-1234-9876-4563-123456789012", "example-resource-group", "firewallName") // alternatively `client.ListByFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListByFirewallsComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/client.go index f55eaa75b88f..94bd4f9beb91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/client.go @@ -15,7 +15,7 @@ type FirewallStatusClient struct { } func NewFirewallStatusClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallStatusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallstatus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallstatus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallStatusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/id_firewall.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/id_firewall.go index 2b6801d77498..51f828dcdcc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/id_firewall.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/id_firewall.go @@ -42,7 +42,7 @@ func ParseFirewallID(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFirewallIDInsensitively(input string) (*FirewallId, error) { } id := FirewallId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FirewallId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticFirewalls", "firewalls", "firewalls"), - resourceids.UserSpecifiedSegment("firewallName", "firewallValue"), + resourceids.UserSpecifiedSegment("firewallName", "firewallName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_get.go index bbbd5449ba2b..bb3da66ebb5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/method_get.go @@ -46,7 +46,6 @@ func (c FirewallStatusClient) Get(ctx context.Context, id FirewallId) (result Ge var model FirewallStatusResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/version.go index e9b635527b58..505734e39d3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/firewallstatus/version.go @@ -1,12 +1,10 @@ package firewallstatus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallstatus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallstatus/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/README.md index 1a956898f139..b6a03e047dcb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack` Documentation -The `fqdnlistglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `fqdnlistglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") payload := fqdnlistglobalrulestack.FqdnListGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackValue", "fqdnListValue") +id := fqdnlistglobalrulestack.NewFqdnListID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fqdnlistglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := fqdnlistglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/client.go index 61d88a34950c..2dd9d446fe63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/client.go @@ -15,7 +15,7 @@ type FqdnListGlobalRulestackClient struct { } func NewFqdnListGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fqdnlistglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fqdnlistglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FqdnListGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_fqdnlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_fqdnlist.go index 85757ff14afb..07ba551d9f74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_fqdnlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_fqdnlist.go @@ -40,7 +40,7 @@ func ParseFqdnListID(input string) (*FqdnListId, error) { } id := FqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseFqdnListIDInsensitively(input string) (*FqdnListId, error) { } id := FqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id FqdnListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticFqdnLists", "fqdnLists", "fqdnLists"), - resourceids.UserSpecifiedSegment("fqdnListName", "fqdnListValue"), + resourceids.UserSpecifiedSegment("fqdnListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_globalrulestack.go index 8e1f61c17305..c1ee3b2009b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_get.go index 741f266e4945..4a63617dbb13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c FqdnListGlobalRulestackClient) Get(ctx context.Context, id FqdnListId) ( var model FqdnListGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/version.go index 722dbf5bc5aa..137c7f47cc31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistglobalrulestack/version.go @@ -1,12 +1,10 @@ package fqdnlistglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fqdnlistglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fqdnlistglobalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/README.md index 19d1da9d57f2..64fd49742e20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack` Documentation -The `fqdnlistlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `fqdnlistlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := fqdnlistlocalrulestack.FqdnListLocalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "fqdnListValue") +id := fqdnlistlocalrulestack.NewLocalRulestackFqdnListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fqdnlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := fqdnlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/client.go index 29b8edd66df9..37f786343b4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/client.go @@ -15,7 +15,7 @@ type FqdnListLocalRulestackClient struct { } func NewFqdnListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*FqdnListLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fqdnlistlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fqdnlistlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FqdnListLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestack.go index 6bf38ae28ca2..6d07dd82a7af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go index d3faacab3b2c..facd15505f43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/id_localrulestackfqdnlist.go @@ -44,7 +44,7 @@ func ParseLocalRulestackFqdnListID(input string) (*LocalRulestackFqdnListId, err } id := LocalRulestackFqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackFqdnListIDInsensitively(input string) (*LocalRulestackFq } id := LocalRulestackFqdnListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackFqdnListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticFqdnLists", "fqdnLists", "fqdnLists"), - resourceids.UserSpecifiedSegment("fqdnListName", "fqdnListValue"), + resourceids.UserSpecifiedSegment("fqdnListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_get.go index c3de4d818d5c..dc0b2bf63436 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c FqdnListLocalRulestackClient) Get(ctx context.Context, id LocalRulestack var model FqdnListLocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/version.go index f444d42b42cc..8705ed4cf8dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/fqdnlistlocalrulestack/version.go @@ -1,12 +1,10 @@ package fqdnlistlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fqdnlistlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fqdnlistlocalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md index 46abea79046f..279d8ff0b77f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack` Documentation -The `globalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `globalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") if err := client.CommitThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") payload := globalrulestack.GlobalRulestackResource{ // ... @@ -53,7 +53,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +81,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.GetChangeLog(ctx, id) if err != nil { @@ -114,7 +114,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListAdvancedSecurityObjects(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, globalrulestack.DefaultListAdvancedSecurityObjectsOperationOptions()) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListAppIds(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions())` can be used to do batched pagination items, err := client.ListAppIdsComplete(ctx, id, globalrulestack.DefaultListAppIdsOperationOptions()) @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListCountries(ctx, id, globalrulestack.DefaultListCountriesOperationOptions())` can be used to do batched pagination items, err := client.ListCountriesComplete(ctx, id, globalrulestack.DefaultListCountriesOperationOptions()) @@ -165,7 +165,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListFirewallsComplete(ctx, id) @@ -182,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListPredefinedUrlCategories(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, globalrulestack.DefaultListPredefinedUrlCategoriesOperationOptions()) @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.ListSecurityServices(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination items, err := client.ListSecurityServicesComplete(ctx, id, globalrulestack.DefaultListSecurityServicesOperationOptions()) @@ -216,7 +216,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") read, err := client.Revert(ctx, id) if err != nil { @@ -232,7 +232,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := globalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := globalrulestack.NewGlobalRulestackID("globalRulestackName") payload := globalrulestack.GlobalRulestackResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/client.go index a5bd3e881b8f..82b5f5e02bbb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/client.go @@ -15,7 +15,7 @@ type GlobalRulestackClient struct { } func NewGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*GlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "globalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "globalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/id_globalrulestack.go index 6c1df26a788d..ec620a0e6c0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_get.go index a4b332479c53..14480d0838c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c GlobalRulestackClient) Get(ctx context.Context, id GlobalRulestackId) (r var model GlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_getchangelog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_getchangelog.go index eb8fe64fdc0e..9618f3266c76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_getchangelog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_getchangelog.go @@ -46,7 +46,6 @@ func (c GlobalRulestackClient) GetChangeLog(ctx context.Context, id GlobalRulest var model Changelog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go index fe87d9febc39..ee15c4294d97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listadvancedsecurityobjects.go @@ -41,6 +41,7 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToHeaders() *client.Headers func (o ListAdvancedSecurityObjectsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go index 9502e473e1cd..62c2ecd94c5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listappids.go @@ -42,6 +42,7 @@ func (o ListAppIdsOperationOptions) ToHeaders() *client.Headers { func (o ListAppIdsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go index 7500f83f2426..0b6cfdc1713e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listcountries.go @@ -40,6 +40,7 @@ func (o ListCountriesOperationOptions) ToHeaders() *client.Headers { func (o ListCountriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go index 8ef7328d4d80..ceb121db5e2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listpredefinedurlcategories.go @@ -40,6 +40,7 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToHeaders() *client.Headers func (o ListPredefinedUrlCategoriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go index d513d0a796dc..e07e8c6fcb08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_listsecurityservices.go @@ -41,6 +41,7 @@ func (o ListSecurityServicesOperationOptions) ToHeaders() *client.Headers { func (o ListSecurityServicesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_update.go index bed8cdf74497..0f30fab9ae29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/method_update.go @@ -49,7 +49,6 @@ func (c GlobalRulestackClient) Update(ctx context.Context, id GlobalRulestackId, var model GlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/version.go index b5932dc6988f..ad6ff673f031 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/globalrulestack/version.go @@ -1,12 +1,10 @@ package globalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/globalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/globalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/README.md index c5caeeaf2bcb..a00ef006de86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules` Documentation -The `localrules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `localrules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") payload := localrules.LocalRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.GetCounters(ctx, id, localrules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrules.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, localrules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "localRuleValue") +id := localrules.NewLocalRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "priority") read, err := client.ResetCounters(ctx, id, localrules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/client.go index 4151472ef4c3..7b3a2d131342 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/client.go @@ -15,7 +15,7 @@ type LocalRulesClient struct { } func NewLocalRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrule.go index 2160f00cda81..85995a2e630c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrule.go @@ -44,7 +44,7 @@ func ParseLocalRuleID(input string) (*LocalRuleId, error) { } id := LocalRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRuleIDInsensitively(input string) (*LocalRuleId, error) { } id := LocalRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticLocalRules", "localRules", "localRules"), - resourceids.UserSpecifiedSegment("localRuleName", "localRuleValue"), + resourceids.UserSpecifiedSegment("localRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrulestack.go index ecc86869f5c2..b301bac4ebe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_get.go index 21cf89b3e798..9ecd3e5b55da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_get.go @@ -45,7 +45,6 @@ func (c LocalRulesClient) Get(ctx context.Context, id LocalRuleId) (result GetOp var model LocalRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go index 8667a19ac1aa..4892e8843298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulesClient) GetCounters(ctx context.Context, id LocalRuleId, optio var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go index eb986a4d5a7a..b17d5cd5a0f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go index 9263a03dafb7..9ba286d3e410 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulesClient) ResetCounters(ctx context.Context, id LocalRuleId, opt var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/version.go index 7ecbba2af425..368580317541 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrules/version.go @@ -1,12 +1,10 @@ package localrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localrules/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md index 44ee3bf08541..edf9765cc12a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks` Documentation -The `localrulestacks` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `localrulestacks` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") if err := client.CommitThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.CommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") payload := localrulestacks.LocalRulestackResource{ // ... @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.GetChangeLog(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.GetSupportInfo(ctx, id, localrulestacks.DefaultGetSupportInfoOperationOptions()) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListAdvancedSecurityObjects(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions())` can be used to do batched pagination items, err := client.ListAdvancedSecurityObjectsComplete(ctx, id, localrulestacks.DefaultListAdvancedSecurityObjectsOperationOptions()) @@ -131,7 +131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListAppIds(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions())` can be used to do batched pagination items, err := client.ListAppIdsComplete(ctx, id, localrulestacks.DefaultListAppIdsOperationOptions()) @@ -182,7 +182,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListCountries(ctx, id, localrulestacks.DefaultListCountriesOperationOptions())` can be used to do batched pagination items, err := client.ListCountriesComplete(ctx, id, localrulestacks.DefaultListCountriesOperationOptions()) @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListFirewalls(ctx, id)` can be used to do batched pagination items, err := client.ListFirewallsComplete(ctx, id) @@ -216,7 +216,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListPredefinedUrlCategories(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions())` can be used to do batched pagination items, err := client.ListPredefinedUrlCategoriesComplete(ctx, id, localrulestacks.DefaultListPredefinedUrlCategoriesOperationOptions()) @@ -233,7 +233,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListSecurityServices(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions())` can be used to do batched pagination items, err := client.ListSecurityServicesComplete(ctx, id, localrulestacks.DefaultListSecurityServicesOperationOptions()) @@ -250,7 +250,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") read, err := client.Revert(ctx, id) if err != nil { @@ -266,7 +266,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := localrulestacks.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") payload := localrulestacks.LocalRulestackResourceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/client.go index 55e0d2232edc..8ab21894439d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/client.go @@ -15,7 +15,7 @@ type LocalRulestacksClient struct { } func NewLocalRulestacksClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalRulestacksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localrulestacks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localrulestacks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalRulestacksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/id_localrulestack.go index 8ea2a910928d..57a9e1e4e29b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_get.go index fac59270128d..d3ebee5513b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_get.go @@ -45,7 +45,6 @@ func (c LocalRulestacksClient) Get(ctx context.Context, id LocalRulestackId) (re var model LocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getchangelog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getchangelog.go index 7ae119d9fe11..7e0447014910 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getchangelog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getchangelog.go @@ -46,7 +46,6 @@ func (c LocalRulestacksClient) GetChangeLog(ctx context.Context, id LocalRulesta var model Changelog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go index 5f4a6cce25f5..dd12e9e72666 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_getsupportinfo.go @@ -34,6 +34,7 @@ func (o GetSupportInfoOperationOptions) ToHeaders() *client.Headers { func (o GetSupportInfoOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c LocalRulestacksClient) GetSupportInfo(ctx context.Context, id LocalRules var model SupportInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go index 068e60af1483..392e83539e2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listadvancedsecurityobjects.go @@ -41,6 +41,7 @@ func (o ListAdvancedSecurityObjectsOperationOptions) ToHeaders() *client.Headers func (o ListAdvancedSecurityObjectsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go index 1cfaa156ca77..98637d5d442e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listappids.go @@ -42,6 +42,7 @@ func (o ListAppIdsOperationOptions) ToHeaders() *client.Headers { func (o ListAppIdsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go index 4967691f1c62..f6fb52fa709f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listcountries.go @@ -40,6 +40,7 @@ func (o ListCountriesOperationOptions) ToHeaders() *client.Headers { func (o ListCountriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go index 313cb881abd7..6af1d69c3e19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listpredefinedurlcategories.go @@ -40,6 +40,7 @@ func (o ListPredefinedUrlCategoriesOperationOptions) ToHeaders() *client.Headers func (o ListPredefinedUrlCategoriesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go index 1e5b508ab74f..e9171e758795 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_listsecurityservices.go @@ -41,6 +41,7 @@ func (o ListSecurityServicesOperationOptions) ToHeaders() *client.Headers { func (o ListSecurityServicesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_update.go index 4ec51f5e9f01..bc706baa98a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/method_update.go @@ -49,7 +49,6 @@ func (c LocalRulestacksClient) Update(ctx context.Context, id LocalRulestackId, var model LocalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/version.go index 9052e5247a56..55dcd8eff207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/localrulestacks/version.go @@ -1,12 +1,10 @@ package localrulestacks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localrulestacks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localrulestacks/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/README.md index c40d41c8414a..6b7520355956 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules` Documentation -The `postrules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `postrules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") payload := postrules.PostRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.GetCounters(ctx, id, postrules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewGlobalRulestackID("globalRulestackValue") +id := postrules.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, postrules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := postrules.NewPostRuleID("globalRulestackValue", "postRuleValue") +id := postrules.NewPostRuleID("globalRulestackName", "priority") read, err := client.ResetCounters(ctx, id, postrules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/client.go index 07fbc41a7f74..e6e3fd5998a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/client.go @@ -15,7 +15,7 @@ type PostRulesClient struct { } func NewPostRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*PostRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "postrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "postrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PostRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_globalrulestack.go index 88be5958cb7c..fb8cc5b71540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_postrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_postrule.go index 681dba0ad436..2825aa1214a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_postrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/id_postrule.go @@ -40,7 +40,7 @@ func ParsePostRuleID(input string) (*PostRuleId, error) { } id := PostRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePostRuleIDInsensitively(input string) (*PostRuleId, error) { } id := PostRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PostRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPostRules", "postRules", "postRules"), - resourceids.UserSpecifiedSegment("postRuleName", "postRuleValue"), + resourceids.UserSpecifiedSegment("postRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_get.go index f1ff32c3d50a..c8fbdfab879c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_get.go @@ -45,7 +45,6 @@ func (c PostRulesClient) Get(ctx context.Context, id PostRuleId) (result GetOper var model PostRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go index 7f5b245bdd31..5c0cefd749cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PostRulesClient) GetCounters(ctx context.Context, id PostRuleId, options var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go index 5f13d57507c9..7e47a545bdbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go index 9b86dfc935b5..1b81f5f4e9fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PostRulesClient) ResetCounters(ctx context.Context, id PostRuleId, optio var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/version.go index d2d35673c724..54f1b01fdd44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/postrules/version.go @@ -1,12 +1,10 @@ package postrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/postrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/postrules/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/README.md index d9e70d2bac43..7019444604b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack` Documentation -The `prefixlistglobalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `prefixlistglobalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") payload := prefixlistglobalrulestack.PrefixListGlobalRulestackResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackValue", "prefixListValue") +id := prefixlistglobalrulestack.NewPrefixListID("globalRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prefixlistglobalrulestack.NewGlobalRulestackID("globalRulestackValue") +id := prefixlistglobalrulestack.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/client.go index c4cc3cc6d103..d090009d009b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/client.go @@ -15,7 +15,7 @@ type PrefixListGlobalRulestackClient struct { } func NewPrefixListGlobalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*PrefixListGlobalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prefixlistglobalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prefixlistglobalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrefixListGlobalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_globalrulestack.go index ec1e50e6f0f2..ccb02c0b49ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_prefixlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_prefixlist.go index cff85c5781e6..6c3711bb90b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_prefixlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/id_prefixlist.go @@ -40,7 +40,7 @@ func ParsePrefixListID(input string) (*PrefixListId, error) { } id := PrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePrefixListIDInsensitively(input string) (*PrefixListId, error) { } id := PrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PrefixListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPrefixLists", "prefixLists", "prefixLists"), - resourceids.UserSpecifiedSegment("prefixListName", "prefixListValue"), + resourceids.UserSpecifiedSegment("prefixListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_get.go index 3460d330fe37..fb4652bea21d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c PrefixListGlobalRulestackClient) Get(ctx context.Context, id PrefixListI var model PrefixListGlobalRulestackResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/version.go index b0d8c48816dc..6f2eb656493e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistglobalrulestack/version.go @@ -1,12 +1,10 @@ package prefixlistglobalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prefixlistglobalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prefixlistglobalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/README.md index d2dc3897119e..fe341e02444c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack` Documentation -The `prefixlistlocalrulestack` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `prefixlistlocalrulestack` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") payload := prefixlistlocalrulestack.PrefixListResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue", "prefixListValue") +id := prefixlistlocalrulestack.NewLocalRulestackPrefixListID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName", "name") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prefixlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackValue") +id := prefixlistlocalrulestack.NewLocalRulestackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "localRulestackName") // alternatively `client.ListByLocalRulestacks(ctx, id)` can be used to do batched pagination items, err := client.ListByLocalRulestacksComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/client.go index d8e3c242dcda..d19284d12ee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/client.go @@ -15,7 +15,7 @@ type PrefixListLocalRulestackClient struct { } func NewPrefixListLocalRulestackClientWithBaseURI(sdkApi sdkEnv.Api) (*PrefixListLocalRulestackClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prefixlistlocalrulestack", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prefixlistlocalrulestack", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrefixListLocalRulestackClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestack.go index 1740d71baf73..3dc782e7e323 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestack.go @@ -42,7 +42,7 @@ func ParseLocalRulestackID(input string) (*LocalRulestackId, error) { } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocalRulestackIDInsensitively(input string) (*LocalRulestackId, error) } id := LocalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestackprefixlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestackprefixlist.go index 0854c6b9b9f5..b59f9eb3ed49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestackprefixlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/id_localrulestackprefixlist.go @@ -44,7 +44,7 @@ func ParseLocalRulestackPrefixListID(input string) (*LocalRulestackPrefixListId, } id := LocalRulestackPrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalRulestackPrefixListIDInsensitively(input string) (*LocalRulestack } id := LocalRulestackPrefixListId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalRulestackPrefixListId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticLocalRulestacks", "localRulestacks", "localRulestacks"), - resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackValue"), + resourceids.UserSpecifiedSegment("localRulestackName", "localRulestackName"), resourceids.StaticSegment("staticPrefixLists", "prefixLists", "prefixLists"), - resourceids.UserSpecifiedSegment("prefixListName", "prefixListValue"), + resourceids.UserSpecifiedSegment("prefixListName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_get.go index 41f4c1fd78e6..9afdf613578a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/method_get.go @@ -45,7 +45,6 @@ func (c PrefixListLocalRulestackClient) Get(ctx context.Context, id LocalRulesta var model PrefixListResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/version.go index 9f26ae1ebe4f..3b0788fd4cb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prefixlistlocalrulestack/version.go @@ -1,12 +1,10 @@ package prefixlistlocalrulestack -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prefixlistlocalrulestack/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prefixlistlocalrulestack/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/README.md index c22bb5726005..71d2fe4ce0b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules` Documentation -The `prerules` SDK allows for interaction with the Azure Resource Manager Service `paloaltonetworks` (API Version `2023-09-01`). +The `prerules` SDK allows for interaction with Azure Resource Manager `paloaltonetworks` (API Version `2023-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") payload := prerules.PreRulesResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.GetCounters(ctx, id, prerules.DefaultGetCountersOperationOptions()) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewGlobalRulestackID("globalRulestackValue") +id := prerules.NewGlobalRulestackID("globalRulestackName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -102,7 +102,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.RefreshCounters(ctx, id, prerules.DefaultRefreshCountersOperationOptions()) if err != nil { @@ -118,7 +118,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := prerules.NewPreRuleID("globalRulestackValue", "preRuleValue") +id := prerules.NewPreRuleID("globalRulestackName", "priority") read, err := client.ResetCounters(ctx, id, prerules.DefaultResetCountersOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/client.go index cd19e016b771..4119834a6369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/client.go @@ -15,7 +15,7 @@ type PreRulesClient struct { } func NewPreRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*PreRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "prerules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "prerules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PreRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_globalrulestack.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_globalrulestack.go index 41b39568dac6..8bd0e3bcd647 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_globalrulestack.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_globalrulestack.go @@ -38,7 +38,7 @@ func ParseGlobalRulestackID(input string) (*GlobalRulestackId, error) { } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseGlobalRulestackIDInsensitively(input string) (*GlobalRulestackId, erro } id := GlobalRulestackId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id GlobalRulestackId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_prerule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_prerule.go index 8d8821b1f2b6..588a7364adc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_prerule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/id_prerule.go @@ -40,7 +40,7 @@ func ParsePreRuleID(input string) (*PreRuleId, error) { } id := PreRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePreRuleIDInsensitively(input string) (*PreRuleId, error) { } id := PreRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id PreRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticPaloAltoNetworksCloudngfw", "PaloAltoNetworks.Cloudngfw", "PaloAltoNetworks.Cloudngfw"), resourceids.StaticSegment("staticGlobalRulestacks", "globalRulestacks", "globalRulestacks"), - resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackValue"), + resourceids.UserSpecifiedSegment("globalRulestackName", "globalRulestackName"), resourceids.StaticSegment("staticPreRules", "preRules", "preRules"), - resourceids.UserSpecifiedSegment("preRuleName", "preRuleValue"), + resourceids.UserSpecifiedSegment("preRuleName", "priority"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_get.go index fa5856a203c0..81343813cbed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_get.go @@ -45,7 +45,6 @@ func (c PreRulesClient) Get(ctx context.Context, id PreRuleId) (result GetOperat var model PreRulesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go index e11bb703e5fa..3ebdad40df13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_getcounters.go @@ -34,6 +34,7 @@ func (o GetCountersOperationOptions) ToHeaders() *client.Headers { func (o GetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PreRulesClient) GetCounters(ctx context.Context, id PreRuleId, options G var model RuleCounter result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go index 57b1f95568ef..58abc0fac0d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_refreshcounters.go @@ -33,6 +33,7 @@ func (o RefreshCountersOperationOptions) ToHeaders() *client.Headers { func (o RefreshCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go index 24728260a672..26009519969a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/method_resetcounters.go @@ -34,6 +34,7 @@ func (o ResetCountersOperationOptions) ToHeaders() *client.Headers { func (o ResetCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c PreRulesClient) ResetCounters(ctx context.Context, id PreRuleId, options var model RuleCounterReset result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/version.go index b07607be4ac8..9133be8113cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/paloaltonetworks/2023-09-01/prerules/version.go @@ -1,12 +1,10 @@ package prerules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/prerules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/prerules/2023-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/README.md index 1887ba55f063..2c49b2079010 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations` Documentation -The `remediations` SDK allows for interaction with the Azure Resource Manager Service `policyinsights` (API Version `2021-10-01`). +The `remediations` SDK allows for interaction with Azure Resource Manager `policyinsights` (API Version `2021-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue") +id := remediations.NewProviders2RemediationID("managementGroupId", "remediationName") read, err := client.CancelAtManagementGroup(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue") +id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationName") read, err := client.CancelAtResource(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue") +id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationName") read, err := client.CancelAtResourceGroup(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue") +id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationName") read, err := client.CancelAtSubscription(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue") +id := remediations.NewProviders2RemediationID("managementGroupId", "remediationName") payload := remediations.Remediation{ // ... @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue") +id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationName") payload := remediations.Remediation{ // ... @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue") +id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationName") payload := remediations.Remediation{ // ... @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue") +id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationName") payload := remediations.Remediation{ // ... @@ -173,7 +173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue") +id := remediations.NewProviders2RemediationID("managementGroupId", "remediationName") read, err := client.DeleteAtManagementGroup(ctx, id) if err != nil { @@ -189,7 +189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue") +id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationName") read, err := client.DeleteAtResource(ctx, id) if err != nil { @@ -205,7 +205,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue") +id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationName") read, err := client.DeleteAtResourceGroup(ctx, id) if err != nil { @@ -221,7 +221,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue") +id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationName") read, err := client.DeleteAtSubscription(ctx, id) if err != nil { @@ -237,7 +237,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue") +id := remediations.NewProviders2RemediationID("managementGroupId", "remediationName") read, err := client.GetAtManagementGroup(ctx, id) if err != nil { @@ -253,7 +253,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue") +id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationName") read, err := client.GetAtResource(ctx, id) if err != nil { @@ -269,7 +269,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue") +id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationName") read, err := client.GetAtResourceGroup(ctx, id) if err != nil { @@ -285,7 +285,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue") +id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationName") read, err := client.GetAtSubscription(ctx, id) if err != nil { @@ -301,7 +301,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := remediations.NewProviders2RemediationID("managementGroupIdValue", "remediationValue") +id := remediations.NewProviders2RemediationID("managementGroupId", "remediationName") // alternatively `client.ListDeploymentsAtManagementGroup(ctx, id, remediations.DefaultListDeploymentsAtManagementGroupOperationOptions())` can be used to do batched pagination items, err := client.ListDeploymentsAtManagementGroupComplete(ctx, id, remediations.DefaultListDeploymentsAtManagementGroupOperationOptions()) @@ -318,7 +318,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationValue") +id := remediations.NewScopedRemediationID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "remediationName") // alternatively `client.ListDeploymentsAtResource(ctx, id, remediations.DefaultListDeploymentsAtResourceOperationOptions())` can be used to do batched pagination items, err := client.ListDeploymentsAtResourceComplete(ctx, id, remediations.DefaultListDeploymentsAtResourceOperationOptions()) @@ -335,7 +335,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationValue") +id := remediations.NewProviderRemediationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "remediationName") // alternatively `client.ListDeploymentsAtResourceGroup(ctx, id, remediations.DefaultListDeploymentsAtResourceGroupOperationOptions())` can be used to do batched pagination items, err := client.ListDeploymentsAtResourceGroupComplete(ctx, id, remediations.DefaultListDeploymentsAtResourceGroupOperationOptions()) @@ -352,7 +352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationValue") +id := remediations.NewRemediationID("12345678-1234-9876-4563-123456789012", "remediationName") // alternatively `client.ListDeploymentsAtSubscription(ctx, id, remediations.DefaultListDeploymentsAtSubscriptionOperationOptions())` can be used to do batched pagination items, err := client.ListDeploymentsAtSubscriptionComplete(ctx, id, remediations.DefaultListDeploymentsAtSubscriptionOperationOptions()) @@ -369,7 +369,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := remediations.NewManagementGroupID("managementGroupIdValue") +id := remediations.NewManagementGroupID("managementGroupId") // alternatively `client.ListForManagementGroup(ctx, id, remediations.DefaultListForManagementGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForManagementGroupComplete(ctx, id, remediations.DefaultListForManagementGroupOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/client.go index 7d83b9855e9d..105289dfacfe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/client.go @@ -15,7 +15,7 @@ type RemediationsClient struct { } func NewRemediationsClientWithBaseURI(sdkApi sdkEnv.Api) (*RemediationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "remediations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "remediations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RemediationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_managementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_managementgroup.go index e400c27bc4ed..88b7c18d67b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_managementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_managementgroup.go @@ -38,7 +38,7 @@ func ParseManagementGroupID(input string) (*ManagementGroupId, error) { } id := ManagementGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseManagementGroupIDInsensitively(input string) (*ManagementGroupId, erro } id := ManagementGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id ManagementGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.StaticSegment("managementGroupsNamespace", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupIdValue"), + resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providerremediation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providerremediation.go index 80e0babff883..50917d7f60d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providerremediation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providerremediation.go @@ -42,7 +42,7 @@ func ParseProviderRemediationID(input string) (*ProviderRemediationId, error) { } id := ProviderRemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderRemediationIDInsensitively(input string) (*ProviderRemediation } id := ProviderRemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderRemediationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPolicyInsights", "Microsoft.PolicyInsights", "Microsoft.PolicyInsights"), resourceids.StaticSegment("staticRemediations", "remediations", "remediations"), - resourceids.UserSpecifiedSegment("remediationName", "remediationValue"), + resourceids.UserSpecifiedSegment("remediationName", "remediationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providers2remediation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providers2remediation.go index 4c97923ff1d9..8149bbd604f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providers2remediation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_providers2remediation.go @@ -40,7 +40,7 @@ func ParseProviders2RemediationID(input string) (*Providers2RemediationId, error } id := Providers2RemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviders2RemediationIDInsensitively(input string) (*Providers2Remedia } id := Providers2RemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,11 +105,11 @@ func (id Providers2RemediationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.StaticSegment("managementGroupsNamespace", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupIdValue"), + resourceids.UserSpecifiedSegment("managementGroupId", "managementGroupId"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPolicyInsights", "Microsoft.PolicyInsights", "Microsoft.PolicyInsights"), resourceids.StaticSegment("staticRemediations", "remediations", "remediations"), - resourceids.UserSpecifiedSegment("remediationName", "remediationValue"), + resourceids.UserSpecifiedSegment("remediationName", "remediationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_remediation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_remediation.go index d3230a221071..f9137731f2a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_remediation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_remediation.go @@ -40,7 +40,7 @@ func ParseRemediationID(input string) (*RemediationId, error) { } id := RemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseRemediationIDInsensitively(input string) (*RemediationId, error) { } id := RemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id RemediationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPolicyInsights", "Microsoft.PolicyInsights", "Microsoft.PolicyInsights"), resourceids.StaticSegment("staticRemediations", "remediations", "remediations"), - resourceids.UserSpecifiedSegment("remediationName", "remediationValue"), + resourceids.UserSpecifiedSegment("remediationName", "remediationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_scopedremediation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_scopedremediation.go index 993e8ed178a1..61f9c19f7885 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_scopedremediation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/id_scopedremediation.go @@ -40,7 +40,7 @@ func ParseScopedRemediationID(input string) (*ScopedRemediationId, error) { } id := ScopedRemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedRemediationIDInsensitively(input string) (*ScopedRemediationId, } id := ScopedRemediationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedRemediationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPolicyInsights", "Microsoft.PolicyInsights", "Microsoft.PolicyInsights"), resourceids.StaticSegment("staticRemediations", "remediations", "remediations"), - resourceids.UserSpecifiedSegment("remediationName", "remediationValue"), + resourceids.UserSpecifiedSegment("remediationName", "remediationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatmanagementgroup.go index e73de0eabd3c..3a2e8e801149 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatmanagementgroup.go @@ -46,7 +46,6 @@ func (c RemediationsClient) CancelAtManagementGroup(ctx context.Context, id Prov var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresource.go index 31cf2c0e0dc6..86de50a538fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresource.go @@ -46,7 +46,6 @@ func (c RemediationsClient) CancelAtResource(ctx context.Context, id ScopedRemed var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresourcegroup.go index b6fda0ff3052..6e93937ba875 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatresourcegroup.go @@ -46,7 +46,6 @@ func (c RemediationsClient) CancelAtResourceGroup(ctx context.Context, id Provid var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatsubscription.go index 0a2b882ff2d8..f2de8e92ce4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_cancelatsubscription.go @@ -46,7 +46,6 @@ func (c RemediationsClient) CancelAtSubscription(ctx context.Context, id Remedia var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatmanagementgroup.go index e66b58c650ee..31b72969e3a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatmanagementgroup.go @@ -50,7 +50,6 @@ func (c RemediationsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresource.go index 6be8c71ab9ec..a5e980acc51f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresource.go @@ -50,7 +50,6 @@ func (c RemediationsClient) CreateOrUpdateAtResource(ctx context.Context, id Sco var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresourcegroup.go index 45e64a0f1cfb..74f8807ac266 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatresourcegroup.go @@ -50,7 +50,6 @@ func (c RemediationsClient) CreateOrUpdateAtResourceGroup(ctx context.Context, i var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatsubscription.go index 3cef086f919b..b5b54984856e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_createorupdateatsubscription.go @@ -50,7 +50,6 @@ func (c RemediationsClient) CreateOrUpdateAtSubscription(ctx context.Context, id var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatmanagementgroup.go index 09c192685631..6c1f56b8ed92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatmanagementgroup.go @@ -46,7 +46,6 @@ func (c RemediationsClient) DeleteAtManagementGroup(ctx context.Context, id Prov var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresource.go index 7522c0157f3f..c5ffc1530416 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresource.go @@ -46,7 +46,6 @@ func (c RemediationsClient) DeleteAtResource(ctx context.Context, id ScopedRemed var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresourcegroup.go index 37d43ad1a534..f3fa20289db3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatresourcegroup.go @@ -46,7 +46,6 @@ func (c RemediationsClient) DeleteAtResourceGroup(ctx context.Context, id Provid var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatsubscription.go index 5c327d3bd5f9..d2e7ffb3dd4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_deleteatsubscription.go @@ -46,7 +46,6 @@ func (c RemediationsClient) DeleteAtSubscription(ctx context.Context, id Remedia var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatmanagementgroup.go index 6f6dfa735fa9..0fe05dbdcb76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatmanagementgroup.go @@ -45,7 +45,6 @@ func (c RemediationsClient) GetAtManagementGroup(ctx context.Context, id Provide var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresource.go index b46796e63b21..2f85b9ddc194 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresource.go @@ -45,7 +45,6 @@ func (c RemediationsClient) GetAtResource(ctx context.Context, id ScopedRemediat var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresourcegroup.go index e4264ff7c36d..1e4c0c593100 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatresourcegroup.go @@ -45,7 +45,6 @@ func (c RemediationsClient) GetAtResourceGroup(ctx context.Context, id ProviderR var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatsubscription.go index a25953c23ab4..7040cf62d24a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_getatsubscription.go @@ -45,7 +45,6 @@ func (c RemediationsClient) GetAtSubscription(ctx context.Context, id Remediatio var model Remediation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go index f25cd5df359f..000a1dede92d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatmanagementgroup.go @@ -39,6 +39,7 @@ func (o ListDeploymentsAtManagementGroupOperationOptions) ToHeaders() *client.He func (o ListDeploymentsAtManagementGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go index 4f4887123942..4eacc612b3f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresource.go @@ -39,6 +39,7 @@ func (o ListDeploymentsAtResourceOperationOptions) ToHeaders() *client.Headers { func (o ListDeploymentsAtResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go index 39bdfce404d4..c440965a8ada 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatresourcegroup.go @@ -39,6 +39,7 @@ func (o ListDeploymentsAtResourceGroupOperationOptions) ToHeaders() *client.Head func (o ListDeploymentsAtResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go index 01f28953a55a..fa1f5512c464 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listdeploymentsatsubscription.go @@ -39,6 +39,7 @@ func (o ListDeploymentsAtSubscriptionOperationOptions) ToHeaders() *client.Heade func (o ListDeploymentsAtSubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go index 2b60f0ffcabf..c4ccbdf488d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listformanagementgroup.go @@ -40,6 +40,7 @@ func (o ListForManagementGroupOperationOptions) ToHeaders() *client.Headers { func (o ListForManagementGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go index 43a70d3a5fce..220cd2186844 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresource.go @@ -41,6 +41,7 @@ func (o ListForResourceOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go index f788d641c8cf..9fe404cebabd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforresourcegroup.go @@ -41,6 +41,7 @@ func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go index a0f43f3b4e46..01493cd18b16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/method_listforsubscription.go @@ -41,6 +41,7 @@ func (o ListForSubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListForSubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/version.go index 17f0e394ae04..34a9c4d7b4e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2021-10-01/remediations/version.go @@ -1,12 +1,10 @@ package remediations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/remediations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/remediations/2021-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/README.md index 6816689468f6..094bb3926be2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard` Documentation -The `dashboard` SDK allows for interaction with the Azure Resource Manager Service `portal` (API Version `2019-01-01-preview`). +The `dashboard` SDK allows for interaction with Azure Resource Manager `portal` (API Version `2019-01-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardValue") +id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardName") payload := dashboard.Dashboard{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardValue") +id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardValue") +id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardValue") +id := dashboard.NewDashboardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dashboardName") payload := dashboard.PatchableDashboard{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/client.go index 825c25c2d12b..26d54af66d46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/client.go @@ -15,7 +15,7 @@ type DashboardClient struct { } func NewDashboardClientWithBaseURI(sdkApi sdkEnv.Api) (*DashboardClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "dashboard", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "dashboard", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DashboardClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/id_dashboard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/id_dashboard.go index 8e1b3e7fb867..1d1ad6130322 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/id_dashboard.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/id_dashboard.go @@ -42,7 +42,7 @@ func ParseDashboardID(input string) (*DashboardId, error) { } id := DashboardId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDashboardIDInsensitively(input string) (*DashboardId, error) { } id := DashboardId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DashboardId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPortal", "Microsoft.Portal", "Microsoft.Portal"), resourceids.StaticSegment("staticDashboards", "dashboards", "dashboards"), - resourceids.UserSpecifiedSegment("dashboardName", "dashboardValue"), + resourceids.UserSpecifiedSegment("dashboardName", "dashboardName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_createorupdate.go index 7af6f8cfede8..ae539b903d4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DashboardClient) CreateOrUpdate(ctx context.Context, id DashboardId, inp var model Dashboard result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_get.go index 14af2ecf7f01..0fff3ba8fdf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_get.go @@ -45,7 +45,6 @@ func (c DashboardClient) Get(ctx context.Context, id DashboardId) (result GetOpe var model Dashboard result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_update.go index c4d8c1061ae7..3c9f5e4be079 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/method_update.go @@ -49,7 +49,6 @@ func (c DashboardClient) Update(ctx context.Context, id DashboardId, input Patch var model Dashboard result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/version.go index 523ca92a2818..de1d24125cd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/dashboard/version.go @@ -1,12 +1,10 @@ package dashboard -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-01-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/dashboard/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/dashboard/2019-01-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md index 27533d85810c..be02eb789ad5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration` Documentation -The `tenantconfiguration` SDK allows for interaction with the Azure Resource Manager Service `portal` (API Version `2019-01-01-preview`). +The `tenantconfiguration` SDK allows for interaction with Azure Resource Manager `portal` (API Version `2019-01-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/client.go index 0251dfc8eb55..bd86c8dd00fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/client.go @@ -15,7 +15,7 @@ type TenantConfigurationClient struct { } func NewTenantConfigurationClientWithBaseURI(sdkApi sdkEnv.Api) (*TenantConfigurationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tenantconfiguration", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tenantconfiguration", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TenantConfigurationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create.go index 4c58e631583d..bb7904134391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_create.go @@ -50,7 +50,6 @@ func (c TenantConfigurationClient) Create(ctx context.Context, input Configurati var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get.go index 0a6c9c314c4b..e819db60f36d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/method_get.go @@ -45,7 +45,6 @@ func (c TenantConfigurationClient) Get(ctx context.Context) (result GetOperation var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/version.go index 85b3a535a057..ffaa3ca148c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/portal/2019-01-01-preview/tenantconfiguration/version.go @@ -1,12 +1,10 @@ package tenantconfiguration -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-01-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tenantconfiguration/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tenantconfiguration/2019-01-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/README.md index 62f69b241ec4..fbc87c14f0e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `configurations` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") payload := configurations.Configuration{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := configurations.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListByServer(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/client.go index 3ced22d176bb..f927d73df196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/client.go @@ -15,7 +15,7 @@ type ConfigurationsClient struct { } func NewConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_configuration.go index ba89907cc660..d9ba27ce240b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_server.go index f30c57b75b0f..8e9fe4c6b4df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_get.go index e9c5e825e444..4526746d05fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) Get(ctx context.Context, id ConfigurationId) (resu var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_listbyserver.go index b51c9a09a631..418fa10dd20d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/method_listbyserver.go @@ -46,7 +46,6 @@ func (c ConfigurationsClient) ListByServer(ctx context.Context, id ServerId) (re var model ConfigurationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/version.go index 14506a04060b..c7dc0ca0f7f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/configurations/version.go @@ -1,12 +1,10 @@ package configurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurations/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/README.md index 62a59cee9f3c..93955de3e3d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `databases` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.Database{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := databases.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListByServer(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_database.go index 6d0ca1df1919..b5f64e536a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_server.go index dc5fb2f0f8d9..48215fce8540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_get.go index dcbfb4b8270e..df1a873b818c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_get.go @@ -45,7 +45,6 @@ func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOper var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_listbyserver.go index a4dd2fdfeed9..cf9744c0c745 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/method_listbyserver.go @@ -46,7 +46,6 @@ func (c DatabasesClient) ListByServer(ctx context.Context, id ServerId) (result var model DatabaseListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/version.go index 8d6c0a801d36..694f15eb2403 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/README.md index df11d1f28eeb..79ae1b986402 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") payload := firewallrules.FirewallRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := firewallrules.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListByServer(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_firewallrule.go index 44619b8f5956..2d94469c12aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_server.go index 52564145ec28..46a1ff51a783 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_get.go index 37bca7c40d82..6b53b2919c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_listbyserver.go index 3d8818b6fad9..a3d638705b3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/method_listbyserver.go @@ -46,7 +46,6 @@ func (c FirewallRulesClient) ListByServer(ctx context.Context, id ServerId) (res var model FirewallRuleListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/version.go index 38c1ba53b63a..5e0f91bdd34a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/README.md index 0867f669fea5..e16e60a93ad9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas` Documentation -The `replicas` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `replicas` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicas.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := replicas.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ListByServer(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/client.go index d971742c1bdc..b494c8a0a7f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/client.go @@ -15,7 +15,7 @@ type ReplicasClient struct { } func NewReplicasClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicas", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicas", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/id_server.go index 212134762fe9..e655616c59c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/method_listbyserver.go index 2908a99e4c36..a0d6916d9e0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/method_listbyserver.go @@ -46,7 +46,6 @@ func (c ReplicasClient) ListByServer(ctx context.Context, id ServerId) (result L var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/version.go index 127efac84861..c3783af89ae4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/replicas/version.go @@ -1,12 +1,10 @@ package replicas -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicas/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicas/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/README.md index 364e18bdfa71..3ce10a2f7f08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators` Documentation -The `serveradministrators` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `serveradministrators` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serveradministrators.ServerAdministratorResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serveradministrators.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/client.go index de0fa892b40c..4c33543f7f95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/client.go @@ -15,7 +15,7 @@ type ServerAdministratorsClient struct { } func NewServerAdministratorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAdministratorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serveradministrators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serveradministrators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerAdministratorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/id_server.go index 1c4d1b21e656..25fe3365039a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_get.go index b469795c6ca1..d02b59e815d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_get.go @@ -46,7 +46,6 @@ func (c ServerAdministratorsClient) Get(ctx context.Context, id ServerId) (resul var model ServerAdministratorResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_list.go index 7149fba6562b..f357647c46ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/method_list.go @@ -46,7 +46,6 @@ func (c ServerAdministratorsClient) List(ctx context.Context, id ServerId) (resu var model ServerAdministratorResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/version.go index c33f7aa2ba6a..44c85ad7c7d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serveradministrators/version.go @@ -1,12 +1,10 @@ package serveradministrators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serveradministrators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serveradministrators/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/README.md index e3d583d72af3..f14d21e4d549 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `servers` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerForCreate{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := servers.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/id_server.go index 336f02b9834f..ba407fced5f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_get.go index 7087cf8acac2..e321c1fa2888 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_get.go @@ -45,7 +45,6 @@ func (c ServersClient) Get(ctx context.Context, id ServerId) (result GetOperatio var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_list.go index 9c8cc466916e..15fd7e1a2791 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_list.go @@ -47,7 +47,6 @@ func (c ServersClient) List(ctx context.Context, id commonids.SubscriptionId) (r var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_listbyresourcegroup.go index 857cabd3efd4..9b593566eca5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ServersClient) ListByResourceGroup(ctx context.Context, id commonids.Res var model ServerListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverforcreate.go index 171c190411b5..149518ee6509 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverforcreate.go @@ -21,10 +21,14 @@ type ServerForCreate struct { var _ json.Unmarshaler = &ServerForCreate{} func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { - type alias ServerForCreate - var decoded alias + var decoded struct { + Identity *identity.SystemAssigned `json:"identity,omitempty"` + Location string `json:"location"` + Sku *Sku `json:"sku,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ServerForCreate: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Identity = decoded.Identity @@ -38,11 +42,12 @@ func (s *ServerForCreate) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalServerPropertiesForCreateImplementation(v) + impl, err := UnmarshalServerPropertiesForCreateImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ServerForCreate': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforcreate.go index 84868e2551eb..8ad4cf10e336 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforcreate.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ServerPropertiesForCreate interface { + ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl } -// RawServerPropertiesForCreateImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ServerPropertiesForCreate = BaseServerPropertiesForCreateImpl{} + +type BaseServerPropertiesForCreateImpl struct { + CreateMode CreateMode `json:"createMode"` + InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` + MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` + PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` + SslEnforcement *SslEnforcementEnum `json:"sslEnforcement,omitempty"` + StorageProfile *StorageProfile `json:"storageProfile,omitempty"` + Version *ServerVersion `json:"version,omitempty"` +} + +func (s BaseServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s +} + +var _ ServerPropertiesForCreate = RawServerPropertiesForCreateImpl{} + +// RawServerPropertiesForCreateImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawServerPropertiesForCreateImpl struct { - Type string - Values map[string]interface{} + serverPropertiesForCreate BaseServerPropertiesForCreateImpl + Type string + Values map[string]interface{} +} + +func (s RawServerPropertiesForCreateImpl) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return s.serverPropertiesForCreate } -func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { +func UnmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPropertiesForCreate, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return nil, fmt.Errorf("unmarshaling ServerPropertiesForCreate into map[string]interface: %+v", err) } - value, ok := temp["createMode"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["createMode"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Default") { @@ -68,10 +91,15 @@ func unmarshalServerPropertiesForCreateImplementation(input []byte) (ServerPrope return out, nil } - out := RawServerPropertiesForCreateImpl{ - Type: value, - Values: temp, + var parent BaseServerPropertiesForCreateImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseServerPropertiesForCreateImpl: %+v", err) } - return out, nil + + return RawServerPropertiesForCreateImpl{ + serverPropertiesForCreate: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go index efa1824c8386..59c728717e70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesfordefaultcreate.go @@ -15,6 +15,8 @@ type ServerPropertiesForDefaultCreate struct { AdministratorLoginPassword string `json:"administratorLoginPassword"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -23,6 +25,18 @@ type ServerPropertiesForDefaultCreate struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForDefaultCreate) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForDefaultCreate{} func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { @@ -34,9 +48,10 @@ func (s ServerPropertiesForDefaultCreate) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForDefaultCreate: %+v", err) } + decoded["createMode"] = "Default" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforgeorestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforgeorestore.go index f3775b48d536..0be124f40483 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforgeorestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforgeorestore.go @@ -14,6 +14,8 @@ type ServerPropertiesForGeoRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -22,6 +24,18 @@ type ServerPropertiesForGeoRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForGeoRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForGeoRestore{} func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s ServerPropertiesForGeoRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForGeoRestore: %+v", err) } + decoded["createMode"] = "GeoRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforreplica.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforreplica.go index 9f8a64ee6e76..973fb257c237 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforreplica.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforreplica.go @@ -14,6 +14,8 @@ type ServerPropertiesForReplica struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -22,6 +24,18 @@ type ServerPropertiesForReplica struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForReplica) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForReplica{} func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s ServerPropertiesForReplica) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForReplica: %+v", err) } + decoded["createMode"] = "Replica" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforrestore.go index 0a74bb938170..f28614737ea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforrestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/model_serverpropertiesforrestore.go @@ -15,6 +15,8 @@ type ServerPropertiesForRestore struct { SourceServerId string `json:"sourceServerId"` // Fields inherited from ServerPropertiesForCreate + + CreateMode CreateMode `json:"createMode"` InfrastructureEncryption *InfrastructureEncryption `json:"infrastructureEncryption,omitempty"` MinimalTlsVersion *MinimalTlsVersionEnum `json:"minimalTlsVersion,omitempty"` PublicNetworkAccess *PublicNetworkAccessEnum `json:"publicNetworkAccess,omitempty"` @@ -23,6 +25,18 @@ type ServerPropertiesForRestore struct { Version *ServerVersion `json:"version,omitempty"` } +func (s ServerPropertiesForRestore) ServerPropertiesForCreate() BaseServerPropertiesForCreateImpl { + return BaseServerPropertiesForCreateImpl{ + CreateMode: s.CreateMode, + InfrastructureEncryption: s.InfrastructureEncryption, + MinimalTlsVersion: s.MinimalTlsVersion, + PublicNetworkAccess: s.PublicNetworkAccess, + SslEnforcement: s.SslEnforcement, + StorageProfile: s.StorageProfile, + Version: s.Version, + } +} + var _ json.Marshaler = ServerPropertiesForRestore{} func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { @@ -34,9 +48,10 @@ func (s ServerPropertiesForRestore) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServerPropertiesForRestore: %+v", err) } + decoded["createMode"] = "PointInTimeRestore" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/version.go index 80804cb01558..8a2153019661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/README.md index 3042ca18fcf2..46ae7657ec07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies` Documentation -The `serversecurityalertpolicies` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `serversecurityalertpolicies` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serversecurityalertpolicies.ServerSecurityAlertPolicy{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serversecurityalertpolicies.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/client.go index d3b8f5dac1b6..cb80188b5008 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/client.go @@ -15,7 +15,7 @@ type ServerSecurityAlertPoliciesClient struct { } func NewServerSecurityAlertPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerSecurityAlertPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serversecurityalertpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serversecurityalertpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerSecurityAlertPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/id_server.go index 9acf53fc7444..aec17fd89967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_get.go index d3786ed5879a..350ddae047bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/method_get.go @@ -46,7 +46,6 @@ func (c ServerSecurityAlertPoliciesClient) Get(ctx context.Context, id ServerId) var model ServerSecurityAlertPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/version.go index f7fc4c20d1df..a8cdb3f59788 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/serversecurityalertpolicies/version.go @@ -1,12 +1,10 @@ package serversecurityalertpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serversecurityalertpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serversecurityalertpolicies/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/README.md index 4a15410e459d..618640ad8885 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules` Documentation -The `virtualnetworkrules` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2017-12-01`). +The `virtualnetworkrules` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2017-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") payload := virtualnetworkrules.VirtualNetworkRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := virtualnetworkrules.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/client.go index 1395850f955e..05336264e4f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/client.go @@ -15,7 +15,7 @@ type VirtualNetworkRulesClient struct { } func NewVirtualNetworkRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworkrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_server.go index 73430aacd79d..3f385da6b851 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_virtualnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_virtualnetworkrule.go index 20f46b888baf..26ba41488ffc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_virtualnetworkrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/id_virtualnetworkrule.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkRuleID(input string) (*VirtualNetworkRuleId, error) { } id := VirtualNetworkRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkRuleIDInsensitively(input string) (*VirtualNetworkRuleId } id := VirtualNetworkRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticVirtualNetworkRules", "virtualNetworkRules", "virtualNetworkRules"), - resourceids.UserSpecifiedSegment("virtualNetworkRuleName", "virtualNetworkRuleValue"), + resourceids.UserSpecifiedSegment("virtualNetworkRuleName", "virtualNetworkRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_get.go index 5a63376cc384..ffe91c541177 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkRulesClient) Get(ctx context.Context, id VirtualNetworkRul var model VirtualNetworkRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/version.go index 11bd3d9075aa..2f26470a34ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/virtualnetworkrules/version.go @@ -1,12 +1,10 @@ package virtualnetworkrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2017-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworkrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworkrules/2017-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/README.md index cfa23ca10eb5..029974f5bd5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys` Documentation -The `serverkeys` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2020-01-01`). +The `serverkeys` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2020-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") payload := serverkeys.ServerKey{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverkeys.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := serverkeys.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/client.go index 83970b7eb35d..0616b182cbba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/client.go @@ -15,7 +15,7 @@ type ServerKeysClient struct { } func NewServerKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverkeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverkeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_key.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_key.go index aefc3826e88e..09ad12b2cd40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_key.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_key.go @@ -44,7 +44,7 @@ func ParseKeyID(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseKeyIDInsensitively(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id KeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_server.go index 5969d423825d..d053b4ee4dd5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/id_server.go @@ -42,7 +42,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/method_get.go index cdd81e30407d..e6b4acc396aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/method_get.go @@ -45,7 +45,6 @@ func (c ServerKeysClient) Get(ctx context.Context, id KeyId) (result GetOperatio var model ServerKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/version.go index 0155b1ec7962..4b861b9abbc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2020-01-01/serverkeys/version.go @@ -1,12 +1,10 @@ package serverkeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverkeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverkeys/2020-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/README.md index 4e16c306e84e..abb76f60876a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2021-06-01`). +The `configurations` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := configurations.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") payload := configurations.Configuration{ // ... @@ -74,7 +74,7 @@ if err := client.PutThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "configurationName") payload := configurations.Configuration{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/client.go index 3ced22d176bb..f927d73df196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/client.go @@ -15,7 +15,7 @@ type ConfigurationsClient struct { } func NewConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_configuration.go index 87bea8b781e1..7412c2106b42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_flexibleserver.go index 6109a87bd01c..4cd0eff67f15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/method_get.go index e9c5e825e444..4526746d05fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) Get(ctx context.Context, id ConfigurationId) (resu var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/version.go index d5ec5102c441..2e08fe82e904 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/configurations/version.go @@ -1,12 +1,10 @@ package configurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurations/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/README.md index 48b7dd87f24a..caf5bec7579a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart` Documentation -The `serverrestart` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2021-06-01`). +The `serverrestart` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := serverrestart.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverrestart.RestartParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/client.go index 0a08b2a68205..b3cc7f2e6a78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/client.go @@ -15,7 +15,7 @@ type ServerRestartClient struct { } func NewServerRestartClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerRestartClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverrestart", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverrestart", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerRestartClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/id_flexibleserver.go index 9a3b6af74552..2a194410afdc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/version.go index 34503f2369e2..1cbca8a727aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2021-06-01/serverrestart/version.go @@ -1,12 +1,10 @@ package serverrestart -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverrestart/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverrestart/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md index 71ac11b55fbf..97bf49065cfa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators` Documentation -The `administrators` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2022-12-01`). +The `administrators` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "objectIdValue") +id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "objectId") payload := administrators.ActiveDirectoryAdministratorAdd{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "objectIdValue") +id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "objectId") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "objectIdValue") +id := administrators.NewAdministratorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "objectId") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := administrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := administrators.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go index c1c8ddd284e8..6fd32a5af24d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/client.go @@ -15,7 +15,7 @@ type AdministratorsClient struct { } func NewAdministratorsClientWithBaseURI(sdkApi sdkEnv.Api) (*AdministratorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "administrators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "administrators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AdministratorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go index 06074360c887..b77279e1a86f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_administrator.go @@ -44,7 +44,7 @@ func ParseAdministratorID(input string) (*AdministratorId, error) { } id := AdministratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAdministratorIDInsensitively(input string) (*AdministratorId, error) { } id := AdministratorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AdministratorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticAdministrators", "administrators", "administrators"), - resourceids.UserSpecifiedSegment("objectId", "objectIdValue"), + resourceids.UserSpecifiedSegment("objectId", "objectId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go index eb957f984d98..a779b09968f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go index a3eb4fd8972c..a4f50294a89c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/method_get.go @@ -45,7 +45,6 @@ func (c AdministratorsClient) Get(ctx context.Context, id AdministratorId) (resu var model ActiveDirectoryAdministrator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go index ebf756ae1fec..78aefc28eb70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/administrators/version.go @@ -1,12 +1,10 @@ package administrators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/administrators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/administrators/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md index 7787c7963e36..a1d8d6f433c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2022-12-01`). +The `databases` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.Database{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := databases.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go index c0b9fb64754d..71152f520bac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go index 820d1eaed7d1..f370fda42e89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go index dcbfb4b8270e..df1a873b818c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/method_get.go @@ -45,7 +45,6 @@ func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOper var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go index 5812c716548b..dc150c80b006 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md index 9c6b89fce56b..4575b0527f30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2022-12-01`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") payload := firewallrules.FirewallRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := firewallrules.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go index 7e7fd2e3d414..44e4a903cc49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go index f5408e980f13..835759b3a998 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go index 37bca7c40d82..6b53b2919c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go index 7f0b967451a9..e34e91fb7239 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2022-12-01/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md index e00f2cc165dc..ba92641d7736 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2023-06-01-preview`). +The `servers` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.Server{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := servers.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go index 94ec2a6bccda..ca603c500957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go index 3501739e6323..fea9d5443d84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/method_get.go @@ -45,7 +45,6 @@ func (c ServersClient) Get(ctx context.Context, id FlexibleServerId) (result Get var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go index 26b10ba6dad6..2b9f0e3b8e67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md index 831488b367cd..c244f106c975 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints` Documentation -The `virtualendpoints` SDK allows for interaction with the Azure Resource Manager Service `postgresql` (API Version `2023-06-01-preview`). +The `virtualendpoints` SDK allows for interaction with Azure Resource Manager `postgresql` (API Version `2023-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "virtualEndpointValue") +id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualEndpointName") payload := virtualendpoints.VirtualEndpointResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "virtualEndpointValue") +id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualEndpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "virtualEndpointValue") +id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualendpoints.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue") +id := virtualendpoints.NewFlexibleServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "flexibleServerValue", "virtualEndpointValue") +id := virtualendpoints.NewVirtualEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualEndpointName") payload := virtualendpoints.VirtualEndpointResourceForPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go index e4f12890b9e5..9a36fc797590 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/client.go @@ -15,7 +15,7 @@ type VirtualEndpointsClient struct { } func NewVirtualEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go index 242239daf770..c5664383cd85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_flexibleserver.go @@ -42,7 +42,7 @@ func ParseFlexibleServerID(input string) (*FlexibleServerId, error) { } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error) } id := FlexibleServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id FlexibleServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go index 10a8e52f1c3b..727c3b61533f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/id_virtualendpoint.go @@ -44,7 +44,7 @@ func ParseVirtualEndpointID(input string) (*VirtualEndpointId, error) { } id := VirtualEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualEndpointIDInsensitively(input string) (*VirtualEndpointId, erro } id := VirtualEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticFlexibleServers", "flexibleServers", "flexibleServers"), - resourceids.UserSpecifiedSegment("flexibleServerName", "flexibleServerValue"), + resourceids.UserSpecifiedSegment("flexibleServerName", "serverName"), resourceids.StaticSegment("staticVirtualEndpoints", "virtualEndpoints", "virtualEndpoints"), - resourceids.UserSpecifiedSegment("virtualEndpointName", "virtualEndpointValue"), + resourceids.UserSpecifiedSegment("virtualEndpointName", "virtualEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go index 3d17967feac2..06d9bb5fecbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/method_get.go @@ -45,7 +45,6 @@ func (c VirtualEndpointsClient) Get(ctx context.Context, id VirtualEndpointId) ( var model VirtualEndpointResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go index 914c7c521ea6..ae8e04490b95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2023-06-01-preview/virtualendpoints/version.go @@ -1,12 +1,10 @@ package virtualendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualendpoints/2023-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md index a5da8c0e78f5..dd72de83b010 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `postgresqlhsc` (API Version `2022-11-08`). +The `clusters` SDK allows for interaction with Azure Resource Manager `postgresqlhsc` (API Version `2022-11-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.Cluster{ // ... @@ -63,7 +63,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -125,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := clusters.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.ClusterForUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/id_servergroupsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/id_servergroupsv2.go index cb03dedf6c09..d1bb3c54138f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/id_servergroupsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/id_servergroupsv2.go @@ -42,7 +42,7 @@ func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error) { } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error) } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerGroupsv2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_checknameavailability.go index dbe4bbbabdbc..19f165e0dcf8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ClustersClient) CheckNameAvailability(ctx context.Context, id commonids. var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_get.go index 5c1f89dc451b..a04c8b9102b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/method_get.go @@ -45,7 +45,6 @@ func (c ClustersClient) Get(ctx context.Context, id ServerGroupsv2Id) (result Ge var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/version.go index ba6590cb36bd..1cd44b127948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2022-11-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/README.md index 3bbef98984de..0f528b946c2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations` Documentation -The `configurations` SDK allows for interaction with the Azure Resource Manager Service `postgresqlhsc` (API Version `2022-11-08`). +The `configurations` SDK allows for interaction with Azure Resource Manager `postgresqlhsc` (API Version `2022-11-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "configurationValue") +id := configurations.NewConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewCoordinatorConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "coordinatorConfigurationValue") +id := configurations.NewCoordinatorConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") read, err := client.GetCoordinator(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "nodeConfigurationValue") +id := configurations.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") read, err := client.GetNode(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := configurations.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := configurations.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) @@ -89,7 +89,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurations.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "serverValue") +id := configurations.NewServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -106,7 +106,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := configurations.NewCoordinatorConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "coordinatorConfigurationValue") +id := configurations.NewCoordinatorConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") payload := configurations.ServerConfiguration{ // ... @@ -123,7 +123,7 @@ if err := client.UpdateOnCoordinatorThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := configurations.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "nodeConfigurationValue") +id := configurations.NewNodeConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "configurationName") payload := configurations.ServerConfiguration{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/client.go index 3ced22d176bb..f927d73df196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/client.go @@ -15,7 +15,7 @@ type ConfigurationsClient struct { } func NewConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "configurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "configurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_configuration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_configuration.go index 2844d82efbcc..652b018ca9f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_configuration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_configuration.go @@ -44,7 +44,7 @@ func ParseConfigurationID(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConfigurationIDInsensitively(input string) (*ConfigurationId, error) { } id := ConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticConfigurations", "configurations", "configurations"), - resourceids.UserSpecifiedSegment("configurationName", "configurationValue"), + resourceids.UserSpecifiedSegment("configurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_coordinatorconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_coordinatorconfiguration.go index 06611b130b72..88a71b11ced3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_coordinatorconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_coordinatorconfiguration.go @@ -44,7 +44,7 @@ func ParseCoordinatorConfigurationID(input string) (*CoordinatorConfigurationId, } id := CoordinatorConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCoordinatorConfigurationIDInsensitively(input string) (*CoordinatorCon } id := CoordinatorConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CoordinatorConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticCoordinatorConfigurations", "coordinatorConfigurations", "coordinatorConfigurations"), - resourceids.UserSpecifiedSegment("coordinatorConfigurationName", "coordinatorConfigurationValue"), + resourceids.UserSpecifiedSegment("coordinatorConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_nodeconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_nodeconfiguration.go index f1f08143f88c..b38a78121d6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_nodeconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_nodeconfiguration.go @@ -44,7 +44,7 @@ func ParseNodeConfigurationID(input string) (*NodeConfigurationId, error) { } id := NodeConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNodeConfigurationIDInsensitively(input string) (*NodeConfigurationId, } id := NodeConfigurationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NodeConfigurationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticNodeConfigurations", "nodeConfigurations", "nodeConfigurations"), - resourceids.UserSpecifiedSegment("nodeConfigurationName", "nodeConfigurationValue"), + resourceids.UserSpecifiedSegment("nodeConfigurationName", "configurationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_server.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_server.go index 9eeaf59920b2..18959bac7e75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_server.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_server.go @@ -44,7 +44,7 @@ func ParseServerID(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServerIDInsensitively(input string) (*ServerId, error) { } id := ServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_servergroupsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_servergroupsv2.go index cdb0334a55a5..db3afd451905 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_servergroupsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/id_servergroupsv2.go @@ -42,7 +42,7 @@ func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error) { } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error) } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerGroupsv2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_get.go index e9c5e825e444..4526746d05fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_get.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) Get(ctx context.Context, id ConfigurationId) (resu var model Configuration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getcoordinator.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getcoordinator.go index 742239a776ad..35ed94bca60b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getcoordinator.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getcoordinator.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) GetCoordinator(ctx context.Context, id Coordinator var model ServerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getnode.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getnode.go index ca663ce41dc1..173c7fd0e8a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getnode.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/method_getnode.go @@ -45,7 +45,6 @@ func (c ConfigurationsClient) GetNode(ctx context.Context, id NodeConfigurationI var model ServerConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/version.go index ff27e35293a5..9806980bbc2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/configurations/version.go @@ -1,12 +1,10 @@ package configurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/configurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/configurations/2022-11-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/README.md index a3be5ff782bd..8081b3ed484a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `postgresqlhsc` (API Version `2022-11-08`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `postgresqlhsc` (API Version `2022-11-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "firewallRuleName") payload := firewallrules.FirewallRule{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "firewallRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "firewallRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := firewallrules.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_firewallrule.go index b3f6d82bed01..ffb75cab602a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_servergroupsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_servergroupsv2.go index b9a831232481..e93f60204b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_servergroupsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/id_servergroupsv2.go @@ -42,7 +42,7 @@ func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error) { } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error) } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerGroupsv2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_get.go index 37bca7c40d82..6b53b2919c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_listbycluster.go index ef51c97538ed..efd2b7657c78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/method_listbycluster.go @@ -46,7 +46,6 @@ func (c FirewallRulesClient) ListByCluster(ctx context.Context, id ServerGroupsv var model FirewallRuleListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/version.go index 4cc96661cdfe..b5bad1bc3fe1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2022-11-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/README.md index 6006de0f3168..fa5180403b06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles` Documentation -The `roles` SDK allows for interaction with the Azure Resource Manager Service `postgresqlhsc` (API Version `2022-11-08`). +The `roles` SDK allows for interaction with Azure Resource Manager `postgresqlhsc` (API Version `2022-11-08`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "roleValue") +id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "roleName") payload := roles.Role{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "roleValue") +id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "roleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value", "roleValue") +id := roles.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "roleName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := roles.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverGroupsv2Value") +id := roles.NewServerGroupsv2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.ListByCluster(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/client.go index eddcb107e5b8..fa6a9c686f14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/client.go @@ -15,7 +15,7 @@ type RolesClient struct { } func NewRolesClientWithBaseURI(sdkApi sdkEnv.Api) (*RolesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "roles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "roles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RolesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_role.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_role.go index 80c5f615cb0a..6d7c703b28e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_role.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_role.go @@ -44,7 +44,7 @@ func ParseRoleID(input string) (*RoleId, error) { } id := RoleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRoleIDInsensitively(input string) (*RoleId, error) { } id := RoleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RoleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), resourceids.StaticSegment("staticRoles", "roles", "roles"), - resourceids.UserSpecifiedSegment("roleName", "roleValue"), + resourceids.UserSpecifiedSegment("roleName", "roleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_servergroupsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_servergroupsv2.go index 017258c2b4a9..4af411f689b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_servergroupsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/id_servergroupsv2.go @@ -42,7 +42,7 @@ func ParseServerGroupsv2ID(input string) (*ServerGroupsv2Id, error) { } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseServerGroupsv2IDInsensitively(input string) (*ServerGroupsv2Id, error) } id := ServerGroupsv2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ServerGroupsv2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftDBforPostgreSQL", "Microsoft.DBforPostgreSQL", "Microsoft.DBforPostgreSQL"), resourceids.StaticSegment("staticServerGroupsv2", "serverGroupsv2", "serverGroupsv2"), - resourceids.UserSpecifiedSegment("serverGroupsv2Name", "serverGroupsv2Value"), + resourceids.UserSpecifiedSegment("serverGroupsv2Name", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_get.go index f102decf8744..0e13fc79c1b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_get.go @@ -45,7 +45,6 @@ func (c RolesClient) Get(ctx context.Context, id RoleId) (result GetOperationRes var model Role result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_listbycluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_listbycluster.go index 08cbcd98fe3e..d183e67b566d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_listbycluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/method_listbycluster.go @@ -46,7 +46,6 @@ func (c RolesClient) ListByCluster(ctx context.Context, id ServerGroupsv2Id) (re var model RoleListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/version.go index 5a806411a6a8..c297aac9c286 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/postgresqlhsc/2022-11-08/roles/version.go @@ -1,12 +1,10 @@ package roles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-08" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/roles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/roles/2022-11-08" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/README.md index f21f0dbbf60f..4e818598a09e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities` Documentation -The `capacities` SDK allows for interaction with the Azure Resource Manager Service `powerbidedicated` (API Version `2021-01-01`). +The `capacities` SDK allows for interaction with Azure Resource Manager `powerbidedicated` (API Version `2021-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := capacities.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := capacities.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := capacities.CheckCapacityNameAvailabilityParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") payload := capacities.DedicatedCapacity{ // ... @@ -63,7 +63,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") read, err := client.GetDetails(ctx, id) if err != nil { @@ -123,7 +123,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") read, err := client.ListSkusForCapacity(ctx, id) if err != nil { @@ -139,7 +139,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") if err := client.ResumeThenPoll(ctx, id); err != nil { // handle the error @@ -151,7 +151,7 @@ if err := client.ResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") if err := client.SuspendThenPoll(ctx, id); err != nil { // handle the error @@ -163,7 +163,7 @@ if err := client.SuspendThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "capacityValue") +id := capacities.NewCapacityID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dedicatedCapacityName") payload := capacities.DedicatedCapacityUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/client.go index d75c33d91ac3..4d92d1884db0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/client.go @@ -15,7 +15,7 @@ type CapacitiesClient struct { } func NewCapacitiesClientWithBaseURI(sdkApi sdkEnv.Api) (*CapacitiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "capacities", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "capacities", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CapacitiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_capacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_capacity.go index 8d161996e577..a51b3d4fa720 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_capacity.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_capacity.go @@ -42,7 +42,7 @@ func ParseCapacityID(input string) (*CapacityId, error) { } id := CapacityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCapacityIDInsensitively(input string) (*CapacityId, error) { } id := CapacityId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CapacityId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPowerBIDedicated", "Microsoft.PowerBIDedicated", "Microsoft.PowerBIDedicated"), resourceids.StaticSegment("staticCapacities", "capacities", "capacities"), - resourceids.UserSpecifiedSegment("capacityName", "capacityValue"), + resourceids.UserSpecifiedSegment("capacityName", "dedicatedCapacityName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_location.go index fb7055c5e8f8..c4a53f983a53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPowerBIDedicated", "Microsoft.PowerBIDedicated", "Microsoft.PowerBIDedicated"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_checknameavailability.go index 6aeaf3f30a65..85f5af679b7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c CapacitiesClient) CheckNameAvailability(ctx context.Context, id Location var model CheckCapacityNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_getdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_getdetails.go index b69c6d1bfcca..6132fd574b9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_getdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_getdetails.go @@ -45,7 +45,6 @@ func (c CapacitiesClient) GetDetails(ctx context.Context, id CapacityId) (result var model DedicatedCapacity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_list.go index 72054ffd5bf9..a57bb559a3dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_list.go @@ -47,7 +47,6 @@ func (c CapacitiesClient) List(ctx context.Context, id commonids.SubscriptionId) var model DedicatedCapacities result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listbyresourcegroup.go index 3017e8c25bfc..34c8f75526f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c CapacitiesClient) ListByResourceGroup(ctx context.Context, id commonids. var model DedicatedCapacities result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listskusforcapacity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listskusforcapacity.go index 7d89bae5a060..e1fbaeb07b29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listskusforcapacity.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/method_listskusforcapacity.go @@ -46,7 +46,6 @@ func (c CapacitiesClient) ListSkusForCapacity(ctx context.Context, id CapacityId var model SkuEnumerationForExistingResourceResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/version.go index 5983f4efb738..ce6f5c54778e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/powerbidedicated/2021-01-01/capacities/version.go @@ -1,12 +1,10 @@ package capacities -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/capacities/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/capacities/2021-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/README.md index bec9369751a4..8570de57b6b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones` Documentation -The `privatezones` SDK allows for interaction with the Azure Resource Manager Service `privatedns` (API Version `2020-06-01`). +The `privatezones` SDK allows for interaction with Azure Resource Manager `privatedns` (API Version `2020-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") payload := privatezones.PrivateZone{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, privatezones.DefaultCr ```go ctx := context.TODO() -id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") if err := client.DeleteThenPoll(ctx, id, privatezones.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, privatezones.DefaultDeleteOperationOpti ```go ctx := context.TODO() -id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := privatezones.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") payload := privatezones.PrivateZone{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/client.go index 3cc24a351cc9..089b1b59cb6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/client.go @@ -15,7 +15,7 @@ type PrivateZonesClient struct { } func NewPrivateZonesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateZonesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatezones", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatezones", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateZonesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/id_privatednszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/id_privatednszone.go index 803996b79bfe..8fc374b83f63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/id_privatednszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/id_privatednszone.go @@ -42,7 +42,7 @@ func ParsePrivateDnsZoneID(input string) (*PrivateDnsZoneId, error) { } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateDnsZoneIDInsensitively(input string) (*PrivateDnsZoneId, error) } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateDnsZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go index e470f519e8ca..1d650e0175a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go index d03a01bfb989..96925b7f0696 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_get.go index ed785598de22..a50b13fb22b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_get.go @@ -45,7 +45,6 @@ func (c PrivateZonesClient) Get(ctx context.Context, id PrivateDnsZoneId) (resul var model PrivateZone result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_list.go index a97a9c885b5e..6c4acbc33381 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go index be1d3300f4ed..439b0f6f20c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_update.go index 0f4953dfc0d0..b41d04ba2ad7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/version.go index 70d076c9d9b0..f6c16bd3d7ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/privatezones/version.go @@ -1,12 +1,10 @@ package privatezones -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatezones/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatezones/2020-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/README.md index 37bafa2d0c25..6982dda8601e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets` Documentation -The `recordsets` SDK allows for interaction with the Azure Resource Manager Service `privatedns` (API Version `2020-06-01`). +The `recordsets` SDK allows for interaction with Azure Resource Manager `privatedns` (API Version `2020-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "A", "relativeRecordSetName") payload := recordsets.RecordSet{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "A", "relativeRecordSetName") read, err := client.Delete(ctx, id, recordsets.DefaultDeleteOperationOptions()) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "A", "relativeRecordSetName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := recordsets.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := recordsets.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") // alternatively `client.List(ctx, id, recordsets.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, recordsets.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recordsets.NewPrivateZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "A") +id := recordsets.NewPrivateZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "A") // alternatively `client.ListByType(ctx, id, recordsets.DefaultListByTypeOperationOptions())` can be used to do batched pagination items, err := client.ListByTypeComplete(ctx, id, recordsets.DefaultListByTypeOperationOptions()) @@ -111,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "A", "relativeRecordSetValue") +id := recordsets.NewRecordTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "A", "relativeRecordSetName") payload := recordsets.RecordSet{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/client.go index 18ff6ef4956e..dc9e1a5c168d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/client.go @@ -15,7 +15,7 @@ type RecordSetsClient struct { } func NewRecordSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*RecordSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "recordsets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "recordsets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RecordSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatednszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatednszone.go index 65ba5903e02e..d34f6f60b948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatednszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatednszone.go @@ -42,7 +42,7 @@ func ParsePrivateDnsZoneID(input string) (*PrivateDnsZoneId, error) { } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateDnsZoneIDInsensitively(input string) (*PrivateDnsZoneId, error) } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateDnsZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatezone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatezone.go index 2c9cd137e38d..2c2add883b2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatezone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_privatezone.go @@ -44,7 +44,7 @@ func ParsePrivateZoneID(input string) (*PrivateZoneId, error) { } id := PrivateZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateZoneIDInsensitively(input string) (*PrivateZoneId, error) { } id := PrivateZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id PrivateZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), resourceids.ConstantSegment("recordType", PossibleValuesForRecordType(), "A"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_recordtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_recordtype.go index a866a37ab876..5d7fa6425a52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_recordtype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/id_recordtype.go @@ -46,7 +46,7 @@ func ParseRecordTypeID(input string) (*RecordTypeId, error) { } id := RecordTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRecordTypeIDInsensitively(input string) (*RecordTypeId, error) { } id := RecordTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,9 +135,9 @@ func (id RecordTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), resourceids.ConstantSegment("recordType", PossibleValuesForRecordType(), "A"), - resourceids.UserSpecifiedSegment("relativeRecordSetName", "relativeRecordSetValue"), + resourceids.UserSpecifiedSegment("relativeRecordSetName", "relativeRecordSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go index da283847699b..261e33677c0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c RecordSetsClient) CreateOrUpdate(ctx context.Context, id RecordTypeId, i var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go index bac259d0f30d..cd48363f8003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_get.go index 4cea33700541..67d36e44a1e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_get.go @@ -45,7 +45,6 @@ func (c RecordSetsClient) Get(ctx context.Context, id RecordTypeId) (result GetO var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_list.go index 9c2a20209439..a31f588612bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go index 3705ca025ece..80a3ca7351f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_listbytype.go @@ -40,6 +40,7 @@ func (o ListByTypeOperationOptions) ToHeaders() *client.Headers { func (o ListByTypeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_update.go index def3737e6646..f5d3687ece99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c RecordSetsClient) Update(ctx context.Context, id RecordTypeId, input Rec var model RecordSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/version.go index 2e4bccb4c3be..3091b2a07561 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/recordsets/version.go @@ -1,12 +1,10 @@ package recordsets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/recordsets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/recordsets/2020-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/README.md index a5edbf771bc4..20f1993500ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks` Documentation -The `virtualnetworklinks` SDK allows for interaction with the Azure Resource Manager Service `privatedns` (API Version `2020-06-01`). +The `virtualnetworklinks` SDK allows for interaction with Azure Resource Manager `privatedns` (API Version `2020-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "virtualNetworkLinkName") payload := virtualnetworklinks.VirtualNetworkLink{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, virtualnetworklinks.De ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "virtualNetworkLinkName") if err := client.DeleteThenPoll(ctx, id, virtualnetworklinks.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualnetworklinks.DefaultDeleteOperat ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "virtualNetworkLinkName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := virtualnetworklinks.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue") +id := virtualnetworklinks.NewPrivateDnsZoneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName") // alternatively `client.List(ctx, id, virtualnetworklinks.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, virtualnetworklinks.DefaultListOperationOptions()) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateDnsZoneValue", "virtualNetworkLinkValue") +id := virtualnetworklinks.NewVirtualNetworkLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateZoneName", "virtualNetworkLinkName") payload := virtualnetworklinks.VirtualNetworkLink{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/client.go index 69e2bb7e2f11..f81f0abd63a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/client.go @@ -15,7 +15,7 @@ type VirtualNetworkLinksClient struct { } func NewVirtualNetworkLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkLinksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworklinks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworklinks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkLinksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_privatednszone.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_privatednszone.go index 1d07795df74f..d8a7fd010eeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_privatednszone.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_privatednszone.go @@ -42,7 +42,7 @@ func ParsePrivateDnsZoneID(input string) (*PrivateDnsZoneId, error) { } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateDnsZoneIDInsensitively(input string) (*PrivateDnsZoneId, error) } id := PrivateDnsZoneId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateDnsZoneId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_virtualnetworklink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_virtualnetworklink.go index 41ad08f463d5..dadf91862c01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_virtualnetworklink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/id_virtualnetworklink.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkLinkID(input string) (*VirtualNetworkLinkId, error) { } id := VirtualNetworkLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkLinkIDInsensitively(input string) (*VirtualNetworkLinkId } id := VirtualNetworkLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticPrivateDnsZones", "privateDnsZones", "privateDnsZones"), - resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateDnsZoneValue"), + resourceids.UserSpecifiedSegment("privateDnsZoneName", "privateZoneName"), resourceids.StaticSegment("staticVirtualNetworkLinks", "virtualNetworkLinks", "virtualNetworkLinks"), - resourceids.UserSpecifiedSegment("virtualNetworkLinkName", "virtualNetworkLinkValue"), + resourceids.UserSpecifiedSegment("virtualNetworkLinkName", "virtualNetworkLinkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go index c6bc6fe55175..8f62fdb509bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go index d170aa216a1b..655a60540de4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_get.go index 27873563fafb..c3d4a23300c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkLinksClient) Get(ctx context.Context, id VirtualNetworkLin var model VirtualNetworkLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go index 096ad73c9747..2dcf66fa561d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_list.go @@ -39,6 +39,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go index 752ec2d4324a..08fd83123c47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/version.go index e531cfa895b4..c2dfb866deb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/privatedns/2020-06-01/virtualnetworklinks/version.go @@ -1,12 +1,10 @@ package virtualnetworklinks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworklinks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworklinks/2020-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/README.md index 25e125a72584..528d43a7d3f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account` Documentation -The `account` SDK allows for interaction with the Azure Resource Manager Service `purview` (API Version `2021-07-01`). +The `account` SDK allows for interaction with Azure Resource Manager `purview` (API Version `2021-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := account.CollectionAdminUpdate{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := account.Account{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.Get(ctx, id) if err != nil { @@ -125,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") +id := account.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName") payload := account.AccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/client.go index 4bcb9151fc16..ca8361d93ef6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/client.go @@ -15,7 +15,7 @@ type AccountClient struct { } func NewAccountClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "account", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "account", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccountClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/id_account.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/id_account.go index ae936ac96386..2ef46abe8045 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/id_account.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/id_account.go @@ -42,7 +42,7 @@ func ParseAccountID(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAccountIDInsensitively(input string) (*AccountId, error) { } id := AccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftPurview", "Microsoft.Purview", "Microsoft.Purview"), resourceids.StaticSegment("staticAccounts", "accounts", "accounts"), - resourceids.UserSpecifiedSegment("accountName", "accountValue"), + resourceids.UserSpecifiedSegment("accountName", "accountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_get.go index 6fc12dff8ca1..50b88c8421d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_get.go @@ -45,7 +45,6 @@ func (c AccountClient) Get(ctx context.Context, id AccountId) (result GetOperati var model Account result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_listkeys.go index d7a07df1bca0..845382da79b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/method_listkeys.go @@ -46,7 +46,6 @@ func (c AccountClient) ListKeys(ctx context.Context, id AccountId) (result ListK var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/version.go index e2189d2f636d..559ac62f4c86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/purview/2021-07-01/account/version.go @@ -1,12 +1,10 @@ package account -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/account/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/account/2021-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/README.md index d9f3c5cb810c..a8100847388f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults` Documentation -The `vaults` SDK allows for interaction with the Azure Resource Manager Service `recoveryservices` (API Version `2024-01-01`). +The `vaults` SDK allows for interaction with Azure Resource Manager `recoveryservices` (API Version `2024-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.Vault{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := vaults.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := vaults.PatchVault{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/client.go index 1ddc5db936e4..37bd7a446706 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/client.go @@ -15,7 +15,7 @@ type VaultsClient struct { } func NewVaultsClientWithBaseURI(sdkApi sdkEnv.Api) (*VaultsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vaults", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vaults", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VaultsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/id_vault.go index 1cb6def70871..9c23a25bcb74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/method_get.go index 181926c53903..64a64f258fff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/method_get.go @@ -45,7 +45,6 @@ func (c VaultsClient) Get(ctx context.Context, id VaultId) (result GetOperationR var model Vault result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/version.go index 7341dbff3bc1..8c6c51044fe7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-01/vaults/version.go @@ -1,12 +1,10 @@ package vaults -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vaults/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vaults/2024-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/README.md index ab60878eff12..a08985238d58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates` Documentation -The `vaultcertificates` SDK allows for interaction with the Azure Resource Manager Service `recoveryservices` (API Version `2024-04-01`). +The `vaultcertificates` SDK allows for interaction with Azure Resource Manager `recoveryservices` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vaultcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "certificateValue") +id := vaultcertificates.NewCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "certificateName") payload := vaultcertificates.CertificateRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/client.go index f25a5998dccf..99ba23915ba5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/client.go @@ -15,7 +15,7 @@ type VaultCertificatesClient struct { } func NewVaultCertificatesClientWithBaseURI(sdkApi sdkEnv.Api) (*VaultCertificatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vaultcertificates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vaultcertificates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VaultCertificatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/id_certificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/id_certificate.go index 1a998266e49c..b58f2c8ebc79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/id_certificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/id_certificate.go @@ -44,7 +44,7 @@ func ParseCertificateID(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCertificateIDInsensitively(input string) (*CertificateId, error) { } id := CertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticCertificates", "certificates", "certificates"), - resourceids.UserSpecifiedSegment("certificateName", "certificateValue"), + resourceids.UserSpecifiedSegment("certificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/method_create.go index 1be290d4f6b6..bb80ca8652bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/method_create.go @@ -49,7 +49,6 @@ func (c VaultCertificatesClient) Create(ctx context.Context, id CertificateId, i var model VaultCertificateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandaaddetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandaaddetails.go index 59f9a3039245..89867a51ee01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandaaddetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandaaddetails.go @@ -23,6 +23,8 @@ type ResourceCertificateAndAadDetails struct { ServiceResourceId *string `json:"serviceResourceId,omitempty"` // Fields inherited from ResourceCertificateDetails + + AuthType string `json:"authType"` Certificate *string `json:"certificate,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` Issuer *string `json:"issuer,omitempty"` @@ -33,6 +35,20 @@ type ResourceCertificateAndAadDetails struct { ValidTo *string `json:"validTo,omitempty"` } +func (s ResourceCertificateAndAadDetails) ResourceCertificateDetails() BaseResourceCertificateDetailsImpl { + return BaseResourceCertificateDetailsImpl{ + AuthType: s.AuthType, + Certificate: s.Certificate, + FriendlyName: s.FriendlyName, + Issuer: s.Issuer, + ResourceId: s.ResourceId, + Subject: s.Subject, + Thumbprint: s.Thumbprint, + ValidFrom: s.ValidFrom, + ValidTo: s.ValidTo, + } +} + func (o *ResourceCertificateAndAadDetails) GetValidFromAsTime() (*time.Time, error) { if o.ValidFrom == nil { return nil, nil @@ -68,9 +84,10 @@ func (s ResourceCertificateAndAadDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ResourceCertificateAndAadDetails: %+v", err) } + decoded["authType"] = "AzureActiveDirectory" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandacsdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandacsdetails.go index f0a2484e1237..f597e1c3d9bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandacsdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificateandacsdetails.go @@ -19,6 +19,8 @@ type ResourceCertificateAndAcsDetails struct { GlobalAcsRPRealm string `json:"globalAcsRPRealm"` // Fields inherited from ResourceCertificateDetails + + AuthType string `json:"authType"` Certificate *string `json:"certificate,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` Issuer *string `json:"issuer,omitempty"` @@ -29,6 +31,20 @@ type ResourceCertificateAndAcsDetails struct { ValidTo *string `json:"validTo,omitempty"` } +func (s ResourceCertificateAndAcsDetails) ResourceCertificateDetails() BaseResourceCertificateDetailsImpl { + return BaseResourceCertificateDetailsImpl{ + AuthType: s.AuthType, + Certificate: s.Certificate, + FriendlyName: s.FriendlyName, + Issuer: s.Issuer, + ResourceId: s.ResourceId, + Subject: s.Subject, + Thumbprint: s.Thumbprint, + ValidFrom: s.ValidFrom, + ValidTo: s.ValidTo, + } +} + func (o *ResourceCertificateAndAcsDetails) GetValidFromAsTime() (*time.Time, error) { if o.ValidFrom == nil { return nil, nil @@ -64,9 +80,10 @@ func (s ResourceCertificateAndAcsDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ResourceCertificateAndAcsDetails: %+v", err) } + decoded["authType"] = "AccessControlService" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificatedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificatedetails.go index 4057ff8ccddc..bf10595b947d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificatedetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_resourcecertificatedetails.go @@ -10,18 +10,43 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ResourceCertificateDetails interface { + ResourceCertificateDetails() BaseResourceCertificateDetailsImpl } -// RawResourceCertificateDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ResourceCertificateDetails = BaseResourceCertificateDetailsImpl{} + +type BaseResourceCertificateDetailsImpl struct { + AuthType string `json:"authType"` + Certificate *string `json:"certificate,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + Issuer *string `json:"issuer,omitempty"` + ResourceId *int64 `json:"resourceId,omitempty"` + Subject *string `json:"subject,omitempty"` + Thumbprint *string `json:"thumbprint,omitempty"` + ValidFrom *string `json:"validFrom,omitempty"` + ValidTo *string `json:"validTo,omitempty"` +} + +func (s BaseResourceCertificateDetailsImpl) ResourceCertificateDetails() BaseResourceCertificateDetailsImpl { + return s +} + +var _ ResourceCertificateDetails = RawResourceCertificateDetailsImpl{} + +// RawResourceCertificateDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawResourceCertificateDetailsImpl struct { - Type string - Values map[string]interface{} + resourceCertificateDetails BaseResourceCertificateDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawResourceCertificateDetailsImpl) ResourceCertificateDetails() BaseResourceCertificateDetailsImpl { + return s.resourceCertificateDetails } -func unmarshalResourceCertificateDetailsImplementation(input []byte) (ResourceCertificateDetails, error) { +func UnmarshalResourceCertificateDetailsImplementation(input []byte) (ResourceCertificateDetails, error) { if input == nil { return nil, nil } @@ -31,9 +56,9 @@ func unmarshalResourceCertificateDetailsImplementation(input []byte) (ResourceCe return nil, fmt.Errorf("unmarshaling ResourceCertificateDetails into map[string]interface: %+v", err) } - value, ok := temp["authType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["authType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureActiveDirectory") { @@ -52,10 +77,15 @@ func unmarshalResourceCertificateDetailsImplementation(input []byte) (ResourceCe return out, nil } - out := RawResourceCertificateDetailsImpl{ - Type: value, - Values: temp, + var parent BaseResourceCertificateDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseResourceCertificateDetailsImpl: %+v", err) } - return out, nil + + return RawResourceCertificateDetailsImpl{ + resourceCertificateDetails: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_vaultcertificateresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_vaultcertificateresponse.go index f5f8f52cf031..6e7ee285c627 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_vaultcertificateresponse.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/model_vaultcertificateresponse.go @@ -18,10 +18,13 @@ type VaultCertificateResponse struct { var _ json.Unmarshaler = &VaultCertificateResponse{} func (s *VaultCertificateResponse) UnmarshalJSON(bytes []byte) error { - type alias VaultCertificateResponse - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into VaultCertificateResponse: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *VaultCertificateResponse) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalResourceCertificateDetailsImplementation(v) + impl, err := UnmarshalResourceCertificateDetailsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'VaultCertificateResponse': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/version.go index 1b2b2c0b44b8..7307525f109a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-04-01/vaultcertificates/version.go @@ -1,12 +1,10 @@ package vaultcertificates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vaultcertificates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vaultcertificates/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/README.md index 3e9bea0a90d8..ed99a1dc9a82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems` Documentation -The `backupprotectableitems` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `backupprotectableitems` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupprotectableitems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := backupprotectableitems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") // alternatively `client.List(ctx, id, backupprotectableitems.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, backupprotectableitems.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/constants.go index 4707e9072d46..f26199c385dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/constants.go @@ -1,6 +1,8 @@ package backupprotectableitems -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/id_vault.go index 226b52b919b2..852c43e2bad1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurefileshareprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurefileshareprotectableitem.go index 609db8fe6419..542f5632c6a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurefileshareprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurefileshareprotectableitem.go @@ -16,12 +16,24 @@ type AzureFileShareProtectableItem struct { ParentContainerFriendlyName *string `json:"parentContainerFriendlyName,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureFileShareProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureFileShareProtectableItem{} func (s AzureFileShareProtectableItem) MarshalJSON() ([]byte, error) { @@ -33,9 +45,10 @@ func (s AzureFileShareProtectableItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileShareProtectableItem: %+v", err) } + decoded["protectableItemType"] = "AzureFileShare" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaasclassiccomputevmprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaasclassiccomputevmprotectableitem.go index 14d4cde39da8..783ca6ce6b1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaasclassiccomputevmprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaasclassiccomputevmprotectableitem.go @@ -16,12 +16,24 @@ type AzureIaaSClassicComputeVMProtectableItem struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureIaaSClassicComputeVMProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureIaaSClassicComputeVMProtectableItem{} func (s AzureIaaSClassicComputeVMProtectableItem) MarshalJSON() ([]byte, error) { @@ -33,9 +45,10 @@ func (s AzureIaaSClassicComputeVMProtectableItem) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSClassicComputeVMProtectableItem: %+v", err) } + decoded["protectableItemType"] = "Microsoft.ClassicCompute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaascomputevmprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaascomputevmprotectableitem.go index 13c811a243b7..01d84ff8f830 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaascomputevmprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azureiaascomputevmprotectableitem.go @@ -16,12 +16,24 @@ type AzureIaaSComputeVMProtectableItem struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureIaaSComputeVMProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureIaaSComputeVMProtectableItem{} func (s AzureIaaSComputeVMProtectableItem) MarshalJSON() ([]byte, error) { @@ -33,9 +45,10 @@ func (s AzureIaaSComputeVMProtectableItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSComputeVMProtectableItem: %+v", err) } + decoded["protectableItemType"] = "Microsoft.Compute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadprotectableitem.go index 57722018c7d3..eeef48cbb035 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadProtectableItem{} func (s AzureVMWorkloadProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadProtectableItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadProtectableItem: %+v", err) } + decoded["protectableItemType"] = "AzureVmWorkloadProtectableItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsapasesystemprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsapasesystemprotectableitem.go index 5b7fcf0cf9a7..8250ed4aab53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsapasesystemprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsapasesystemprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSAPAseSystemProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPAseSystemProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSAPAseSystemProtectableItem{} func (s AzureVMWorkloadSAPAseSystemProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSAPAseSystemProtectableItem) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPAseSystemProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SAPAseSystem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadatabaseprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadatabaseprotectableitem.go index 07bea2135c37..5e24c2b695a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadatabaseprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadatabaseprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSAPHanaDatabaseProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDatabaseProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSAPHanaDatabaseProtectableItem{} func (s AzureVMWorkloadSAPHanaDatabaseProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSAPHanaDatabaseProtectableItem) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDatabaseProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SAPHanaDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadbinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadbinstance.go index 1925bcec4153..9d87da6d3035 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadbinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanadbinstance.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSAPHanaDBInstance struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDBInstance) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSAPHanaDBInstance{} func (s AzureVMWorkloadSAPHanaDBInstance) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSAPHanaDBInstance) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDBInstance: %+v", err) } + decoded["protectableItemType"] = "SAPHanaDBInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanahsrprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanahsrprotectableitem.go index 83d40e757e89..1cc9a692f2e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanahsrprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanahsrprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSAPHanaHSRProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaHSRProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSAPHanaHSRProtectableItem{} func (s AzureVMWorkloadSAPHanaHSRProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSAPHanaHSRProtectableItem) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaHSRProtectableItem: %+v", err) } + decoded["protectableItemType"] = "HanaHSRContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanasystemprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanasystemprotectableitem.go index 7f69e4e091dc..e857eea428d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanasystemprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsaphanasystemprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSAPHanaSystemProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaSystemProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSAPHanaSystemProtectableItem{} func (s AzureVMWorkloadSAPHanaSystemProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSAPHanaSystemProtectableItem) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaSystemProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SAPHanaSystem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlavailabilitygroupprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlavailabilitygroupprotectableitem.go index c7ed4780435e..ab85410b18dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlavailabilitygroupprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlavailabilitygroupprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSQLAvailabilityGroupProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSQLAvailabilityGroupProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSQLAvailabilityGroupProtectableItem{} func (s AzureVMWorkloadSQLAvailabilityGroupProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSQLAvailabilityGroupProtectableItem) MarshalJSON() ([]byt } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSQLAvailabilityGroupProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SQLAvailabilityGroupContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqldatabaseprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqldatabaseprotectableitem.go index 9f094b48509f..e424c25cc0f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqldatabaseprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqldatabaseprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSQLDatabaseProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSQLDatabaseProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSQLDatabaseProtectableItem{} func (s AzureVMWorkloadSQLDatabaseProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSQLDatabaseProtectableItem) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSQLDatabaseProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SQLDataBase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlinstanceprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlinstanceprotectableitem.go index e58186604499..a4e2bd3e14c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlinstanceprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_azurevmworkloadsqlinstanceprotectableitem.go @@ -21,12 +21,24 @@ type AzureVMWorkloadSQLInstanceProtectableItem struct { Subprotectableitemcount *int64 `json:"subprotectableitemcount,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSQLInstanceProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = AzureVMWorkloadSQLInstanceProtectableItem{} func (s AzureVMWorkloadSQLInstanceProtectableItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s AzureVMWorkloadSQLInstanceProtectableItem) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSQLInstanceProtectableItem: %+v", err) } + decoded["protectableItemType"] = "SQLInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_iaasvmprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_iaasvmprotectableitem.go index c05ab27225f6..17559c25e6d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_iaasvmprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_iaasvmprotectableitem.go @@ -16,12 +16,24 @@ type IaaSVMProtectableItem struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from WorkloadProtectableItem + BackupManagementType *string `json:"backupManagementType,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` WorkloadType *string `json:"workloadType,omitempty"` } +func (s IaaSVMProtectableItem) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return BaseWorkloadProtectableItemImpl{ + BackupManagementType: s.BackupManagementType, + FriendlyName: s.FriendlyName, + ProtectableItemType: s.ProtectableItemType, + ProtectionState: s.ProtectionState, + WorkloadType: s.WorkloadType, + } +} + var _ json.Marshaler = IaaSVMProtectableItem{} func (s IaaSVMProtectableItem) MarshalJSON() ([]byte, error) { @@ -33,9 +45,10 @@ func (s IaaSVMProtectableItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IaaSVMProtectableItem: %+v", err) } + decoded["protectableItemType"] = "IaaSVMProtectableItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitem.go index 91f978fc79b4..79e222d74309 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitem.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type WorkloadProtectableItem interface { + WorkloadProtectableItem() BaseWorkloadProtectableItemImpl } -// RawWorkloadProtectableItemImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ WorkloadProtectableItem = BaseWorkloadProtectableItemImpl{} + +type BaseWorkloadProtectableItemImpl struct { + BackupManagementType *string `json:"backupManagementType,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + ProtectableItemType string `json:"protectableItemType"` + ProtectionState *ProtectionStatus `json:"protectionState,omitempty"` + WorkloadType *string `json:"workloadType,omitempty"` +} + +func (s BaseWorkloadProtectableItemImpl) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return s +} + +var _ WorkloadProtectableItem = RawWorkloadProtectableItemImpl{} + +// RawWorkloadProtectableItemImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawWorkloadProtectableItemImpl struct { - Type string - Values map[string]interface{} + workloadProtectableItem BaseWorkloadProtectableItemImpl + Type string + Values map[string]interface{} +} + +func (s RawWorkloadProtectableItemImpl) WorkloadProtectableItem() BaseWorkloadProtectableItemImpl { + return s.workloadProtectableItem } -func unmarshalWorkloadProtectableItemImplementation(input []byte) (WorkloadProtectableItem, error) { +func UnmarshalWorkloadProtectableItemImplementation(input []byte) (WorkloadProtectableItem, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalWorkloadProtectableItemImplementation(input []byte) (WorkloadProte return nil, fmt.Errorf("unmarshaling WorkloadProtectableItem into map[string]interface: %+v", err) } - value, ok := temp["protectableItemType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["protectableItemType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureFileShare") { @@ -140,10 +161,15 @@ func unmarshalWorkloadProtectableItemImplementation(input []byte) (WorkloadProte return out, nil } - out := RawWorkloadProtectableItemImpl{ - Type: value, - Values: temp, + var parent BaseWorkloadProtectableItemImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseWorkloadProtectableItemImpl: %+v", err) } - return out, nil + + return RawWorkloadProtectableItemImpl{ + workloadProtectableItem: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitemresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitemresource.go index 3f03589ca2d9..279be78ea028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitemresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/model_workloadprotectableitemresource.go @@ -21,10 +21,16 @@ type WorkloadProtectableItemResource struct { var _ json.Unmarshaler = &WorkloadProtectableItemResource{} func (s *WorkloadProtectableItemResource) UnmarshalJSON(bytes []byte) error { - type alias WorkloadProtectableItemResource - var decoded alias + var decoded struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into WorkloadProtectableItemResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ETag = decoded.ETag @@ -40,11 +46,12 @@ func (s *WorkloadProtectableItemResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalWorkloadProtectableItemImplementation(v) + impl, err := UnmarshalWorkloadProtectableItemImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'WorkloadProtectableItemResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/version.go index d77c2e84da22..55023e102160 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotectableitems/version.go @@ -1,12 +1,10 @@ package backupprotectableitems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupprotectableitems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupprotectableitems/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/README.md index 559f1c8c8f32..6f6e2b5fe4ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems` Documentation -The `backupprotecteditems` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `backupprotecteditems` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupprotecteditems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := backupprotecteditems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") // alternatively `client.List(ctx, id, backupprotecteditems.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, backupprotecteditems.DefaultListOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/constants.go index a0cadc769375..27b26f2b7613 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/constants.go @@ -1,6 +1,8 @@ package backupprotecteditems -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/id_vault.go index d1d3f88fdc48..9bab4f55a097 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurefileshareprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurefileshareprotecteditem.go index a38641e9b917..1e95f4c348e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurefileshareprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurefileshareprotecteditem.go @@ -23,6 +23,7 @@ type AzureFileshareProtectedItem struct { ProtectionStatus *string `json:"protectionStatus,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -36,12 +37,36 @@ type AzureFileshareProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureFileshareProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureFileshareProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -77,9 +102,10 @@ func (s AzureFileshareProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileshareProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureFileShareProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasclassiccomputevmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasclassiccomputevmprotecteditem.go index bf91687241a9..f045026fc458 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasclassiccomputevmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasclassiccomputevmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSClassicComputeVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSClassicComputeVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSClassicComputeVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSClassicComputeVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSClassicComputeVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSClassicComputeVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.ClassicCompute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaascomputevmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaascomputevmprotecteditem.go index f99d37d529bb..452552ee2860 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaascomputevmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaascomputevmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSComputeVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSComputeVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSComputeVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSComputeVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSComputeVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSComputeVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.Compute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasvmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasvmprotecteditem.go index cfe5fd774b26..89fa0a7068bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasvmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azureiaasvmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureIaaSVMProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azuresqlprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azuresqlprotecteditem.go index 6bb508341c43..62147a23c371 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azuresqlprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azuresqlprotecteditem.go @@ -19,6 +19,7 @@ type AzureSqlProtectedItem struct { ProtectionState *ProtectedItemState `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -32,12 +33,36 @@ type AzureSqlProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureSqlProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureSqlProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -73,9 +98,10 @@ func (s AzureSqlProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.Sql/servers/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadprotecteditem.go index 99d5f841f648..ebf8e9c6e423 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go index 64e6d76a3d01..97b7c6edcec7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPAseDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPAseDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPAseDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPAseDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPAseDatabaseProtectedItem) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPAseDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPAseDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go index e772e3067809..6200b0223b28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPHanaDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPHanaDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPHanaDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPHanaDatabaseProtectedItem) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPHanaDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go index 2cabef444546..9b150bc9d373 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPHanaDBInstanceProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPHanaDBInstanceProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDBInstanceProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPHanaDBInstanceProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPHanaDBInstanceProtectedItem) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDBInstanceProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPHanaDBInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go index 3ee9021236d5..f02933559e1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSQLDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSQLDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSQLDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSQLDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSQLDatabaseProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSQLDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSQLDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_dpmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_dpmprotecteditem.go index 932ddfcc5f3c..5c3876a31e24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_dpmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_dpmprotecteditem.go @@ -20,6 +20,7 @@ type DPMProtectedItem struct { ProtectionState *ProtectedItemState `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -33,12 +34,36 @@ type DPMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s DPMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *DPMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -74,9 +99,10 @@ func (s DPMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DPMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "DPMProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_genericprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_genericprotecteditem.go index a1b0d1dfc96c..b90616eef8d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_genericprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_genericprotecteditem.go @@ -22,6 +22,7 @@ type GenericProtectedItem struct { SourceAssociations *map[string]string `json:"sourceAssociations,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -35,12 +36,36 @@ type GenericProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s GenericProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *GenericProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -76,9 +101,10 @@ func (s GenericProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GenericProtectedItem: %+v", err) } + decoded["protectedItemType"] = "GenericProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_mabfilefolderprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_mabfilefolderprotecteditem.go index 967e9814114e..121bae1a5a52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_mabfilefolderprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_mabfilefolderprotecteditem.go @@ -23,6 +23,7 @@ type MabFileFolderProtectedItem struct { ProtectionState *string `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -36,12 +37,36 @@ type MabFileFolderProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s MabFileFolderProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *MabFileFolderProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -77,9 +102,10 @@ func (s MabFileFolderProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MabFileFolderProtectedItem: %+v", err) } + decoded["protectedItemType"] = "MabFileFolderProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditem.go index c0293f0a8088..9b9401af3f50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditem.go @@ -10,18 +10,52 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtectedItem interface { + ProtectedItem() BaseProtectedItemImpl } -// RawProtectedItemImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProtectedItem = BaseProtectedItemImpl{} + +type BaseProtectedItemImpl struct { + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + BackupSetName *string `json:"backupSetName,omitempty"` + ContainerName *string `json:"containerName,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DeferredDeleteTimeInUTC *string `json:"deferredDeleteTimeInUTC,omitempty"` + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + IsRehydrate *bool `json:"isRehydrate,omitempty"` + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + WorkloadType *DataSourceType `json:"workloadType,omitempty"` +} + +func (s BaseProtectedItemImpl) ProtectedItem() BaseProtectedItemImpl { + return s +} + +var _ ProtectedItem = RawProtectedItemImpl{} + +// RawProtectedItemImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProtectedItemImpl struct { - Type string - Values map[string]interface{} + protectedItem BaseProtectedItemImpl + Type string + Values map[string]interface{} } -func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { +func (s RawProtectedItemImpl) ProtectedItem() BaseProtectedItemImpl { + return s.protectedItem +} + +func UnmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { if input == nil { return nil, nil } @@ -31,9 +65,9 @@ func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { return nil, fmt.Errorf("unmarshaling ProtectedItem into map[string]interface: %+v", err) } - value, ok := temp["protectedItemType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["protectedItemType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureFileShareProtectedItem") { @@ -140,10 +174,15 @@ func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { return out, nil } - out := RawProtectedItemImpl{ - Type: value, - Values: temp, + var parent BaseProtectedItemImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProtectedItemImpl: %+v", err) } - return out, nil + + return RawProtectedItemImpl{ + protectedItem: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditemresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditemresource.go index cf1da7db76fa..c0bee8d014a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditemresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/model_protecteditemresource.go @@ -21,10 +21,16 @@ type ProtectedItemResource struct { var _ json.Unmarshaler = &ProtectedItemResource{} func (s *ProtectedItemResource) UnmarshalJSON(bytes []byte) error { - type alias ProtectedItemResource - var decoded alias + var decoded struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProtectedItemResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ETag = decoded.ETag @@ -40,11 +46,12 @@ func (s *ProtectedItemResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalProtectedItemImplementation(v) + impl, err := UnmarshalProtectedItemImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ProtectedItemResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/version.go index dad11b072f89..a02ba809b108 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupprotecteditems/version.go @@ -1,12 +1,10 @@ package backupprotecteditems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupprotecteditems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupprotecteditems/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/README.md index cd5b5749f92b..9e43f5eaae9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs` Documentation -The `backupresourcevaultconfigs` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `backupresourcevaultconfigs` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := backupresourcevaultconfigs.BackupResourceVaultConfigResource{ // ... @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := backupresourcevaultconfigs.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName") payload := backupresourcevaultconfigs.BackupResourceVaultConfigResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/constants.go index 3be392d61558..b3cc9f2074c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/constants.go @@ -1,6 +1,8 @@ package backupresourcevaultconfigs -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/id_vault.go index ba1ccdb6d5a6..9413d3f826a7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/version.go index 3c29b187dfd3..a420664059bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/backupresourcevaultconfigs/version.go @@ -1,12 +1,10 @@ package backupresourcevaultconfigs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupresourcevaultconfigs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupresourcevaultconfigs/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/README.md index 5ce098bf9dc3..3983a2ee745b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems` Documentation -The `protecteditems` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `protecteditems` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue", "protectedItemValue") +id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName", "protectedItemName") payload := protecteditems.ProtectedItemResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue", "protectedItemValue") +id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName", "protectedItemName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue", "protectedItemValue") +id := protecteditems.NewProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName", "protectedItemName") read, err := client.Get(ctx, id, protecteditems.DefaultGetOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/constants.go index 622b31da48b4..0c22907b02d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/constants.go @@ -1,6 +1,8 @@ package protecteditems -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/id_protecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/id_protecteditem.go index 712e70d39b37..798b6fd09f42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/id_protecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/id_protecteditem.go @@ -48,7 +48,7 @@ func ParseProtectedItemID(input string) (*ProtectedItemId, error) { } id := ProtectedItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseProtectedItemIDInsensitively(input string) (*ProtectedItemId, error) { } id := ProtectedItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ProtectedItemId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticBackupFabrics", "backupFabrics", "backupFabrics"), - resourceids.UserSpecifiedSegment("backupFabricName", "backupFabricValue"), + resourceids.UserSpecifiedSegment("backupFabricName", "fabricName"), resourceids.StaticSegment("staticProtectionContainers", "protectionContainers", "protectionContainers"), - resourceids.UserSpecifiedSegment("protectionContainerName", "protectionContainerValue"), + resourceids.UserSpecifiedSegment("protectionContainerName", "containerName"), resourceids.StaticSegment("staticProtectedItems", "protectedItems", "protectedItems"), - resourceids.UserSpecifiedSegment("protectedItemName", "protectedItemValue"), + resourceids.UserSpecifiedSegment("protectedItemName", "protectedItemName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurefileshareprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurefileshareprotecteditem.go index 7a6b02490730..0372eadf9615 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurefileshareprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurefileshareprotecteditem.go @@ -23,6 +23,7 @@ type AzureFileshareProtectedItem struct { ProtectionStatus *string `json:"protectionStatus,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -36,12 +37,36 @@ type AzureFileshareProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureFileshareProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureFileshareProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -77,9 +102,10 @@ func (s AzureFileshareProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileshareProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureFileShareProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasclassiccomputevmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasclassiccomputevmprotecteditem.go index 4a8e707f0606..4ed01065fb11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasclassiccomputevmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasclassiccomputevmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSClassicComputeVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSClassicComputeVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSClassicComputeVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSClassicComputeVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSClassicComputeVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSClassicComputeVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.ClassicCompute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaascomputevmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaascomputevmprotecteditem.go index 2da0d92828b2..047f9e89c653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaascomputevmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaascomputevmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSComputeVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSComputeVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSComputeVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSComputeVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSComputeVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSComputeVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.Compute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasvmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasvmprotecteditem.go index 5985e1789451..da1f195e8840 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasvmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azureiaasvmprotecteditem.go @@ -28,6 +28,7 @@ type AzureIaaSVMProtectedItem struct { VirtualMachineId *string `json:"virtualMachineId,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -41,12 +42,36 @@ type AzureIaaSVMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureIaaSVMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureIaaSVMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -82,9 +107,10 @@ func (s AzureIaaSVMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSVMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureIaaSVMProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azuresqlprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azuresqlprotecteditem.go index 2cca7104d77e..a7f1bf8a433d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azuresqlprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azuresqlprotecteditem.go @@ -19,6 +19,7 @@ type AzureSqlProtectedItem struct { ProtectionState *ProtectedItemState `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -32,12 +33,36 @@ type AzureSqlProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureSqlProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureSqlProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -73,9 +98,10 @@ func (s AzureSqlProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlProtectedItem: %+v", err) } + decoded["protectedItemType"] = "Microsoft.Sql/servers/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadprotecteditem.go index e1ed658c0cc6..d7f6ef7978e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go index e8826a167f99..e89c4589c98d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsapasedatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPAseDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPAseDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPAseDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPAseDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPAseDatabaseProtectedItem) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPAseDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPAseDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go index 4a0ed833fcb2..34243eee1e17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPHanaDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPHanaDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPHanaDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPHanaDatabaseProtectedItem) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPHanaDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go index bb837aa46744..d298e613dda9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsaphanadbinstanceprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSAPHanaDBInstanceProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSAPHanaDBInstanceProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSAPHanaDBInstanceProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSAPHanaDBInstanceProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSAPHanaDBInstanceProtectedItem) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSAPHanaDBInstanceProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSAPHanaDBInstance" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go index aa7d5fdd6b15..2320465766b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_azurevmworkloadsqldatabaseprotecteditem.go @@ -29,6 +29,7 @@ type AzureVMWorkloadSQLDatabaseProtectedItem struct { ServerName *string `json:"serverName,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -42,12 +43,36 @@ type AzureVMWorkloadSQLDatabaseProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s AzureVMWorkloadSQLDatabaseProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *AzureVMWorkloadSQLDatabaseProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -83,9 +108,10 @@ func (s AzureVMWorkloadSQLDatabaseProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadSQLDatabaseProtectedItem: %+v", err) } + decoded["protectedItemType"] = "AzureVmWorkloadSQLDatabase" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_dpmprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_dpmprotecteditem.go index 28296e180854..775309ac3ad9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_dpmprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_dpmprotecteditem.go @@ -20,6 +20,7 @@ type DPMProtectedItem struct { ProtectionState *ProtectedItemState `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -33,12 +34,36 @@ type DPMProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s DPMProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *DPMProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -74,9 +99,10 @@ func (s DPMProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DPMProtectedItem: %+v", err) } + decoded["protectedItemType"] = "DPMProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_genericprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_genericprotecteditem.go index 912c87f8562b..fa387f99713f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_genericprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_genericprotecteditem.go @@ -22,6 +22,7 @@ type GenericProtectedItem struct { SourceAssociations *map[string]string `json:"sourceAssociations,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -35,12 +36,36 @@ type GenericProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s GenericProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *GenericProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -76,9 +101,10 @@ func (s GenericProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GenericProtectedItem: %+v", err) } + decoded["protectedItemType"] = "GenericProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_mabfilefolderprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_mabfilefolderprotecteditem.go index af4963f528ed..94c1541861f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_mabfilefolderprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_mabfilefolderprotecteditem.go @@ -23,6 +23,7 @@ type MabFileFolderProtectedItem struct { ProtectionState *string `json:"protectionState,omitempty"` // Fields inherited from ProtectedItem + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` BackupSetName *string `json:"backupSetName,omitempty"` ContainerName *string `json:"containerName,omitempty"` @@ -36,12 +37,36 @@ type MabFileFolderProtectedItem struct { LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` PolicyId *string `json:"policyId,omitempty"` PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` SourceResourceId *string `json:"sourceResourceId,omitempty"` WorkloadType *DataSourceType `json:"workloadType,omitempty"` } +func (s MabFileFolderProtectedItem) ProtectedItem() BaseProtectedItemImpl { + return BaseProtectedItemImpl{ + BackupManagementType: s.BackupManagementType, + BackupSetName: s.BackupSetName, + ContainerName: s.ContainerName, + CreateMode: s.CreateMode, + DeferredDeleteTimeInUTC: s.DeferredDeleteTimeInUTC, + DeferredDeleteTimeRemaining: s.DeferredDeleteTimeRemaining, + IsArchiveEnabled: s.IsArchiveEnabled, + IsDeferredDeleteScheduleUpcoming: s.IsDeferredDeleteScheduleUpcoming, + IsRehydrate: s.IsRehydrate, + IsScheduledForDeferredDelete: s.IsScheduledForDeferredDelete, + LastRecoveryPoint: s.LastRecoveryPoint, + PolicyId: s.PolicyId, + PolicyName: s.PolicyName, + ProtectedItemType: s.ProtectedItemType, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + SoftDeleteRetentionPeriodInDays: s.SoftDeleteRetentionPeriodInDays, + SourceResourceId: s.SourceResourceId, + WorkloadType: s.WorkloadType, + } +} + func (o *MabFileFolderProtectedItem) GetDeferredDeleteTimeInUTCAsTime() (*time.Time, error) { if o.DeferredDeleteTimeInUTC == nil { return nil, nil @@ -77,9 +102,10 @@ func (s MabFileFolderProtectedItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MabFileFolderProtectedItem: %+v", err) } + decoded["protectedItemType"] = "MabFileFolderProtectedItem" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditem.go index ffceef4149cf..621fc13273b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditem.go @@ -10,18 +10,52 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtectedItem interface { + ProtectedItem() BaseProtectedItemImpl } -// RawProtectedItemImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProtectedItem = BaseProtectedItemImpl{} + +type BaseProtectedItemImpl struct { + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + BackupSetName *string `json:"backupSetName,omitempty"` + ContainerName *string `json:"containerName,omitempty"` + CreateMode *CreateMode `json:"createMode,omitempty"` + DeferredDeleteTimeInUTC *string `json:"deferredDeleteTimeInUTC,omitempty"` + DeferredDeleteTimeRemaining *string `json:"deferredDeleteTimeRemaining,omitempty"` + IsArchiveEnabled *bool `json:"isArchiveEnabled,omitempty"` + IsDeferredDeleteScheduleUpcoming *bool `json:"isDeferredDeleteScheduleUpcoming,omitempty"` + IsRehydrate *bool `json:"isRehydrate,omitempty"` + IsScheduledForDeferredDelete *bool `json:"isScheduledForDeferredDelete,omitempty"` + LastRecoveryPoint *string `json:"lastRecoveryPoint,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PolicyName *string `json:"policyName,omitempty"` + ProtectedItemType string `json:"protectedItemType"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SoftDeleteRetentionPeriodInDays *int64 `json:"softDeleteRetentionPeriodInDays,omitempty"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` + WorkloadType *DataSourceType `json:"workloadType,omitempty"` +} + +func (s BaseProtectedItemImpl) ProtectedItem() BaseProtectedItemImpl { + return s +} + +var _ ProtectedItem = RawProtectedItemImpl{} + +// RawProtectedItemImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProtectedItemImpl struct { - Type string - Values map[string]interface{} + protectedItem BaseProtectedItemImpl + Type string + Values map[string]interface{} } -func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { +func (s RawProtectedItemImpl) ProtectedItem() BaseProtectedItemImpl { + return s.protectedItem +} + +func UnmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { if input == nil { return nil, nil } @@ -31,9 +65,9 @@ func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { return nil, fmt.Errorf("unmarshaling ProtectedItem into map[string]interface: %+v", err) } - value, ok := temp["protectedItemType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["protectedItemType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureFileShareProtectedItem") { @@ -140,10 +174,15 @@ func unmarshalProtectedItemImplementation(input []byte) (ProtectedItem, error) { return out, nil } - out := RawProtectedItemImpl{ - Type: value, - Values: temp, + var parent BaseProtectedItemImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProtectedItemImpl: %+v", err) } - return out, nil + + return RawProtectedItemImpl{ + protectedItem: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditemresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditemresource.go index 0541c1a67bac..62666130ef19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditemresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/model_protecteditemresource.go @@ -21,10 +21,16 @@ type ProtectedItemResource struct { var _ json.Unmarshaler = &ProtectedItemResource{} func (s *ProtectedItemResource) UnmarshalJSON(bytes []byte) error { - type alias ProtectedItemResource - var decoded alias + var decoded struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProtectedItemResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ETag = decoded.ETag @@ -40,11 +46,12 @@ func (s *ProtectedItemResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalProtectedItemImplementation(v) + impl, err := UnmarshalProtectedItemImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ProtectedItemResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/version.go index 0deccdcd05a2..945695f05b9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protecteditems/version.go @@ -1,12 +1,10 @@ package protecteditems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/protecteditems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/protecteditems/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/README.md index 19ddfaf1a1b5..48c1cfb74dab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers` Documentation -The `protectioncontainers` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `protectioncontainers` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue") +id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue") +id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName") read, err := client.Inquire(ctx, id, protectioncontainers.DefaultInquireOperationOptions()) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protectioncontainers.NewBackupFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue") +id := protectioncontainers.NewBackupFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName") read, err := client.Refresh(ctx, id, protectioncontainers.DefaultRefreshOperationOptions()) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue") +id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName") payload := protectioncontainers.ProtectionContainerResource{ // ... @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupFabricValue", "protectionContainerValue") +id := protectioncontainers.NewProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "fabricName", "containerName") read, err := client.Unregister(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/constants.go index db706b5bd096..db87464f4675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/constants.go @@ -1,6 +1,8 @@ package protectioncontainers -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_backupfabric.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_backupfabric.go index 8dc1cddbb0b5..50fea36c0629 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_backupfabric.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_backupfabric.go @@ -44,7 +44,7 @@ func ParseBackupFabricID(input string) (*BackupFabricId, error) { } id := BackupFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupFabricIDInsensitively(input string) (*BackupFabricId, error) { } id := BackupFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupFabricId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticBackupFabrics", "backupFabrics", "backupFabrics"), - resourceids.UserSpecifiedSegment("backupFabricName", "backupFabricValue"), + resourceids.UserSpecifiedSegment("backupFabricName", "fabricName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_protectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_protectioncontainer.go index b4f359ca4f14..973b1512a4fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_protectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/id_protectioncontainer.go @@ -46,7 +46,7 @@ func ParseProtectionContainerID(input string) (*ProtectionContainerId, error) { } id := ProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseProtectionContainerIDInsensitively(input string) (*ProtectionContainer } id := ProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ProtectionContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticBackupFabrics", "backupFabrics", "backupFabrics"), - resourceids.UserSpecifiedSegment("backupFabricName", "backupFabricValue"), + resourceids.UserSpecifiedSegment("backupFabricName", "fabricName"), resourceids.StaticSegment("staticProtectionContainers", "protectionContainers", "protectionContainers"), - resourceids.UserSpecifiedSegment("protectionContainerName", "protectionContainerValue"), + resourceids.UserSpecifiedSegment("protectionContainerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurebackupservercontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurebackupservercontainer.go index 1c21d8906f9f..de130810d4b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurebackupservercontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurebackupservercontainer.go @@ -21,11 +21,24 @@ type AzureBackupServerContainer struct { UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureBackupServerContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureBackupServerContainer{} @@ -39,9 +52,10 @@ func (s AzureBackupServerContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureBackupServerContainer: %+v", err) } + decoded["containerType"] = "AzureBackupServerContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaasclassiccomputevmcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaasclassiccomputevmcontainer.go index b8a8c17717e1..02f526ea4c9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaasclassiccomputevmcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaasclassiccomputevmcontainer.go @@ -16,11 +16,24 @@ type AzureIaaSClassicComputeVMContainer struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureIaaSClassicComputeVMContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureIaaSClassicComputeVMContainer{} @@ -34,9 +47,10 @@ func (s AzureIaaSClassicComputeVMContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSClassicComputeVMContainer: %+v", err) } + decoded["containerType"] = "Microsoft.ClassicCompute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaascomputevmcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaascomputevmcontainer.go index c66beff2ce09..69100565bb9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaascomputevmcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureiaascomputevmcontainer.go @@ -16,11 +16,24 @@ type AzureIaaSComputeVMContainer struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureIaaSComputeVMContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureIaaSComputeVMContainer{} @@ -34,9 +47,10 @@ func (s AzureIaaSComputeVMContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSComputeVMContainer: %+v", err) } + decoded["containerType"] = "Microsoft.Compute/virtualMachines" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlagworkloadcontainerprotectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlagworkloadcontainerprotectioncontainer.go index 7e0a1ed3e946..1bcd09cb31cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlagworkloadcontainerprotectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlagworkloadcontainerprotectioncontainer.go @@ -18,11 +18,24 @@ type AzureSQLAGWorkloadContainerProtectionContainer struct { WorkloadType *WorkloadType `json:"workloadType,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureSQLAGWorkloadContainerProtectionContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureSQLAGWorkloadContainerProtectionContainer{} @@ -36,9 +49,10 @@ func (s AzureSQLAGWorkloadContainerProtectionContainer) MarshalJSON() ([]byte, e } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSQLAGWorkloadContainerProtectionContainer: %+v", err) } + decoded["containerType"] = "SQLAGWorkLoadContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlcontainer.go index cd29b673055f..5b3f7a89b2f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azuresqlcontainer.go @@ -13,11 +13,24 @@ var _ ProtectionContainer = AzureSqlContainer{} type AzureSqlContainer struct { // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureSqlContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureSqlContainer{} @@ -31,9 +44,10 @@ func (s AzureSqlContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlContainer: %+v", err) } + decoded["containerType"] = "AzureSqlContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurestoragecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurestoragecontainer.go index fc4de5fe9407..bd5b7e940c4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurestoragecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurestoragecontainer.go @@ -18,11 +18,24 @@ type AzureStorageContainer struct { StorageAccountVersion *string `json:"storageAccountVersion,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureStorageContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureStorageContainer{} @@ -36,9 +49,10 @@ func (s AzureStorageContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureStorageContainer: %+v", err) } + decoded["containerType"] = "StorageContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurevmappcontainerprotectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurevmappcontainerprotectioncontainer.go index 97d2dbf49f8a..42f2ac47f42a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurevmappcontainerprotectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azurevmappcontainerprotectioncontainer.go @@ -18,11 +18,24 @@ type AzureVMAppContainerProtectionContainer struct { WorkloadType *WorkloadType `json:"workloadType,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureVMAppContainerProtectionContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureVMAppContainerProtectionContainer{} @@ -36,9 +49,10 @@ func (s AzureVMAppContainerProtectionContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMAppContainerProtectionContainer: %+v", err) } + decoded["containerType"] = "VMAppContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureworkloadcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureworkloadcontainer.go index 792903391564..cac8bf741f81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureworkloadcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_azureworkloadcontainer.go @@ -18,11 +18,24 @@ type AzureWorkloadContainer struct { WorkloadType *WorkloadType `json:"workloadType,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s AzureWorkloadContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = AzureWorkloadContainer{} @@ -36,9 +49,10 @@ func (s AzureWorkloadContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureWorkloadContainer: %+v", err) } + decoded["containerType"] = "AzureWorkloadContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_dpmcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_dpmcontainer.go index d35b9a9844da..0ba451153f29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_dpmcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_dpmcontainer.go @@ -21,11 +21,24 @@ type DpmContainer struct { UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s DpmContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = DpmContainer{} @@ -39,9 +52,10 @@ func (s DpmContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DpmContainer: %+v", err) } + decoded["containerType"] = "DPMContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_genericcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_genericcontainer.go index 45b661347c13..df2338f2c314 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_genericcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_genericcontainer.go @@ -15,11 +15,24 @@ type GenericContainer struct { FabricName *string `json:"fabricName,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s GenericContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = GenericContainer{} @@ -33,9 +46,10 @@ func (s GenericContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GenericContainer: %+v", err) } + decoded["containerType"] = "GenericContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_iaasvmcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_iaasvmcontainer.go index e0a2bd351495..7d94a3c7169e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_iaasvmcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_iaasvmcontainer.go @@ -16,11 +16,24 @@ type IaaSVMContainer struct { VirtualMachineVersion *string `json:"virtualMachineVersion,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s IaaSVMContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = IaaSVMContainer{} @@ -34,9 +47,10 @@ func (s IaaSVMContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IaaSVMContainer: %+v", err) } + decoded["containerType"] = "IaasVMContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_mabcontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_mabcontainer.go index b2d5eb97307b..d931c212b3fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_mabcontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_mabcontainer.go @@ -20,11 +20,24 @@ type MabContainer struct { ProtectedItemCount *int64 `json:"protectedItemCount,omitempty"` // Fields inherited from ProtectionContainer - BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - HealthStatus *string `json:"healthStatus,omitempty"` - ProtectableObjectType *string `json:"protectableObjectType,omitempty"` - RegistrationStatus *string `json:"registrationStatus,omitempty"` + + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s MabContainer) ProtectionContainer() BaseProtectionContainerImpl { + return BaseProtectionContainerImpl{ + BackupManagementType: s.BackupManagementType, + ContainerType: s.ContainerType, + FriendlyName: s.FriendlyName, + HealthStatus: s.HealthStatus, + ProtectableObjectType: s.ProtectableObjectType, + RegistrationStatus: s.RegistrationStatus, + } } var _ json.Marshaler = MabContainer{} @@ -38,9 +51,10 @@ func (s MabContainer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MabContainer: %+v", err) } + decoded["containerType"] = "Windows" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainer.go index 1ba03b161724..900f7d6d788f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainer.go @@ -10,18 +10,40 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtectionContainer interface { + ProtectionContainer() BaseProtectionContainerImpl } -// RawProtectionContainerImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProtectionContainer = BaseProtectionContainerImpl{} + +type BaseProtectionContainerImpl struct { + BackupManagementType *BackupManagementType `json:"backupManagementType,omitempty"` + ContainerType ProtectableContainerType `json:"containerType"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthStatus *string `json:"healthStatus,omitempty"` + ProtectableObjectType *string `json:"protectableObjectType,omitempty"` + RegistrationStatus *string `json:"registrationStatus,omitempty"` +} + +func (s BaseProtectionContainerImpl) ProtectionContainer() BaseProtectionContainerImpl { + return s +} + +var _ ProtectionContainer = RawProtectionContainerImpl{} + +// RawProtectionContainerImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProtectionContainerImpl struct { - Type string - Values map[string]interface{} + protectionContainer BaseProtectionContainerImpl + Type string + Values map[string]interface{} +} + +func (s RawProtectionContainerImpl) ProtectionContainer() BaseProtectionContainerImpl { + return s.protectionContainer } -func unmarshalProtectionContainerImplementation(input []byte) (ProtectionContainer, error) { +func UnmarshalProtectionContainerImplementation(input []byte) (ProtectionContainer, error) { if input == nil { return nil, nil } @@ -31,9 +53,9 @@ func unmarshalProtectionContainerImplementation(input []byte) (ProtectionContain return nil, fmt.Errorf("unmarshaling ProtectionContainer into map[string]interface: %+v", err) } - value, ok := temp["containerType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["containerType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureBackupServerContainer") { @@ -132,10 +154,15 @@ func unmarshalProtectionContainerImplementation(input []byte) (ProtectionContain return out, nil } - out := RawProtectionContainerImpl{ - Type: value, - Values: temp, + var parent BaseProtectionContainerImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProtectionContainerImpl: %+v", err) } - return out, nil + + return RawProtectionContainerImpl{ + protectionContainer: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainerresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainerresource.go index 4de75e086024..b8370f712805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainerresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/model_protectioncontainerresource.go @@ -21,10 +21,16 @@ type ProtectionContainerResource struct { var _ json.Unmarshaler = &ProtectionContainerResource{} func (s *ProtectionContainerResource) UnmarshalJSON(bytes []byte) error { - type alias ProtectionContainerResource - var decoded alias + var decoded struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProtectionContainerResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ETag = decoded.ETag @@ -40,11 +46,12 @@ func (s *ProtectionContainerResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalProtectionContainerImplementation(v) + impl, err := UnmarshalProtectionContainerImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ProtectionContainerResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/version.go index 5d75369eaaf3..abf660b65f66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectioncontainers/version.go @@ -1,12 +1,10 @@ package protectioncontainers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/protectioncontainers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/protectioncontainers/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/README.md index f06383c8ca9f..fab4179cd27e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies` Documentation -The `protectionpolicies` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `protectionpolicies` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupPolicyValue") +id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "policyName") payload := protectionpolicies.ProtectionPolicyResource{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupPolicyValue") +id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "policyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupPolicyValue") +id := protectionpolicies.NewBackupPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "policyName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/constants.go index 37695869fe8e..5a3edc758263 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/constants.go @@ -1,6 +1,8 @@ package protectionpolicies -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/id_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/id_backuppolicy.go index 5a01b232288b..80fa7d63446f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/id_backuppolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/id_backuppolicy.go @@ -44,7 +44,7 @@ func ParseBackupPolicyID(input string) (*BackupPolicyId, error) { } id := BackupPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupPolicyIDInsensitively(input string) (*BackupPolicyId, error) { } id := BackupPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticBackupPolicies", "backupPolicies", "backupPolicies"), - resourceids.UserSpecifiedSegment("backupPolicyName", "backupPolicyValue"), + resourceids.UserSpecifiedSegment("backupPolicyName", "policyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurefileshareprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurefileshareprotectionpolicy.go index 9b4b6abeea3f..8db2cfc94ff6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurefileshareprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurefileshareprotectionpolicy.go @@ -17,10 +17,20 @@ type AzureFileShareProtectionPolicy struct { WorkLoadType *WorkloadType `json:"workLoadType,omitempty"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s AzureFileShareProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = AzureFileShareProtectionPolicy{} func (s AzureFileShareProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -32,9 +42,10 @@ func (s AzureFileShareProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFileShareProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "AzureStorage" encoded, err = json.Marshal(decoded) @@ -48,16 +59,22 @@ func (s AzureFileShareProtectionPolicy) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureFileShareProtectionPolicy{} func (s *AzureFileShareProtectionPolicy) UnmarshalJSON(bytes []byte) error { - type alias AzureFileShareProtectionPolicy - var decoded alias + var decoded struct { + TimeZone *string `json:"timeZone,omitempty"` + WorkLoadType *WorkloadType `json:"workLoadType,omitempty"` + BackupManagementType string `json:"backupManagementType"` + ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureFileShareProtectionPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.ProtectedItemsCount = decoded.ProtectedItemsCount - s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.TimeZone = decoded.TimeZone s.WorkLoadType = decoded.WorkLoadType + s.BackupManagementType = decoded.BackupManagementType + s.ProtectedItemsCount = decoded.ProtectedItemsCount + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +82,7 @@ func (s *AzureFileShareProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["retentionPolicy"]; ok { - impl, err := unmarshalRetentionPolicyImplementation(v) + impl, err := UnmarshalRetentionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RetentionPolicy' for 'AzureFileShareProtectionPolicy': %+v", err) } @@ -73,11 +90,12 @@ func (s *AzureFileShareProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["schedulePolicy"]; ok { - impl, err := unmarshalSchedulePolicyImplementation(v) + impl, err := UnmarshalSchedulePolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SchedulePolicy' for 'AzureFileShareProtectionPolicy': %+v", err) } s.SchedulePolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azureiaasvmprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azureiaasvmprotectionpolicy.go index abea4b36410e..497513428942 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azureiaasvmprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azureiaasvmprotectionpolicy.go @@ -20,10 +20,20 @@ type AzureIaaSVMProtectionPolicy struct { TimeZone *string `json:"timeZone,omitempty"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s AzureIaaSVMProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = AzureIaaSVMProtectionPolicy{} func (s AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -35,9 +45,10 @@ func (s AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureIaaSVMProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "AzureIaasVM" encoded, err = json.Marshal(decoded) @@ -51,19 +62,28 @@ func (s AzureIaaSVMProtectionPolicy) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureIaaSVMProtectionPolicy{} func (s *AzureIaaSVMProtectionPolicy) UnmarshalJSON(bytes []byte) error { - type alias AzureIaaSVMProtectionPolicy - var decoded alias + var decoded struct { + InstantRPDetails *InstantRPAdditionalDetails `json:"instantRPDetails,omitempty"` + InstantRpRetentionRangeInDays *int64 `json:"instantRpRetentionRangeInDays,omitempty"` + PolicyType *IAASVMPolicyType `json:"policyType,omitempty"` + TieringPolicy *map[string]TieringPolicy `json:"tieringPolicy,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + BackupManagementType string `json:"backupManagementType"` + ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureIaaSVMProtectionPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.InstantRPDetails = decoded.InstantRPDetails s.InstantRpRetentionRangeInDays = decoded.InstantRpRetentionRangeInDays s.PolicyType = decoded.PolicyType - s.ProtectedItemsCount = decoded.ProtectedItemsCount - s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.TieringPolicy = decoded.TieringPolicy s.TimeZone = decoded.TimeZone + s.BackupManagementType = decoded.BackupManagementType + s.ProtectedItemsCount = decoded.ProtectedItemsCount + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -71,7 +91,7 @@ func (s *AzureIaaSVMProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["retentionPolicy"]; ok { - impl, err := unmarshalRetentionPolicyImplementation(v) + impl, err := UnmarshalRetentionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RetentionPolicy' for 'AzureIaaSVMProtectionPolicy': %+v", err) } @@ -79,11 +99,12 @@ func (s *AzureIaaSVMProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["schedulePolicy"]; ok { - impl, err := unmarshalSchedulePolicyImplementation(v) + impl, err := UnmarshalSchedulePolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SchedulePolicy' for 'AzureIaaSVMProtectionPolicy': %+v", err) } s.SchedulePolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azuresqlprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azuresqlprotectionpolicy.go index 5a691310aaf5..da6d56b3a0fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azuresqlprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azuresqlprotectionpolicy.go @@ -14,10 +14,20 @@ type AzureSqlProtectionPolicy struct { RetentionPolicy RetentionPolicy `json:"retentionPolicy"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s AzureSqlProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = AzureSqlProtectionPolicy{} func (s AzureSqlProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -29,9 +39,10 @@ func (s AzureSqlProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "AzureSql" encoded, err = json.Marshal(decoded) @@ -45,12 +56,16 @@ func (s AzureSqlProtectionPolicy) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureSqlProtectionPolicy{} func (s *AzureSqlProtectionPolicy) UnmarshalJSON(bytes []byte) error { - type alias AzureSqlProtectionPolicy - var decoded alias + var decoded struct { + BackupManagementType string `json:"backupManagementType"` + ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureSqlProtectionPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } + s.BackupManagementType = decoded.BackupManagementType s.ProtectedItemsCount = decoded.ProtectedItemsCount s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests @@ -60,11 +75,12 @@ func (s *AzureSqlProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["retentionPolicy"]; ok { - impl, err := unmarshalRetentionPolicyImplementation(v) + impl, err := UnmarshalRetentionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RetentionPolicy' for 'AzureSqlProtectionPolicy': %+v", err) } s.RetentionPolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurevmworkloadprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurevmworkloadprotectionpolicy.go index 4ad1179dc7cb..312859e45fac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurevmworkloadprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_azurevmworkloadprotectionpolicy.go @@ -17,10 +17,20 @@ type AzureVMWorkloadProtectionPolicy struct { WorkLoadType *WorkloadType `json:"workLoadType,omitempty"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s AzureVMWorkloadProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = AzureVMWorkloadProtectionPolicy{} func (s AzureVMWorkloadProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -32,9 +42,10 @@ func (s AzureVMWorkloadProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureVMWorkloadProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "AzureWorkload" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_genericprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_genericprotectionpolicy.go index c893e4e80513..19ef21768217 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_genericprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_genericprotectionpolicy.go @@ -16,10 +16,20 @@ type GenericProtectionPolicy struct { TimeZone *string `json:"timeZone,omitempty"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s GenericProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = GenericProtectionPolicy{} func (s GenericProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -31,9 +41,10 @@ func (s GenericProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GenericProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "GenericProtectionPolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_logschedulepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_logschedulepolicy.go index 8f2cae119012..d7be5540a0dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_logschedulepolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_logschedulepolicy.go @@ -14,6 +14,14 @@ type LogSchedulePolicy struct { ScheduleFrequencyInMins *int64 `json:"scheduleFrequencyInMins,omitempty"` // Fields inherited from SchedulePolicy + + SchedulePolicyType string `json:"schedulePolicyType"` +} + +func (s LogSchedulePolicy) SchedulePolicy() BaseSchedulePolicyImpl { + return BaseSchedulePolicyImpl{ + SchedulePolicyType: s.SchedulePolicyType, + } } var _ json.Marshaler = LogSchedulePolicy{} @@ -27,9 +35,10 @@ func (s LogSchedulePolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LogSchedulePolicy: %+v", err) } + decoded["schedulePolicyType"] = "LogSchedulePolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermretentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermretentionpolicy.go index 50f80900d4e0..370051cc4543 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermretentionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermretentionpolicy.go @@ -17,6 +17,14 @@ type LongTermRetentionPolicy struct { YearlySchedule *YearlyRetentionSchedule `json:"yearlySchedule,omitempty"` // Fields inherited from RetentionPolicy + + RetentionPolicyType string `json:"retentionPolicyType"` +} + +func (s LongTermRetentionPolicy) RetentionPolicy() BaseRetentionPolicyImpl { + return BaseRetentionPolicyImpl{ + RetentionPolicyType: s.RetentionPolicyType, + } } var _ json.Marshaler = LongTermRetentionPolicy{} @@ -30,9 +38,10 @@ func (s LongTermRetentionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LongTermRetentionPolicy: %+v", err) } + decoded["retentionPolicyType"] = "LongTermRetentionPolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermschedulepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermschedulepolicy.go index 06d19a60ab2e..0a582bff60a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermschedulepolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_longtermschedulepolicy.go @@ -13,6 +13,14 @@ var _ SchedulePolicy = LongTermSchedulePolicy{} type LongTermSchedulePolicy struct { // Fields inherited from SchedulePolicy + + SchedulePolicyType string `json:"schedulePolicyType"` +} + +func (s LongTermSchedulePolicy) SchedulePolicy() BaseSchedulePolicyImpl { + return BaseSchedulePolicyImpl{ + SchedulePolicyType: s.SchedulePolicyType, + } } var _ json.Marshaler = LongTermSchedulePolicy{} @@ -26,9 +34,10 @@ func (s LongTermSchedulePolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LongTermSchedulePolicy: %+v", err) } + decoded["schedulePolicyType"] = "LongTermSchedulePolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_mabprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_mabprotectionpolicy.go index 4178653c4e68..e5b259542593 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_mabprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_mabprotectionpolicy.go @@ -15,10 +15,20 @@ type MabProtectionPolicy struct { SchedulePolicy SchedulePolicy `json:"schedulePolicy"` // Fields inherited from ProtectionPolicy + + BackupManagementType string `json:"backupManagementType"` ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` } +func (s MabProtectionPolicy) ProtectionPolicy() BaseProtectionPolicyImpl { + return BaseProtectionPolicyImpl{ + BackupManagementType: s.BackupManagementType, + ProtectedItemsCount: s.ProtectedItemsCount, + ResourceGuardOperationRequests: s.ResourceGuardOperationRequests, + } +} + var _ json.Marshaler = MabProtectionPolicy{} func (s MabProtectionPolicy) MarshalJSON() ([]byte, error) { @@ -30,9 +40,10 @@ func (s MabProtectionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MabProtectionPolicy: %+v", err) } + decoded["backupManagementType"] = "MAB" encoded, err = json.Marshal(decoded) @@ -46,12 +57,16 @@ func (s MabProtectionPolicy) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &MabProtectionPolicy{} func (s *MabProtectionPolicy) UnmarshalJSON(bytes []byte) error { - type alias MabProtectionPolicy - var decoded alias + var decoded struct { + BackupManagementType string `json:"backupManagementType"` + ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into MabProtectionPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } + s.BackupManagementType = decoded.BackupManagementType s.ProtectedItemsCount = decoded.ProtectedItemsCount s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests @@ -61,7 +76,7 @@ func (s *MabProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["retentionPolicy"]; ok { - impl, err := unmarshalRetentionPolicyImplementation(v) + impl, err := UnmarshalRetentionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RetentionPolicy' for 'MabProtectionPolicy': %+v", err) } @@ -69,11 +84,12 @@ func (s *MabProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["schedulePolicy"]; ok { - impl, err := unmarshalSchedulePolicyImplementation(v) + impl, err := UnmarshalSchedulePolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SchedulePolicy' for 'MabProtectionPolicy': %+v", err) } s.SchedulePolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicy.go index 7d850fa25bdc..a3363c720b60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicy.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtectionPolicy interface { + ProtectionPolicy() BaseProtectionPolicyImpl } -// RawProtectionPolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProtectionPolicy = BaseProtectionPolicyImpl{} + +type BaseProtectionPolicyImpl struct { + BackupManagementType string `json:"backupManagementType"` + ProtectedItemsCount *int64 `json:"protectedItemsCount,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` +} + +func (s BaseProtectionPolicyImpl) ProtectionPolicy() BaseProtectionPolicyImpl { + return s +} + +var _ ProtectionPolicy = RawProtectionPolicyImpl{} + +// RawProtectionPolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProtectionPolicyImpl struct { - Type string - Values map[string]interface{} + protectionPolicy BaseProtectionPolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawProtectionPolicyImpl) ProtectionPolicy() BaseProtectionPolicyImpl { + return s.protectionPolicy } -func unmarshalProtectionPolicyImplementation(input []byte) (ProtectionPolicy, error) { +func UnmarshalProtectionPolicyImplementation(input []byte) (ProtectionPolicy, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalProtectionPolicyImplementation(input []byte) (ProtectionPolicy, er return nil, fmt.Errorf("unmarshaling ProtectionPolicy into map[string]interface: %+v", err) } - value, ok := temp["backupManagementType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["backupManagementType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureStorage") { @@ -84,10 +103,15 @@ func unmarshalProtectionPolicyImplementation(input []byte) (ProtectionPolicy, er return out, nil } - out := RawProtectionPolicyImpl{ - Type: value, - Values: temp, + var parent BaseProtectionPolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProtectionPolicyImpl: %+v", err) } - return out, nil + + return RawProtectionPolicyImpl{ + protectionPolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicyresource.go index 03bda4d0a126..94fb7fdc4390 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicyresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_protectionpolicyresource.go @@ -21,10 +21,16 @@ type ProtectionPolicyResource struct { var _ json.Unmarshaler = &ProtectionPolicyResource{} func (s *ProtectionPolicyResource) UnmarshalJSON(bytes []byte) error { - type alias ProtectionPolicyResource - var decoded alias + var decoded struct { + ETag *string `json:"eTag,omitempty"` + Id *string `json:"id,omitempty"` + Location *string `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProtectionPolicyResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ETag = decoded.ETag @@ -40,11 +46,12 @@ func (s *ProtectionPolicyResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalProtectionPolicyImplementation(v) + impl, err := UnmarshalProtectionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'ProtectionPolicyResource': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_retentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_retentionpolicy.go index fa52632f677c..2985db55d036 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_retentionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_retentionpolicy.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RetentionPolicy interface { + RetentionPolicy() BaseRetentionPolicyImpl } -// RawRetentionPolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RetentionPolicy = BaseRetentionPolicyImpl{} + +type BaseRetentionPolicyImpl struct { + RetentionPolicyType string `json:"retentionPolicyType"` +} + +func (s BaseRetentionPolicyImpl) RetentionPolicy() BaseRetentionPolicyImpl { + return s +} + +var _ RetentionPolicy = RawRetentionPolicyImpl{} + +// RawRetentionPolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRetentionPolicyImpl struct { - Type string - Values map[string]interface{} + retentionPolicy BaseRetentionPolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawRetentionPolicyImpl) RetentionPolicy() BaseRetentionPolicyImpl { + return s.retentionPolicy } -func unmarshalRetentionPolicyImplementation(input []byte) (RetentionPolicy, error) { +func UnmarshalRetentionPolicyImplementation(input []byte) (RetentionPolicy, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRetentionPolicyImplementation(input []byte) (RetentionPolicy, erro return nil, fmt.Errorf("unmarshaling RetentionPolicy into map[string]interface: %+v", err) } - value, ok := temp["retentionPolicyType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["retentionPolicyType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "LongTermRetentionPolicy") { @@ -52,10 +69,15 @@ func unmarshalRetentionPolicyImplementation(input []byte) (RetentionPolicy, erro return out, nil } - out := RawRetentionPolicyImpl{ - Type: value, - Values: temp, + var parent BaseRetentionPolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRetentionPolicyImpl: %+v", err) } - return out, nil + + return RawRetentionPolicyImpl{ + retentionPolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_schedulepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_schedulepolicy.go index 6f395ac7fc7e..717c2316f09d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_schedulepolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_schedulepolicy.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SchedulePolicy interface { + SchedulePolicy() BaseSchedulePolicyImpl } -// RawSchedulePolicyImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SchedulePolicy = BaseSchedulePolicyImpl{} + +type BaseSchedulePolicyImpl struct { + SchedulePolicyType string `json:"schedulePolicyType"` +} + +func (s BaseSchedulePolicyImpl) SchedulePolicy() BaseSchedulePolicyImpl { + return s +} + +var _ SchedulePolicy = RawSchedulePolicyImpl{} + +// RawSchedulePolicyImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSchedulePolicyImpl struct { - Type string - Values map[string]interface{} + schedulePolicy BaseSchedulePolicyImpl + Type string + Values map[string]interface{} +} + +func (s RawSchedulePolicyImpl) SchedulePolicy() BaseSchedulePolicyImpl { + return s.schedulePolicy } -func unmarshalSchedulePolicyImplementation(input []byte) (SchedulePolicy, error) { +func UnmarshalSchedulePolicyImplementation(input []byte) (SchedulePolicy, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSchedulePolicyImplementation(input []byte) (SchedulePolicy, error) return nil, fmt.Errorf("unmarshaling SchedulePolicy into map[string]interface: %+v", err) } - value, ok := temp["schedulePolicyType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["schedulePolicyType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "LogSchedulePolicy") { @@ -68,10 +85,15 @@ func unmarshalSchedulePolicyImplementation(input []byte) (SchedulePolicy, error) return out, nil } - out := RawSchedulePolicyImpl{ - Type: value, - Values: temp, + var parent BaseSchedulePolicyImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSchedulePolicyImpl: %+v", err) } - return out, nil + + return RawSchedulePolicyImpl{ + schedulePolicy: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleretentionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleretentionpolicy.go index 37edb09a9560..8481b97b7057 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleretentionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleretentionpolicy.go @@ -14,6 +14,14 @@ type SimpleRetentionPolicy struct { RetentionDuration *RetentionDuration `json:"retentionDuration,omitempty"` // Fields inherited from RetentionPolicy + + RetentionPolicyType string `json:"retentionPolicyType"` +} + +func (s SimpleRetentionPolicy) RetentionPolicy() BaseRetentionPolicyImpl { + return BaseRetentionPolicyImpl{ + RetentionPolicyType: s.RetentionPolicyType, + } } var _ json.Marshaler = SimpleRetentionPolicy{} @@ -27,9 +35,10 @@ func (s SimpleRetentionPolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SimpleRetentionPolicy: %+v", err) } + decoded["retentionPolicyType"] = "SimpleRetentionPolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicy.go index 117247120b63..004acc231d59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicy.go @@ -18,6 +18,14 @@ type SimpleSchedulePolicy struct { ScheduleWeeklyFrequency *int64 `json:"scheduleWeeklyFrequency,omitempty"` // Fields inherited from SchedulePolicy + + SchedulePolicyType string `json:"schedulePolicyType"` +} + +func (s SimpleSchedulePolicy) SchedulePolicy() BaseSchedulePolicyImpl { + return BaseSchedulePolicyImpl{ + SchedulePolicyType: s.SchedulePolicyType, + } } var _ json.Marshaler = SimpleSchedulePolicy{} @@ -31,9 +39,10 @@ func (s SimpleSchedulePolicy) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SimpleSchedulePolicy: %+v", err) } + decoded["schedulePolicyType"] = "SimpleSchedulePolicy" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicyv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicyv2.go index f522d8d71849..5d4f403ffb2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicyv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_simpleschedulepolicyv2.go @@ -17,6 +17,14 @@ type SimpleSchedulePolicyV2 struct { WeeklySchedule *WeeklySchedule `json:"weeklySchedule,omitempty"` // Fields inherited from SchedulePolicy + + SchedulePolicyType string `json:"schedulePolicyType"` +} + +func (s SimpleSchedulePolicyV2) SchedulePolicy() BaseSchedulePolicyImpl { + return BaseSchedulePolicyImpl{ + SchedulePolicyType: s.SchedulePolicyType, + } } var _ json.Marshaler = SimpleSchedulePolicyV2{} @@ -30,9 +38,10 @@ func (s SimpleSchedulePolicyV2) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SimpleSchedulePolicyV2: %+v", err) } + decoded["schedulePolicyType"] = "SimpleSchedulePolicyV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_subprotectionpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_subprotectionpolicy.go index bcf1c32ee701..5213ba1fdf56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_subprotectionpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/model_subprotectionpolicy.go @@ -18,10 +18,12 @@ type SubProtectionPolicy struct { var _ json.Unmarshaler = &SubProtectionPolicy{} func (s *SubProtectionPolicy) UnmarshalJSON(bytes []byte) error { - type alias SubProtectionPolicy - var decoded alias + var decoded struct { + PolicyType *PolicyType `json:"policyType,omitempty"` + TieringPolicy *map[string]TieringPolicy `json:"tieringPolicy,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SubProtectionPolicy: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.PolicyType = decoded.PolicyType @@ -33,7 +35,7 @@ func (s *SubProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["retentionPolicy"]; ok { - impl, err := unmarshalRetentionPolicyImplementation(v) + impl, err := UnmarshalRetentionPolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'RetentionPolicy' for 'SubProtectionPolicy': %+v", err) } @@ -41,11 +43,12 @@ func (s *SubProtectionPolicy) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["schedulePolicy"]; ok { - impl, err := unmarshalSchedulePolicyImplementation(v) + impl, err := UnmarshalSchedulePolicyImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SchedulePolicy' for 'SubProtectionPolicy': %+v", err) } s.SchedulePolicy = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/version.go index 9c0088c68b7b..481f4df3c529 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/protectionpolicies/version.go @@ -1,12 +1,10 @@ package protectionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/protectionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/protectionpolicies/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/README.md index bf01ad9c85d1..f709248bbe3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy` Documentation -The `resourceguardproxy` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicesbackup` (API Version `2023-02-01`). +The `resourceguardproxy` SDK allows for interaction with Azure Resource Manager `recoveryservicesbackup` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupResourceGuardProxyValue") +id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "resourceGuardProxyName") read, err := client.Delete(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupResourceGuardProxyValue") +id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "resourceGuardProxyName") read, err := client.Get(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupResourceGuardProxyValue") +id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "resourceGuardProxyName") payload := resourceguardproxy.ResourceGuardProxyBaseResource{ // ... @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "backupResourceGuardProxyValue") +id := resourceguardproxy.NewBackupResourceGuardProxyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultName", "resourceGuardProxyName") payload := resourceguardproxy.UnlockDeleteRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/id_backupresourceguardproxy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/id_backupresourceguardproxy.go index 889a597614e1..36be3b2da748 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/id_backupresourceguardproxy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/id_backupresourceguardproxy.go @@ -44,7 +44,7 @@ func ParseBackupResourceGuardProxyID(input string) (*BackupResourceGuardProxyId, } id := BackupResourceGuardProxyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupResourceGuardProxyIDInsensitively(input string) (*BackupResource } id := BackupResourceGuardProxyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupResourceGuardProxyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "vaultName"), resourceids.StaticSegment("staticBackupResourceGuardProxies", "backupResourceGuardProxies", "backupResourceGuardProxies"), - resourceids.UserSpecifiedSegment("backupResourceGuardProxyName", "backupResourceGuardProxyValue"), + resourceids.UserSpecifiedSegment("backupResourceGuardProxyName", "resourceGuardProxyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/version.go index c3087a3194ed..5f464123d8cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy/version.go @@ -1,12 +1,10 @@ package resourceguardproxy -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resourceguardproxy/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resourceguardproxy/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/README.md index 4c0d2ee87987..90c709e14611 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics` Documentation -The `replicationfabrics` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationfabrics` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") if err := client.CheckConsistencyThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.CheckConsistencyThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") payload := replicationfabrics.FabricCreationInput{ // ... @@ -53,7 +53,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") read, err := client.Get(ctx, id, replicationfabrics.DefaultGetOperationOptions()) if err != nil { @@ -81,7 +81,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationfabrics.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -98,7 +98,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") if err := client.MigrateToAadThenPoll(ctx, id); err != nil { // handle the error @@ -110,7 +110,7 @@ if err := client.MigrateToAadThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") if err := client.PurgeThenPoll(ctx, id); err != nil { // handle the error @@ -122,7 +122,7 @@ if err := client.PurgeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") payload := replicationfabrics.FailoverProcessServerRequest{ // ... @@ -139,7 +139,7 @@ if err := client.ReassociateGatewayThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") if err := client.RemoveInfraThenPoll(ctx, id); err != nil { // handle the error @@ -151,7 +151,7 @@ if err := client.RemoveInfraThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationfabrics.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") payload := replicationfabrics.RenewCertificateInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/client.go index 678ea71a6397..70508d500a79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/client.go @@ -15,7 +15,7 @@ type ReplicationFabricsClient struct { } func NewReplicationFabricsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationFabricsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationfabrics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationfabrics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationFabricsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_replicationfabric.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_replicationfabric.go index fe15a2565074..543c6b7ed305 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_replicationfabric.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_replicationfabric.go @@ -44,7 +44,7 @@ func ParseReplicationFabricID(input string) (*ReplicationFabricId, error) { } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationFabricId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_vault.go index 2246edbb2656..a26b6403ff50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go index b7aa7e1fc649..4ddb027258c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ReplicationFabricsClient) Get(ctx context.Context, id ReplicationFabricI var model Fabric result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabriccreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabriccreationinput.go index 916dcdb0b323..738d129adb3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabriccreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabriccreationinput.go @@ -14,6 +14,14 @@ type AzureFabricCreationInput struct { Location *string `json:"location,omitempty"` // Fields inherited from FabricSpecificCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s AzureFabricCreationInput) FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl { + return BaseFabricSpecificCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = AzureFabricCreationInput{} @@ -27,9 +35,10 @@ func (s AzureFabricCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFabricCreationInput: %+v", err) } + decoded["instanceType"] = "Azure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabricspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabricspecificdetails.go index 367bc0a49ce4..e654364c02c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabricspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_azurefabricspecificdetails.go @@ -18,6 +18,14 @@ type AzureFabricSpecificDetails struct { Zones *[]A2AZoneDetails `json:"zones,omitempty"` // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s AzureFabricSpecificDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = AzureFabricSpecificDetails{} @@ -31,9 +39,10 @@ func (s AzureFabricSpecificDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFabricSpecificDetails: %+v", err) } + decoded["instanceType"] = "Azure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabriccreationinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabriccreationinputproperties.go index 5af8a2ed128c..b78f44518cce 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabriccreationinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabriccreationinputproperties.go @@ -22,11 +22,12 @@ func (s *FabricCreationInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customDetails"]; ok { - impl, err := unmarshalFabricSpecificCreationInputImplementation(v) + impl, err := UnmarshalFabricSpecificCreationInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomDetails' for 'FabricCreationInputProperties': %+v", err) } s.CustomDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricproperties.go index b03922250210..821456e11eb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricproperties.go @@ -22,10 +22,17 @@ type FabricProperties struct { var _ json.Unmarshaler = &FabricProperties{} func (s *FabricProperties) UnmarshalJSON(bytes []byte) error { - type alias FabricProperties - var decoded alias + var decoded struct { + BcdrState *string `json:"bcdrState,omitempty"` + EncryptionDetails *EncryptionDetails `json:"encryptionDetails,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + Health *string `json:"health,omitempty"` + HealthErrorDetails *[]HealthError `json:"healthErrorDetails,omitempty"` + InternalIdentifier *string `json:"internalIdentifier,omitempty"` + RolloverEncryptionDetails *EncryptionDetails `json:"rolloverEncryptionDetails,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FabricProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.BcdrState = decoded.BcdrState @@ -42,11 +49,12 @@ func (s *FabricProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customDetails"]; ok { - impl, err := unmarshalFabricSpecificDetailsImplementation(v) + impl, err := UnmarshalFabricSpecificDetailsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomDetails' for 'FabricProperties': %+v", err) } s.CustomDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificcreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificcreationinput.go index 8dbde38163be..128f14469f7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificcreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificcreationinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FabricSpecificCreationInput interface { + FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl } -// RawFabricSpecificCreationInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FabricSpecificCreationInput = BaseFabricSpecificCreationInputImpl{} + +type BaseFabricSpecificCreationInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseFabricSpecificCreationInputImpl) FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl { + return s +} + +var _ FabricSpecificCreationInput = RawFabricSpecificCreationInputImpl{} + +// RawFabricSpecificCreationInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFabricSpecificCreationInputImpl struct { - Type string - Values map[string]interface{} + fabricSpecificCreationInput BaseFabricSpecificCreationInputImpl + Type string + Values map[string]interface{} +} + +func (s RawFabricSpecificCreationInputImpl) FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl { + return s.fabricSpecificCreationInput } -func unmarshalFabricSpecificCreationInputImplementation(input []byte) (FabricSpecificCreationInput, error) { +func UnmarshalFabricSpecificCreationInputImplementation(input []byte) (FabricSpecificCreationInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFabricSpecificCreationInputImplementation(input []byte) (FabricSpe return nil, fmt.Errorf("unmarshaling FabricSpecificCreationInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Azure") { @@ -60,10 +77,15 @@ func unmarshalFabricSpecificCreationInputImplementation(input []byte) (FabricSpe return out, nil } - out := RawFabricSpecificCreationInputImpl{ - Type: value, - Values: temp, + var parent BaseFabricSpecificCreationInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFabricSpecificCreationInputImpl: %+v", err) } - return out, nil + + return RawFabricSpecificCreationInputImpl{ + fabricSpecificCreationInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificdetails.go index 2a06cf9d1209..be6b1c113b5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_fabricspecificdetails.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FabricSpecificDetails interface { + FabricSpecificDetails() BaseFabricSpecificDetailsImpl } -// RawFabricSpecificDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FabricSpecificDetails = BaseFabricSpecificDetailsImpl{} + +type BaseFabricSpecificDetailsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseFabricSpecificDetailsImpl) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return s +} + +var _ FabricSpecificDetails = RawFabricSpecificDetailsImpl{} + +// RawFabricSpecificDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFabricSpecificDetailsImpl struct { - Type string - Values map[string]interface{} + fabricSpecificDetails BaseFabricSpecificDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawFabricSpecificDetailsImpl) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return s.fabricSpecificDetails } -func unmarshalFabricSpecificDetailsImplementation(input []byte) (FabricSpecificDetails, error) { +func UnmarshalFabricSpecificDetailsImplementation(input []byte) (FabricSpecificDetails, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFabricSpecificDetailsImplementation(input []byte) (FabricSpecificD return nil, fmt.Errorf("unmarshaling FabricSpecificDetails into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Azure") { @@ -84,10 +101,15 @@ func unmarshalFabricSpecificDetailsImplementation(input []byte) (FabricSpecificD return out, nil } - out := RawFabricSpecificDetailsImpl{ - Type: value, - Values: temp, + var parent BaseFabricSpecificDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFabricSpecificDetailsImpl: %+v", err) } - return out, nil + + return RawFabricSpecificDetailsImpl{ + fabricSpecificDetails: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_hypervsitedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_hypervsitedetails.go index 293057fa1f0a..35716f3e90af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_hypervsitedetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_hypervsitedetails.go @@ -14,6 +14,14 @@ type HyperVSiteDetails struct { HyperVHosts *[]HyperVHostDetails `json:"hyperVHosts,omitempty"` // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s HyperVSiteDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVSiteDetails{} @@ -27,9 +35,10 @@ func (s HyperVSiteDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVSiteDetails: %+v", err) } + decoded["instanceType"] = "HyperVSite" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabriccreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabriccreationinput.go index 6e169783cd22..9e072625014e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabriccreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabriccreationinput.go @@ -16,6 +16,14 @@ type InMageRcmFabricCreationInput struct { VMwareSiteId string `json:"vmwareSiteId"` // Fields inherited from FabricSpecificCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFabricCreationInput) FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl { + return BaseFabricSpecificCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFabricCreationInput{} @@ -29,9 +37,10 @@ func (s InMageRcmFabricCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFabricCreationInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabricspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabricspecificdetails.go index 6d4749c4c1c8..4e138321c6fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabricspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_inmagercmfabricspecificdetails.go @@ -29,6 +29,14 @@ type InMageRcmFabricSpecificDetails struct { VMwareSiteId *string `json:"vmwareSiteId,omitempty"` // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFabricSpecificDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFabricSpecificDetails{} @@ -42,9 +50,10 @@ func (s InMageRcmFabricSpecificDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFabricSpecificDetails: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmmdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmmdetails.go index f96234c13066..cb33769db259 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmmdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmmdetails.go @@ -13,6 +13,14 @@ var _ FabricSpecificDetails = VMmDetails{} type VMmDetails struct { // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s VMmDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmDetails{} @@ -26,9 +34,10 @@ func (s VMmDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmDetails: %+v", err) } + decoded["instanceType"] = "VMM" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwaredetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwaredetails.go index ff61dc7f3c56..097a880d515c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwaredetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwaredetails.go @@ -46,6 +46,14 @@ type VMwareDetails struct { WebLoadStatus *string `json:"webLoadStatus,omitempty"` // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s VMwareDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareDetails{} @@ -59,9 +67,10 @@ func (s VMwareDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareDetails: %+v", err) } + decoded["instanceType"] = "VMware" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabriccreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabriccreationinput.go index 0c0e41a8b050..16600cfb3224 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabriccreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabriccreationinput.go @@ -16,6 +16,14 @@ type VMwareV2FabricCreationInput struct { VMwareSiteId *string `json:"vmwareSiteId,omitempty"` // Fields inherited from FabricSpecificCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s VMwareV2FabricCreationInput) FabricSpecificCreationInput() BaseFabricSpecificCreationInputImpl { + return BaseFabricSpecificCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareV2FabricCreationInput{} @@ -29,9 +37,10 @@ func (s VMwareV2FabricCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareV2FabricCreationInput: %+v", err) } + decoded["instanceType"] = "VMwareV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabricspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabricspecificdetails.go index ea49db85b19e..5ff33f8b5511 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabricspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/model_vmwarev2fabricspecificdetails.go @@ -20,6 +20,14 @@ type VMwareV2FabricSpecificDetails struct { VMwareSiteId *string `json:"vmwareSiteId,omitempty"` // Fields inherited from FabricSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s VMwareV2FabricSpecificDetails) FabricSpecificDetails() BaseFabricSpecificDetailsImpl { + return BaseFabricSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareV2FabricSpecificDetails{} @@ -33,9 +41,10 @@ func (s VMwareV2FabricSpecificDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareV2FabricSpecificDetails: %+v", err) } + decoded["instanceType"] = "VMwareV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/version.go index c1a3c00a9dec..f9f10a594b77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationfabrics/version.go @@ -1,12 +1,10 @@ package replicationfabrics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationfabrics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationfabrics/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/README.md index c741754deab9..d1cccf2ddc4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings` Documentation -The `replicationnetworkmappings` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationnetworkmappings` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue") +id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName", "networkMappingName") payload := replicationnetworkmappings.CreateNetworkMappingInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue") +id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName", "networkMappingName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue") +id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName", "networkMappingName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationnetworkmappings.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationnetworkmappings.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationnetworkmappings.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue") +id := replicationnetworkmappings.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName") // alternatively `client.ListByReplicationNetworks(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationNetworksComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue", "replicationNetworkMappingValue") +id := replicationnetworkmappings.NewReplicationNetworkMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName", "networkMappingName") payload := replicationnetworkmappings.UpdateNetworkMappingInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/client.go index 13d44a2d8e78..abd39f3fa7eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/client.go @@ -15,7 +15,7 @@ type ReplicationNetworkMappingsClient struct { } func NewReplicationNetworkMappingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationNetworkMappingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationnetworkmappings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationnetworkmappings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationNetworkMappingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetwork.go index 6d317ee31767..ee4dfc3a51ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetwork.go @@ -46,7 +46,7 @@ func ParseReplicationNetworkID(input string) (*ReplicationNetworkId, error) { } id := ReplicationNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationNetworkIDInsensitively(input string) (*ReplicationNetworkId } id := ReplicationNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationNetworks", "replicationNetworks", "replicationNetworks"), - resourceids.UserSpecifiedSegment("replicationNetworkName", "replicationNetworkValue"), + resourceids.UserSpecifiedSegment("replicationNetworkName", "networkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetworkmapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetworkmapping.go index ba8adb7495ef..b2735d87b571 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetworkmapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_replicationnetworkmapping.go @@ -48,7 +48,7 @@ func ParseReplicationNetworkMappingID(input string) (*ReplicationNetworkMappingI } id := ReplicationNetworkMappingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseReplicationNetworkMappingIDInsensitively(input string) (*ReplicationNe } id := ReplicationNetworkMappingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ReplicationNetworkMappingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationNetworks", "replicationNetworks", "replicationNetworks"), - resourceids.UserSpecifiedSegment("replicationNetworkName", "replicationNetworkValue"), + resourceids.UserSpecifiedSegment("replicationNetworkName", "networkName"), resourceids.StaticSegment("staticReplicationNetworkMappings", "replicationNetworkMappings", "replicationNetworkMappings"), - resourceids.UserSpecifiedSegment("replicationNetworkMappingName", "replicationNetworkMappingValue"), + resourceids.UserSpecifiedSegment("replicationNetworkMappingName", "networkMappingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_vault.go index 4fbeea1c739c..ebfe061bdb27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_get.go index 011940af0f2b..525a52548248 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationNetworkMappingsClient) Get(ctx context.Context, id Replicatio var model NetworkMapping result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurecreatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurecreatenetworkmappinginput.go index 338a69b7c24c..bf9c068eb178 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurecreatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurecreatenetworkmappinginput.go @@ -14,6 +14,14 @@ type AzureToAzureCreateNetworkMappingInput struct { PrimaryNetworkId string `json:"primaryNetworkId"` // Fields inherited from FabricSpecificCreateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s AzureToAzureCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl { + return BaseFabricSpecificCreateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = AzureToAzureCreateNetworkMappingInput{} @@ -27,9 +35,10 @@ func (s AzureToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureToAzureCreateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "AzureToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurenetworkmappingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurenetworkmappingsettings.go index 82ee7d7cd78a..3c54371de7d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurenetworkmappingsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazurenetworkmappingsettings.go @@ -15,6 +15,14 @@ type AzureToAzureNetworkMappingSettings struct { RecoveryFabricLocation *string `json:"recoveryFabricLocation,omitempty"` // Fields inherited from NetworkMappingFabricSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s AzureToAzureNetworkMappingSettings) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl { + return BaseNetworkMappingFabricSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = AzureToAzureNetworkMappingSettings{} @@ -28,9 +36,10 @@ func (s AzureToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureToAzureNetworkMappingSettings: %+v", err) } + decoded["instanceType"] = "AzureToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazureupdatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazureupdatenetworkmappinginput.go index 3df2303a0980..712bd15b8695 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazureupdatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_azuretoazureupdatenetworkmappinginput.go @@ -14,6 +14,14 @@ type AzureToAzureUpdateNetworkMappingInput struct { PrimaryNetworkId *string `json:"primaryNetworkId,omitempty"` // Fields inherited from FabricSpecificUpdateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s AzureToAzureUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl { + return BaseFabricSpecificUpdateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = AzureToAzureUpdateNetworkMappingInput{} @@ -27,9 +35,10 @@ func (s AzureToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureToAzureUpdateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "AzureToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_createnetworkmappinginputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_createnetworkmappinginputproperties.go index 43ae6995a548..792db7cc0818 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_createnetworkmappinginputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_createnetworkmappinginputproperties.go @@ -17,10 +17,12 @@ type CreateNetworkMappingInputProperties struct { var _ json.Unmarshaler = &CreateNetworkMappingInputProperties{} func (s *CreateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error { - type alias CreateNetworkMappingInputProperties - var decoded alias + var decoded struct { + RecoveryFabricName *string `json:"recoveryFabricName,omitempty"` + RecoveryNetworkId string `json:"recoveryNetworkId"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CreateNetworkMappingInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.RecoveryFabricName = decoded.RecoveryFabricName @@ -32,11 +34,12 @@ func (s *CreateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error } if v, ok := temp["fabricSpecificDetails"]; ok { - impl, err := unmarshalFabricSpecificCreateNetworkMappingInputImplementation(v) + impl, err := UnmarshalFabricSpecificCreateNetworkMappingInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'FabricSpecificDetails' for 'CreateNetworkMappingInputProperties': %+v", err) } s.FabricSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificcreatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificcreatenetworkmappinginput.go index 24f1403cfe77..ead65c29e3f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificcreatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificcreatenetworkmappinginput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FabricSpecificCreateNetworkMappingInput interface { + FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl } -// RawFabricSpecificCreateNetworkMappingInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FabricSpecificCreateNetworkMappingInput = BaseFabricSpecificCreateNetworkMappingInputImpl{} + +type BaseFabricSpecificCreateNetworkMappingInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseFabricSpecificCreateNetworkMappingInputImpl) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl { + return s +} + +var _ FabricSpecificCreateNetworkMappingInput = RawFabricSpecificCreateNetworkMappingInputImpl{} + +// RawFabricSpecificCreateNetworkMappingInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFabricSpecificCreateNetworkMappingInputImpl struct { - Type string - Values map[string]interface{} + fabricSpecificCreateNetworkMappingInput BaseFabricSpecificCreateNetworkMappingInputImpl + Type string + Values map[string]interface{} +} + +func (s RawFabricSpecificCreateNetworkMappingInputImpl) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl { + return s.fabricSpecificCreateNetworkMappingInput } -func unmarshalFabricSpecificCreateNetworkMappingInputImplementation(input []byte) (FabricSpecificCreateNetworkMappingInput, error) { +func UnmarshalFabricSpecificCreateNetworkMappingInputImplementation(input []byte) (FabricSpecificCreateNetworkMappingInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFabricSpecificCreateNetworkMappingInputImplementation(input []byte return nil, fmt.Errorf("unmarshaling FabricSpecificCreateNetworkMappingInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureToAzure") { @@ -60,10 +77,15 @@ func unmarshalFabricSpecificCreateNetworkMappingInputImplementation(input []byte return out, nil } - out := RawFabricSpecificCreateNetworkMappingInputImpl{ - Type: value, - Values: temp, + var parent BaseFabricSpecificCreateNetworkMappingInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFabricSpecificCreateNetworkMappingInputImpl: %+v", err) } - return out, nil + + return RawFabricSpecificCreateNetworkMappingInputImpl{ + fabricSpecificCreateNetworkMappingInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificupdatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificupdatenetworkmappinginput.go index 9b00243a9b26..1619f21a4f5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificupdatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_fabricspecificupdatenetworkmappinginput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FabricSpecificUpdateNetworkMappingInput interface { + FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl } -// RawFabricSpecificUpdateNetworkMappingInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FabricSpecificUpdateNetworkMappingInput = BaseFabricSpecificUpdateNetworkMappingInputImpl{} + +type BaseFabricSpecificUpdateNetworkMappingInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseFabricSpecificUpdateNetworkMappingInputImpl) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl { + return s +} + +var _ FabricSpecificUpdateNetworkMappingInput = RawFabricSpecificUpdateNetworkMappingInputImpl{} + +// RawFabricSpecificUpdateNetworkMappingInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFabricSpecificUpdateNetworkMappingInputImpl struct { - Type string - Values map[string]interface{} + fabricSpecificUpdateNetworkMappingInput BaseFabricSpecificUpdateNetworkMappingInputImpl + Type string + Values map[string]interface{} +} + +func (s RawFabricSpecificUpdateNetworkMappingInputImpl) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl { + return s.fabricSpecificUpdateNetworkMappingInput } -func unmarshalFabricSpecificUpdateNetworkMappingInputImplementation(input []byte) (FabricSpecificUpdateNetworkMappingInput, error) { +func UnmarshalFabricSpecificUpdateNetworkMappingInputImplementation(input []byte) (FabricSpecificUpdateNetworkMappingInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFabricSpecificUpdateNetworkMappingInputImplementation(input []byte return nil, fmt.Errorf("unmarshaling FabricSpecificUpdateNetworkMappingInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureToAzure") { @@ -60,10 +77,15 @@ func unmarshalFabricSpecificUpdateNetworkMappingInputImplementation(input []byte return out, nil } - out := RawFabricSpecificUpdateNetworkMappingInputImpl{ - Type: value, - Values: temp, + var parent BaseFabricSpecificUpdateNetworkMappingInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFabricSpecificUpdateNetworkMappingInputImpl: %+v", err) } - return out, nil + + return RawFabricSpecificUpdateNetworkMappingInputImpl{ + fabricSpecificUpdateNetworkMappingInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingfabricspecificsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingfabricspecificsettings.go index 21b3513bb8ab..cc0f8272959d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingfabricspecificsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingfabricspecificsettings.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type NetworkMappingFabricSpecificSettings interface { + NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl } -// RawNetworkMappingFabricSpecificSettingsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ NetworkMappingFabricSpecificSettings = BaseNetworkMappingFabricSpecificSettingsImpl{} + +type BaseNetworkMappingFabricSpecificSettingsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseNetworkMappingFabricSpecificSettingsImpl) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl { + return s +} + +var _ NetworkMappingFabricSpecificSettings = RawNetworkMappingFabricSpecificSettingsImpl{} + +// RawNetworkMappingFabricSpecificSettingsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawNetworkMappingFabricSpecificSettingsImpl struct { - Type string - Values map[string]interface{} + networkMappingFabricSpecificSettings BaseNetworkMappingFabricSpecificSettingsImpl + Type string + Values map[string]interface{} +} + +func (s RawNetworkMappingFabricSpecificSettingsImpl) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl { + return s.networkMappingFabricSpecificSettings } -func unmarshalNetworkMappingFabricSpecificSettingsImplementation(input []byte) (NetworkMappingFabricSpecificSettings, error) { +func UnmarshalNetworkMappingFabricSpecificSettingsImplementation(input []byte) (NetworkMappingFabricSpecificSettings, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalNetworkMappingFabricSpecificSettingsImplementation(input []byte) ( return nil, fmt.Errorf("unmarshaling NetworkMappingFabricSpecificSettings into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureToAzure") { @@ -60,10 +77,15 @@ func unmarshalNetworkMappingFabricSpecificSettingsImplementation(input []byte) ( return out, nil } - out := RawNetworkMappingFabricSpecificSettingsImpl{ - Type: value, - Values: temp, + var parent BaseNetworkMappingFabricSpecificSettingsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseNetworkMappingFabricSpecificSettingsImpl: %+v", err) } - return out, nil + + return RawNetworkMappingFabricSpecificSettingsImpl{ + networkMappingFabricSpecificSettings: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingproperties.go index 5f4d29ba66e8..2dbab290e69a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_networkmappingproperties.go @@ -23,10 +23,18 @@ type NetworkMappingProperties struct { var _ json.Unmarshaler = &NetworkMappingProperties{} func (s *NetworkMappingProperties) UnmarshalJSON(bytes []byte) error { - type alias NetworkMappingProperties - var decoded alias + var decoded struct { + PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"` + PrimaryNetworkFriendlyName *string `json:"primaryNetworkFriendlyName,omitempty"` + PrimaryNetworkId *string `json:"primaryNetworkId,omitempty"` + RecoveryFabricArmId *string `json:"recoveryFabricArmId,omitempty"` + RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"` + RecoveryNetworkFriendlyName *string `json:"recoveryNetworkFriendlyName,omitempty"` + RecoveryNetworkId *string `json:"recoveryNetworkId,omitempty"` + State *string `json:"state,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into NetworkMappingProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.PrimaryFabricFriendlyName = decoded.PrimaryFabricFriendlyName @@ -44,11 +52,12 @@ func (s *NetworkMappingProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["fabricSpecificSettings"]; ok { - impl, err := unmarshalNetworkMappingFabricSpecificSettingsImplementation(v) + impl, err := UnmarshalNetworkMappingFabricSpecificSettingsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'FabricSpecificSettings' for 'NetworkMappingProperties': %+v", err) } s.FabricSpecificSettings = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_updatenetworkmappinginputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_updatenetworkmappinginputproperties.go index 9f64360d09bb..341408fc5db0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_updatenetworkmappinginputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_updatenetworkmappinginputproperties.go @@ -17,10 +17,12 @@ type UpdateNetworkMappingInputProperties struct { var _ json.Unmarshaler = &UpdateNetworkMappingInputProperties{} func (s *UpdateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error { - type alias UpdateNetworkMappingInputProperties - var decoded alias + var decoded struct { + RecoveryFabricName *string `json:"recoveryFabricName,omitempty"` + RecoveryNetworkId *string `json:"recoveryNetworkId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into UpdateNetworkMappingInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.RecoveryFabricName = decoded.RecoveryFabricName @@ -32,11 +34,12 @@ func (s *UpdateNetworkMappingInputProperties) UnmarshalJSON(bytes []byte) error } if v, ok := temp["fabricSpecificDetails"]; ok { - impl, err := unmarshalFabricSpecificUpdateNetworkMappingInputImplementation(v) + impl, err := UnmarshalFabricSpecificUpdateNetworkMappingInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'FabricSpecificDetails' for 'UpdateNetworkMappingInputProperties': %+v", err) } s.FabricSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurecreatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurecreatenetworkmappinginput.go index e8a8a1a928a7..5de8410f7a0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurecreatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurecreatenetworkmappinginput.go @@ -13,6 +13,14 @@ var _ FabricSpecificCreateNetworkMappingInput = VMmToAzureCreateNetworkMappingIn type VMmToAzureCreateNetworkMappingInput struct { // Fields inherited from FabricSpecificCreateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s VMmToAzureCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl { + return BaseFabricSpecificCreateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToAzureCreateNetworkMappingInput{} @@ -26,9 +34,10 @@ func (s VMmToAzureCreateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToAzureCreateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "VmmToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurenetworkmappingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurenetworkmappingsettings.go index aa741d5d1444..5be8c4d6c596 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurenetworkmappingsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazurenetworkmappingsettings.go @@ -13,6 +13,14 @@ var _ NetworkMappingFabricSpecificSettings = VMmToAzureNetworkMappingSettings{} type VMmToAzureNetworkMappingSettings struct { // Fields inherited from NetworkMappingFabricSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s VMmToAzureNetworkMappingSettings) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl { + return BaseNetworkMappingFabricSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToAzureNetworkMappingSettings{} @@ -26,9 +34,10 @@ func (s VMmToAzureNetworkMappingSettings) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToAzureNetworkMappingSettings: %+v", err) } + decoded["instanceType"] = "VmmToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazureupdatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazureupdatenetworkmappinginput.go index b496ae4ae1fc..6ed764e3a787 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazureupdatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtoazureupdatenetworkmappinginput.go @@ -13,6 +13,14 @@ var _ FabricSpecificUpdateNetworkMappingInput = VMmToAzureUpdateNetworkMappingIn type VMmToAzureUpdateNetworkMappingInput struct { // Fields inherited from FabricSpecificUpdateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s VMmToAzureUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl { + return BaseFabricSpecificUpdateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToAzureUpdateNetworkMappingInput{} @@ -26,9 +34,10 @@ func (s VMmToAzureUpdateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToAzureUpdateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "VmmToAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmcreatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmcreatenetworkmappinginput.go index 62ecb90d0ffb..3b35c972313f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmcreatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmcreatenetworkmappinginput.go @@ -13,6 +13,14 @@ var _ FabricSpecificCreateNetworkMappingInput = VMmToVMmCreateNetworkMappingInpu type VMmToVMmCreateNetworkMappingInput struct { // Fields inherited from FabricSpecificCreateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s VMmToVMmCreateNetworkMappingInput) FabricSpecificCreateNetworkMappingInput() BaseFabricSpecificCreateNetworkMappingInputImpl { + return BaseFabricSpecificCreateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToVMmCreateNetworkMappingInput{} @@ -26,9 +34,10 @@ func (s VMmToVMmCreateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToVMmCreateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "VmmToVmm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmnetworkmappingsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmnetworkmappingsettings.go index b82ddcde87f2..51bb27e46876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmnetworkmappingsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmnetworkmappingsettings.go @@ -13,6 +13,14 @@ var _ NetworkMappingFabricSpecificSettings = VMmToVMmNetworkMappingSettings{} type VMmToVMmNetworkMappingSettings struct { // Fields inherited from NetworkMappingFabricSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s VMmToVMmNetworkMappingSettings) NetworkMappingFabricSpecificSettings() BaseNetworkMappingFabricSpecificSettingsImpl { + return BaseNetworkMappingFabricSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToVMmNetworkMappingSettings{} @@ -26,9 +34,10 @@ func (s VMmToVMmNetworkMappingSettings) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToVMmNetworkMappingSettings: %+v", err) } + decoded["instanceType"] = "VmmToVmm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmupdatenetworkmappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmupdatenetworkmappinginput.go index c26929ad37a0..11d58df40d95 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmupdatenetworkmappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/model_vmmtovmmupdatenetworkmappinginput.go @@ -13,6 +13,14 @@ var _ FabricSpecificUpdateNetworkMappingInput = VMmToVMmUpdateNetworkMappingInpu type VMmToVMmUpdateNetworkMappingInput struct { // Fields inherited from FabricSpecificUpdateNetworkMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s VMmToVMmUpdateNetworkMappingInput) FabricSpecificUpdateNetworkMappingInput() BaseFabricSpecificUpdateNetworkMappingInputImpl { + return BaseFabricSpecificUpdateNetworkMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMmToVMmUpdateNetworkMappingInput{} @@ -26,9 +34,10 @@ func (s VMmToVMmUpdateNetworkMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMmToVMmUpdateNetworkMappingInput: %+v", err) } + decoded["instanceType"] = "VmmToVmm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/version.go index 279f42a5bdc7..2942405c40fc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworkmappings/version.go @@ -1,12 +1,10 @@ package replicationnetworkmappings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationnetworkmappings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationnetworkmappings/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/README.md index 82c9138c2c90..3c90c1514305 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks` Documentation -The `replicationnetworks` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationnetworks` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationnetworks.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationNetworkValue") +id := replicationnetworks.NewReplicationNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "networkName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationnetworks.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationnetworks.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -57,7 +57,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationnetworks.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationnetworks.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") // alternatively `client.ListByReplicationFabrics(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationFabricsComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/client.go index f0116084b007..925990ef0d7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/client.go @@ -15,7 +15,7 @@ type ReplicationNetworksClient struct { } func NewReplicationNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationfabric.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationfabric.go index b49c19ece141..f2b991fe1ea2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationfabric.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationfabric.go @@ -44,7 +44,7 @@ func ParseReplicationFabricID(input string) (*ReplicationFabricId, error) { } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationFabricId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationnetwork.go index b215ef2f7f74..56d0fe3f65ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_replicationnetwork.go @@ -46,7 +46,7 @@ func ParseReplicationNetworkID(input string) (*ReplicationNetworkId, error) { } id := ReplicationNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationNetworkIDInsensitively(input string) (*ReplicationNetworkId } id := ReplicationNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationNetworks", "replicationNetworks", "replicationNetworks"), - resourceids.UserSpecifiedSegment("replicationNetworkName", "replicationNetworkValue"), + resourceids.UserSpecifiedSegment("replicationNetworkName", "networkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_vault.go index 2866404b5d0e..9819f106905a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_get.go index 3a6027b1efc6..0c5d3fefb651 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationNetworksClient) Get(ctx context.Context, id ReplicationNetwor var model Network result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/version.go index b806179e0790..181e24a17a11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationnetworks/version.go @@ -1,12 +1,10 @@ package replicationnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationnetworks/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/README.md index 9e880d8dd05f..0f41a3db1899 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies` Documentation -The `replicationpolicies` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationpolicies` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationPolicyValue") +id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName") payload := replicationpolicies.CreatePolicyInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationPolicyValue") +id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationPolicyValue") +id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationpolicies.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationpolicies.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationPolicyValue") +id := replicationpolicies.NewReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "policyName") payload := replicationpolicies.UpdatePolicyInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/client.go index 0933df54f518..0ebc718b0e0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/client.go @@ -15,7 +15,7 @@ type ReplicationPoliciesClient struct { } func NewReplicationPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_replicationpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_replicationpolicy.go index 6e0eba649bbc..bfa93e62ba4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_replicationpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_replicationpolicy.go @@ -44,7 +44,7 @@ func ParseReplicationPolicyID(input string) (*ReplicationPolicyId, error) { } id := ReplicationPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationPolicyIDInsensitively(input string) (*ReplicationPolicyId, } id := ReplicationPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationPolicies", "replicationPolicies", "replicationPolicies"), - resourceids.UserSpecifiedSegment("replicationPolicyName", "replicationPolicyValue"), + resourceids.UserSpecifiedSegment("replicationPolicyName", "policyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_vault.go index b5de92af41a2..31f525956e7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_get.go index 3520e8b43055..711498c7141a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationPoliciesClient) Get(ctx context.Context, id ReplicationPolicy var model Policy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2acrossclustermigrationpolicycreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2acrossclustermigrationpolicycreationinput.go index b45a259a55f3..fb391222f098 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2acrossclustermigrationpolicycreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2acrossclustermigrationpolicycreationinput.go @@ -13,6 +13,14 @@ var _ PolicyProviderSpecificInput = A2ACrossClusterMigrationPolicyCreationInput{ type A2ACrossClusterMigrationPolicyCreationInput struct { // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ACrossClusterMigrationPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ACrossClusterMigrationPolicyCreationInput{} @@ -26,9 +34,10 @@ func (s A2ACrossClusterMigrationPolicyCreationInput) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ACrossClusterMigrationPolicyCreationInput: %+v", err) } + decoded["instanceType"] = "A2ACrossClusterMigration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicycreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicycreationinput.go index cbaba9db768e..7e7b12aefc14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicycreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicycreationinput.go @@ -17,6 +17,14 @@ type A2APolicyCreationInput struct { RecoveryPointHistory *int64 `json:"recoveryPointHistory,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2APolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2APolicyCreationInput{} @@ -30,9 +38,10 @@ func (s A2APolicyCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2APolicyCreationInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicydetails.go index 3aa1c5f9fb73..de32bcd7ca67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_a2apolicydetails.go @@ -18,6 +18,14 @@ type A2APolicyDetails struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s A2APolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2APolicyDetails{} @@ -31,9 +39,10 @@ func (s A2APolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2APolicyDetails: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_createpolicyinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_createpolicyinputproperties.go index 6e5638e6871b..ed5af5dd2d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_createpolicyinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_createpolicyinputproperties.go @@ -22,11 +22,12 @@ func (s *CreatePolicyInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificInput"]; ok { - impl, err := unmarshalPolicyProviderSpecificInputImplementation(v) + impl, err := UnmarshalPolicyProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificInput' for 'CreatePolicyInputProperties': %+v", err) } s.ProviderSpecificInput = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicydetails.go index 775075b8d2ad..09456d1aa8fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicydetails.go @@ -19,6 +19,14 @@ type HyperVReplicaAzurePolicyDetails struct { ReplicationInterval *int64 `json:"replicationInterval,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzurePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzurePolicyDetails{} @@ -32,9 +40,10 @@ func (s HyperVReplicaAzurePolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzurePolicyDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicyinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicyinput.go index 46599f8373b2..e186a0c6ca4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicyinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicaazurepolicyinput.go @@ -18,6 +18,14 @@ type HyperVReplicaAzurePolicyInput struct { StorageAccounts *[]string `json:"storageAccounts,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzurePolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzurePolicyInput{} @@ -31,9 +39,10 @@ func (s HyperVReplicaAzurePolicyInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzurePolicyInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabasepolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabasepolicydetails.go index 12bfc95a1412..54e54a624bc0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabasepolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabasepolicydetails.go @@ -23,6 +23,14 @@ type HyperVReplicaBasePolicyDetails struct { ReplicationPort *int64 `json:"replicationPort,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaBasePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaBasePolicyDetails{} @@ -36,9 +44,10 @@ func (s HyperVReplicaBasePolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaBasePolicyDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplicaBasePolicyDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicydetails.go index ea551ee41d64..2fcb7bb94220 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicydetails.go @@ -24,6 +24,14 @@ type HyperVReplicaBluePolicyDetails struct { ReplicationPort *int64 `json:"replicationPort,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaBluePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaBluePolicyDetails{} @@ -37,9 +45,10 @@ func (s HyperVReplicaBluePolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaBluePolicyDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012R2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicyinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicyinput.go index be1418668725..408e43857b3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicyinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicabluepolicyinput.go @@ -13,17 +13,15 @@ var _ PolicyProviderSpecificInput = HyperVReplicaBluePolicyInput{} type HyperVReplicaBluePolicyInput struct { ReplicationFrequencyInSeconds *int64 `json:"replicationFrequencyInSeconds,omitempty"` - // Fields inherited from HyperVReplicaPolicyInput - AllowedAuthenticationType *int64 `json:"allowedAuthenticationType,omitempty"` - ApplicationConsistentSnapshotFrequencyInHours *int64 `json:"applicationConsistentSnapshotFrequencyInHours,omitempty"` - Compression *string `json:"compression,omitempty"` - InitialReplicationMethod *string `json:"initialReplicationMethod,omitempty"` - OfflineReplicationExportPath *string `json:"offlineReplicationExportPath,omitempty"` - OfflineReplicationImportPath *string `json:"offlineReplicationImportPath,omitempty"` - OnlineReplicationStartTime *string `json:"onlineReplicationStartTime,omitempty"` - RecoveryPoints *int64 `json:"recoveryPoints,omitempty"` - ReplicaDeletion *string `json:"replicaDeletion,omitempty"` - ReplicationPort *int64 `json:"replicationPort,omitempty"` + // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaBluePolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaBluePolicyInput{} @@ -37,9 +35,10 @@ func (s HyperVReplicaBluePolicyInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaBluePolicyInput: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012R2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicydetails.go index af3773107b1e..13f18ff2e191 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicydetails.go @@ -23,6 +23,14 @@ type HyperVReplicaPolicyDetails struct { ReplicationPort *int64 `json:"replicationPort,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaPolicyDetails{} @@ -36,9 +44,10 @@ func (s HyperVReplicaPolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaPolicyDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicyinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicyinput.go index b8882e26d4e7..100c9e1d9f4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicyinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_hypervreplicapolicyinput.go @@ -23,6 +23,14 @@ type HyperVReplicaPolicyInput struct { ReplicationPort *int64 `json:"replicationPort,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaPolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaPolicyInput{} @@ -36,9 +44,10 @@ func (s HyperVReplicaPolicyInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaPolicyInput: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policydetails.go index 561d2d868c5b..e8c78d43db9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policydetails.go @@ -18,6 +18,14 @@ type InMageAzureV2PolicyDetails struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2PolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2PolicyDetails{} @@ -31,9 +39,10 @@ func (s InMageAzureV2PolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2PolicyDetails: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policyinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policyinput.go index 7e42a20f0e17..1d72287fec4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policyinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmageazurev2policyinput.go @@ -18,6 +18,14 @@ type InMageAzureV2PolicyInput struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2PolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2PolicyInput{} @@ -31,9 +39,10 @@ func (s InMageAzureV2PolicyInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2PolicyInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagebasepolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagebasepolicydetails.go index a9aa31dee554..cea2dc818ca0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagebasepolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagebasepolicydetails.go @@ -17,6 +17,14 @@ type InMageBasePolicyDetails struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageBasePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageBasePolicyDetails{} @@ -30,9 +38,10 @@ func (s InMageBasePolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageBasePolicyDetails: %+v", err) } + decoded["instanceType"] = "InMageBasePolicyDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicydetails.go index e5eb997e2da0..785e7acebcf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicydetails.go @@ -17,6 +17,14 @@ type InMagePolicyDetails struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMagePolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMagePolicyDetails{} @@ -30,9 +38,10 @@ func (s InMagePolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMagePolicyDetails: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicyinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicyinput.go index 6d9e7b1e90a5..8e2b3d62d366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicyinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagepolicyinput.go @@ -17,6 +17,14 @@ type InMagePolicyInput struct { RecoveryPointThresholdInMinutes *int64 `json:"recoveryPointThresholdInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMagePolicyInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMagePolicyInput{} @@ -30,9 +38,10 @@ func (s InMagePolicyInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMagePolicyInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicycreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicycreationinput.go index 2939b3a50965..7f9d9eff5964 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicycreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicycreationinput.go @@ -15,6 +15,14 @@ type InMageRcmFailbackPolicyCreationInput struct { CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFailbackPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFailbackPolicyCreationInput{} @@ -28,9 +36,10 @@ func (s InMageRcmFailbackPolicyCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFailbackPolicyCreationInput: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicydetails.go index 610cd07baff2..98177d4e134b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmfailbackpolicydetails.go @@ -15,6 +15,14 @@ type InMageRcmFailbackPolicyDetails struct { CrashConsistentFrequencyInMinutes *int64 `json:"crashConsistentFrequencyInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFailbackPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFailbackPolicyDetails{} @@ -28,9 +36,10 @@ func (s InMageRcmFailbackPolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFailbackPolicyDetails: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicycreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicycreationinput.go index 1960d5ce36ed..61e6e84a628c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicycreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicycreationinput.go @@ -17,6 +17,14 @@ type InMageRcmPolicyCreationInput struct { RecoveryPointHistoryInMinutes *int64 `json:"recoveryPointHistoryInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmPolicyCreationInput{} @@ -30,9 +38,10 @@ func (s InMageRcmPolicyCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmPolicyCreationInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicydetails.go index 6d682e3127c0..589bab178076 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_inmagercmpolicydetails.go @@ -17,6 +17,14 @@ type InMageRcmPolicyDetails struct { RecoveryPointHistoryInMinutes *int64 `json:"recoveryPointHistoryInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmPolicyDetails{} @@ -30,9 +38,10 @@ func (s InMageRcmPolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmPolicyDetails: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproperties.go index 3f6d1fd8bfae..de051df248be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproperties.go @@ -16,10 +16,11 @@ type PolicyProperties struct { var _ json.Unmarshaler = &PolicyProperties{} func (s *PolicyProperties) UnmarshalJSON(bytes []byte) error { - type alias PolicyProperties - var decoded alias + var decoded struct { + FriendlyName *string `json:"friendlyName,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into PolicyProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FriendlyName = decoded.FriendlyName @@ -30,11 +31,12 @@ func (s *PolicyProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalPolicyProviderSpecificDetailsImplementation(v) + impl, err := UnmarshalPolicyProviderSpecificDetailsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'PolicyProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificdetails.go index ce5f183fe9ea..65fecd406b4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificdetails.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PolicyProviderSpecificDetails interface { + PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl } -// RawPolicyProviderSpecificDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ PolicyProviderSpecificDetails = BasePolicyProviderSpecificDetailsImpl{} + +type BasePolicyProviderSpecificDetailsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BasePolicyProviderSpecificDetailsImpl) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return s +} + +var _ PolicyProviderSpecificDetails = RawPolicyProviderSpecificDetailsImpl{} + +// RawPolicyProviderSpecificDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawPolicyProviderSpecificDetailsImpl struct { - Type string - Values map[string]interface{} + policyProviderSpecificDetails BasePolicyProviderSpecificDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawPolicyProviderSpecificDetailsImpl) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return s.policyProviderSpecificDetails } -func unmarshalPolicyProviderSpecificDetailsImplementation(input []byte) (PolicyProviderSpecificDetails, error) { +func UnmarshalPolicyProviderSpecificDetailsImplementation(input []byte) (PolicyProviderSpecificDetails, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalPolicyProviderSpecificDetailsImplementation(input []byte) (PolicyP return nil, fmt.Errorf("unmarshaling PolicyProviderSpecificDetails into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -124,10 +141,15 @@ func unmarshalPolicyProviderSpecificDetailsImplementation(input []byte) (PolicyP return out, nil } - out := RawPolicyProviderSpecificDetailsImpl{ - Type: value, - Values: temp, + var parent BasePolicyProviderSpecificDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BasePolicyProviderSpecificDetailsImpl: %+v", err) } - return out, nil + + return RawPolicyProviderSpecificDetailsImpl{ + policyProviderSpecificDetails: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificinput.go index 51288b6fcb24..b705d0e88c88 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_policyproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PolicyProviderSpecificInput interface { + PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl } -// RawPolicyProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ PolicyProviderSpecificInput = BasePolicyProviderSpecificInputImpl{} + +type BasePolicyProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BasePolicyProviderSpecificInputImpl) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return s +} + +var _ PolicyProviderSpecificInput = RawPolicyProviderSpecificInputImpl{} + +// RawPolicyProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawPolicyProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + policyProviderSpecificInput BasePolicyProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawPolicyProviderSpecificInputImpl) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return s.policyProviderSpecificInput } -func unmarshalPolicyProviderSpecificInputImplementation(input []byte) (PolicyProviderSpecificInput, error) { +func UnmarshalPolicyProviderSpecificInputImplementation(input []byte) (PolicyProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalPolicyProviderSpecificInputImplementation(input []byte) (PolicyPro return nil, fmt.Errorf("unmarshaling PolicyProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2ACrossClusterMigration") { @@ -108,10 +125,15 @@ func unmarshalPolicyProviderSpecificInputImplementation(input []byte) (PolicyPro return out, nil } - out := RawPolicyProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BasePolicyProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BasePolicyProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawPolicyProviderSpecificInputImpl{ + policyProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_updatepolicyinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_updatepolicyinputproperties.go index 59351084d987..ba3876b33192 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_updatepolicyinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_updatepolicyinputproperties.go @@ -22,11 +22,12 @@ func (s *UpdatePolicyInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["replicationProviderSettings"]; ok { - impl, err := unmarshalPolicyProviderSpecificInputImplementation(v) + impl, err := UnmarshalPolicyProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ReplicationProviderSettings' for 'UpdatePolicyInputProperties': %+v", err) } s.ReplicationProviderSettings = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicycreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicycreationinput.go index a2701bda163b..eaac5dcf2e3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicycreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicycreationinput.go @@ -16,6 +16,14 @@ type VMwareCbtPolicyCreationInput struct { RecoveryPointHistoryInMinutes *int64 `json:"recoveryPointHistoryInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s VMwareCbtPolicyCreationInput) PolicyProviderSpecificInput() BasePolicyProviderSpecificInputImpl { + return BasePolicyProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareCbtPolicyCreationInput{} @@ -29,9 +37,10 @@ func (s VMwareCbtPolicyCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareCbtPolicyCreationInput: %+v", err) } + decoded["instanceType"] = "VMwareCbt" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicydetails.go index 0541a8187bb7..d1398f83ff11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/model_vmwarecbtpolicydetails.go @@ -16,6 +16,14 @@ type VMwareCbtPolicyDetails struct { RecoveryPointHistoryInMinutes *int64 `json:"recoveryPointHistoryInMinutes,omitempty"` // Fields inherited from PolicyProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s VMwareCbtPolicyDetails) PolicyProviderSpecificDetails() BasePolicyProviderSpecificDetailsImpl { + return BasePolicyProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareCbtPolicyDetails{} @@ -29,9 +37,10 @@ func (s VMwareCbtPolicyDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareCbtPolicyDetails: %+v", err) } + decoded["instanceType"] = "VMwareCbt" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/version.go index 7e33d3cfddb3..b777104be6d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationpolicies/version.go @@ -1,12 +1,10 @@ package replicationpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationpolicies/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/README.md index 62bce3fc75c0..d46dc53e5cbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems` Documentation -The `replicationprotecteditems` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationprotecteditems` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.AddDisksInput{ // ... @@ -41,7 +41,7 @@ if err := client.AddDisksThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.ApplyRecoveryPointInput{ // ... @@ -58,7 +58,7 @@ if err := client.ApplyRecoveryPointThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.EnableProtectionInput{ // ... @@ -75,7 +75,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.DisableProtectionInput{ // ... @@ -92,7 +92,7 @@ if err := client.DeleteThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") if err := client.FailoverCancelThenPoll(ctx, id); err != nil { // handle the error @@ -104,7 +104,7 @@ if err := client.FailoverCancelThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") if err := client.FailoverCommitThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +116,7 @@ if err := client.FailoverCommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") read, err := client.Get(ctx, id) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationprotecteditems.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id, replicationprotecteditems.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, replicationprotecteditems.DefaultListOperationOptions()) @@ -149,7 +149,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotecteditems.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") // alternatively `client.ListByReplicationProtectionContainers(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationProtectionContainersComplete(ctx, id) @@ -166,7 +166,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.PlannedFailoverInput{ // ... @@ -183,7 +183,7 @@ if err := client.PlannedFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") if err := client.PurgeThenPoll(ctx, id); err != nil { // handle the error @@ -195,7 +195,7 @@ if err := client.PurgeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.RemoveDisksInput{ // ... @@ -212,7 +212,7 @@ if err := client.RemoveDisksThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") if err := client.RepairReplicationThenPoll(ctx, id); err != nil { // handle the error @@ -224,7 +224,7 @@ if err := client.RepairReplicationThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.ReverseReplicationInput{ // ... @@ -241,7 +241,7 @@ if err := client.ReprotectThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.ResolveHealthInput{ // ... @@ -258,7 +258,7 @@ if err := client.ResolveHealthErrorsThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.SwitchProviderInput{ // ... @@ -275,7 +275,7 @@ if err := client.SwitchProviderThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.TestFailoverInput{ // ... @@ -292,7 +292,7 @@ if err := client.TestFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.TestFailoverCleanupInput{ // ... @@ -309,7 +309,7 @@ if err := client.TestFailoverCleanupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.UnplannedFailoverInput{ // ... @@ -326,7 +326,7 @@ if err := client.UnplannedFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.UpdateReplicationProtectedItemInput{ // ... @@ -343,7 +343,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.UpdateApplianceForReplicationProtectedItemInput{ // ... @@ -360,7 +360,7 @@ if err := client.UpdateApplianceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectedItemValue") +id := replicationprotecteditems.NewReplicationProtectedItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "replicatedProtectedItemName") payload := replicationprotecteditems.UpdateMobilityServiceRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/client.go index 83b59be406cb..7b83bc196f58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/client.go @@ -15,7 +15,7 @@ type ReplicationProtectedItemsClient struct { } func NewReplicationProtectedItemsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationProtectedItemsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationprotecteditems", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationprotecteditems", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationProtectedItemsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotecteditem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotecteditem.go index 9426c4a3459b..619562136d7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotecteditem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotecteditem.go @@ -48,7 +48,7 @@ func ParseReplicationProtectedItemID(input string) (*ReplicationProtectedItemId, } id := ReplicationProtectedItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseReplicationProtectedItemIDInsensitively(input string) (*ReplicationPro } id := ReplicationProtectedItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ReplicationProtectedItemId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationProtectionContainers", "replicationProtectionContainers", "replicationProtectionContainers"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "replicationProtectionContainerValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "protectionContainerName"), resourceids.StaticSegment("staticReplicationProtectedItems", "replicationProtectedItems", "replicationProtectedItems"), - resourceids.UserSpecifiedSegment("replicationProtectedItemName", "replicationProtectedItemValue"), + resourceids.UserSpecifiedSegment("replicationProtectedItemName", "replicatedProtectedItemName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotectioncontainer.go index fc5b34a63db3..3b60acb0471e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_replicationprotectioncontainer.go @@ -46,7 +46,7 @@ func ParseReplicationProtectionContainerID(input string) (*ReplicationProtection } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationProtectionContainerIDInsensitively(input string) (*Replicat } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationProtectionContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationProtectionContainers", "replicationProtectionContainers", "replicationProtectionContainers"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "replicationProtectionContainerValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "protectionContainerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_vault.go index 12b72f7f4343..4c54630eaad5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_get.go index 5744bdf41bfa..5d46e4204f4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationProtectedItemsClient) Get(ctx context.Context, id Replication var model ReplicationProtectedItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go index dec0477f6add..5fe3f745f8fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aadddisksinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aadddisksinput.go index 814464cdc245..fee67d43e652 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aadddisksinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aadddisksinput.go @@ -15,6 +15,14 @@ type A2AAddDisksInput struct { VMManagedDisks *[]A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"` // Fields inherited from AddDisksProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AAddDisksInput) AddDisksProviderSpecificInput() BaseAddDisksProviderSpecificInputImpl { + return BaseAddDisksProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AAddDisksInput{} @@ -28,9 +36,10 @@ func (s A2AAddDisksInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AAddDisksInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aapplyrecoverypointinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aapplyrecoverypointinput.go index c2159e729a39..b119a4a2cb13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aapplyrecoverypointinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aapplyrecoverypointinput.go @@ -13,6 +13,14 @@ var _ ApplyRecoveryPointProviderSpecificInput = A2AApplyRecoveryPointInput{} type A2AApplyRecoveryPointInput struct { // Fields inherited from ApplyRecoveryPointProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AApplyRecoveryPointInput) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return BaseApplyRecoveryPointProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AApplyRecoveryPointInput{} @@ -26,9 +34,10 @@ func (s A2AApplyRecoveryPointInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AApplyRecoveryPointInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationapplyrecoverypointinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationapplyrecoverypointinput.go index 16ecd46bef5a..208b0ec18ba4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationapplyrecoverypointinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationapplyrecoverypointinput.go @@ -13,6 +13,14 @@ var _ ApplyRecoveryPointProviderSpecificInput = A2ACrossClusterMigrationApplyRec type A2ACrossClusterMigrationApplyRecoveryPointInput struct { // Fields inherited from ApplyRecoveryPointProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ACrossClusterMigrationApplyRecoveryPointInput) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return BaseApplyRecoveryPointProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ACrossClusterMigrationApplyRecoveryPointInput{} @@ -26,9 +34,10 @@ func (s A2ACrossClusterMigrationApplyRecoveryPointInput) MarshalJSON() ([]byte, } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ACrossClusterMigrationApplyRecoveryPointInput: %+v", err) } + decoded["instanceType"] = "A2ACrossClusterMigration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationenableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationenableprotectioninput.go index c03870f7d5de..ee057b3e0c5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationenableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationenableprotectioninput.go @@ -15,6 +15,14 @@ type A2ACrossClusterMigrationEnableProtectionInput struct { RecoveryContainerId *string `json:"recoveryContainerId,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ACrossClusterMigrationEnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ACrossClusterMigrationEnableProtectionInput{} @@ -28,9 +36,10 @@ func (s A2ACrossClusterMigrationEnableProtectionInput) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ACrossClusterMigrationEnableProtectionInput: %+v", err) } + decoded["instanceType"] = "A2ACrossClusterMigration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationreplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationreplicationdetails.go index 7af3fda8ac7b..afc9553bcd0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationreplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2acrossclustermigrationreplicationdetails.go @@ -19,6 +19,14 @@ type A2ACrossClusterMigrationReplicationDetails struct { VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s A2ACrossClusterMigrationReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ACrossClusterMigrationReplicationDetails{} @@ -32,9 +40,10 @@ func (s A2ACrossClusterMigrationReplicationDetails) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ACrossClusterMigrationReplicationDetails: %+v", err) } + decoded["instanceType"] = "A2ACrossClusterMigration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aenableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aenableprotectioninput.go index 6d6c0bf630fd..90a041ca1b2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aenableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aenableprotectioninput.go @@ -35,6 +35,14 @@ type A2AEnableProtectionInput struct { VMManagedDisks *[]A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AEnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AEnableProtectionInput{} @@ -48,9 +56,10 @@ func (s A2AEnableProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AEnableProtectionInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aremovedisksinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aremovedisksinput.go index 32f05ed2728c..b5f9961fdfc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aremovedisksinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aremovedisksinput.go @@ -15,6 +15,14 @@ type A2ARemoveDisksInput struct { VMManagedDisksIds *[]string `json:"vmManagedDisksIds,omitempty"` // Fields inherited from RemoveDisksProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ARemoveDisksInput) RemoveDisksProviderSpecificInput() BaseRemoveDisksProviderSpecificInputImpl { + return BaseRemoveDisksProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ARemoveDisksInput{} @@ -28,9 +36,10 @@ func (s A2ARemoveDisksInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ARemoveDisksInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areplicationdetails.go index 07d37bb3696f..11126570f850 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areplicationdetails.go @@ -71,6 +71,14 @@ type A2AReplicationDetails struct { VMSyncedConfigDetails *AzureToAzureVMSyncedConfigDetails `json:"vmSyncedConfigDetails,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s A2AReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AReplicationDetails{} @@ -84,9 +92,10 @@ func (s A2AReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AReplicationDetails: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areprotectinput.go index 2695d902be3f..a4d370066515 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2areprotectinput.go @@ -19,6 +19,14 @@ type A2AReprotectInput struct { VMDisks *[]A2AVMDiskInputDetails `json:"vmDisks,omitempty"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AReprotectInput{} @@ -32,9 +40,10 @@ func (s A2AReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AReprotectInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2atestfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2atestfailoverinput.go index 000fecac67ed..40bfb26f8a7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2atestfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2atestfailoverinput.go @@ -15,6 +15,14 @@ type A2ATestFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from TestFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ATestFailoverInput) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return BaseTestFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ATestFailoverInput{} @@ -28,9 +36,10 @@ func (s A2ATestFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ATestFailoverInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aunplannedfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aunplannedfailoverinput.go index 8c21ffe9c8e0..2248e7c8354d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aunplannedfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aunplannedfailoverinput.go @@ -15,6 +15,14 @@ type A2AUnplannedFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from UnplannedFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AUnplannedFailoverInput) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return BaseUnplannedFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AUnplannedFailoverInput{} @@ -28,9 +36,10 @@ func (s A2AUnplannedFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AUnplannedFailoverInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aupdatereplicationprotectediteminput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aupdatereplicationprotectediteminput.go index f03e4a9a89ac..aae1b7f832ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aupdatereplicationprotectediteminput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_a2aupdatereplicationprotectediteminput.go @@ -22,6 +22,14 @@ type A2AUpdateReplicationProtectedItemInput struct { TfoAzureVMName *string `json:"tfoAzureVMName,omitempty"` // Fields inherited from UpdateReplicationProtectedItemProviderInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AUpdateReplicationProtectedItemInput) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return BaseUpdateReplicationProtectedItemProviderInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AUpdateReplicationProtectedItemInput{} @@ -35,9 +43,10 @@ func (s A2AUpdateReplicationProtectedItemInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AUpdateReplicationProtectedItemInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksinputproperties.go index 2613527d5d42..b1f6c4bf18d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksinputproperties.go @@ -22,11 +22,12 @@ func (s *AddDisksInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalAddDisksProviderSpecificInputImplementation(v) + impl, err := UnmarshalAddDisksProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'AddDisksInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksproviderspecificinput.go index 639d67609c51..c9d2aacc5fc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_adddisksproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AddDisksProviderSpecificInput interface { + AddDisksProviderSpecificInput() BaseAddDisksProviderSpecificInputImpl } -// RawAddDisksProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AddDisksProviderSpecificInput = BaseAddDisksProviderSpecificInputImpl{} + +type BaseAddDisksProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseAddDisksProviderSpecificInputImpl) AddDisksProviderSpecificInput() BaseAddDisksProviderSpecificInputImpl { + return s +} + +var _ AddDisksProviderSpecificInput = RawAddDisksProviderSpecificInputImpl{} + +// RawAddDisksProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAddDisksProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + addDisksProviderSpecificInput BaseAddDisksProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawAddDisksProviderSpecificInputImpl) AddDisksProviderSpecificInput() BaseAddDisksProviderSpecificInputImpl { + return s.addDisksProviderSpecificInput } -func unmarshalAddDisksProviderSpecificInputImplementation(input []byte) (AddDisksProviderSpecificInput, error) { +func UnmarshalAddDisksProviderSpecificInputImplementation(input []byte) (AddDisksProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAddDisksProviderSpecificInputImplementation(input []byte) (AddDisk return nil, fmt.Errorf("unmarshaling AddDisksProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -52,10 +69,15 @@ func unmarshalAddDisksProviderSpecificInputImplementation(input []byte) (AddDisk return out, nil } - out := RawAddDisksProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseAddDisksProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAddDisksProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawAddDisksProviderSpecificInputImpl{ + addDisksProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointinputproperties.go index debfef14272a..dddab909551c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointinputproperties.go @@ -16,10 +16,11 @@ type ApplyRecoveryPointInputProperties struct { var _ json.Unmarshaler = &ApplyRecoveryPointInputProperties{} func (s *ApplyRecoveryPointInputProperties) UnmarshalJSON(bytes []byte) error { - type alias ApplyRecoveryPointInputProperties - var decoded alias + var decoded struct { + RecoveryPointId *string `json:"recoveryPointId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ApplyRecoveryPointInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.RecoveryPointId = decoded.RecoveryPointId @@ -30,11 +31,12 @@ func (s *ApplyRecoveryPointInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalApplyRecoveryPointProviderSpecificInputImplementation(v) + impl, err := UnmarshalApplyRecoveryPointProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'ApplyRecoveryPointInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointproviderspecificinput.go index 59c1321593cd..cc3ce3c881ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_applyrecoverypointproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ApplyRecoveryPointProviderSpecificInput interface { + ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl } -// RawApplyRecoveryPointProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ApplyRecoveryPointProviderSpecificInput = BaseApplyRecoveryPointProviderSpecificInputImpl{} + +type BaseApplyRecoveryPointProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseApplyRecoveryPointProviderSpecificInputImpl) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return s +} + +var _ ApplyRecoveryPointProviderSpecificInput = RawApplyRecoveryPointProviderSpecificInputImpl{} + +// RawApplyRecoveryPointProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawApplyRecoveryPointProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + applyRecoveryPointProviderSpecificInput BaseApplyRecoveryPointProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawApplyRecoveryPointProviderSpecificInputImpl) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return s.applyRecoveryPointProviderSpecificInput } -func unmarshalApplyRecoveryPointProviderSpecificInputImplementation(input []byte) (ApplyRecoveryPointProviderSpecificInput, error) { +func UnmarshalApplyRecoveryPointProviderSpecificInputImplementation(input []byte) (ApplyRecoveryPointProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalApplyRecoveryPointProviderSpecificInputImplementation(input []byte return nil, fmt.Errorf("unmarshaling ApplyRecoveryPointProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -76,10 +93,15 @@ func unmarshalApplyRecoveryPointProviderSpecificInputImplementation(input []byte return out, nil } - out := RawApplyRecoveryPointProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseApplyRecoveryPointProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseApplyRecoveryPointProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawApplyRecoveryPointProviderSpecificInputImpl{ + applyRecoveryPointProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectioninputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectioninputproperties.go index bc2bea03f8bd..d451a95c96c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectioninputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectioninputproperties.go @@ -16,10 +16,11 @@ type DisableProtectionInputProperties struct { var _ json.Unmarshaler = &DisableProtectionInputProperties{} func (s *DisableProtectionInputProperties) UnmarshalJSON(bytes []byte) error { - type alias DisableProtectionInputProperties - var decoded alias + var decoded struct { + DisableProtectionReason *DisableProtectionReason `json:"disableProtectionReason,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DisableProtectionInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.DisableProtectionReason = decoded.DisableProtectionReason @@ -30,11 +31,12 @@ func (s *DisableProtectionInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["replicationProviderInput"]; ok { - impl, err := unmarshalDisableProtectionProviderSpecificInputImplementation(v) + impl, err := UnmarshalDisableProtectionProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ReplicationProviderInput' for 'DisableProtectionInputProperties': %+v", err) } s.ReplicationProviderInput = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectionproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectionproviderspecificinput.go index 72ae183f48d1..ce187d71b830 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectionproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_disableprotectionproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DisableProtectionProviderSpecificInput interface { + DisableProtectionProviderSpecificInput() BaseDisableProtectionProviderSpecificInputImpl } -// RawDisableProtectionProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DisableProtectionProviderSpecificInput = BaseDisableProtectionProviderSpecificInputImpl{} + +type BaseDisableProtectionProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseDisableProtectionProviderSpecificInputImpl) DisableProtectionProviderSpecificInput() BaseDisableProtectionProviderSpecificInputImpl { + return s +} + +var _ DisableProtectionProviderSpecificInput = RawDisableProtectionProviderSpecificInputImpl{} + +// RawDisableProtectionProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDisableProtectionProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + disableProtectionProviderSpecificInput BaseDisableProtectionProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawDisableProtectionProviderSpecificInputImpl) DisableProtectionProviderSpecificInput() BaseDisableProtectionProviderSpecificInputImpl { + return s.disableProtectionProviderSpecificInput } -func unmarshalDisableProtectionProviderSpecificInputImplementation(input []byte) (DisableProtectionProviderSpecificInput, error) { +func UnmarshalDisableProtectionProviderSpecificInputImplementation(input []byte) (DisableProtectionProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalDisableProtectionProviderSpecificInputImplementation(input []byte) return nil, fmt.Errorf("unmarshaling DisableProtectionProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "InMage") { @@ -44,10 +61,15 @@ func unmarshalDisableProtectionProviderSpecificInputImplementation(input []byte) return out, nil } - out := RawDisableProtectionProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseDisableProtectionProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDisableProtectionProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawDisableProtectionProviderSpecificInputImpl{ + disableProtectionProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectioninputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectioninputproperties.go index dfbab8a65772..7993d8aa7cf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectioninputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectioninputproperties.go @@ -17,10 +17,12 @@ type EnableProtectionInputProperties struct { var _ json.Unmarshaler = &EnableProtectionInputProperties{} func (s *EnableProtectionInputProperties) UnmarshalJSON(bytes []byte) error { - type alias EnableProtectionInputProperties - var decoded alias + var decoded struct { + PolicyId *string `json:"policyId,omitempty"` + ProtectableItemId *string `json:"protectableItemId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into EnableProtectionInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.PolicyId = decoded.PolicyId @@ -32,11 +34,12 @@ func (s *EnableProtectionInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalEnableProtectionProviderSpecificInputImplementation(v) + impl, err := UnmarshalEnableProtectionProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'EnableProtectionInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectionproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectionproviderspecificinput.go index c23af95ecaa8..976ea1ce44f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectionproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_enableprotectionproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EnableProtectionProviderSpecificInput interface { + EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl } -// RawEnableProtectionProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EnableProtectionProviderSpecificInput = BaseEnableProtectionProviderSpecificInputImpl{} + +type BaseEnableProtectionProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseEnableProtectionProviderSpecificInputImpl) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return s +} + +var _ EnableProtectionProviderSpecificInput = RawEnableProtectionProviderSpecificInputImpl{} + +// RawEnableProtectionProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEnableProtectionProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + enableProtectionProviderSpecificInput BaseEnableProtectionProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawEnableProtectionProviderSpecificInputImpl) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return s.enableProtectionProviderSpecificInput } -func unmarshalEnableProtectionProviderSpecificInputImplementation(input []byte) (EnableProtectionProviderSpecificInput, error) { +func UnmarshalEnableProtectionProviderSpecificInputImplementation(input []byte) (EnableProtectionProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalEnableProtectionProviderSpecificInputImplementation(input []byte) return nil, fmt.Errorf("unmarshaling EnableProtectionProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2ACrossClusterMigration") { @@ -84,10 +101,15 @@ func unmarshalEnableProtectionProviderSpecificInputImplementation(input []byte) return out, nil } - out := RawEnableProtectionProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseEnableProtectionProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEnableProtectionProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawEnableProtectionProviderSpecificInputImpl{ + enableProtectionProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureapplyrecoverypointinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureapplyrecoverypointinput.go index 630a66a8c5f6..12d33abedde7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureapplyrecoverypointinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureapplyrecoverypointinput.go @@ -15,6 +15,14 @@ type HyperVReplicaAzureApplyRecoveryPointInput struct { SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"` // Fields inherited from ApplyRecoveryPointProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureApplyRecoveryPointInput) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return BaseApplyRecoveryPointProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureApplyRecoveryPointInput{} @@ -28,9 +36,10 @@ func (s HyperVReplicaAzureApplyRecoveryPointInput) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureApplyRecoveryPointInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureenableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureenableprotectioninput.go index 24d71c7008c4..2046aa8c21e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureenableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureenableprotectioninput.go @@ -43,6 +43,14 @@ type HyperVReplicaAzureEnableProtectionInput struct { VirtualMachineName *string `json:"vmName,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureEnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureEnableProtectionInput{} @@ -56,9 +64,10 @@ func (s HyperVReplicaAzureEnableProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureEnableProtectionInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurefailbackproviderinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurefailbackproviderinput.go index d188fac0658a..94d265f86a2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurefailbackproviderinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurefailbackproviderinput.go @@ -16,6 +16,14 @@ type HyperVReplicaAzureFailbackProviderInput struct { RecoveryVMCreationOption *string `json:"recoveryVmCreationOption,omitempty"` // Fields inherited from PlannedFailoverProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureFailbackProviderInput) PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl { + return BasePlannedFailoverProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureFailbackProviderInput{} @@ -29,9 +37,10 @@ func (s HyperVReplicaAzureFailbackProviderInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureFailbackProviderInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzureFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureplannedfailoverproviderinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureplannedfailoverproviderinput.go index 2ae80dd5540e..839fa291aea1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureplannedfailoverproviderinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureplannedfailoverproviderinput.go @@ -17,6 +17,14 @@ type HyperVReplicaAzurePlannedFailoverProviderInput struct { SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"` // Fields inherited from PlannedFailoverProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzurePlannedFailoverProviderInput) PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl { + return BasePlannedFailoverProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzurePlannedFailoverProviderInput{} @@ -30,9 +38,10 @@ func (s HyperVReplicaAzurePlannedFailoverProviderInput) MarshalJSON() ([]byte, e } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzurePlannedFailoverProviderInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereplicationdetails.go index 059d67099971..1514aea95b4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereplicationdetails.go @@ -48,6 +48,14 @@ type HyperVReplicaAzureReplicationDetails struct { VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureReplicationDetails{} @@ -61,9 +69,10 @@ func (s HyperVReplicaAzureReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureReplicationDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereprotectinput.go index e611c351d80e..9627e00f8255 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazurereprotectinput.go @@ -19,6 +19,14 @@ type HyperVReplicaAzureReprotectInput struct { VirtualMachineName *string `json:"vmName,omitempty"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureReprotectInput{} @@ -32,9 +40,10 @@ func (s HyperVReplicaAzureReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureReprotectInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazuretestfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazuretestfailoverinput.go index c19155908d99..155efe538d36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazuretestfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazuretestfailoverinput.go @@ -17,6 +17,14 @@ type HyperVReplicaAzureTestFailoverInput struct { SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"` // Fields inherited from TestFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureTestFailoverInput) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return BaseTestFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureTestFailoverInput{} @@ -30,9 +38,10 @@ func (s HyperVReplicaAzureTestFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureTestFailoverInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureunplannedfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureunplannedfailoverinput.go index f02c6da0c29b..b0a3d75f4556 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureunplannedfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureunplannedfailoverinput.go @@ -16,6 +16,14 @@ type HyperVReplicaAzureUnplannedFailoverInput struct { SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"` // Fields inherited from UnplannedFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureUnplannedFailoverInput) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return BaseUnplannedFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureUnplannedFailoverInput{} @@ -29,9 +37,10 @@ func (s HyperVReplicaAzureUnplannedFailoverInput) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureUnplannedFailoverInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureupdatereplicationprotectediteminput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureupdatereplicationprotectediteminput.go index 8daafb5940f1..f2deff329705 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureupdatereplicationprotectediteminput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicaazureupdatereplicationprotectediteminput.go @@ -24,6 +24,14 @@ type HyperVReplicaAzureUpdateReplicationProtectedItemInput struct { VMDisks *[]UpdateDiskInput `json:"vmDisks,omitempty"` // Fields inherited from UpdateReplicationProtectedItemProviderInput + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaAzureUpdateReplicationProtectedItemInput) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return BaseUpdateReplicationProtectedItemProviderInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaAzureUpdateReplicationProtectedItemInput{} @@ -37,9 +45,10 @@ func (s HyperVReplicaAzureUpdateReplicationProtectedItemInput) MarshalJSON() ([] } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaAzureUpdateReplicationProtectedItemInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabasereplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabasereplicationdetails.go index 3422c9c1b700..e00c68803e44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabasereplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabasereplicationdetails.go @@ -20,6 +20,14 @@ type HyperVReplicaBaseReplicationDetails struct { VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaBaseReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaBaseReplicationDetails{} @@ -33,9 +41,10 @@ func (s HyperVReplicaBaseReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaBaseReplicationDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplicaBaseReplicationDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabluereplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabluereplicationdetails.go index 8eefc928b644..186d59debce4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabluereplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicabluereplicationdetails.go @@ -20,6 +20,14 @@ type HyperVReplicaBlueReplicationDetails struct { VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaBlueReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaBlueReplicationDetails{} @@ -33,9 +41,10 @@ func (s HyperVReplicaBlueReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaBlueReplicationDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012R2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicareplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicareplicationdetails.go index 5fa220c4dca8..979c2bca8337 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicareplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_hypervreplicareplicationdetails.go @@ -20,6 +20,14 @@ type HyperVReplicaReplicationDetails struct { VMProtectionStateDescription *string `json:"vmProtectionStateDescription,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s HyperVReplicaReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = HyperVReplicaReplicationDetails{} @@ -33,9 +41,10 @@ func (s HyperVReplicaReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HyperVReplicaReplicationDetails: %+v", err) } + decoded["instanceType"] = "HyperVReplica2012" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2applyrecoverypointinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2applyrecoverypointinput.go index 5085ebf28bf1..38010ccfe0d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2applyrecoverypointinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2applyrecoverypointinput.go @@ -13,6 +13,14 @@ var _ ApplyRecoveryPointProviderSpecificInput = InMageAzureV2ApplyRecoveryPointI type InMageAzureV2ApplyRecoveryPointInput struct { // Fields inherited from ApplyRecoveryPointProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2ApplyRecoveryPointInput) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return BaseApplyRecoveryPointProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2ApplyRecoveryPointInput{} @@ -26,9 +34,10 @@ func (s InMageAzureV2ApplyRecoveryPointInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2ApplyRecoveryPointInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2enableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2enableprotectioninput.go index 9e64f09d6fb3..d965ba091030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2enableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2enableprotectioninput.go @@ -39,6 +39,14 @@ type InMageAzureV2EnableProtectionInput struct { TargetVMTags *map[string]string `json:"targetVmTags,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2EnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2EnableProtectionInput{} @@ -52,9 +60,10 @@ func (s InMageAzureV2EnableProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2EnableProtectionInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2replicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2replicationdetails.go index da843844162f..f1927aace2cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2replicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2replicationdetails.go @@ -83,6 +83,14 @@ type InMageAzureV2ReplicationDetails struct { VhdName *string `json:"vhdName,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2ReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2ReplicationDetails{} @@ -96,9 +104,10 @@ func (s InMageAzureV2ReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2ReplicationDetails: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2reprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2reprotectinput.go index 7acf1b58f0dc..81dd163dc48d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2reprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2reprotectinput.go @@ -20,6 +20,14 @@ type InMageAzureV2ReprotectInput struct { StorageAccountId *string `json:"storageAccountId,omitempty"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2ReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2ReprotectInput{} @@ -33,9 +41,10 @@ func (s InMageAzureV2ReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2ReprotectInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2switchproviderproviderinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2switchproviderproviderinput.go index 2a55685836d5..15ae80129b41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2switchproviderproviderinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2switchproviderproviderinput.go @@ -16,6 +16,14 @@ type InMageAzureV2SwitchProviderProviderInput struct { TargetVaultID string `json:"targetVaultID"` // Fields inherited from SwitchProviderProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2SwitchProviderProviderInput) SwitchProviderProviderSpecificInput() BaseSwitchProviderProviderSpecificInputImpl { + return BaseSwitchProviderProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2SwitchProviderProviderInput{} @@ -29,9 +37,10 @@ func (s InMageAzureV2SwitchProviderProviderInput) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2SwitchProviderProviderInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2testfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2testfailoverinput.go index ff6a69049d85..b44c5ce60d21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2testfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2testfailoverinput.go @@ -15,6 +15,14 @@ type InMageAzureV2TestFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from TestFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2TestFailoverInput) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return BaseTestFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2TestFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageAzureV2TestFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2TestFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2unplannedfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2unplannedfailoverinput.go index 1fb6ca5b1710..5f99b8cb9efc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2unplannedfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2unplannedfailoverinput.go @@ -15,6 +15,14 @@ type InMageAzureV2UnplannedFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from UnplannedFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2UnplannedFailoverInput) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return BaseUnplannedFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2UnplannedFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageAzureV2UnplannedFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2UnplannedFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2updatereplicationprotectediteminput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2updatereplicationprotectediteminput.go index 02552cd40da7..4a1f4a448d8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2updatereplicationprotectediteminput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageazurev2updatereplicationprotectediteminput.go @@ -23,6 +23,14 @@ type InMageAzureV2UpdateReplicationProtectedItemInput struct { VMDisks *[]UpdateDiskInput `json:"vmDisks,omitempty"` // Fields inherited from UpdateReplicationProtectedItemProviderInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageAzureV2UpdateReplicationProtectedItemInput) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return BaseUpdateReplicationProtectedItemProviderInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageAzureV2UpdateReplicationProtectedItemInput{} @@ -36,9 +44,10 @@ func (s InMageAzureV2UpdateReplicationProtectedItemInput) MarshalJSON() ([]byte, } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageAzureV2UpdateReplicationProtectedItemInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagedisableprotectionproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagedisableprotectionproviderspecificinput.go index 5a6d99ee2bd3..9f9b8923881e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagedisableprotectionproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagedisableprotectionproviderspecificinput.go @@ -14,6 +14,14 @@ type InMageDisableProtectionProviderSpecificInput struct { ReplicaVMDeletionStatus *string `json:"replicaVmDeletionStatus,omitempty"` // Fields inherited from DisableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageDisableProtectionProviderSpecificInput) DisableProtectionProviderSpecificInput() BaseDisableProtectionProviderSpecificInputImpl { + return BaseDisableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageDisableProtectionProviderSpecificInput{} @@ -27,9 +35,10 @@ func (s InMageDisableProtectionProviderSpecificInput) MarshalJSON() ([]byte, err } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageDisableProtectionProviderSpecificInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageenableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageenableprotectioninput.go index 846db30cbb89..ecb43d87f50a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageenableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageenableprotectioninput.go @@ -23,6 +23,14 @@ type InMageEnableProtectionInput struct { VMFriendlyName *string `json:"vmFriendlyName,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageEnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageEnableProtectionInput{} @@ -36,9 +44,10 @@ func (s InMageEnableProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageEnableProtectionInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmadddisksinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmadddisksinput.go index f053ccd3c121..91b0bc63cf58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmadddisksinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmadddisksinput.go @@ -14,6 +14,14 @@ type InMageRcmAddDisksInput struct { Disks []InMageRcmDiskInput `json:"disks"` // Fields inherited from AddDisksProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmAddDisksInput) AddDisksProviderSpecificInput() BaseAddDisksProviderSpecificInputImpl { + return BaseAddDisksProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmAddDisksInput{} @@ -27,9 +35,10 @@ func (s InMageRcmAddDisksInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmAddDisksInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmapplyrecoverypointinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmapplyrecoverypointinput.go index 316da5fb056f..3f18666e7c5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmapplyrecoverypointinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmapplyrecoverypointinput.go @@ -14,6 +14,14 @@ type InMageRcmApplyRecoveryPointInput struct { RecoveryPointId string `json:"recoveryPointId"` // Fields inherited from ApplyRecoveryPointProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmApplyRecoveryPointInput) ApplyRecoveryPointProviderSpecificInput() BaseApplyRecoveryPointProviderSpecificInputImpl { + return BaseApplyRecoveryPointProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmApplyRecoveryPointInput{} @@ -27,9 +35,10 @@ func (s InMageRcmApplyRecoveryPointInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmApplyRecoveryPointInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmenableprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmenableprotectioninput.go index 0da00ccef407..d4c55f7104d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmenableprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmenableprotectioninput.go @@ -38,6 +38,14 @@ type InMageRcmEnableProtectionInput struct { UserSelectedOSName *string `json:"userSelectedOSName,omitempty"` // Fields inherited from EnableProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmEnableProtectionInput) EnableProtectionProviderSpecificInput() BaseEnableProtectionProviderSpecificInputImpl { + return BaseEnableProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmEnableProtectionInput{} @@ -51,9 +59,10 @@ func (s InMageRcmEnableProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmEnableProtectionInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackplannedfailoverproviderinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackplannedfailoverproviderinput.go index 4fb7cddae1e2..f347a8ab887b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackplannedfailoverproviderinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackplannedfailoverproviderinput.go @@ -14,6 +14,14 @@ type InMageRcmFailbackPlannedFailoverProviderInput struct { RecoveryPointType InMageRcmFailbackRecoveryPointType `json:"recoveryPointType"` // Fields inherited from PlannedFailoverProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFailbackPlannedFailoverProviderInput) PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl { + return BasePlannedFailoverProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFailbackPlannedFailoverProviderInput{} @@ -27,9 +35,10 @@ func (s InMageRcmFailbackPlannedFailoverProviderInput) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFailbackPlannedFailoverProviderInput: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreplicationdetails.go index 20af36d13aad..d0312afb7b22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreplicationdetails.go @@ -42,6 +42,14 @@ type InMageRcmFailbackReplicationDetails struct { VMNics *[]InMageRcmFailbackNicDetails `json:"vmNics,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFailbackReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFailbackReplicationDetails{} @@ -55,9 +63,10 @@ func (s InMageRcmFailbackReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFailbackReplicationDetails: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreprotectinput.go index 766cbb8d8f6b..25a4835498d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmfailbackreprotectinput.go @@ -16,6 +16,14 @@ type InMageRcmFailbackReprotectInput struct { RunAsAccountId *string `json:"runAsAccountId,omitempty"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmFailbackReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmFailbackReprotectInput{} @@ -29,9 +37,10 @@ func (s InMageRcmFailbackReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmFailbackReprotectInput: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreplicationdetails.go index 77dcdab47c00..16d8656d258a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreplicationdetails.go @@ -74,6 +74,14 @@ type InMageRcmReplicationDetails struct { VMNics *[]InMageRcmNicDetails `json:"vmNics,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmReplicationDetails{} @@ -87,9 +95,10 @@ func (s InMageRcmReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmReplicationDetails: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreprotectinput.go index f36bee34a6cc..a8a70b3cef61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmreprotectinput.go @@ -17,6 +17,14 @@ type InMageRcmReprotectInput struct { ReprotectAgentId string `json:"reprotectAgentId"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmReprotectInput{} @@ -30,9 +38,10 @@ func (s InMageRcmReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmReprotectInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmtestfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmtestfailoverinput.go index 4f3264c0859a..f7af412ddc6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmtestfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmtestfailoverinput.go @@ -15,6 +15,14 @@ type InMageRcmTestFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from TestFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmTestFailoverInput) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return BaseTestFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmTestFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageRcmTestFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmTestFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmunplannedfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmunplannedfailoverinput.go index 688ddd4e9f11..5802d3b960ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmunplannedfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmunplannedfailoverinput.go @@ -15,6 +15,14 @@ type InMageRcmUnplannedFailoverInput struct { RecoveryPointId *string `json:"recoveryPointId,omitempty"` // Fields inherited from UnplannedFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmUnplannedFailoverInput) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return BaseUnplannedFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmUnplannedFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageRcmUnplannedFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmUnplannedFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdateapplianceforreplicationprotectediteminput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdateapplianceforreplicationprotectediteminput.go index 59a0e19cd4ab..c3eb7e503803 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdateapplianceforreplicationprotectediteminput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdateapplianceforreplicationprotectediteminput.go @@ -14,6 +14,14 @@ type InMageRcmUpdateApplianceForReplicationProtectedItemInput struct { RunAsAccountId *string `json:"runAsAccountId,omitempty"` // Fields inherited from UpdateApplianceForReplicationProtectedItemProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmUpdateApplianceForReplicationProtectedItemInput) UpdateApplianceForReplicationProtectedItemProviderSpecificInput() BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl { + return BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmUpdateApplianceForReplicationProtectedItemInput{} @@ -27,9 +35,10 @@ func (s InMageRcmUpdateApplianceForReplicationProtectedItemInput) MarshalJSON() } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmUpdateApplianceForReplicationProtectedItemInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdatereplicationprotectediteminput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdatereplicationprotectediteminput.go index 531bf039cf41..d15699fffec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdatereplicationprotectediteminput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagercmupdatereplicationprotectediteminput.go @@ -28,6 +28,14 @@ type InMageRcmUpdateReplicationProtectedItemInput struct { VMNics *[]InMageRcmNicInput `json:"vmNics,omitempty"` // Fields inherited from UpdateReplicationProtectedItemProviderInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmUpdateReplicationProtectedItemInput) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return BaseUpdateReplicationProtectedItemProviderInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmUpdateReplicationProtectedItemInput{} @@ -41,9 +49,10 @@ func (s InMageRcmUpdateReplicationProtectedItemInput) MarshalJSON() ([]byte, err } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmUpdateReplicationProtectedItemInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereplicationdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereplicationdetails.go index b12af712d38d..5bd28404fcb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereplicationdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereplicationdetails.go @@ -53,6 +53,14 @@ type InMageReplicationDetails struct { ValidationErrors *[]HealthError `json:"validationErrors,omitempty"` // Fields inherited from ReplicationProviderSpecificSettings + + InstanceType string `json:"instanceType"` +} + +func (s InMageReplicationDetails) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return BaseReplicationProviderSpecificSettingsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageReplicationDetails{} @@ -66,9 +74,10 @@ func (s InMageReplicationDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageReplicationDetails: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereprotectinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereprotectinput.go index 8ed97d029c8f..f7f46d7e03cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereprotectinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagereprotectinput.go @@ -21,6 +21,14 @@ type InMageReprotectInput struct { RunAsAccountId *string `json:"runAsAccountId,omitempty"` // Fields inherited from ReverseReplicationProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageReprotectInput) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return BaseReverseReplicationProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageReprotectInput{} @@ -34,9 +42,10 @@ func (s InMageReprotectInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageReprotectInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagetestfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagetestfailoverinput.go index 68347d06749a..c2c3cb6b7414 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagetestfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmagetestfailoverinput.go @@ -15,6 +15,14 @@ type InMageTestFailoverInput struct { RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"` // Fields inherited from TestFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageTestFailoverInput) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return BaseTestFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageTestFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageTestFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageTestFailoverInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageunplannedfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageunplannedfailoverinput.go index e03da1573070..9d97383ad62c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageunplannedfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_inmageunplannedfailoverinput.go @@ -15,6 +15,14 @@ type InMageUnplannedFailoverInput struct { RecoveryPointType *RecoveryPointType `json:"recoveryPointType,omitempty"` // Fields inherited from UnplannedFailoverProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageUnplannedFailoverInput) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return BaseUnplannedFailoverProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageUnplannedFailoverInput{} @@ -28,9 +36,10 @@ func (s InMageUnplannedFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageUnplannedFailoverInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverinputproperties.go index 4a6bb1dae0a3..24a70ce30786 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverinputproperties.go @@ -16,10 +16,11 @@ type PlannedFailoverInputProperties struct { var _ json.Unmarshaler = &PlannedFailoverInputProperties{} func (s *PlannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias PlannedFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection *string `json:"failoverDirection,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into PlannedFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -30,11 +31,12 @@ func (s *PlannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(v) + impl, err := UnmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'PlannedFailoverInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverproviderspecificfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverproviderspecificfailoverinput.go index 4371a17a2021..383a54e920c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverproviderspecificfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_plannedfailoverproviderspecificfailoverinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PlannedFailoverProviderSpecificFailoverInput interface { + PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl } -// RawPlannedFailoverProviderSpecificFailoverInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ PlannedFailoverProviderSpecificFailoverInput = BasePlannedFailoverProviderSpecificFailoverInputImpl{} + +type BasePlannedFailoverProviderSpecificFailoverInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BasePlannedFailoverProviderSpecificFailoverInputImpl) PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl { + return s +} + +var _ PlannedFailoverProviderSpecificFailoverInput = RawPlannedFailoverProviderSpecificFailoverInputImpl{} + +// RawPlannedFailoverProviderSpecificFailoverInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawPlannedFailoverProviderSpecificFailoverInputImpl struct { - Type string - Values map[string]interface{} + plannedFailoverProviderSpecificFailoverInput BasePlannedFailoverProviderSpecificFailoverInputImpl + Type string + Values map[string]interface{} } -func unmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(input []byte) (PlannedFailoverProviderSpecificFailoverInput, error) { +func (s RawPlannedFailoverProviderSpecificFailoverInputImpl) PlannedFailoverProviderSpecificFailoverInput() BasePlannedFailoverProviderSpecificFailoverInputImpl { + return s.plannedFailoverProviderSpecificFailoverInput +} + +func UnmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(input []byte) (PlannedFailoverProviderSpecificFailoverInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(input [ return nil, fmt.Errorf("unmarshaling PlannedFailoverProviderSpecificFailoverInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "HyperVReplicaAzureFailback") { @@ -60,10 +77,15 @@ func unmarshalPlannedFailoverProviderSpecificFailoverInputImplementation(input [ return out, nil } - out := RawPlannedFailoverProviderSpecificFailoverInputImpl{ + var parent BasePlannedFailoverProviderSpecificFailoverInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BasePlannedFailoverProviderSpecificFailoverInputImpl: %+v", err) + } + + return RawPlannedFailoverProviderSpecificFailoverInputImpl{ + plannedFailoverProviderSpecificFailoverInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksinputproperties.go index eb805049101f..7f07f3f0bf78 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksinputproperties.go @@ -22,11 +22,12 @@ func (s *RemoveDisksInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalRemoveDisksProviderSpecificInputImplementation(v) + impl, err := UnmarshalRemoveDisksProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'RemoveDisksInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksproviderspecificinput.go index 73a0e3c6b4f0..ee7ec2834734 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_removedisksproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RemoveDisksProviderSpecificInput interface { + RemoveDisksProviderSpecificInput() BaseRemoveDisksProviderSpecificInputImpl } -// RawRemoveDisksProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RemoveDisksProviderSpecificInput = BaseRemoveDisksProviderSpecificInputImpl{} + +type BaseRemoveDisksProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseRemoveDisksProviderSpecificInputImpl) RemoveDisksProviderSpecificInput() BaseRemoveDisksProviderSpecificInputImpl { + return s +} + +var _ RemoveDisksProviderSpecificInput = RawRemoveDisksProviderSpecificInputImpl{} + +// RawRemoveDisksProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRemoveDisksProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + removeDisksProviderSpecificInput BaseRemoveDisksProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawRemoveDisksProviderSpecificInputImpl) RemoveDisksProviderSpecificInput() BaseRemoveDisksProviderSpecificInputImpl { + return s.removeDisksProviderSpecificInput } -func unmarshalRemoveDisksProviderSpecificInputImplementation(input []byte) (RemoveDisksProviderSpecificInput, error) { +func UnmarshalRemoveDisksProviderSpecificInputImplementation(input []byte) (RemoveDisksProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRemoveDisksProviderSpecificInputImplementation(input []byte) (Remo return nil, fmt.Errorf("unmarshaling RemoveDisksProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -44,10 +61,15 @@ func unmarshalRemoveDisksProviderSpecificInputImplementation(input []byte) (Remo return out, nil } - out := RawRemoveDisksProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseRemoveDisksProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRemoveDisksProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawRemoveDisksProviderSpecificInputImpl{ + removeDisksProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationprotecteditemproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationprotecteditemproperties.go index fcf1010f232a..db913d4e5037 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationprotecteditemproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationprotecteditemproperties.go @@ -71,10 +71,39 @@ func (o *ReplicationProtectedItemProperties) SetLastSuccessfulTestFailoverTimeAs var _ json.Unmarshaler = &ReplicationProtectedItemProperties{} func (s *ReplicationProtectedItemProperties) UnmarshalJSON(bytes []byte) error { - type alias ReplicationProtectedItemProperties - var decoded alias + var decoded struct { + ActiveLocation *string `json:"activeLocation,omitempty"` + AllowedOperations *[]string `json:"allowedOperations,omitempty"` + CurrentScenario *CurrentScenarioDetails `json:"currentScenario,omitempty"` + EventCorrelationId *string `json:"eventCorrelationId,omitempty"` + FailoverHealth *string `json:"failoverHealth,omitempty"` + FailoverRecoveryPointId *string `json:"failoverRecoveryPointId,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + HealthErrors *[]HealthError `json:"healthErrors,omitempty"` + LastSuccessfulFailoverTime *string `json:"lastSuccessfulFailoverTime,omitempty"` + LastSuccessfulTestFailoverTime *string `json:"lastSuccessfulTestFailoverTime,omitempty"` + PolicyFriendlyName *string `json:"policyFriendlyName,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"` + PrimaryFabricProvider *string `json:"primaryFabricProvider,omitempty"` + PrimaryProtectionContainerFriendlyName *string `json:"primaryProtectionContainerFriendlyName,omitempty"` + ProtectableItemId *string `json:"protectableItemId,omitempty"` + ProtectedItemType *string `json:"protectedItemType,omitempty"` + ProtectionState *string `json:"protectionState,omitempty"` + ProtectionStateDescription *string `json:"protectionStateDescription,omitempty"` + RecoveryContainerId *string `json:"recoveryContainerId,omitempty"` + RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"` + RecoveryFabricId *string `json:"recoveryFabricId,omitempty"` + RecoveryProtectionContainerFriendlyName *string `json:"recoveryProtectionContainerFriendlyName,omitempty"` + RecoveryServicesProviderId *string `json:"recoveryServicesProviderId,omitempty"` + ReplicationHealth *string `json:"replicationHealth,omitempty"` + SwitchProviderState *string `json:"switchProviderState,omitempty"` + SwitchProviderStateDescription *string `json:"switchProviderStateDescription,omitempty"` + TestFailoverState *string `json:"testFailoverState,omitempty"` + TestFailoverStateDescription *string `json:"testFailoverStateDescription,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ReplicationProtectedItemProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ActiveLocation = decoded.ActiveLocation @@ -113,11 +142,12 @@ func (s *ReplicationProtectedItemProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalReplicationProviderSpecificSettingsImplementation(v) + impl, err := UnmarshalReplicationProviderSpecificSettingsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'ReplicationProtectedItemProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationproviderspecificsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationproviderspecificsettings.go index 1e5be9a6f911..9c657e69eb9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationproviderspecificsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_replicationproviderspecificsettings.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReplicationProviderSpecificSettings interface { + ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl } -// RawReplicationProviderSpecificSettingsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReplicationProviderSpecificSettings = BaseReplicationProviderSpecificSettingsImpl{} + +type BaseReplicationProviderSpecificSettingsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseReplicationProviderSpecificSettingsImpl) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return s +} + +var _ ReplicationProviderSpecificSettings = RawReplicationProviderSpecificSettingsImpl{} + +// RawReplicationProviderSpecificSettingsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReplicationProviderSpecificSettingsImpl struct { - Type string - Values map[string]interface{} + replicationProviderSpecificSettings BaseReplicationProviderSpecificSettingsImpl + Type string + Values map[string]interface{} +} + +func (s RawReplicationProviderSpecificSettingsImpl) ReplicationProviderSpecificSettings() BaseReplicationProviderSpecificSettingsImpl { + return s.replicationProviderSpecificSettings } -func unmarshalReplicationProviderSpecificSettingsImplementation(input []byte) (ReplicationProviderSpecificSettings, error) { +func UnmarshalReplicationProviderSpecificSettingsImplementation(input []byte) (ReplicationProviderSpecificSettings, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReplicationProviderSpecificSettingsImplementation(input []byte) (R return nil, fmt.Errorf("unmarshaling ReplicationProviderSpecificSettings into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2ACrossClusterMigration") { @@ -116,10 +133,15 @@ func unmarshalReplicationProviderSpecificSettingsImplementation(input []byte) (R return out, nil } - out := RawReplicationProviderSpecificSettingsImpl{ - Type: value, - Values: temp, + var parent BaseReplicationProviderSpecificSettingsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReplicationProviderSpecificSettingsImpl: %+v", err) } - return out, nil + + return RawReplicationProviderSpecificSettingsImpl{ + replicationProviderSpecificSettings: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationinputproperties.go index 9d4d4c1da7f9..46e9f2902410 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationinputproperties.go @@ -16,10 +16,11 @@ type ReverseReplicationInputProperties struct { var _ json.Unmarshaler = &ReverseReplicationInputProperties{} func (s *ReverseReplicationInputProperties) UnmarshalJSON(bytes []byte) error { - type alias ReverseReplicationInputProperties - var decoded alias + var decoded struct { + FailoverDirection *string `json:"failoverDirection,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ReverseReplicationInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -30,11 +31,12 @@ func (s *ReverseReplicationInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalReverseReplicationProviderSpecificInputImplementation(v) + impl, err := UnmarshalReverseReplicationProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'ReverseReplicationInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationproviderspecificinput.go index 551d56de914f..99bb04d2d4a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_reversereplicationproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReverseReplicationProviderSpecificInput interface { + ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl } -// RawReverseReplicationProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReverseReplicationProviderSpecificInput = BaseReverseReplicationProviderSpecificInputImpl{} + +type BaseReverseReplicationProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseReverseReplicationProviderSpecificInputImpl) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return s +} + +var _ ReverseReplicationProviderSpecificInput = RawReverseReplicationProviderSpecificInputImpl{} + +// RawReverseReplicationProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReverseReplicationProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + reverseReplicationProviderSpecificInput BaseReverseReplicationProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawReverseReplicationProviderSpecificInputImpl) ReverseReplicationProviderSpecificInput() BaseReverseReplicationProviderSpecificInputImpl { + return s.reverseReplicationProviderSpecificInput } -func unmarshalReverseReplicationProviderSpecificInputImplementation(input []byte) (ReverseReplicationProviderSpecificInput, error) { +func UnmarshalReverseReplicationProviderSpecificInputImplementation(input []byte) (ReverseReplicationProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReverseReplicationProviderSpecificInputImplementation(input []byte return nil, fmt.Errorf("unmarshaling ReverseReplicationProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -84,10 +101,15 @@ func unmarshalReverseReplicationProviderSpecificInputImplementation(input []byte return out, nil } - out := RawReverseReplicationProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseReverseReplicationProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReverseReplicationProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawReverseReplicationProviderSpecificInputImpl{ + reverseReplicationProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderinputproperties.go index 86770b49b74d..6189d20b8378 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderinputproperties.go @@ -16,10 +16,11 @@ type SwitchProviderInputProperties struct { var _ json.Unmarshaler = &SwitchProviderInputProperties{} func (s *SwitchProviderInputProperties) UnmarshalJSON(bytes []byte) error { - type alias SwitchProviderInputProperties - var decoded alias + var decoded struct { + TargetInstanceType *string `json:"targetInstanceType,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SwitchProviderInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.TargetInstanceType = decoded.TargetInstanceType @@ -30,11 +31,12 @@ func (s *SwitchProviderInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalSwitchProviderProviderSpecificInputImplementation(v) + impl, err := UnmarshalSwitchProviderProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'SwitchProviderInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderproviderspecificinput.go index fc9fa51e0bf9..a30916cc1680 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_switchproviderproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SwitchProviderProviderSpecificInput interface { + SwitchProviderProviderSpecificInput() BaseSwitchProviderProviderSpecificInputImpl } -// RawSwitchProviderProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SwitchProviderProviderSpecificInput = BaseSwitchProviderProviderSpecificInputImpl{} + +type BaseSwitchProviderProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseSwitchProviderProviderSpecificInputImpl) SwitchProviderProviderSpecificInput() BaseSwitchProviderProviderSpecificInputImpl { + return s +} + +var _ SwitchProviderProviderSpecificInput = RawSwitchProviderProviderSpecificInputImpl{} + +// RawSwitchProviderProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSwitchProviderProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + switchProviderProviderSpecificInput BaseSwitchProviderProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawSwitchProviderProviderSpecificInputImpl) SwitchProviderProviderSpecificInput() BaseSwitchProviderProviderSpecificInputImpl { + return s.switchProviderProviderSpecificInput } -func unmarshalSwitchProviderProviderSpecificInputImplementation(input []byte) (SwitchProviderProviderSpecificInput, error) { +func UnmarshalSwitchProviderProviderSpecificInputImplementation(input []byte) (SwitchProviderProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSwitchProviderProviderSpecificInputImplementation(input []byte) (S return nil, fmt.Errorf("unmarshaling SwitchProviderProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "InMageAzureV2") { @@ -44,10 +61,15 @@ func unmarshalSwitchProviderProviderSpecificInputImplementation(input []byte) (S return out, nil } - out := RawSwitchProviderProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseSwitchProviderProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSwitchProviderProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawSwitchProviderProviderSpecificInputImpl{ + switchProviderProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverinputproperties.go index 098e800430be..e49d86c1c45c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverinputproperties.go @@ -18,10 +18,13 @@ type TestFailoverInputProperties struct { var _ json.Unmarshaler = &TestFailoverInputProperties{} func (s *TestFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias TestFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection *string `json:"failoverDirection,omitempty"` + NetworkId *string `json:"networkId,omitempty"` + NetworkType *string `json:"networkType,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into TestFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -34,11 +37,12 @@ func (s *TestFailoverInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalTestFailoverProviderSpecificInputImplementation(v) + impl, err := UnmarshalTestFailoverProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'TestFailoverInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverproviderspecificinput.go index a9a345c2fa94..3ea707b3cc21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_testfailoverproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TestFailoverProviderSpecificInput interface { + TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl } -// RawTestFailoverProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TestFailoverProviderSpecificInput = BaseTestFailoverProviderSpecificInputImpl{} + +type BaseTestFailoverProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseTestFailoverProviderSpecificInputImpl) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return s +} + +var _ TestFailoverProviderSpecificInput = RawTestFailoverProviderSpecificInputImpl{} + +// RawTestFailoverProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTestFailoverProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + testFailoverProviderSpecificInput BaseTestFailoverProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawTestFailoverProviderSpecificInputImpl) TestFailoverProviderSpecificInput() BaseTestFailoverProviderSpecificInputImpl { + return s.testFailoverProviderSpecificInput } -func unmarshalTestFailoverProviderSpecificInputImplementation(input []byte) (TestFailoverProviderSpecificInput, error) { +func UnmarshalTestFailoverProviderSpecificInputImplementation(input []byte) (TestFailoverProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalTestFailoverProviderSpecificInputImplementation(input []byte) (Tes return nil, fmt.Errorf("unmarshaling TestFailoverProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -76,10 +93,15 @@ func unmarshalTestFailoverProviderSpecificInputImplementation(input []byte) (Tes return out, nil } - out := RawTestFailoverProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseTestFailoverProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTestFailoverProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawTestFailoverProviderSpecificInputImpl{ + testFailoverProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverinputproperties.go index b998698389db..48640dc991d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverinputproperties.go @@ -17,10 +17,12 @@ type UnplannedFailoverInputProperties struct { var _ json.Unmarshaler = &UnplannedFailoverInputProperties{} func (s *UnplannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias UnplannedFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection *string `json:"failoverDirection,omitempty"` + SourceSiteOperations *string `json:"sourceSiteOperations,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into UnplannedFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -32,11 +34,12 @@ func (s *UnplannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalUnplannedFailoverProviderSpecificInputImplementation(v) + impl, err := UnmarshalUnplannedFailoverProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'UnplannedFailoverInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverproviderspecificinput.go index e1270ba432e8..2d97495c0328 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_unplannedfailoverproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type UnplannedFailoverProviderSpecificInput interface { + UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl } -// RawUnplannedFailoverProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ UnplannedFailoverProviderSpecificInput = BaseUnplannedFailoverProviderSpecificInputImpl{} + +type BaseUnplannedFailoverProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseUnplannedFailoverProviderSpecificInputImpl) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return s +} + +var _ UnplannedFailoverProviderSpecificInput = RawUnplannedFailoverProviderSpecificInputImpl{} + +// RawUnplannedFailoverProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawUnplannedFailoverProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + unplannedFailoverProviderSpecificInput BaseUnplannedFailoverProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawUnplannedFailoverProviderSpecificInputImpl) UnplannedFailoverProviderSpecificInput() BaseUnplannedFailoverProviderSpecificInputImpl { + return s.unplannedFailoverProviderSpecificInput } -func unmarshalUnplannedFailoverProviderSpecificInputImplementation(input []byte) (UnplannedFailoverProviderSpecificInput, error) { +func UnmarshalUnplannedFailoverProviderSpecificInputImplementation(input []byte) (UnplannedFailoverProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalUnplannedFailoverProviderSpecificInputImplementation(input []byte) return nil, fmt.Errorf("unmarshaling UnplannedFailoverProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -76,10 +93,15 @@ func unmarshalUnplannedFailoverProviderSpecificInputImplementation(input []byte) return out, nil } - out := RawUnplannedFailoverProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseUnplannedFailoverProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseUnplannedFailoverProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawUnplannedFailoverProviderSpecificInputImpl{ + unplannedFailoverProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotectediteminputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotectediteminputproperties.go index a1073c0228c0..02ecc50d9ffe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotectediteminputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotectediteminputproperties.go @@ -16,10 +16,11 @@ type UpdateApplianceForReplicationProtectedItemInputProperties struct { var _ json.Unmarshaler = &UpdateApplianceForReplicationProtectedItemInputProperties{} func (s *UpdateApplianceForReplicationProtectedItemInputProperties) UnmarshalJSON(bytes []byte) error { - type alias UpdateApplianceForReplicationProtectedItemInputProperties - var decoded alias + var decoded struct { + TargetApplianceId string `json:"targetApplianceId"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into UpdateApplianceForReplicationProtectedItemInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.TargetApplianceId = decoded.TargetApplianceId @@ -30,11 +31,12 @@ func (s *UpdateApplianceForReplicationProtectedItemInputProperties) UnmarshalJSO } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImplementation(v) + impl, err := UnmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'UpdateApplianceForReplicationProtectedItemInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotecteditemproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotecteditemproviderspecificinput.go index 4ecaa33309c5..e6f03eb7aaa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotecteditemproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updateapplianceforreplicationprotecteditemproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type UpdateApplianceForReplicationProtectedItemProviderSpecificInput interface { + UpdateApplianceForReplicationProtectedItemProviderSpecificInput() BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl } -// RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ UpdateApplianceForReplicationProtectedItemProviderSpecificInput = BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl{} + +type BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl) UpdateApplianceForReplicationProtectedItemProviderSpecificInput() BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl { + return s +} + +var _ UpdateApplianceForReplicationProtectedItemProviderSpecificInput = RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl{} + +// RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + updateApplianceForReplicationProtectedItemProviderSpecificInput BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl + Type string + Values map[string]interface{} } -func unmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImplementation(input []byte) (UpdateApplianceForReplicationProtectedItemProviderSpecificInput, error) { +func (s RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl) UpdateApplianceForReplicationProtectedItemProviderSpecificInput() BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl { + return s.updateApplianceForReplicationProtectedItemProviderSpecificInput +} + +func UnmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImplementation(input []byte) (UpdateApplianceForReplicationProtectedItemProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImp return nil, fmt.Errorf("unmarshaling UpdateApplianceForReplicationProtectedItemProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "InMageRcm") { @@ -44,10 +61,15 @@ func unmarshalUpdateApplianceForReplicationProtectedItemProviderSpecificInputImp return out, nil } - out := RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl{ + var parent BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl: %+v", err) + } + + return RawUpdateApplianceForReplicationProtectedItemProviderSpecificInputImpl{ + updateApplianceForReplicationProtectedItemProviderSpecificInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotectediteminputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotectediteminputproperties.go index ce7313ff7b9f..1bcbcbfe84ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotectediteminputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotectediteminputproperties.go @@ -24,10 +24,19 @@ type UpdateReplicationProtectedItemInputProperties struct { var _ json.Unmarshaler = &UpdateReplicationProtectedItemInputProperties{} func (s *UpdateReplicationProtectedItemInputProperties) UnmarshalJSON(bytes []byte) error { - type alias UpdateReplicationProtectedItemInputProperties - var decoded alias + var decoded struct { + EnableRdpOnTargetOption *string `json:"enableRdpOnTargetOption,omitempty"` + LicenseType *LicenseType `json:"licenseType,omitempty"` + RecoveryAvailabilitySetId *string `json:"recoveryAvailabilitySetId,omitempty"` + RecoveryAzureVMName *string `json:"recoveryAzureVMName,omitempty"` + RecoveryAzureVMSize *string `json:"recoveryAzureVMSize,omitempty"` + SelectedRecoveryAzureNetworkId *string `json:"selectedRecoveryAzureNetworkId,omitempty"` + SelectedSourceNicId *string `json:"selectedSourceNicId,omitempty"` + SelectedTfoAzureNetworkId *string `json:"selectedTfoAzureNetworkId,omitempty"` + VMNics *[]VMNicInputDetails `json:"vmNics,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into UpdateReplicationProtectedItemInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.EnableRdpOnTargetOption = decoded.EnableRdpOnTargetOption @@ -46,11 +55,12 @@ func (s *UpdateReplicationProtectedItemInputProperties) UnmarshalJSON(bytes []by } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalUpdateReplicationProtectedItemProviderInputImplementation(v) + impl, err := UnmarshalUpdateReplicationProtectedItemProviderInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'UpdateReplicationProtectedItemInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotecteditemproviderinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotecteditemproviderinput.go index e890f834bde2..de39df0cec74 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotecteditemproviderinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/model_updatereplicationprotecteditemproviderinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type UpdateReplicationProtectedItemProviderInput interface { + UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl } -// RawUpdateReplicationProtectedItemProviderInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ UpdateReplicationProtectedItemProviderInput = BaseUpdateReplicationProtectedItemProviderInputImpl{} + +type BaseUpdateReplicationProtectedItemProviderInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseUpdateReplicationProtectedItemProviderInputImpl) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return s +} + +var _ UpdateReplicationProtectedItemProviderInput = RawUpdateReplicationProtectedItemProviderInputImpl{} + +// RawUpdateReplicationProtectedItemProviderInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawUpdateReplicationProtectedItemProviderInputImpl struct { - Type string - Values map[string]interface{} + updateReplicationProtectedItemProviderInput BaseUpdateReplicationProtectedItemProviderInputImpl + Type string + Values map[string]interface{} } -func unmarshalUpdateReplicationProtectedItemProviderInputImplementation(input []byte) (UpdateReplicationProtectedItemProviderInput, error) { +func (s RawUpdateReplicationProtectedItemProviderInputImpl) UpdateReplicationProtectedItemProviderInput() BaseUpdateReplicationProtectedItemProviderInputImpl { + return s.updateReplicationProtectedItemProviderInput +} + +func UnmarshalUpdateReplicationProtectedItemProviderInputImplementation(input []byte) (UpdateReplicationProtectedItemProviderInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalUpdateReplicationProtectedItemProviderInputImplementation(input [] return nil, fmt.Errorf("unmarshaling UpdateReplicationProtectedItemProviderInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -68,10 +85,15 @@ func unmarshalUpdateReplicationProtectedItemProviderInputImplementation(input [] return out, nil } - out := RawUpdateReplicationProtectedItemProviderInputImpl{ + var parent BaseUpdateReplicationProtectedItemProviderInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseUpdateReplicationProtectedItemProviderInputImpl: %+v", err) + } + + return RawUpdateReplicationProtectedItemProviderInputImpl{ + updateReplicationProtectedItemProviderInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/version.go index bf5c397de1c8..7a524b487b4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotecteditems/version.go @@ -1,12 +1,10 @@ package replicationprotecteditems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationprotecteditems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationprotecteditems/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/README.md index 55320a0d137a..17cc3f6df706 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings` Documentation -The `replicationprotectioncontainermappings` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationprotectioncontainermappings` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionContainerMappingValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "mappingName") payload := replicationprotectioncontainermappings.CreateProtectionContainerMappingInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionContainerMappingValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "mappingName") payload := replicationprotectioncontainermappings.RemoveProtectionContainerMappingInput{ // ... @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionContainerMappingValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "mappingName") read, err := client.Get(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationprotectioncontainermappings.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -91,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") // alternatively `client.ListByReplicationProtectionContainers(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationProtectionContainersComplete(ctx, id) @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionContainerMappingValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "mappingName") if err := client.PurgeThenPoll(ctx, id); err != nil { // handle the error @@ -120,7 +120,7 @@ if err := client.PurgeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue", "replicationProtectionContainerMappingValue") +id := replicationprotectioncontainermappings.NewReplicationProtectionContainerMappingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName", "mappingName") payload := replicationprotectioncontainermappings.UpdateProtectionContainerMappingInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/client.go index ec4669047555..4fe661f7f6f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/client.go @@ -15,7 +15,7 @@ type ReplicationProtectionContainerMappingsClient struct { } func NewReplicationProtectionContainerMappingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationProtectionContainerMappingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationprotectioncontainermappings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationprotectioncontainermappings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationProtectionContainerMappingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainer.go index 084d69de65bc..ee9a5b2733d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainer.go @@ -46,7 +46,7 @@ func ParseReplicationProtectionContainerID(input string) (*ReplicationProtection } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationProtectionContainerIDInsensitively(input string) (*Replicat } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationProtectionContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationProtectionContainers", "replicationProtectionContainers", "replicationProtectionContainers"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "replicationProtectionContainerValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "protectionContainerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainermapping.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainermapping.go index 7c5cb580b932..1fbd79d1a444 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainermapping.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_replicationprotectioncontainermapping.go @@ -48,7 +48,7 @@ func ParseReplicationProtectionContainerMappingID(input string) (*ReplicationPro } id := ReplicationProtectionContainerMappingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseReplicationProtectionContainerMappingIDInsensitively(input string) (*R } id := ReplicationProtectionContainerMappingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ReplicationProtectionContainerMappingId) Segments() []resourceids.Segme resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationProtectionContainers", "replicationProtectionContainers", "replicationProtectionContainers"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "replicationProtectionContainerValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "protectionContainerName"), resourceids.StaticSegment("staticReplicationProtectionContainerMappings", "replicationProtectionContainerMappings", "replicationProtectionContainerMappings"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerMappingName", "replicationProtectionContainerMappingValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerMappingName", "mappingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_vault.go index e488084444d2..067641d7f6bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_get.go index 0d99040f6cb3..31623992dab0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationProtectionContainerMappingsClient) Get(ctx context.Context, i var model ProtectionContainerMapping result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2acontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2acontainermappinginput.go index f8472547d4ff..520decdc12b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2acontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2acontainermappinginput.go @@ -16,6 +16,14 @@ type A2AContainerMappingInput struct { AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"` // Fields inherited from ReplicationProviderSpecificContainerMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AContainerMappingInput) ReplicationProviderSpecificContainerMappingInput() BaseReplicationProviderSpecificContainerMappingInputImpl { + return BaseReplicationProviderSpecificContainerMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AContainerMappingInput{} @@ -29,9 +37,10 @@ func (s A2AContainerMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AContainerMappingInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aprotectioncontainermappingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aprotectioncontainermappingdetails.go index 7d5038331df9..f8d56c9abcae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aprotectioncontainermappingdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aprotectioncontainermappingdetails.go @@ -18,6 +18,14 @@ type A2AProtectionContainerMappingDetails struct { ScheduleName *string `json:"scheduleName,omitempty"` // Fields inherited from ProtectionContainerMappingProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s A2AProtectionContainerMappingDetails) ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl { + return BaseProtectionContainerMappingProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AProtectionContainerMappingDetails{} @@ -31,9 +39,10 @@ func (s A2AProtectionContainerMappingDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AProtectionContainerMappingDetails: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aupdatecontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aupdatecontainermappinginput.go index e37347605740..7eca6e5966e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aupdatecontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_a2aupdatecontainermappinginput.go @@ -16,6 +16,14 @@ type A2AUpdateContainerMappingInput struct { AutomationAccountAuthenticationType *AutomationAccountAuthenticationType `json:"automationAccountAuthenticationType,omitempty"` // Fields inherited from ReplicationProviderSpecificUpdateContainerMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AUpdateContainerMappingInput) ReplicationProviderSpecificUpdateContainerMappingInput() BaseReplicationProviderSpecificUpdateContainerMappingInputImpl { + return BaseReplicationProviderSpecificUpdateContainerMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AUpdateContainerMappingInput{} @@ -29,9 +37,10 @@ func (s A2AUpdateContainerMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AUpdateContainerMappingInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_createprotectioncontainermappinginputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_createprotectioncontainermappinginputproperties.go index 9c1938b0fedb..ad0529d2f583 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_createprotectioncontainermappinginputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_createprotectioncontainermappinginputproperties.go @@ -17,10 +17,12 @@ type CreateProtectionContainerMappingInputProperties struct { var _ json.Unmarshaler = &CreateProtectionContainerMappingInputProperties{} func (s *CreateProtectionContainerMappingInputProperties) UnmarshalJSON(bytes []byte) error { - type alias CreateProtectionContainerMappingInputProperties - var decoded alias + var decoded struct { + PolicyId *string `json:"policyId,omitempty"` + TargetProtectionContainerId *string `json:"targetProtectionContainerId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CreateProtectionContainerMappingInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.PolicyId = decoded.PolicyId @@ -32,11 +34,12 @@ func (s *CreateProtectionContainerMappingInputProperties) UnmarshalJSON(bytes [] } if v, ok := temp["providerSpecificInput"]; ok { - impl, err := unmarshalReplicationProviderSpecificContainerMappingInputImplementation(v) + impl, err := UnmarshalReplicationProviderSpecificContainerMappingInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificInput' for 'CreateProtectionContainerMappingInputProperties': %+v", err) } s.ProviderSpecificInput = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmprotectioncontainermappingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmprotectioncontainermappingdetails.go index 37be76a4162c..1b6791491b6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmprotectioncontainermappingdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmprotectioncontainermappingdetails.go @@ -14,6 +14,14 @@ type InMageRcmProtectionContainerMappingDetails struct { EnableAgentAutoUpgrade *string `json:"enableAgentAutoUpgrade,omitempty"` // Fields inherited from ProtectionContainerMappingProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmProtectionContainerMappingDetails) ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl { + return BaseProtectionContainerMappingProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmProtectionContainerMappingDetails{} @@ -27,9 +35,10 @@ func (s InMageRcmProtectionContainerMappingDetails) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmProtectionContainerMappingDetails: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmupdatecontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmupdatecontainermappinginput.go index 1ae5b4555168..39728993aec0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmupdatecontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_inmagercmupdatecontainermappinginput.go @@ -14,6 +14,14 @@ type InMageRcmUpdateContainerMappingInput struct { EnableAgentAutoUpgrade string `json:"enableAgentAutoUpgrade"` // Fields inherited from ReplicationProviderSpecificUpdateContainerMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s InMageRcmUpdateContainerMappingInput) ReplicationProviderSpecificUpdateContainerMappingInput() BaseReplicationProviderSpecificUpdateContainerMappingInputImpl { + return BaseReplicationProviderSpecificUpdateContainerMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = InMageRcmUpdateContainerMappingInput{} @@ -27,9 +35,10 @@ func (s InMageRcmUpdateContainerMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling InMageRcmUpdateContainerMappingInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproperties.go index 2cf9d9806400..04fd7e9d4b99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproperties.go @@ -25,10 +25,20 @@ type ProtectionContainerMappingProperties struct { var _ json.Unmarshaler = &ProtectionContainerMappingProperties{} func (s *ProtectionContainerMappingProperties) UnmarshalJSON(bytes []byte) error { - type alias ProtectionContainerMappingProperties - var decoded alias + var decoded struct { + Health *string `json:"health,omitempty"` + HealthErrorDetails *[]HealthError `json:"healthErrorDetails,omitempty"` + PolicyFriendlyName *string `json:"policyFriendlyName,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + SourceFabricFriendlyName *string `json:"sourceFabricFriendlyName,omitempty"` + SourceProtectionContainerFriendlyName *string `json:"sourceProtectionContainerFriendlyName,omitempty"` + State *string `json:"state,omitempty"` + TargetFabricFriendlyName *string `json:"targetFabricFriendlyName,omitempty"` + TargetProtectionContainerFriendlyName *string `json:"targetProtectionContainerFriendlyName,omitempty"` + TargetProtectionContainerId *string `json:"targetProtectionContainerId,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProtectionContainerMappingProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Health = decoded.Health @@ -48,11 +58,12 @@ func (s *ProtectionContainerMappingProperties) UnmarshalJSON(bytes []byte) error } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(v) + impl, err := UnmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'ProtectionContainerMappingProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproviderspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproviderspecificdetails.go index 265a84762fbe..219606477d7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproviderspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_protectioncontainermappingproviderspecificdetails.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProtectionContainerMappingProviderSpecificDetails interface { + ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl } -// RawProtectionContainerMappingProviderSpecificDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProtectionContainerMappingProviderSpecificDetails = BaseProtectionContainerMappingProviderSpecificDetailsImpl{} + +type BaseProtectionContainerMappingProviderSpecificDetailsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseProtectionContainerMappingProviderSpecificDetailsImpl) ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl { + return s +} + +var _ ProtectionContainerMappingProviderSpecificDetails = RawProtectionContainerMappingProviderSpecificDetailsImpl{} + +// RawProtectionContainerMappingProviderSpecificDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProtectionContainerMappingProviderSpecificDetailsImpl struct { - Type string - Values map[string]interface{} + protectionContainerMappingProviderSpecificDetails BaseProtectionContainerMappingProviderSpecificDetailsImpl + Type string + Values map[string]interface{} } -func unmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(input []byte) (ProtectionContainerMappingProviderSpecificDetails, error) { +func (s RawProtectionContainerMappingProviderSpecificDetailsImpl) ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl { + return s.protectionContainerMappingProviderSpecificDetails +} + +func UnmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(input []byte) (ProtectionContainerMappingProviderSpecificDetails, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(in return nil, fmt.Errorf("unmarshaling ProtectionContainerMappingProviderSpecificDetails into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -60,10 +77,15 @@ func unmarshalProtectionContainerMappingProviderSpecificDetailsImplementation(in return out, nil } - out := RawProtectionContainerMappingProviderSpecificDetailsImpl{ + var parent BaseProtectionContainerMappingProviderSpecificDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProtectionContainerMappingProviderSpecificDetailsImpl: %+v", err) + } + + return RawProtectionContainerMappingProviderSpecificDetailsImpl{ + protectionContainerMappingProviderSpecificDetails: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificcontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificcontainermappinginput.go index baeb2a5e0957..dfce897f5d09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificcontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificcontainermappinginput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReplicationProviderSpecificContainerMappingInput interface { + ReplicationProviderSpecificContainerMappingInput() BaseReplicationProviderSpecificContainerMappingInputImpl } -// RawReplicationProviderSpecificContainerMappingInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReplicationProviderSpecificContainerMappingInput = BaseReplicationProviderSpecificContainerMappingInputImpl{} + +type BaseReplicationProviderSpecificContainerMappingInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseReplicationProviderSpecificContainerMappingInputImpl) ReplicationProviderSpecificContainerMappingInput() BaseReplicationProviderSpecificContainerMappingInputImpl { + return s +} + +var _ ReplicationProviderSpecificContainerMappingInput = RawReplicationProviderSpecificContainerMappingInputImpl{} + +// RawReplicationProviderSpecificContainerMappingInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReplicationProviderSpecificContainerMappingInputImpl struct { - Type string - Values map[string]interface{} + replicationProviderSpecificContainerMappingInput BaseReplicationProviderSpecificContainerMappingInputImpl + Type string + Values map[string]interface{} } -func unmarshalReplicationProviderSpecificContainerMappingInputImplementation(input []byte) (ReplicationProviderSpecificContainerMappingInput, error) { +func (s RawReplicationProviderSpecificContainerMappingInputImpl) ReplicationProviderSpecificContainerMappingInput() BaseReplicationProviderSpecificContainerMappingInputImpl { + return s.replicationProviderSpecificContainerMappingInput +} + +func UnmarshalReplicationProviderSpecificContainerMappingInputImplementation(input []byte) (ReplicationProviderSpecificContainerMappingInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReplicationProviderSpecificContainerMappingInputImplementation(inp return nil, fmt.Errorf("unmarshaling ReplicationProviderSpecificContainerMappingInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -52,10 +69,15 @@ func unmarshalReplicationProviderSpecificContainerMappingInputImplementation(inp return out, nil } - out := RawReplicationProviderSpecificContainerMappingInputImpl{ + var parent BaseReplicationProviderSpecificContainerMappingInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReplicationProviderSpecificContainerMappingInputImpl: %+v", err) + } + + return RawReplicationProviderSpecificContainerMappingInputImpl{ + replicationProviderSpecificContainerMappingInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificupdatecontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificupdatecontainermappinginput.go index 462294f36892..b32cc5dc7c00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificupdatecontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_replicationproviderspecificupdatecontainermappinginput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReplicationProviderSpecificUpdateContainerMappingInput interface { + ReplicationProviderSpecificUpdateContainerMappingInput() BaseReplicationProviderSpecificUpdateContainerMappingInputImpl } -// RawReplicationProviderSpecificUpdateContainerMappingInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReplicationProviderSpecificUpdateContainerMappingInput = BaseReplicationProviderSpecificUpdateContainerMappingInputImpl{} + +type BaseReplicationProviderSpecificUpdateContainerMappingInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseReplicationProviderSpecificUpdateContainerMappingInputImpl) ReplicationProviderSpecificUpdateContainerMappingInput() BaseReplicationProviderSpecificUpdateContainerMappingInputImpl { + return s +} + +var _ ReplicationProviderSpecificUpdateContainerMappingInput = RawReplicationProviderSpecificUpdateContainerMappingInputImpl{} + +// RawReplicationProviderSpecificUpdateContainerMappingInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReplicationProviderSpecificUpdateContainerMappingInputImpl struct { - Type string - Values map[string]interface{} + replicationProviderSpecificUpdateContainerMappingInput BaseReplicationProviderSpecificUpdateContainerMappingInputImpl + Type string + Values map[string]interface{} } -func unmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementation(input []byte) (ReplicationProviderSpecificUpdateContainerMappingInput, error) { +func (s RawReplicationProviderSpecificUpdateContainerMappingInputImpl) ReplicationProviderSpecificUpdateContainerMappingInput() BaseReplicationProviderSpecificUpdateContainerMappingInputImpl { + return s.replicationProviderSpecificUpdateContainerMappingInput +} + +func UnmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementation(input []byte) (ReplicationProviderSpecificUpdateContainerMappingInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementati return nil, fmt.Errorf("unmarshaling ReplicationProviderSpecificUpdateContainerMappingInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -52,10 +69,15 @@ func unmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementati return out, nil } - out := RawReplicationProviderSpecificUpdateContainerMappingInputImpl{ + var parent BaseReplicationProviderSpecificUpdateContainerMappingInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReplicationProviderSpecificUpdateContainerMappingInputImpl: %+v", err) + } + + return RawReplicationProviderSpecificUpdateContainerMappingInputImpl{ + replicationProviderSpecificUpdateContainerMappingInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_updateprotectioncontainermappinginputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_updateprotectioncontainermappinginputproperties.go index e021c62ed1f4..f68cab5cb26e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_updateprotectioncontainermappinginputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_updateprotectioncontainermappinginputproperties.go @@ -22,11 +22,12 @@ func (s *UpdateProtectionContainerMappingInputProperties) UnmarshalJSON(bytes [] } if v, ok := temp["providerSpecificInput"]; ok { - impl, err := unmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementation(v) + impl, err := UnmarshalReplicationProviderSpecificUpdateContainerMappingInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificInput' for 'UpdateProtectionContainerMappingInputProperties': %+v", err) } s.ProviderSpecificInput = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtcontainermappinginput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtcontainermappinginput.go index d47113863600..a7b44d461aa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtcontainermappinginput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtcontainermappinginput.go @@ -19,6 +19,14 @@ type VMwareCbtContainerMappingInput struct { TargetLocation string `json:"targetLocation"` // Fields inherited from ReplicationProviderSpecificContainerMappingInput + + InstanceType string `json:"instanceType"` +} + +func (s VMwareCbtContainerMappingInput) ReplicationProviderSpecificContainerMappingInput() BaseReplicationProviderSpecificContainerMappingInputImpl { + return BaseReplicationProviderSpecificContainerMappingInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareCbtContainerMappingInput{} @@ -32,9 +40,10 @@ func (s VMwareCbtContainerMappingInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareCbtContainerMappingInput: %+v", err) } + decoded["instanceType"] = "VMwareCbt" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtprotectioncontainermappingdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtprotectioncontainermappingdetails.go index 29bd438cf42d..0e4716ee72b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtprotectioncontainermappingdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/model_vmwarecbtprotectioncontainermappingdetails.go @@ -21,6 +21,14 @@ type VMwareCbtProtectionContainerMappingDetails struct { TargetLocation *string `json:"targetLocation,omitempty"` // Fields inherited from ProtectionContainerMappingProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s VMwareCbtProtectionContainerMappingDetails) ProtectionContainerMappingProviderSpecificDetails() BaseProtectionContainerMappingProviderSpecificDetailsImpl { + return BaseProtectionContainerMappingProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareCbtProtectionContainerMappingDetails{} @@ -34,9 +42,10 @@ func (s VMwareCbtProtectionContainerMappingDetails) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareCbtProtectionContainerMappingDetails: %+v", err) } + decoded["instanceType"] = "VMwareCbt" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/version.go index bff3e96cbcb3..9bbb3ab419bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainermappings/version.go @@ -1,12 +1,10 @@ package replicationprotectioncontainermappings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationprotectioncontainermappings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationprotectioncontainermappings/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/README.md index 0ba3feccef53..27d78ae8221d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers` Documentation -The `replicationprotectioncontainers` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationprotectioncontainers` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") payload := replicationprotectioncontainers.CreateProtectionContainerInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") payload := replicationprotectioncontainers.DiscoverProtectableItemRequest{ // ... @@ -70,7 +70,7 @@ if err := client.DiscoverProtectableItemThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationprotectioncontainers.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationprotectioncontainers.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") // alternatively `client.ListByReplicationFabrics(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationFabricsComplete(ctx, id) @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") payload := replicationprotectioncontainers.SwitchClusterProtectionInput{ // ... @@ -137,7 +137,7 @@ if err := client.SwitchClusterProtectionThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationProtectionContainerValue") +id := replicationprotectioncontainers.NewReplicationProtectionContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "protectionContainerName") payload := replicationprotectioncontainers.SwitchProtectionInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/client.go index 42e87f351105..29eec428f7f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/client.go @@ -15,7 +15,7 @@ type ReplicationProtectionContainersClient struct { } func NewReplicationProtectionContainersClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationProtectionContainersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationprotectioncontainers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationprotectioncontainers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationProtectionContainersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationfabric.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationfabric.go index def9cc260452..976708ca52d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationfabric.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationfabric.go @@ -44,7 +44,7 @@ func ParseReplicationFabricID(input string) (*ReplicationFabricId, error) { } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationFabricId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationprotectioncontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationprotectioncontainer.go index dbbd4e1775a8..b8d2d8fb70ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationprotectioncontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_replicationprotectioncontainer.go @@ -46,7 +46,7 @@ func ParseReplicationProtectionContainerID(input string) (*ReplicationProtection } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationProtectionContainerIDInsensitively(input string) (*Replicat } id := ReplicationProtectionContainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationProtectionContainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationProtectionContainers", "replicationProtectionContainers", "replicationProtectionContainers"), - resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "replicationProtectionContainerValue"), + resourceids.UserSpecifiedSegment("replicationProtectionContainerName", "protectionContainerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_vault.go index 53a724377644..f5f018b0031c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_get.go index 3ea4716c444e..76f18d1e4d05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationProtectionContainersClient) Get(ctx context.Context, id Repli var model ProtectionContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acontainercreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acontainercreationinput.go index 266ed59b59f0..f119b15f58df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acontainercreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acontainercreationinput.go @@ -13,6 +13,14 @@ var _ ReplicationProviderSpecificContainerCreationInput = A2AContainerCreationIn type A2AContainerCreationInput struct { // Fields inherited from ReplicationProviderSpecificContainerCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s A2AContainerCreationInput) ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl { + return BaseReplicationProviderSpecificContainerCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2AContainerCreationInput{} @@ -26,9 +34,10 @@ func (s A2AContainerCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2AContainerCreationInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acrossclustermigrationcontainercreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acrossclustermigrationcontainercreationinput.go index d5d6094ea4e4..8f67cf738e53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acrossclustermigrationcontainercreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2acrossclustermigrationcontainercreationinput.go @@ -13,6 +13,14 @@ var _ ReplicationProviderSpecificContainerCreationInput = A2ACrossClusterMigrati type A2ACrossClusterMigrationContainerCreationInput struct { // Fields inherited from ReplicationProviderSpecificContainerCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ACrossClusterMigrationContainerCreationInput) ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl { + return BaseReplicationProviderSpecificContainerCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ACrossClusterMigrationContainerCreationInput{} @@ -26,9 +34,10 @@ func (s A2ACrossClusterMigrationContainerCreationInput) MarshalJSON() ([]byte, e } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ACrossClusterMigrationContainerCreationInput: %+v", err) } + decoded["instanceType"] = "A2ACrossClusterMigration" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchclusterprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchclusterprotectioninput.go index 5d52d67ba044..162f36c45b27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchclusterprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchclusterprotectioninput.go @@ -16,6 +16,14 @@ type A2ASwitchClusterProtectionInput struct { RecoveryContainerId *string `json:"recoveryContainerId,omitempty"` // Fields inherited from SwitchClusterProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ASwitchClusterProtectionInput) SwitchClusterProtectionProviderSpecificInput() BaseSwitchClusterProtectionProviderSpecificInputImpl { + return BaseSwitchClusterProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ASwitchClusterProtectionInput{} @@ -29,9 +37,10 @@ func (s A2ASwitchClusterProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ASwitchClusterProtectionInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchprotectioninput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchprotectioninput.go index a2d5ecbeefb5..fc86ae07dcd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchprotectioninput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_a2aswitchprotectioninput.go @@ -26,6 +26,14 @@ type A2ASwitchProtectionInput struct { VMManagedDisks *[]A2AVMManagedDiskInputDetails `json:"vmManagedDisks,omitempty"` // Fields inherited from SwitchProtectionProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s A2ASwitchProtectionInput) SwitchProtectionProviderSpecificInput() BaseSwitchProtectionProviderSpecificInputImpl { + return BaseSwitchProtectionProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = A2ASwitchProtectionInput{} @@ -39,9 +47,10 @@ func (s A2ASwitchProtectionInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling A2ASwitchProtectionInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_createprotectioncontainerinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_createprotectioncontainerinputproperties.go index c3322f96a095..48d608a76f06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_createprotectioncontainerinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_createprotectioncontainerinputproperties.go @@ -29,7 +29,7 @@ func (s *CreateProtectionContainerInputProperties) UnmarshalJSON(bytes []byte) e output := make([]ReplicationProviderSpecificContainerCreationInput, 0) for i, val := range listTemp { - impl, err := unmarshalReplicationProviderSpecificContainerCreationInputImplementation(val) + impl, err := UnmarshalReplicationProviderSpecificContainerCreationInputImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificInput' for 'CreateProtectionContainerInputProperties': %+v", i, err) } @@ -37,5 +37,6 @@ func (s *CreateProtectionContainerInputProperties) UnmarshalJSON(bytes []byte) e } s.ProviderSpecificInput = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_replicationproviderspecificcontainercreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_replicationproviderspecificcontainercreationinput.go index a7fde08841d6..584ed7078c6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_replicationproviderspecificcontainercreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_replicationproviderspecificcontainercreationinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReplicationProviderSpecificContainerCreationInput interface { + ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl } -// RawReplicationProviderSpecificContainerCreationInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReplicationProviderSpecificContainerCreationInput = BaseReplicationProviderSpecificContainerCreationInputImpl{} + +type BaseReplicationProviderSpecificContainerCreationInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseReplicationProviderSpecificContainerCreationInputImpl) ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl { + return s +} + +var _ ReplicationProviderSpecificContainerCreationInput = RawReplicationProviderSpecificContainerCreationInputImpl{} + +// RawReplicationProviderSpecificContainerCreationInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReplicationProviderSpecificContainerCreationInputImpl struct { - Type string - Values map[string]interface{} + replicationProviderSpecificContainerCreationInput BaseReplicationProviderSpecificContainerCreationInputImpl + Type string + Values map[string]interface{} } -func unmarshalReplicationProviderSpecificContainerCreationInputImplementation(input []byte) (ReplicationProviderSpecificContainerCreationInput, error) { +func (s RawReplicationProviderSpecificContainerCreationInputImpl) ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl { + return s.replicationProviderSpecificContainerCreationInput +} + +func UnmarshalReplicationProviderSpecificContainerCreationInputImplementation(input []byte) (ReplicationProviderSpecificContainerCreationInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReplicationProviderSpecificContainerCreationInputImplementation(in return nil, fmt.Errorf("unmarshaling ReplicationProviderSpecificContainerCreationInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -60,10 +77,15 @@ func unmarshalReplicationProviderSpecificContainerCreationInputImplementation(in return out, nil } - out := RawReplicationProviderSpecificContainerCreationInputImpl{ + var parent BaseReplicationProviderSpecificContainerCreationInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReplicationProviderSpecificContainerCreationInputImpl: %+v", err) + } + + return RawReplicationProviderSpecificContainerCreationInputImpl{ + replicationProviderSpecificContainerCreationInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectioninputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectioninputproperties.go index cda13d52d7f1..4a8c6eb5b38d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectioninputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectioninputproperties.go @@ -16,10 +16,11 @@ type SwitchClusterProtectionInputProperties struct { var _ json.Unmarshaler = &SwitchClusterProtectionInputProperties{} func (s *SwitchClusterProtectionInputProperties) UnmarshalJSON(bytes []byte) error { - type alias SwitchClusterProtectionInputProperties - var decoded alias + var decoded struct { + ReplicationProtectionClusterName *string `json:"replicationProtectionClusterName,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SwitchClusterProtectionInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ReplicationProtectionClusterName = decoded.ReplicationProtectionClusterName @@ -30,11 +31,12 @@ func (s *SwitchClusterProtectionInputProperties) UnmarshalJSON(bytes []byte) err } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalSwitchClusterProtectionProviderSpecificInputImplementation(v) + impl, err := UnmarshalSwitchClusterProtectionProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'SwitchClusterProtectionInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectionproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectionproviderspecificinput.go index ed4680c5f83b..acc419f50bac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectionproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchclusterprotectionproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SwitchClusterProtectionProviderSpecificInput interface { + SwitchClusterProtectionProviderSpecificInput() BaseSwitchClusterProtectionProviderSpecificInputImpl } -// RawSwitchClusterProtectionProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SwitchClusterProtectionProviderSpecificInput = BaseSwitchClusterProtectionProviderSpecificInputImpl{} + +type BaseSwitchClusterProtectionProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseSwitchClusterProtectionProviderSpecificInputImpl) SwitchClusterProtectionProviderSpecificInput() BaseSwitchClusterProtectionProviderSpecificInputImpl { + return s +} + +var _ SwitchClusterProtectionProviderSpecificInput = RawSwitchClusterProtectionProviderSpecificInputImpl{} + +// RawSwitchClusterProtectionProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSwitchClusterProtectionProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + switchClusterProtectionProviderSpecificInput BaseSwitchClusterProtectionProviderSpecificInputImpl + Type string + Values map[string]interface{} } -func unmarshalSwitchClusterProtectionProviderSpecificInputImplementation(input []byte) (SwitchClusterProtectionProviderSpecificInput, error) { +func (s RawSwitchClusterProtectionProviderSpecificInputImpl) SwitchClusterProtectionProviderSpecificInput() BaseSwitchClusterProtectionProviderSpecificInputImpl { + return s.switchClusterProtectionProviderSpecificInput +} + +func UnmarshalSwitchClusterProtectionProviderSpecificInputImplementation(input []byte) (SwitchClusterProtectionProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSwitchClusterProtectionProviderSpecificInputImplementation(input [ return nil, fmt.Errorf("unmarshaling SwitchClusterProtectionProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -44,10 +61,15 @@ func unmarshalSwitchClusterProtectionProviderSpecificInputImplementation(input [ return out, nil } - out := RawSwitchClusterProtectionProviderSpecificInputImpl{ + var parent BaseSwitchClusterProtectionProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSwitchClusterProtectionProviderSpecificInputImpl: %+v", err) + } + + return RawSwitchClusterProtectionProviderSpecificInputImpl{ + switchClusterProtectionProviderSpecificInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectioninputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectioninputproperties.go index 9ddc61f5e271..1beb52fc5993 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectioninputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectioninputproperties.go @@ -16,10 +16,11 @@ type SwitchProtectionInputProperties struct { var _ json.Unmarshaler = &SwitchProtectionInputProperties{} func (s *SwitchProtectionInputProperties) UnmarshalJSON(bytes []byte) error { - type alias SwitchProtectionInputProperties - var decoded alias + var decoded struct { + ReplicationProtectedItemName *string `json:"replicationProtectedItemName,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SwitchProtectionInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ReplicationProtectedItemName = decoded.ReplicationProtectedItemName @@ -30,11 +31,12 @@ func (s *SwitchProtectionInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSpecificDetails"]; ok { - impl, err := unmarshalSwitchProtectionProviderSpecificInputImplementation(v) + impl, err := UnmarshalSwitchProtectionProviderSpecificInputImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSpecificDetails' for 'SwitchProtectionInputProperties': %+v", err) } s.ProviderSpecificDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectionproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectionproviderspecificinput.go index 5d72ac382a0a..1a50b26958ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectionproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_switchprotectionproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SwitchProtectionProviderSpecificInput interface { + SwitchProtectionProviderSpecificInput() BaseSwitchProtectionProviderSpecificInputImpl } -// RawSwitchProtectionProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SwitchProtectionProviderSpecificInput = BaseSwitchProtectionProviderSpecificInputImpl{} + +type BaseSwitchProtectionProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseSwitchProtectionProviderSpecificInputImpl) SwitchProtectionProviderSpecificInput() BaseSwitchProtectionProviderSpecificInputImpl { + return s +} + +var _ SwitchProtectionProviderSpecificInput = RawSwitchProtectionProviderSpecificInputImpl{} + +// RawSwitchProtectionProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSwitchProtectionProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + switchProtectionProviderSpecificInput BaseSwitchProtectionProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawSwitchProtectionProviderSpecificInputImpl) SwitchProtectionProviderSpecificInput() BaseSwitchProtectionProviderSpecificInputImpl { + return s.switchProtectionProviderSpecificInput } -func unmarshalSwitchProtectionProviderSpecificInputImplementation(input []byte) (SwitchProtectionProviderSpecificInput, error) { +func UnmarshalSwitchProtectionProviderSpecificInputImplementation(input []byte) (SwitchProtectionProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSwitchProtectionProviderSpecificInputImplementation(input []byte) return nil, fmt.Errorf("unmarshaling SwitchProtectionProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -44,10 +61,15 @@ func unmarshalSwitchProtectionProviderSpecificInputImplementation(input []byte) return out, nil } - out := RawSwitchProtectionProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseSwitchProtectionProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSwitchProtectionProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawSwitchProtectionProviderSpecificInputImpl{ + switchProtectionProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_vmwarecbtcontainercreationinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_vmwarecbtcontainercreationinput.go index 2db1f2ac651a..bea3e3c4f935 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_vmwarecbtcontainercreationinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/model_vmwarecbtcontainercreationinput.go @@ -13,6 +13,14 @@ var _ ReplicationProviderSpecificContainerCreationInput = VMwareCbtContainerCrea type VMwareCbtContainerCreationInput struct { // Fields inherited from ReplicationProviderSpecificContainerCreationInput + + InstanceType string `json:"instanceType"` +} + +func (s VMwareCbtContainerCreationInput) ReplicationProviderSpecificContainerCreationInput() BaseReplicationProviderSpecificContainerCreationInputImpl { + return BaseReplicationProviderSpecificContainerCreationInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = VMwareCbtContainerCreationInput{} @@ -26,9 +34,10 @@ func (s VMwareCbtContainerCreationInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VMwareCbtContainerCreationInput: %+v", err) } + decoded["instanceType"] = "VMwareCbt" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/version.go index 9ba5ecedd1b3..5dac995793e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationprotectioncontainers/version.go @@ -1,12 +1,10 @@ package replicationprotectioncontainers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationprotectioncontainers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationprotectioncontainers/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/README.md index 60f04c9ca212..8b3b12aa8391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans` Documentation -The `replicationrecoveryplans` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationrecoveryplans` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.CreateRecoveryPlanInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") if err := client.FailoverCancelThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.FailoverCancelThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") if err := client.FailoverCommitThenPoll(ctx, id); err != nil { // handle the error @@ -77,7 +77,7 @@ if err := client.FailoverCommitThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationrecoveryplans.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.RecoveryPlanPlannedFailoverInput{ // ... @@ -127,7 +127,7 @@ if err := client.PlannedFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") if err := client.ReprotectThenPoll(ctx, id); err != nil { // handle the error @@ -139,7 +139,7 @@ if err := client.ReprotectThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.RecoveryPlanTestFailoverInput{ // ... @@ -156,7 +156,7 @@ if err := client.TestFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.RecoveryPlanTestFailoverCleanupInput{ // ... @@ -173,7 +173,7 @@ if err := client.TestFailoverCleanupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.RecoveryPlanUnplannedFailoverInput{ // ... @@ -190,7 +190,7 @@ if err := client.UnplannedFailoverThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationRecoveryPlanValue") +id := replicationrecoveryplans.NewReplicationRecoveryPlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "recoveryPlanName") payload := replicationrecoveryplans.UpdateRecoveryPlanInput{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/client.go index 1718910fc8af..3337fa87cfc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/client.go @@ -15,7 +15,7 @@ type ReplicationRecoveryPlansClient struct { } func NewReplicationRecoveryPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationRecoveryPlansClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationrecoveryplans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationrecoveryplans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationRecoveryPlansClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_replicationrecoveryplan.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_replicationrecoveryplan.go index 83c461d68055..b1d8edc1b997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_replicationrecoveryplan.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_replicationrecoveryplan.go @@ -44,7 +44,7 @@ func ParseReplicationRecoveryPlanID(input string) (*ReplicationRecoveryPlanId, e } id := ReplicationRecoveryPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationRecoveryPlanIDInsensitively(input string) (*ReplicationReco } id := ReplicationRecoveryPlanId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationRecoveryPlanId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationRecoveryPlans", "replicationRecoveryPlans", "replicationRecoveryPlans"), - resourceids.UserSpecifiedSegment("replicationRecoveryPlanName", "replicationRecoveryPlanValue"), + resourceids.UserSpecifiedSegment("replicationRecoveryPlanName", "recoveryPlanName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_vault.go index a48dedbcbe49..377ae873a399 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_get.go index 8ea4cd778516..3bb616275016 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationRecoveryPlansClient) Get(ctx context.Context, id ReplicationR var model RecoveryPlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_createrecoveryplaninputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_createrecoveryplaninputproperties.go index cd2989da2de5..c0779757fd45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_createrecoveryplaninputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_createrecoveryplaninputproperties.go @@ -19,10 +19,14 @@ type CreateRecoveryPlanInputProperties struct { var _ json.Unmarshaler = &CreateRecoveryPlanInputProperties{} func (s *CreateRecoveryPlanInputProperties) UnmarshalJSON(bytes []byte) error { - type alias CreateRecoveryPlanInputProperties - var decoded alias + var decoded struct { + FailoverDeploymentModel *FailoverDeploymentModel `json:"failoverDeploymentModel,omitempty"` + Groups []RecoveryPlanGroup `json:"groups"` + PrimaryFabricId string `json:"primaryFabricId"` + RecoveryFabricId string `json:"recoveryFabricId"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into CreateRecoveryPlanInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDeploymentModel = decoded.FailoverDeploymentModel @@ -43,7 +47,7 @@ func (s *CreateRecoveryPlanInputProperties) UnmarshalJSON(bytes []byte) error { output := make([]RecoveryPlanProviderSpecificInput, 0) for i, val := range listTemp { - impl, err := unmarshalRecoveryPlanProviderSpecificInputImplementation(val) + impl, err := UnmarshalRecoveryPlanProviderSpecificInputImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificInput' for 'CreateRecoveryPlanInputProperties': %+v", i, err) } @@ -51,5 +55,6 @@ func (s *CreateRecoveryPlanInputProperties) UnmarshalJSON(bytes []byte) error { } s.ProviderSpecificInput = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2adetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2adetails.go index 4c00474efd59..67f3a9adf658 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2adetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2adetails.go @@ -19,6 +19,14 @@ type RecoveryPlanA2ADetails struct { RecoveryZone *string `json:"recoveryZone,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificDetails + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanA2ADetails) RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl { + return BaseRecoveryPlanProviderSpecificDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanA2ADetails{} @@ -32,9 +40,10 @@ func (s RecoveryPlanA2ADetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanA2ADetails: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2afailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2afailoverinput.go index ed65da3bfd66..a33bb19bdc1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2afailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2afailoverinput.go @@ -16,6 +16,14 @@ type RecoveryPlanA2AFailoverInput struct { RecoveryPointType A2ARpRecoveryPointType `json:"recoveryPointType"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanA2AFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanA2AFailoverInput{} @@ -29,9 +37,10 @@ func (s RecoveryPlanA2AFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanA2AFailoverInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2ainput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2ainput.go index ff7269aea887..3768e22d457c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2ainput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplana2ainput.go @@ -19,6 +19,14 @@ type RecoveryPlanA2AInput struct { RecoveryZone *string `json:"recoveryZone,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanA2AInput) RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl { + return BaseRecoveryPlanProviderSpecificInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanA2AInput{} @@ -32,9 +40,10 @@ func (s RecoveryPlanA2AInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanA2AInput: %+v", err) } + decoded["instanceType"] = "A2A" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanaction.go index 48d149ecce56..176b1d7a5f89 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanaction.go @@ -18,10 +18,13 @@ type RecoveryPlanAction struct { var _ json.Unmarshaler = &RecoveryPlanAction{} func (s *RecoveryPlanAction) UnmarshalJSON(bytes []byte) error { - type alias RecoveryPlanAction - var decoded alias + var decoded struct { + ActionName string `json:"actionName"` + FailoverDirections []PossibleOperationsDirections `json:"failoverDirections"` + FailoverTypes []ReplicationProtectedItemOperation `json:"failoverTypes"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RecoveryPlanAction: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ActionName = decoded.ActionName @@ -34,11 +37,12 @@ func (s *RecoveryPlanAction) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customDetails"]; ok { - impl, err := unmarshalRecoveryPlanActionDetailsImplementation(v) + impl, err := UnmarshalRecoveryPlanActionDetailsImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomDetails' for 'RecoveryPlanAction': %+v", err) } s.CustomDetails = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanactiondetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanactiondetails.go index 8743f523c010..cd463d578aa1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanactiondetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanactiondetails.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RecoveryPlanActionDetails interface { + RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl } -// RawRecoveryPlanActionDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RecoveryPlanActionDetails = BaseRecoveryPlanActionDetailsImpl{} + +type BaseRecoveryPlanActionDetailsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseRecoveryPlanActionDetailsImpl) RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl { + return s +} + +var _ RecoveryPlanActionDetails = RawRecoveryPlanActionDetailsImpl{} + +// RawRecoveryPlanActionDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRecoveryPlanActionDetailsImpl struct { - Type string - Values map[string]interface{} + recoveryPlanActionDetails BaseRecoveryPlanActionDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawRecoveryPlanActionDetailsImpl) RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl { + return s.recoveryPlanActionDetails } -func unmarshalRecoveryPlanActionDetailsImplementation(input []byte) (RecoveryPlanActionDetails, error) { +func UnmarshalRecoveryPlanActionDetailsImplementation(input []byte) (RecoveryPlanActionDetails, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRecoveryPlanActionDetailsImplementation(input []byte) (RecoveryPla return nil, fmt.Errorf("unmarshaling RecoveryPlanActionDetails into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AutomationRunbookActionDetails") { @@ -60,10 +77,15 @@ func unmarshalRecoveryPlanActionDetailsImplementation(input []byte) (RecoveryPla return out, nil } - out := RawRecoveryPlanActionDetailsImpl{ - Type: value, - Values: temp, + var parent BaseRecoveryPlanActionDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRecoveryPlanActionDetailsImpl: %+v", err) } - return out, nil + + return RawRecoveryPlanActionDetailsImpl{ + recoveryPlanActionDetails: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanautomationrunbookactiondetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanautomationrunbookactiondetails.go index 58750909e966..a1648419ce9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanautomationrunbookactiondetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanautomationrunbookactiondetails.go @@ -16,6 +16,14 @@ type RecoveryPlanAutomationRunbookActionDetails struct { Timeout *string `json:"timeout,omitempty"` // Fields inherited from RecoveryPlanActionDetails + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanAutomationRunbookActionDetails) RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl { + return BaseRecoveryPlanActionDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanAutomationRunbookActionDetails{} @@ -29,9 +37,10 @@ func (s RecoveryPlanAutomationRunbookActionDetails) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanAutomationRunbookActionDetails: %+v", err) } + decoded["instanceType"] = "AutomationRunbookActionDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailbackinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailbackinput.go index eeda143cee05..9a4b0f1b42f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailbackinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailbackinput.go @@ -15,6 +15,14 @@ type RecoveryPlanHyperVReplicaAzureFailbackInput struct { RecoveryVMCreationOption AlternateLocationRecoveryOption `json:"recoveryVmCreationOption"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanHyperVReplicaAzureFailbackInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanHyperVReplicaAzureFailbackInput{} @@ -28,9 +36,10 @@ func (s RecoveryPlanHyperVReplicaAzureFailbackInput) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanHyperVReplicaAzureFailbackInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzureFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailoverinput.go index 5a0fe3870ccd..343565118417 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanhypervreplicaazurefailoverinput.go @@ -16,6 +16,14 @@ type RecoveryPlanHyperVReplicaAzureFailoverInput struct { SecondaryKekCertificatePfx *string `json:"secondaryKekCertificatePfx,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanHyperVReplicaAzureFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanHyperVReplicaAzureFailoverInput{} @@ -29,9 +37,10 @@ func (s RecoveryPlanHyperVReplicaAzureFailoverInput) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanHyperVReplicaAzureFailoverInput: %+v", err) } + decoded["instanceType"] = "HyperVReplicaAzure" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmageazurev2failoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmageazurev2failoverinput.go index a69c322e8307..3bdbbc0769f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmageazurev2failoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmageazurev2failoverinput.go @@ -15,6 +15,14 @@ type RecoveryPlanInMageAzureV2FailoverInput struct { UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanInMageAzureV2FailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanInMageAzureV2FailoverInput{} @@ -28,9 +36,10 @@ func (s RecoveryPlanInMageAzureV2FailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanInMageAzureV2FailoverInput: %+v", err) } + decoded["instanceType"] = "InMageAzureV2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagefailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagefailoverinput.go index f9a288c0d631..bb3d2294b2b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagefailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagefailoverinput.go @@ -14,6 +14,14 @@ type RecoveryPlanInMageFailoverInput struct { RecoveryPointType RpInMageRecoveryPointType `json:"recoveryPointType"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanInMageFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanInMageFailoverInput{} @@ -27,9 +35,10 @@ func (s RecoveryPlanInMageFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanInMageFailoverInput: %+v", err) } + decoded["instanceType"] = "InMage" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailbackfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailbackfailoverinput.go index cf4ee99187e9..f49c9de401d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailbackfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailbackfailoverinput.go @@ -15,6 +15,14 @@ type RecoveryPlanInMageRcmFailbackFailoverInput struct { UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanInMageRcmFailbackFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanInMageRcmFailbackFailoverInput{} @@ -28,9 +36,10 @@ func (s RecoveryPlanInMageRcmFailbackFailoverInput) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanInMageRcmFailbackFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageRcmFailback" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailoverinput.go index eace4ab2d6c0..04eb0d55758d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplaninmagercmfailoverinput.go @@ -15,6 +15,14 @@ type RecoveryPlanInMageRcmFailoverInput struct { UseMultiVMSyncPoint *string `json:"useMultiVmSyncPoint,omitempty"` // Fields inherited from RecoveryPlanProviderSpecificFailoverInput + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanInMageRcmFailoverInput) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return BaseRecoveryPlanProviderSpecificFailoverInputImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanInMageRcmFailoverInput{} @@ -28,9 +36,10 @@ func (s RecoveryPlanInMageRcmFailoverInput) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanInMageRcmFailoverInput: %+v", err) } + decoded["instanceType"] = "InMageRcm" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanmanualactiondetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanmanualactiondetails.go index 09234f4e8233..91503cc854c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanmanualactiondetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanmanualactiondetails.go @@ -14,6 +14,14 @@ type RecoveryPlanManualActionDetails struct { Description *string `json:"description,omitempty"` // Fields inherited from RecoveryPlanActionDetails + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanManualActionDetails) RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl { + return BaseRecoveryPlanActionDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanManualActionDetails{} @@ -27,9 +35,10 @@ func (s RecoveryPlanManualActionDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanManualActionDetails: %+v", err) } + decoded["instanceType"] = "ManualActionDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanplannedfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanplannedfailoverinputproperties.go index f4e94fedb5b2..81ea5a587bb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanplannedfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanplannedfailoverinputproperties.go @@ -16,10 +16,11 @@ type RecoveryPlanPlannedFailoverInputProperties struct { var _ json.Unmarshaler = &RecoveryPlanPlannedFailoverInputProperties{} func (s *RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias RecoveryPlanPlannedFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection PossibleOperationsDirections `json:"failoverDirection"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RecoveryPlanPlannedFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -37,7 +38,7 @@ func (s *RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON(bytes []byte) output := make([]RecoveryPlanProviderSpecificFailoverInput, 0) for i, val := range listTemp { - impl, err := unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) + impl, err := UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificDetails' for 'RecoveryPlanPlannedFailoverInputProperties': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *RecoveryPlanPlannedFailoverInputProperties) UnmarshalJSON(bytes []byte) } s.ProviderSpecificDetails = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproperties.go index 76d17795541a..035d56e18641 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproperties.go @@ -69,10 +69,25 @@ func (o *RecoveryPlanProperties) SetLastUnplannedFailoverTimeAsTime(input time.T var _ json.Unmarshaler = &RecoveryPlanProperties{} func (s *RecoveryPlanProperties) UnmarshalJSON(bytes []byte) error { - type alias RecoveryPlanProperties - var decoded alias + var decoded struct { + AllowedOperations *[]string `json:"allowedOperations,omitempty"` + CurrentScenario *CurrentScenarioDetails `json:"currentScenario,omitempty"` + CurrentScenarioStatus *string `json:"currentScenarioStatus,omitempty"` + CurrentScenarioStatusDescription *string `json:"currentScenarioStatusDescription,omitempty"` + FailoverDeploymentModel *string `json:"failoverDeploymentModel,omitempty"` + FriendlyName *string `json:"friendlyName,omitempty"` + Groups *[]RecoveryPlanGroup `json:"groups,omitempty"` + LastPlannedFailoverTime *string `json:"lastPlannedFailoverTime,omitempty"` + LastTestFailoverTime *string `json:"lastTestFailoverTime,omitempty"` + LastUnplannedFailoverTime *string `json:"lastUnplannedFailoverTime,omitempty"` + PrimaryFabricFriendlyName *string `json:"primaryFabricFriendlyName,omitempty"` + PrimaryFabricId *string `json:"primaryFabricId,omitempty"` + RecoveryFabricFriendlyName *string `json:"recoveryFabricFriendlyName,omitempty"` + RecoveryFabricId *string `json:"recoveryFabricId,omitempty"` + ReplicationProviders *[]string `json:"replicationProviders,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RecoveryPlanProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AllowedOperations = decoded.AllowedOperations @@ -104,7 +119,7 @@ func (s *RecoveryPlanProperties) UnmarshalJSON(bytes []byte) error { output := make([]RecoveryPlanProviderSpecificDetails, 0) for i, val := range listTemp { - impl, err := unmarshalRecoveryPlanProviderSpecificDetailsImplementation(val) + impl, err := UnmarshalRecoveryPlanProviderSpecificDetailsImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificDetails' for 'RecoveryPlanProperties': %+v", i, err) } @@ -112,5 +127,6 @@ func (s *RecoveryPlanProperties) UnmarshalJSON(bytes []byte) error { } s.ProviderSpecificDetails = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificdetails.go index f3f72d62347a..903584989ae8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificdetails.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RecoveryPlanProviderSpecificDetails interface { + RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl } -// RawRecoveryPlanProviderSpecificDetailsImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RecoveryPlanProviderSpecificDetails = BaseRecoveryPlanProviderSpecificDetailsImpl{} + +type BaseRecoveryPlanProviderSpecificDetailsImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseRecoveryPlanProviderSpecificDetailsImpl) RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl { + return s +} + +var _ RecoveryPlanProviderSpecificDetails = RawRecoveryPlanProviderSpecificDetailsImpl{} + +// RawRecoveryPlanProviderSpecificDetailsImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRecoveryPlanProviderSpecificDetailsImpl struct { - Type string - Values map[string]interface{} + recoveryPlanProviderSpecificDetails BaseRecoveryPlanProviderSpecificDetailsImpl + Type string + Values map[string]interface{} +} + +func (s RawRecoveryPlanProviderSpecificDetailsImpl) RecoveryPlanProviderSpecificDetails() BaseRecoveryPlanProviderSpecificDetailsImpl { + return s.recoveryPlanProviderSpecificDetails } -func unmarshalRecoveryPlanProviderSpecificDetailsImplementation(input []byte) (RecoveryPlanProviderSpecificDetails, error) { +func UnmarshalRecoveryPlanProviderSpecificDetailsImplementation(input []byte) (RecoveryPlanProviderSpecificDetails, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRecoveryPlanProviderSpecificDetailsImplementation(input []byte) (R return nil, fmt.Errorf("unmarshaling RecoveryPlanProviderSpecificDetails into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -44,10 +61,15 @@ func unmarshalRecoveryPlanProviderSpecificDetailsImplementation(input []byte) (R return out, nil } - out := RawRecoveryPlanProviderSpecificDetailsImpl{ - Type: value, - Values: temp, + var parent BaseRecoveryPlanProviderSpecificDetailsImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRecoveryPlanProviderSpecificDetailsImpl: %+v", err) } - return out, nil + + return RawRecoveryPlanProviderSpecificDetailsImpl{ + recoveryPlanProviderSpecificDetails: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificfailoverinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificfailoverinput.go index 5edf059e80e5..d5045326bfc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificfailoverinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificfailoverinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RecoveryPlanProviderSpecificFailoverInput interface { + RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl } -// RawRecoveryPlanProviderSpecificFailoverInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RecoveryPlanProviderSpecificFailoverInput = BaseRecoveryPlanProviderSpecificFailoverInputImpl{} + +type BaseRecoveryPlanProviderSpecificFailoverInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseRecoveryPlanProviderSpecificFailoverInputImpl) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return s +} + +var _ RecoveryPlanProviderSpecificFailoverInput = RawRecoveryPlanProviderSpecificFailoverInputImpl{} + +// RawRecoveryPlanProviderSpecificFailoverInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRecoveryPlanProviderSpecificFailoverInputImpl struct { - Type string - Values map[string]interface{} + recoveryPlanProviderSpecificFailoverInput BaseRecoveryPlanProviderSpecificFailoverInputImpl + Type string + Values map[string]interface{} } -func unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(input []byte) (RecoveryPlanProviderSpecificFailoverInput, error) { +func (s RawRecoveryPlanProviderSpecificFailoverInputImpl) RecoveryPlanProviderSpecificFailoverInput() BaseRecoveryPlanProviderSpecificFailoverInputImpl { + return s.recoveryPlanProviderSpecificFailoverInput +} + +func UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(input []byte) (RecoveryPlanProviderSpecificFailoverInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(input []by return nil, fmt.Errorf("unmarshaling RecoveryPlanProviderSpecificFailoverInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -92,10 +109,15 @@ func unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(input []by return out, nil } - out := RawRecoveryPlanProviderSpecificFailoverInputImpl{ + var parent BaseRecoveryPlanProviderSpecificFailoverInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRecoveryPlanProviderSpecificFailoverInputImpl: %+v", err) + } + + return RawRecoveryPlanProviderSpecificFailoverInputImpl{ + recoveryPlanProviderSpecificFailoverInput: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificinput.go index b0870834d88b..8b431bd3c1b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanproviderspecificinput.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type RecoveryPlanProviderSpecificInput interface { + RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl } -// RawRecoveryPlanProviderSpecificInputImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ RecoveryPlanProviderSpecificInput = BaseRecoveryPlanProviderSpecificInputImpl{} + +type BaseRecoveryPlanProviderSpecificInputImpl struct { + InstanceType string `json:"instanceType"` +} + +func (s BaseRecoveryPlanProviderSpecificInputImpl) RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl { + return s +} + +var _ RecoveryPlanProviderSpecificInput = RawRecoveryPlanProviderSpecificInputImpl{} + +// RawRecoveryPlanProviderSpecificInputImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawRecoveryPlanProviderSpecificInputImpl struct { - Type string - Values map[string]interface{} + recoveryPlanProviderSpecificInput BaseRecoveryPlanProviderSpecificInputImpl + Type string + Values map[string]interface{} +} + +func (s RawRecoveryPlanProviderSpecificInputImpl) RecoveryPlanProviderSpecificInput() BaseRecoveryPlanProviderSpecificInputImpl { + return s.recoveryPlanProviderSpecificInput } -func unmarshalRecoveryPlanProviderSpecificInputImplementation(input []byte) (RecoveryPlanProviderSpecificInput, error) { +func UnmarshalRecoveryPlanProviderSpecificInputImplementation(input []byte) (RecoveryPlanProviderSpecificInput, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalRecoveryPlanProviderSpecificInputImplementation(input []byte) (Rec return nil, fmt.Errorf("unmarshaling RecoveryPlanProviderSpecificInput into map[string]interface: %+v", err) } - value, ok := temp["instanceType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["instanceType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "A2A") { @@ -44,10 +61,15 @@ func unmarshalRecoveryPlanProviderSpecificInputImplementation(input []byte) (Rec return out, nil } - out := RawRecoveryPlanProviderSpecificInputImpl{ - Type: value, - Values: temp, + var parent BaseRecoveryPlanProviderSpecificInputImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseRecoveryPlanProviderSpecificInputImpl: %+v", err) } - return out, nil + + return RawRecoveryPlanProviderSpecificInputImpl{ + recoveryPlanProviderSpecificInput: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanscriptactiondetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanscriptactiondetails.go index 07855278c4f4..9e44da053e97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanscriptactiondetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanscriptactiondetails.go @@ -16,6 +16,14 @@ type RecoveryPlanScriptActionDetails struct { Timeout *string `json:"timeout,omitempty"` // Fields inherited from RecoveryPlanActionDetails + + InstanceType string `json:"instanceType"` +} + +func (s RecoveryPlanScriptActionDetails) RecoveryPlanActionDetails() BaseRecoveryPlanActionDetailsImpl { + return BaseRecoveryPlanActionDetailsImpl{ + InstanceType: s.InstanceType, + } } var _ json.Marshaler = RecoveryPlanScriptActionDetails{} @@ -29,9 +37,10 @@ func (s RecoveryPlanScriptActionDetails) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RecoveryPlanScriptActionDetails: %+v", err) } + decoded["instanceType"] = "ScriptActionDetails" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplantestfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplantestfailoverinputproperties.go index 76922b79ed19..71fc1444108d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplantestfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplantestfailoverinputproperties.go @@ -18,10 +18,13 @@ type RecoveryPlanTestFailoverInputProperties struct { var _ json.Unmarshaler = &RecoveryPlanTestFailoverInputProperties{} func (s *RecoveryPlanTestFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias RecoveryPlanTestFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection PossibleOperationsDirections `json:"failoverDirection"` + NetworkId *string `json:"networkId,omitempty"` + NetworkType string `json:"networkType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RecoveryPlanTestFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -41,7 +44,7 @@ func (s *RecoveryPlanTestFailoverInputProperties) UnmarshalJSON(bytes []byte) er output := make([]RecoveryPlanProviderSpecificFailoverInput, 0) for i, val := range listTemp { - impl, err := unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) + impl, err := UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificDetails' for 'RecoveryPlanTestFailoverInputProperties': %+v", i, err) } @@ -49,5 +52,6 @@ func (s *RecoveryPlanTestFailoverInputProperties) UnmarshalJSON(bytes []byte) er } s.ProviderSpecificDetails = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanunplannedfailoverinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanunplannedfailoverinputproperties.go index a3337d470e64..e5c8bdd52c94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanunplannedfailoverinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/model_recoveryplanunplannedfailoverinputproperties.go @@ -17,10 +17,12 @@ type RecoveryPlanUnplannedFailoverInputProperties struct { var _ json.Unmarshaler = &RecoveryPlanUnplannedFailoverInputProperties{} func (s *RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON(bytes []byte) error { - type alias RecoveryPlanUnplannedFailoverInputProperties - var decoded alias + var decoded struct { + FailoverDirection PossibleOperationsDirections `json:"failoverDirection"` + SourceSiteOperations SourceSiteOperations `json:"sourceSiteOperations"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into RecoveryPlanUnplannedFailoverInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.FailoverDirection = decoded.FailoverDirection @@ -39,7 +41,7 @@ func (s *RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON(bytes []byt output := make([]RecoveryPlanProviderSpecificFailoverInput, 0) for i, val := range listTemp { - impl, err := unmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) + impl, err := UnmarshalRecoveryPlanProviderSpecificFailoverInputImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ProviderSpecificDetails' for 'RecoveryPlanUnplannedFailoverInputProperties': %+v", i, err) } @@ -47,5 +49,6 @@ func (s *RecoveryPlanUnplannedFailoverInputProperties) UnmarshalJSON(bytes []byt } s.ProviderSpecificDetails = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/version.go index efbdb2891f02..abfd6856ada5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryplans/version.go @@ -1,12 +1,10 @@ package replicationrecoveryplans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationrecoveryplans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationrecoveryplans/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/README.md index f94d92fc4771..1f2fac682bc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders` Documentation -The `replicationrecoveryservicesproviders` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationrecoveryservicesproviders` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue") +id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "providerName") payload := replicationrecoveryservicesproviders.AddRecoveryServicesProviderInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue") +id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "providerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue") +id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "providerName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationrecoveryservicesproviders.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue") +id := replicationrecoveryservicesproviders.NewReplicationFabricID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName") // alternatively `client.ListByReplicationFabrics(ctx, id)` can be used to do batched pagination items, err := client.ListByReplicationFabricsComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue") +id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "providerName") if err := client.PurgeThenPoll(ctx, id); err != nil { // handle the error @@ -115,7 +115,7 @@ if err := client.PurgeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationFabricValue", "replicationRecoveryServicesProviderValue") +id := replicationrecoveryservicesproviders.NewReplicationRecoveryServicesProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "fabricName", "providerName") if err := client.RefreshProviderThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/client.go index 32fc26ccfb87..a6150690dac3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/client.go @@ -15,7 +15,7 @@ type ReplicationRecoveryServicesProvidersClient struct { } func NewReplicationRecoveryServicesProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationRecoveryServicesProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationrecoveryservicesproviders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationrecoveryservicesproviders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationRecoveryServicesProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationfabric.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationfabric.go index ad19e3138388..5a00c601bc13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationfabric.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationfabric.go @@ -44,7 +44,7 @@ func ParseReplicationFabricID(input string) (*ReplicationFabricId, error) { } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationFabricIDInsensitively(input string) (*ReplicationFabricId, } id := ReplicationFabricId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationFabricId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationrecoveryservicesprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationrecoveryservicesprovider.go index 27f3f8e70d30..8cd6155224cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationrecoveryservicesprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_replicationrecoveryservicesprovider.go @@ -46,7 +46,7 @@ func ParseReplicationRecoveryServicesProviderID(input string) (*ReplicationRecov } id := ReplicationRecoveryServicesProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationRecoveryServicesProviderIDInsensitively(input string) (*Rep } id := ReplicationRecoveryServicesProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationRecoveryServicesProviderId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationFabrics", "replicationFabrics", "replicationFabrics"), - resourceids.UserSpecifiedSegment("replicationFabricName", "replicationFabricValue"), + resourceids.UserSpecifiedSegment("replicationFabricName", "fabricName"), resourceids.StaticSegment("staticReplicationRecoveryServicesProviders", "replicationRecoveryServicesProviders", "replicationRecoveryServicesProviders"), - resourceids.UserSpecifiedSegment("replicationRecoveryServicesProviderName", "replicationRecoveryServicesProviderValue"), + resourceids.UserSpecifiedSegment("replicationRecoveryServicesProviderName", "providerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_vault.go index 3cd2c5281d46..c9f73babd5b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_get.go index 6266ba75babe..608e93729f9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationRecoveryServicesProvidersClient) Get(ctx context.Context, id var model RecoveryServicesProvider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/version.go index e7f28ce9a5f9..15ff1bdbaa73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationrecoveryservicesproviders/version.go @@ -1,12 +1,10 @@ package replicationrecoveryservicesproviders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationrecoveryservicesproviders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationrecoveryservicesproviders/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/README.md index 391f90a0df0d..8e1f9a5b1cea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting` Documentation -The `replicationvaultsetting` SDK allows for interaction with the Azure Resource Manager Service `recoveryservicessiterecovery` (API Version `2024-04-01`). +The `replicationvaultsetting` SDK allows for interaction with Azure Resource Manager `recoveryservicessiterecovery` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationVaultSettingValue") +id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "vaultSettingName") payload := replicationvaultsetting.VaultSettingCreationInput{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue", "replicationVaultSettingValue") +id := replicationvaultsetting.NewReplicationVaultSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "vaultSettingName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := replicationvaultsetting.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vaultValue") +id := replicationvaultsetting.NewVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/client.go index bf3a8d86c8de..614fa0058cc4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/client.go @@ -15,7 +15,7 @@ type ReplicationVaultSettingClient struct { } func NewReplicationVaultSettingClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationVaultSettingClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationvaultsetting", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationvaultsetting", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationVaultSettingClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_replicationvaultsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_replicationvaultsetting.go index ff052d93f837..db0dd36ef4d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_replicationvaultsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_replicationvaultsetting.go @@ -44,7 +44,7 @@ func ParseReplicationVaultSettingID(input string) (*ReplicationVaultSettingId, e } id := ReplicationVaultSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReplicationVaultSettingIDInsensitively(input string) (*ReplicationVaul } id := ReplicationVaultSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReplicationVaultSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), resourceids.StaticSegment("staticReplicationVaultSettings", "replicationVaultSettings", "replicationVaultSettings"), - resourceids.UserSpecifiedSegment("replicationVaultSettingName", "replicationVaultSettingValue"), + resourceids.UserSpecifiedSegment("replicationVaultSettingName", "vaultSettingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_vault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_vault.go index 4cdc6ec9edaf..30405e4ff375 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_vault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/id_vault.go @@ -42,7 +42,7 @@ func ParseVaultID(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVaultIDInsensitively(input string) (*VaultId, error) { } id := VaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRecoveryServices", "Microsoft.RecoveryServices", "Microsoft.RecoveryServices"), resourceids.StaticSegment("staticVaults", "vaults", "vaults"), - resourceids.UserSpecifiedSegment("vaultName", "vaultValue"), + resourceids.UserSpecifiedSegment("vaultName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_get.go index 3173de228a4f..1780e8632e32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationVaultSettingClient) Get(ctx context.Context, id ReplicationVa var model VaultSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/version.go index 18032bc88e85..54b4f94f4308 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicessiterecovery/2024-04-01/replicationvaultsetting/version.go @@ -1,12 +1,10 @@ package replicationvaultsetting -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationvaultsetting/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationvaultsetting/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md index d27ca89260d3..a65aa85c07c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters` Documentation -The `openshiftclusters` SDK allows for interaction with the Azure Resource Manager Service `redhatopenshift` (API Version `2023-09-04`). +The `openshiftclusters` SDK allows for interaction with Azure Resource Manager `redhatopenshift` (API Version `2023-09-04`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := openshiftclusters.OpenShiftCluster{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListAdminCredentials(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListCredentials(ctx, id) if err != nil { @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "openShiftClusterValue") +id := openshiftclusters.NewProviderOpenShiftClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := openshiftclusters.OpenShiftClusterUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/client.go index 03e840dd62ad..7384e0264da2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/client.go @@ -15,7 +15,7 @@ type OpenShiftClustersClient struct { } func NewOpenShiftClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*OpenShiftClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "openshiftclusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "openshiftclusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OpenShiftClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/id_provideropenshiftcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/id_provideropenshiftcluster.go index 5b89d5361b0e..79202b7954f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/id_provideropenshiftcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/id_provideropenshiftcluster.go @@ -42,7 +42,7 @@ func ParseProviderOpenShiftClusterID(input string) (*ProviderOpenShiftClusterId, } id := ProviderOpenShiftClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderOpenShiftClusterIDInsensitively(input string) (*ProviderOpenSh } id := ProviderOpenShiftClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderOpenShiftClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRedHatOpenShift", "Microsoft.RedHatOpenShift", "Microsoft.RedHatOpenShift"), resourceids.StaticSegment("staticOpenShiftClusters", "openShiftClusters", "openShiftClusters"), - resourceids.UserSpecifiedSegment("openShiftClusterName", "openShiftClusterValue"), + resourceids.UserSpecifiedSegment("openShiftClusterName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_get.go index 1b8c298bf7e3..555267c3592a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_get.go @@ -45,7 +45,6 @@ func (c OpenShiftClustersClient) Get(ctx context.Context, id ProviderOpenShiftCl var model OpenShiftCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listadmincredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listadmincredentials.go index bb1c5f62c1c0..ea61c4042d17 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listadmincredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listadmincredentials.go @@ -46,7 +46,6 @@ func (c OpenShiftClustersClient) ListAdminCredentials(ctx context.Context, id Pr var model OpenShiftClusterAdminKubeconfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listcredentials.go index 8a7bed4444ef..f15ade073ebc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listcredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/method_listcredentials.go @@ -46,7 +46,6 @@ func (c OpenShiftClustersClient) ListCredentials(ctx context.Context, id Provide var model OpenShiftClusterCredentials result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/version.go index 07e7cdbdaf28..9d61cf3becc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redhatopenshift/2023-09-04/openshiftclusters/version.go @@ -1,12 +1,10 @@ package openshiftclusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-09-04" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/openshiftclusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/openshiftclusters/2023-09-04" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/README.md index 7dd593ea26ab..4970080f8b8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad` Documentation -The `aad` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `aad` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") payload := aad.RedisCacheAccessPolicyAssignment{ // ... @@ -41,7 +41,7 @@ if err := client.AccessPolicyAssignmentCreateUpdateThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := aad.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") read, err := client.AccessPolicyAssignmentGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.AccessPolicyAssignmentList(ctx, id)` can be used to do batched pagination items, err := client.AccessPolicyAssignmentListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") payload := aad.RedisCacheAccessPolicy{ // ... @@ -103,7 +103,7 @@ if err := client.AccessPolicyCreateUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -115,7 +115,7 @@ if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := aad.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") read, err := client.AccessPolicyGet(ctx, id) if err != nil { @@ -131,7 +131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := aad.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.AccessPolicyList(ctx, id)` can be used to do batched pagination items, err := client.AccessPolicyListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/client.go index d63430798e52..748c414de873 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/client.go @@ -15,7 +15,7 @@ type AADClient struct { } func NewAADClientWithBaseURI(sdkApi sdkEnv.Api) (*AADClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "aad", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "aad", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AADClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicy.go index cc56194b4271..a16d15092f2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicy.go @@ -44,7 +44,7 @@ func ParseAccessPolicyID(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), - resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyValue"), + resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicyassignment.go index 9790e690d708..1793d01877ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_accesspolicyassignment.go @@ -44,7 +44,7 @@ func ParseAccessPolicyAssignmentID(input string) (*AccessPolicyAssignmentId, err } id := AccessPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessPolicyAssignmentIDInsensitively(input string) (*AccessPolicyAssi } id := AccessPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessPolicyAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticAccessPolicyAssignments", "accessPolicyAssignments", "accessPolicyAssignments"), - resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentValue"), + resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_redi.go index aa64d36093cd..89f5cb292cef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentget.go index d88dea325673..3ba9dd988bf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyassignmentget.go @@ -45,7 +45,6 @@ func (c AADClient) AccessPolicyAssignmentGet(ctx context.Context, id AccessPolic var model RedisCacheAccessPolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyget.go index 6830bd80cea6..b9889541d1d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/method_accesspolicyget.go @@ -45,7 +45,6 @@ func (c AADClient) AccessPolicyGet(ctx context.Context, id AccessPolicyId) (resu var model RedisCacheAccessPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/version.go index 25d1b1748be4..fb1721de974a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/aad/version.go @@ -1,12 +1,10 @@ package aad -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/aad/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/aad/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/README.md index 29255c2cc8b2..35c7ea2e1338 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") payload := firewallrules.RedisFirewallRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := firewallrules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_firewallrule.go index cd9bea42f48e..2aa7bb4fd3a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_redi.go index 03688a59d1ac..a4601800bf9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_createorupdate.go index 97b2197f8551..a94b56e8a6fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c FirewallRulesClient) CreateOrUpdate(ctx context.Context, id FirewallRule var model RedisFirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_get.go index 09ba93a14cd1..4277e68f5181 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model RedisFirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/version.go index d3c9bafd79bc..719b83b86d8a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/README.md index 3e8777fcc545..9c3083ef0ca0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules` Documentation -The `patchschedules` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `patchschedules` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := patchschedules.RedisPatchSchedule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := patchschedules.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.ListByRedisResource(ctx, id)` can be used to do batched pagination items, err := client.ListByRedisResourceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/client.go index f20211b88b5d..f1b282dd5230 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/client.go @@ -15,7 +15,7 @@ type PatchSchedulesClient struct { } func NewPatchSchedulesClientWithBaseURI(sdkApi sdkEnv.Api) (*PatchSchedulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "patchschedules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "patchschedules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PatchSchedulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/id_redi.go index 5a62230f2a08..d9fc81cf383d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_createorupdate.go index c081a0874fd3..1bea02fc42bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_createorupdate.go @@ -51,7 +51,6 @@ func (c PatchSchedulesClient) CreateOrUpdate(ctx context.Context, id RediId, inp var model RedisPatchSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_get.go index aaff796120c8..1a1750e00256 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/method_get.go @@ -46,7 +46,6 @@ func (c PatchSchedulesClient) Get(ctx context.Context, id RediId) (result GetOpe var model RedisPatchSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/version.go index e22426b3a32b..f5168f6790c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/patchschedules/version.go @@ -1,12 +1,10 @@ package patchschedules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/patchschedules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/patchschedules/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/README.md index 1d6b53271160..7bc7d96a324c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "privateEndpointConnectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := privateendpointconnections.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.List(ctx, id) if err != nil { @@ -72,7 +72,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_privateendpointconnection.go index 502976663f86..6a0ec3a4b5c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_redi.go index 32f39ecae460..a77ede11243a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_list.go index a69fc0babc32..c9f4ff6cb715 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/method_list.go @@ -46,7 +46,6 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id RediId) ( var model PrivateEndpointConnectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/version.go index 2f993e72d677..36cdac3323bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/README.md index 229261f54452..38f4b0438f2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkresources.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := privatelinkresources.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.ListByRedisCache(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/id_redi.go index c453e1e4ce9f..84eeba43bebf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/method_listbyrediscache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/method_listbyrediscache.go index b8161914ecb0..bf5b442c71d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/method_listbyrediscache.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/method_listbyrediscache.go @@ -46,7 +46,6 @@ func (c PrivateLinkResourcesClient) ListByRedisCache(ctx context.Context, id Red var model PrivateLinkResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/version.go index bcf05c009fee..c11ce4682c76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/README.md index ef52a2011174..f6f220e974f2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis` Documentation -The `redis` SDK allows for interaction with the Azure Resource Manager Service `redis` (API Version `2024-03-01`). +The `redis` SDK allows for interaction with Azure Resource Manager `redis` (API Version `2024-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") payload := redis.RedisCacheAccessPolicyAssignment{ // ... @@ -42,7 +42,7 @@ if err := client.AccessPolicyAssignmentCreateUpdateThenPoll(ctx, id, payload); e ```go ctx := context.TODO() -id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue") +id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyAssignmentName") read, err := client.AccessPolicyAssignmentGet(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.AccessPolicyAssignmentList(ctx, id)` can be used to do batched pagination items, err := client.AccessPolicyAssignmentListComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") payload := redis.RedisCacheAccessPolicy{ // ... @@ -104,7 +104,7 @@ if err := client.AccessPolicyCreateUpdateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +116,7 @@ if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue") +id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "accessPolicyName") read, err := client.AccessPolicyGet(ctx, id) if err != nil { @@ -132,7 +132,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.AccessPolicyList(ctx, id)` can be used to do batched pagination items, err := client.AccessPolicyListComplete(ctx, id) @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.RedisCreateParameters{ // ... @@ -187,7 +187,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -199,7 +199,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.ExportRDBParameters{ // ... @@ -216,7 +216,7 @@ if err := client.ExportDataThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") payload := redis.RedisFirewallRule{ // ... @@ -237,7 +237,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") read, err := client.FirewallRulesDelete(ctx, id) if err != nil { @@ -253,7 +253,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue") +id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "ruleName") read, err := client.FirewallRulesGet(ctx, id) if err != nil { @@ -269,7 +269,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.FirewallRulesList(ctx, id)` can be used to do batched pagination items, err := client.FirewallRulesListComplete(ctx, id) @@ -286,7 +286,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.FlushCacheThenPoll(ctx, id); err != nil { // handle the error @@ -298,7 +298,7 @@ if err := client.FlushCacheThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.RedisRebootParameters{ // ... @@ -319,7 +319,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.Get(ctx, id) if err != nil { @@ -335,7 +335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.ImportRDBParameters{ // ... @@ -352,7 +352,7 @@ if err := client.ImportDataThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue") +id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedServerName") payload := redis.RedisLinkedServerCreateParameters{ // ... @@ -369,7 +369,7 @@ if err := client.LinkedServerCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue") +id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedServerName") if err := client.LinkedServerDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -381,7 +381,7 @@ if err := client.LinkedServerDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue") +id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedServerName") read, err := client.LinkedServerGet(ctx, id) if err != nil { @@ -397,7 +397,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.LinkedServerList(ctx, id)` can be used to do batched pagination items, err := client.LinkedServerListComplete(ctx, id) @@ -448,7 +448,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -464,7 +464,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.ListUpgradeNotifications(ctx, id, redis.DefaultListUpgradeNotificationsOperationOptions())` can be used to do batched pagination items, err := client.ListUpgradeNotificationsComplete(ctx, id, redis.DefaultListUpgradeNotificationsOperationOptions()) @@ -481,7 +481,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.RedisPatchSchedule{ // ... @@ -502,7 +502,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.PatchSchedulesDelete(ctx, id) if err != nil { @@ -518,7 +518,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.PatchSchedulesGet(ctx, id) if err != nil { @@ -534,7 +534,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.PatchSchedulesListByRedisResource(ctx, id)` can be used to do batched pagination items, err := client.PatchSchedulesListByRedisResourceComplete(ctx, id) @@ -551,7 +551,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.RedisRegenerateKeyParameters{ // ... @@ -572,7 +572,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue") +id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := redis.RedisUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/client.go index 7f5011f93567..3d911581b53c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/client.go @@ -15,7 +15,7 @@ type RedisClient struct { } func NewRedisClientWithBaseURI(sdkApi sdkEnv.Api) (*RedisClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "redis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "redis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RedisClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicy.go index e63b9dcf6809..11a6ebdb48cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicy.go @@ -44,7 +44,7 @@ func ParseAccessPolicyID(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), - resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyValue"), + resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicyassignment.go index c7f187f3ec51..afc9b384507c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_accesspolicyassignment.go @@ -44,7 +44,7 @@ func ParseAccessPolicyAssignmentID(input string) (*AccessPolicyAssignmentId, err } id := AccessPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessPolicyAssignmentIDInsensitively(input string) (*AccessPolicyAssi } id := AccessPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessPolicyAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticAccessPolicyAssignments", "accessPolicyAssignments", "accessPolicyAssignments"), - resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentValue"), + resourceids.UserSpecifiedSegment("accessPolicyAssignmentName", "accessPolicyAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_firewallrule.go index f989b6c6654a..896b58fec523 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_linkedserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_linkedserver.go index ca066302b71e..e8601f16fa53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_linkedserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_linkedserver.go @@ -44,7 +44,7 @@ func ParseLinkedServerID(input string) (*LinkedServerId, error) { } id := LinkedServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLinkedServerIDInsensitively(input string) (*LinkedServerId, error) { } id := LinkedServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LinkedServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "name"), resourceids.StaticSegment("staticLinkedServers", "linkedServers", "linkedServers"), - resourceids.UserSpecifiedSegment("linkedServerName", "linkedServerValue"), + resourceids.UserSpecifiedSegment("linkedServerName", "linkedServerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_redi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_redi.go index cc15fb6623d0..25685dc12f2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_redi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/id_redi.go @@ -42,7 +42,7 @@ func ParseRediID(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRediIDInsensitively(input string) (*RediId, error) { } id := RediId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RediId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedis", "redis", "redis"), - resourceids.UserSpecifiedSegment("redisName", "redisValue"), + resourceids.UserSpecifiedSegment("redisName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentget.go index e473570277f8..4b3cb593c489 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyassignmentget.go @@ -45,7 +45,6 @@ func (c RedisClient) AccessPolicyAssignmentGet(ctx context.Context, id AccessPol var model RedisCacheAccessPolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyget.go index 363f194ed8e8..03d5a35d51d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_accesspolicyget.go @@ -45,7 +45,6 @@ func (c RedisClient) AccessPolicyGet(ctx context.Context, id AccessPolicyId) (re var model RedisCacheAccessPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulescreateorupdate.go index f89d8e6ccbe0..887afabf00b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulescreateorupdate.go @@ -50,7 +50,6 @@ func (c RedisClient) FirewallRulesCreateOrUpdate(ctx context.Context, id Firewal var model RedisFirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulesget.go index a07fa2bb7f85..d02bf28361c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_firewallrulesget.go @@ -45,7 +45,6 @@ func (c RedisClient) FirewallRulesGet(ctx context.Context, id FirewallRuleId) (r var model RedisFirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_forcereboot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_forcereboot.go index f45768f09fff..f9bff572e693 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_forcereboot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_forcereboot.go @@ -50,7 +50,6 @@ func (c RedisClient) ForceReboot(ctx context.Context, id RediId, input RedisRebo var model RedisForceRebootResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_get.go index bfedd115361f..1c8b7b90138f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_get.go @@ -45,7 +45,6 @@ func (c RedisClient) Get(ctx context.Context, id RediId) (result GetOperationRes var model RedisResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_linkedserverget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_linkedserverget.go index 659ee218f4bb..9f866dbce075 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_linkedserverget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_linkedserverget.go @@ -45,7 +45,6 @@ func (c RedisClient) LinkedServerGet(ctx context.Context, id LinkedServerId) (re var model RedisLinkedServerWithProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listkeys.go index f7367b3a1881..509bbb7de25e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listkeys.go @@ -46,7 +46,6 @@ func (c RedisClient) ListKeys(ctx context.Context, id RediId) (result ListKeysOp var model RedisAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go index 6f01790fccb6..8ac2236d5262 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_listupgradenotifications.go @@ -39,6 +39,7 @@ func (o ListUpgradeNotificationsOperationOptions) ToHeaders() *client.Headers { func (o ListUpgradeNotificationsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulescreateorupdate.go index 63d6cf5160bb..087701d8070b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulescreateorupdate.go @@ -51,7 +51,6 @@ func (c RedisClient) PatchSchedulesCreateOrUpdate(ctx context.Context, id RediId var model RedisPatchSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulesget.go index 8962eab16ef4..1856407c120a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_patchschedulesget.go @@ -46,7 +46,6 @@ func (c RedisClient) PatchSchedulesGet(ctx context.Context, id RediId) (result P var model RedisPatchSchedule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_regeneratekey.go index 39915894e325..6d8bab3c02b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/method_regeneratekey.go @@ -50,7 +50,6 @@ func (c RedisClient) RegenerateKey(ctx context.Context, id RediId, input RedisRe var model RedisAccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/version.go index 09571075a135..aabb41f7e55f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redis/2024-03-01/redis/version.go @@ -1,12 +1,10 @@ package redis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/redis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/redis/2024-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/README.md index 5ca218b350ef..e70b0542fb6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `redisenterprise` (API Version `2023-07-01`). +The `databases` SDK allows for interaction with Azure Resource Manager `redisenterprise` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.Database{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.ExportClusterParameters{ // ... @@ -70,7 +70,7 @@ if err := client.ExportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.FlushParameters{ // ... @@ -87,7 +87,7 @@ if err := client.FlushThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.ForceUnlinkParameters{ // ... @@ -104,7 +104,7 @@ if err := client.ForceUnlinkThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.ImportClusterParameters{ // ... @@ -137,7 +137,7 @@ if err := client.ImportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := databases.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) @@ -154,7 +154,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -170,7 +170,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.RegenerateKeyParameters{ // ... @@ -187,7 +187,7 @@ if err := client.RegenerateKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := databases.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := databases.DatabaseUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_database.go index d4745fc21fbd..00dec5932142 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedisEnterprise", "redisEnterprise", "redisEnterprise"), - resourceids.UserSpecifiedSegment("redisEnterpriseName", "redisEnterpriseValue"), + resourceids.UserSpecifiedSegment("redisEnterpriseName", "clusterName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_redisenterprise.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_redisenterprise.go index d8fb50d35535..480ce6d5a03b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_redisenterprise.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/id_redisenterprise.go @@ -42,7 +42,7 @@ func ParseRedisEnterpriseID(input string) (*RedisEnterpriseId, error) { } id := RedisEnterpriseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRedisEnterpriseIDInsensitively(input string) (*RedisEnterpriseId, erro } id := RedisEnterpriseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RedisEnterpriseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedisEnterprise", "redisEnterprise", "redisEnterprise"), - resourceids.UserSpecifiedSegment("redisEnterpriseName", "redisEnterpriseValue"), + resourceids.UserSpecifiedSegment("redisEnterpriseName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_get.go index dcbfb4b8270e..df1a873b818c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_get.go @@ -45,7 +45,6 @@ func (c DatabasesClient) Get(ctx context.Context, id DatabaseId) (result GetOper var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_listkeys.go index a844ee91ed6e..147674d8dcf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/method_listkeys.go @@ -46,7 +46,6 @@ func (c DatabasesClient) ListKeys(ctx context.Context, id DatabaseId) (result Li var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/version.go index 5f96648f5097..6e95ddf19805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-07-01/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md index c836dbd64fdb..5e57639172ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise` Documentation -The `redisenterprise` SDK allows for interaction with the Azure Resource Manager Service `redisenterprise` (API Version `2023-10-01-preview`). +The `redisenterprise` SDK allows for interaction with Azure Resource Manager `redisenterprise` (API Version `2023-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := redisenterprise.Cluster{ // ... @@ -63,7 +63,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.Database{ // ... @@ -80,7 +80,7 @@ if err := client.DatabasesCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") if err := client.DatabasesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -92,7 +92,7 @@ if err := client.DatabasesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.ExportClusterParameters{ // ... @@ -109,7 +109,7 @@ if err := client.DatabasesExportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.FlushParameters{ // ... @@ -126,7 +126,7 @@ if err := client.DatabasesFlushThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.ForceUnlinkParameters{ // ... @@ -143,7 +143,7 @@ if err := client.DatabasesForceUnlinkThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") read, err := client.DatabasesGet(ctx, id) if err != nil { @@ -159,7 +159,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.ImportClusterParameters{ // ... @@ -176,7 +176,7 @@ if err := client.DatabasesImportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.DatabasesListByCluster(ctx, id)` can be used to do batched pagination items, err := client.DatabasesListByClusterComplete(ctx, id) @@ -193,7 +193,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") read, err := client.DatabasesListKeys(ctx, id) if err != nil { @@ -209,7 +209,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.RegenerateKeyParameters{ // ... @@ -226,7 +226,7 @@ if err := client.DatabasesRegenerateKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue", "databaseValue") +id := redisenterprise.NewDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "databaseName") payload := redisenterprise.DatabaseUpdate{ // ... @@ -243,7 +243,7 @@ if err := client.DatabasesUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -255,7 +255,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -305,7 +305,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisEnterpriseValue") +id := redisenterprise.NewRedisEnterpriseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := redisenterprise.ClusterUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/client.go index 4349d6c0e320..08640dfb3071 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/client.go @@ -15,7 +15,7 @@ type RedisEnterpriseClient struct { } func NewRedisEnterpriseClientWithBaseURI(sdkApi sdkEnv.Api) (*RedisEnterpriseClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "redisenterprise", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "redisenterprise", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RedisEnterpriseClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_database.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_database.go index 2cffc92f5d2c..cfa855a76839 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_database.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_database.go @@ -44,7 +44,7 @@ func ParseDatabaseID(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseIDInsensitively(input string) (*DatabaseId, error) { } id := DatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedisEnterprise", "redisEnterprise", "redisEnterprise"), - resourceids.UserSpecifiedSegment("redisEnterpriseName", "redisEnterpriseValue"), + resourceids.UserSpecifiedSegment("redisEnterpriseName", "clusterName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_redisenterprise.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_redisenterprise.go index 71a8e703899e..a51de530d498 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_redisenterprise.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/id_redisenterprise.go @@ -42,7 +42,7 @@ func ParseRedisEnterpriseID(input string) (*RedisEnterpriseId, error) { } id := RedisEnterpriseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseRedisEnterpriseIDInsensitively(input string) (*RedisEnterpriseId, erro } id := RedisEnterpriseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id RedisEnterpriseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftCache", "Microsoft.Cache", "Microsoft.Cache"), resourceids.StaticSegment("staticRedisEnterprise", "redisEnterprise", "redisEnterprise"), - resourceids.UserSpecifiedSegment("redisEnterpriseName", "redisEnterpriseValue"), + resourceids.UserSpecifiedSegment("redisEnterpriseName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databasesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databasesget.go index 24a7b9c1d698..f774a726917b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databasesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databasesget.go @@ -45,7 +45,6 @@ func (c RedisEnterpriseClient) DatabasesGet(ctx context.Context, id DatabaseId) var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistkeys.go index e707f794cf3c..0232e6623806 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_databaseslistkeys.go @@ -46,7 +46,6 @@ func (c RedisEnterpriseClient) DatabasesListKeys(ctx context.Context, id Databas var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_get.go index 9dd2f10fa269..c729b30e660e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/method_get.go @@ -45,7 +45,6 @@ func (c RedisEnterpriseClient) Get(ctx context.Context, id RedisEnterpriseId) (r var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/version.go index ff305059bf62..999e96aef86c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/redisenterprise/2023-10-01-preview/redisenterprise/version.go @@ -1,12 +1,10 @@ package redisenterprise -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/redisenterprise/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/redisenterprise/2023-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/README.md index 34aeef7f3d45..cce5fe220fc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections` Documentation -The `hybridconnections` SDK allows for interaction with the Azure Resource Manager Service `relay` (API Version `2021-11-01`). +The `hybridconnections` SDK allows for interaction with Azure Resource Manager `relay` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue") +id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName") payload := hybridconnections.HybridConnection{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue", "authorizationRuleValue") +id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName", "authorizationRuleName") payload := hybridconnections.AuthorizationRule{ // ... @@ -66,7 +66,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue") +id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue", "authorizationRuleValue") +id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName", "authorizationRuleName") read, err := client.DeleteAuthorizationRule(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue") +id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -114,7 +114,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue", "authorizationRuleValue") +id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName", "authorizationRuleName") read, err := client.GetAuthorizationRule(ctx, id) if err != nil { @@ -130,7 +130,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue") +id := hybridconnections.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName") // alternatively `client.ListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.ListAuthorizationRulesComplete(ctx, id) @@ -147,7 +147,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hybridconnections.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := hybridconnections.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListByNamespace(ctx, id)` can be used to do batched pagination items, err := client.ListByNamespaceComplete(ctx, id) @@ -164,7 +164,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue", "authorizationRuleValue") +id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName", "authorizationRuleName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -180,7 +180,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "hybridConnectionValue", "authorizationRuleValue") +id := hybridconnections.NewHybridConnectionAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "hybridConnectionName", "authorizationRuleName") payload := hybridconnections.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/client.go index cf4c48f305e7..fa855766a649 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/client.go @@ -15,7 +15,7 @@ type HybridConnectionsClient struct { } func NewHybridConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*HybridConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "hybridconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "hybridconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating HybridConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnection.go index 572ab83aab66..17bf0f0c3889 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnection.go @@ -44,7 +44,7 @@ func ParseHybridConnectionID(input string) (*HybridConnectionId, error) { } id := HybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHybridConnectionIDInsensitively(input string) (*HybridConnectionId, er } id := HybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HybridConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRelay", "Microsoft.Relay", "Microsoft.Relay"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticHybridConnections", "hybridConnections", "hybridConnections"), - resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnectionauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnectionauthorizationrule.go index 88f8b42f503e..06f45d21eca6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnectionauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_hybridconnectionauthorizationrule.go @@ -46,7 +46,7 @@ func ParseHybridConnectionAuthorizationRuleID(input string) (*HybridConnectionAu } id := HybridConnectionAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseHybridConnectionAuthorizationRuleIDInsensitively(input string) (*Hybri } id := HybridConnectionAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id HybridConnectionAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRelay", "Microsoft.Relay", "Microsoft.Relay"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticHybridConnections", "hybridConnections", "hybridConnections"), - resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_namespace.go index ca80c5c7baaf..6089fc1a6fb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRelay", "Microsoft.Relay", "Microsoft.Relay"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdate.go index 9066f52896b4..a96eb1e74599 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdate.go @@ -49,7 +49,6 @@ func (c HybridConnectionsClient) CreateOrUpdate(ctx context.Context, id HybridCo var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdateauthorizationrule.go index f801bca56554..26736b25e7f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_createorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c HybridConnectionsClient) CreateOrUpdateAuthorizationRule(ctx context.Con var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_get.go index 83f4d44834bf..8012e4df72a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_get.go @@ -45,7 +45,6 @@ func (c HybridConnectionsClient) Get(ctx context.Context, id HybridConnectionId) var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_getauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_getauthorizationrule.go index e205c3ac3f7f..1a922429dbf4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_getauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_getauthorizationrule.go @@ -45,7 +45,6 @@ func (c HybridConnectionsClient) GetAuthorizationRule(ctx context.Context, id Hy var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_listkeys.go index 78969ae54274..7b12b1eedf00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_listkeys.go @@ -46,7 +46,6 @@ func (c HybridConnectionsClient) ListKeys(ctx context.Context, id HybridConnecti var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_regeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_regeneratekeys.go index 144d5849a70f..2f13448332fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_regeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/method_regeneratekeys.go @@ -50,7 +50,6 @@ func (c HybridConnectionsClient) RegenerateKeys(ctx context.Context, id HybridCo var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/version.go index 40eef020c141..60ce9f1b2cb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/hybridconnections/version.go @@ -1,12 +1,10 @@ package hybridconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/hybridconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/hybridconnections/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/README.md index 9f3e21f35f75..61fdc096ba20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces` Documentation -The `namespaces` SDK allows for interaction with the Azure Resource Manager Service `relay` (API Version `2021-11-01`). +The `namespaces` SDK allows for interaction with Azure Resource Manager `relay` (API Version `2021-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.RelayNamespace{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespaces.AuthorizationRule{ // ... @@ -84,7 +84,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.NetworkRuleSet{ // ... @@ -105,7 +105,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -117,7 +117,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.DeleteAuthorizationRule(ctx, id) if err != nil { @@ -133,7 +133,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -149,7 +149,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.GetAuthorizationRule(ctx, id) if err != nil { @@ -165,7 +165,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.GetNetworkRuleSet(ctx, id) if err != nil { @@ -198,7 +198,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.ListAuthorizationRulesComplete(ctx, id) @@ -232,7 +232,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -248,7 +248,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespaces.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespaces.RegenerateAccessKeyParameters{ // ... @@ -269,7 +269,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.RelayUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/client.go index c0bca4870e18..6a91c8e7de9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/client.go @@ -15,7 +15,7 @@ type NamespacesClient struct { } func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_authorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_authorizationrule.go index 5b3002acc674..ac7c4ed2d914 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_authorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_authorizationrule.go @@ -44,7 +44,7 @@ func ParseAuthorizationRuleID(input string) (*AuthorizationRuleId, error) { } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationRuleIDInsensitively(input string) (*AuthorizationRuleId, } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRelay", "Microsoft.Relay", "Microsoft.Relay"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_namespace.go index 174a64b13dfe..1aec1e68f36c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftRelay", "Microsoft.Relay", "Microsoft.Relay"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_checknameavailability.go index 8d956188f66c..1a21e5e86682 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c NamespacesClient) CheckNameAvailability(ctx context.Context, id commonid var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdateauthorizationrule.go index 5b872f08a488..3dfa9a99c885 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, i var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdatenetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdatenetworkruleset.go index e76e779ef824..6d1b63438587 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdatenetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_createorupdatenetworkruleset.go @@ -50,7 +50,6 @@ func (c NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, id N var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_get.go index 5dee9054be93..2ab88eeeea16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_get.go @@ -45,7 +45,6 @@ func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOp var model RelayNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getauthorizationrule.go index a8aa66ae4058..c632970d192f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getauthorizationrule.go @@ -45,7 +45,6 @@ func (c NamespacesClient) GetAuthorizationRule(ctx context.Context, id Authoriza var model AuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getnetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getnetworkruleset.go index f6767e352f16..373b726a4180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getnetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_getnetworkruleset.go @@ -46,7 +46,6 @@ func (c NamespacesClient) GetNetworkRuleSet(ctx context.Context, id NamespaceId) var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_listkeys.go index 4251f7033edf..416563457346 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_listkeys.go @@ -46,7 +46,6 @@ func (c NamespacesClient) ListKeys(ctx context.Context, id AuthorizationRuleId) var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_regeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_regeneratekeys.go index ba6dcccdcefb..d71dd4c1e391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_regeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_regeneratekeys.go @@ -50,7 +50,6 @@ func (c NamespacesClient) RegenerateKeys(ctx context.Context, id AuthorizationRu var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_update.go index c894c5341c8b..6808c7c36677 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/method_update.go @@ -50,7 +50,6 @@ func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input Rela var model RelayNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/version.go index e7fef9f37bd3..6851872c2b7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/relay/2021-11-01/namespaces/version.go @@ -1,12 +1,10 @@ package namespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespaces/2021-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/README.md index ff4df4e91875..4e8756491ac0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances` Documentation -The `appliances` SDK allows for interaction with the Azure Resource Manager Service `resourceconnector` (API Version `2022-10-27`). +The `appliances` SDK allows for interaction with Azure Resource Manager `resourceconnector` (API Version `2022-10-27`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := appliances.Appliance{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appliances.NewUpgradeGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue", "upgradeGraphValue") +id := appliances.NewUpgradeGraphID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "upgradeGraph") read, err := client.GetUpgradeGraph(ctx, id) if err != nil { @@ -136,7 +136,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListClusterUserCredential(ctx, id) if err != nil { @@ -152,7 +152,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListKeys(ctx, id, appliances.DefaultListKeysOperationOptions()) if err != nil { @@ -168,7 +168,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applianceValue") +id := appliances.NewApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := appliances.PatchableAppliance{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/client.go index c909b4585ece..257bdf6605d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/client.go @@ -15,7 +15,7 @@ type AppliancesClient struct { } func NewAppliancesClientWithBaseURI(sdkApi sdkEnv.Api) (*AppliancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appliances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "appliances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AppliancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_appliance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_appliance.go index 105bcbd091bb..3a0142f62323 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_appliance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_appliance.go @@ -42,7 +42,7 @@ func ParseApplianceID(input string) (*ApplianceId, error) { } id := ApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseApplianceIDInsensitively(input string) (*ApplianceId, error) { } id := ApplianceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ApplianceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResourceConnector", "Microsoft.ResourceConnector", "Microsoft.ResourceConnector"), resourceids.StaticSegment("staticAppliances", "appliances", "appliances"), - resourceids.UserSpecifiedSegment("applianceName", "applianceValue"), + resourceids.UserSpecifiedSegment("applianceName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_upgradegraph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_upgradegraph.go index 31631a9f15bf..cc44563bfb20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_upgradegraph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/id_upgradegraph.go @@ -44,7 +44,7 @@ func ParseUpgradeGraphID(input string) (*UpgradeGraphId, error) { } id := UpgradeGraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUpgradeGraphIDInsensitively(input string) (*UpgradeGraphId, error) { } id := UpgradeGraphId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UpgradeGraphId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResourceConnector", "Microsoft.ResourceConnector", "Microsoft.ResourceConnector"), resourceids.StaticSegment("staticAppliances", "appliances", "appliances"), - resourceids.UserSpecifiedSegment("applianceName", "applianceValue"), + resourceids.UserSpecifiedSegment("applianceName", "resourceName"), resourceids.StaticSegment("staticUpgradeGraphs", "upgradeGraphs", "upgradeGraphs"), - resourceids.UserSpecifiedSegment("upgradeGraphName", "upgradeGraphValue"), + resourceids.UserSpecifiedSegment("upgradeGraphName", "upgradeGraph"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_get.go index 29d716c971aa..1d868824148c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_get.go @@ -45,7 +45,6 @@ func (c AppliancesClient) Get(ctx context.Context, id ApplianceId) (result GetOp var model Appliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_gettelemetryconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_gettelemetryconfig.go index ec3e6082dca8..1a9dea143552 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_gettelemetryconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_gettelemetryconfig.go @@ -47,7 +47,6 @@ func (c AppliancesClient) GetTelemetryConfig(ctx context.Context, id commonids.S var model ApplianceGetTelemetryConfigResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_getupgradegraph.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_getupgradegraph.go index 5d45f1e8cf6b..2630c7ad98c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_getupgradegraph.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_getupgradegraph.go @@ -45,7 +45,6 @@ func (c AppliancesClient) GetUpgradeGraph(ctx context.Context, id UpgradeGraphId var model UpgradeGraph result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listclusterusercredential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listclusterusercredential.go index c696ee109870..acfe2462094d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listclusterusercredential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listclusterusercredential.go @@ -46,7 +46,6 @@ func (c AppliancesClient) ListClusterUserCredential(ctx context.Context, id Appl var model ApplianceListCredentialResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go index 17f89911fc6a..106e84490bb9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_listkeys.go @@ -34,6 +34,7 @@ func (o ListKeysOperationOptions) ToHeaders() *client.Headers { func (o ListKeysOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c AppliancesClient) ListKeys(ctx context.Context, id ApplianceId, options var model ApplianceListKeysResults result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_update.go index f1ca158425d4..d2650fd04a98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/method_update.go @@ -49,7 +49,6 @@ func (c AppliancesClient) Update(ctx context.Context, id ApplianceId, input Patc var model Appliance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/version.go index d8fc28f3da58..1491a93bb3be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resourceconnector/2022-10-27/appliances/version.go @@ -1,12 +1,10 @@ package appliances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-27" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/appliances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/appliances/2022-10-27" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/README.md index b18d3350a87c..1970959566b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources` Documentation -The `resources` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2015-11-01`). +The `resources` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2015-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/client.go index 3b4092475577..6e71db435da6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/client.go @@ -15,7 +15,7 @@ type ResourcesClient struct { } func NewResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_createorupdate.go index 7fab7f13872c..f27e317b1e62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_createorupdate.go @@ -51,7 +51,6 @@ func (c ResourcesClient) CreateOrUpdate(ctx context.Context, id commonids.ScopeI var model GenericResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_get.go index a8809c97b536..120fd49f2e67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_get.go @@ -47,7 +47,6 @@ func (c ResourcesClient) Get(ctx context.Context, id commonids.ScopeId) (result var model GenericResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_list.go index 3a348699f1af..210382a2f38a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/version.go index 8995760312ce..da3663c9072b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2015-11-01/resources/version.go @@ -1,12 +1,10 @@ package resources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2015-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resources/2015-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/README.md index ee78c49b8869..1b8afe20d973 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks` Documentation -The `managementlocks` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2020-05-01`). +The `managementlocks` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2020-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockValue") +id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockName") payload := managementlocks.ManagementLockObject{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") payload := managementlocks.ManagementLockObject{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockValue") +id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockName") payload := managementlocks.ManagementLockObject{ // ... @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") payload := managementlocks.ManagementLockObject{ // ... @@ -109,7 +109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockValue") +id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockName") read, err := client.DeleteAtResourceGroupLevel(ctx, id) if err != nil { @@ -125,7 +125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") read, err := client.DeleteAtResourceLevel(ctx, id) if err != nil { @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockValue") +id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockName") read, err := client.DeleteAtSubscriptionLevel(ctx, id) if err != nil { @@ -157,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") read, err := client.DeleteByScope(ctx, id) if err != nil { @@ -173,7 +173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockValue") +id := managementlocks.NewProviderLockID("12345678-1234-9876-4563-123456789012", "example-resource-group", "lockName") read, err := client.GetAtResourceGroupLevel(ctx, id) if err != nil { @@ -189,7 +189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") read, err := client.GetAtResourceLevel(ctx, id) if err != nil { @@ -205,7 +205,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockValue") +id := managementlocks.NewLockID("12345678-1234-9876-4563-123456789012", "lockName") read, err := client.GetAtSubscriptionLevel(ctx, id) if err != nil { @@ -221,7 +221,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockValue") +id := managementlocks.NewScopedLockID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "lockName") read, err := client.GetByScope(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/client.go index b15995f949ca..b03d5882446b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/client.go @@ -15,7 +15,7 @@ type ManagementLocksClient struct { } func NewManagementLocksClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementLocksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managementlocks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managementlocks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagementLocksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_lock.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_lock.go index e784dab04fbc..69f620539d99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_lock.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_lock.go @@ -40,7 +40,7 @@ func ParseLockID(input string) (*LockId, error) { } id := LockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLockIDInsensitively(input string) (*LockId, error) { } id := LockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LockId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticLocks", "locks", "locks"), - resourceids.UserSpecifiedSegment("lockName", "lockValue"), + resourceids.UserSpecifiedSegment("lockName", "lockName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_providerlock.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_providerlock.go index 126e19c82a5c..46aa4f1af397 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_providerlock.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_providerlock.go @@ -42,7 +42,7 @@ func ParseProviderLockID(input string) (*ProviderLockId, error) { } id := ProviderLockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLockIDInsensitively(input string) (*ProviderLockId, error) { } id := ProviderLockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLockId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticLocks", "locks", "locks"), - resourceids.UserSpecifiedSegment("lockName", "lockValue"), + resourceids.UserSpecifiedSegment("lockName", "lockName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_scopedlock.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_scopedlock.go index 0ac61f7201dc..e27c0cea59f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_scopedlock.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/id_scopedlock.go @@ -40,7 +40,7 @@ func ParseScopedLockID(input string) (*ScopedLockId, error) { } id := ScopedLockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedLockIDInsensitively(input string) (*ScopedLockId, error) { } id := ScopedLockId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedLockId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticLocks", "locks", "locks"), - resourceids.UserSpecifiedSegment("lockName", "lockValue"), + resourceids.UserSpecifiedSegment("lockName", "lockName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcegrouplevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcegrouplevel.go index 42ef63e9fe31..01a3e3a3b246 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcegrouplevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcegrouplevel.go @@ -50,7 +50,6 @@ func (c ManagementLocksClient) CreateOrUpdateAtResourceGroupLevel(ctx context.Co var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcelevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcelevel.go index 046d1ca7a37b..4ed16a6aa31e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcelevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatresourcelevel.go @@ -50,7 +50,6 @@ func (c ManagementLocksClient) CreateOrUpdateAtResourceLevel(ctx context.Context var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatsubscriptionlevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatsubscriptionlevel.go index 9136094e0341..fd9f0fff51fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatsubscriptionlevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdateatsubscriptionlevel.go @@ -50,7 +50,6 @@ func (c ManagementLocksClient) CreateOrUpdateAtSubscriptionLevel(ctx context.Con var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdatebyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdatebyscope.go index 79b8162ac551..345b6c4ee290 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdatebyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_createorupdatebyscope.go @@ -50,7 +50,6 @@ func (c ManagementLocksClient) CreateOrUpdateByScope(ctx context.Context, id Sco var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcegrouplevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcegrouplevel.go index 95c3c6a16c58..0acff78551f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcegrouplevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcegrouplevel.go @@ -45,7 +45,6 @@ func (c ManagementLocksClient) GetAtResourceGroupLevel(ctx context.Context, id P var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcelevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcelevel.go index 30f4d3cdcabd..748db9bb557b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcelevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatresourcelevel.go @@ -45,7 +45,6 @@ func (c ManagementLocksClient) GetAtResourceLevel(ctx context.Context, id Scoped var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatsubscriptionlevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatsubscriptionlevel.go index 83ae939271f9..fa64aeb2729a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatsubscriptionlevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getatsubscriptionlevel.go @@ -45,7 +45,6 @@ func (c ManagementLocksClient) GetAtSubscriptionLevel(ctx context.Context, id Lo var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getbyscope.go index 29051405e7f9..62ce95254934 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_getbyscope.go @@ -45,7 +45,6 @@ func (c ManagementLocksClient) GetByScope(ctx context.Context, id ScopedLockId) var model ManagementLockObject result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go index 50335bffd043..9352a7b04424 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcegrouplevel.go @@ -40,6 +40,7 @@ func (o ListAtResourceGroupLevelOperationOptions) ToHeaders() *client.Headers { func (o ListAtResourceGroupLevelOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go index a84b21caad34..76619e4b3e62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatresourcelevel.go @@ -40,6 +40,7 @@ func (o ListAtResourceLevelOperationOptions) ToHeaders() *client.Headers { func (o ListAtResourceLevelOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go index 265e94565ae1..39feed494586 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listatsubscriptionlevel.go @@ -40,6 +40,7 @@ func (o ListAtSubscriptionLevelOperationOptions) ToHeaders() *client.Headers { func (o ListAtSubscriptionLevelOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go index aeea3f077881..51464a0d3c6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/method_listbyscope.go @@ -40,6 +40,7 @@ func (o ListByScopeOperationOptions) ToHeaders() *client.Headers { func (o ListByScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/version.go index dcaf3863847e..654849bde648 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/managementlocks/version.go @@ -1,12 +1,10 @@ package managementlocks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managementlocks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managementlocks/2020-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/README.md index 23893a198986..8347f722f0b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation` Documentation -The `privatelinkassociation` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2020-05-01`). +The `privatelinkassociation` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2020-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privatelinkassociation.NewPrivateLinkAssociationID("groupIdValue", "plaIdValue") +id := privatelinkassociation.NewPrivateLinkAssociationID("groupId", "plaId") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkassociation.NewPrivateLinkAssociationID("groupIdValue", "plaIdValue") +id := privatelinkassociation.NewPrivateLinkAssociationID("groupId", "plaId") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") read, err := client.List(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privatelinkassociation.NewPrivateLinkAssociationID("groupIdValue", "plaIdValue") +id := privatelinkassociation.NewPrivateLinkAssociationID("groupId", "plaId") payload := privatelinkassociation.PrivateLinkAssociationObject{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/client.go index 7eda06e6d3d3..1ae796772598 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/client.go @@ -15,7 +15,7 @@ type PrivateLinkAssociationClient struct { } func NewPrivateLinkAssociationClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkAssociationClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkassociation", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkassociation", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkAssociationClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/id_privatelinkassociation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/id_privatelinkassociation.go index 6edc99f05716..1c9f215151f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/id_privatelinkassociation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/id_privatelinkassociation.go @@ -40,7 +40,7 @@ func ParsePrivateLinkAssociationID(input string) (*PrivateLinkAssociationId, err } id := PrivateLinkAssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePrivateLinkAssociationIDInsensitively(input string) (*PrivateLinkAssoc } id := PrivateLinkAssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,11 +105,11 @@ func (id PrivateLinkAssociationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticPrivateLinkAssociations", "privateLinkAssociations", "privateLinkAssociations"), - resourceids.UserSpecifiedSegment("plaId", "plaIdValue"), + resourceids.UserSpecifiedSegment("plaId", "plaId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_get.go index 8b4ac033e6b7..5a6615da3765 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_get.go @@ -45,7 +45,6 @@ func (c PrivateLinkAssociationClient) Get(ctx context.Context, id PrivateLinkAss var model PrivateLinkAssociation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_list.go index 4f7d12a18d71..eda2621c7065 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_list.go @@ -47,7 +47,6 @@ func (c PrivateLinkAssociationClient) List(ctx context.Context, id commonids.Man var model PrivateLinkAssociationGetResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_put.go index a0df188ecf66..cfbd132f1c35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/method_put.go @@ -50,7 +50,6 @@ func (c PrivateLinkAssociationClient) Put(ctx context.Context, id PrivateLinkAss var model PrivateLinkAssociation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/version.go index 91aa6cdb35fc..208f988d4f79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/privatelinkassociation/version.go @@ -1,12 +1,10 @@ package privatelinkassociation -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkassociation/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkassociation/2020-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md index ee9c8fa9b4e0..035fefb81da6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink` Documentation -The `resourcemanagementprivatelink` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2020-05-01`). +The `resourcemanagementprivatelink` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2020-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue") +id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rmplName") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue") +id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rmplName") read, err := client.Get(ctx, id) if err != nil { @@ -89,7 +89,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceManagementPrivateLinkValue") +id := resourcemanagementprivatelink.NewResourceManagementPrivateLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rmplName") payload := resourcemanagementprivatelink.ResourceManagementPrivateLinkLocation{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/client.go index de7671f91dd5..57734c328630 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/client.go @@ -15,7 +15,7 @@ type ResourceManagementPrivateLinkClient struct { } func NewResourceManagementPrivateLinkClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceManagementPrivateLinkClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resourcemanagementprivatelink", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resourcemanagementprivatelink", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceManagementPrivateLinkClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/id_resourcemanagementprivatelink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/id_resourcemanagementprivatelink.go index 66da4ffd055d..0d05f87ce56e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/id_resourcemanagementprivatelink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/id_resourcemanagementprivatelink.go @@ -42,7 +42,7 @@ func ParseResourceManagementPrivateLinkID(input string) (*ResourceManagementPriv } id := ResourceManagementPrivateLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseResourceManagementPrivateLinkIDInsensitively(input string) (*ResourceM } id := ResourceManagementPrivateLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ResourceManagementPrivateLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticResourceManagementPrivateLinks", "resourceManagementPrivateLinks", "resourceManagementPrivateLinks"), - resourceids.UserSpecifiedSegment("resourceManagementPrivateLinkName", "resourceManagementPrivateLinkValue"), + resourceids.UserSpecifiedSegment("resourceManagementPrivateLinkName", "rmplName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_get.go index 5bfd0aa51dcb..08b0235b0b5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_get.go @@ -45,7 +45,6 @@ func (c ResourceManagementPrivateLinkClient) Get(ctx context.Context, id Resourc var model ResourceManagementPrivateLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_list.go index c4ebbcf7aeb2..a4b5c18ec492 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_list.go @@ -47,7 +47,6 @@ func (c ResourceManagementPrivateLinkClient) List(ctx context.Context, id common var model ResourceManagementPrivateLinkListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_listbyresourcegroup.go index bc92a5779a23..c0614017cd00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ResourceManagementPrivateLinkClient) ListByResourceGroup(ctx context.Con var model ResourceManagementPrivateLinkListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_put.go index 9af7cfe1ca2c..06948bb02baa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/method_put.go @@ -50,7 +50,6 @@ func (c ResourceManagementPrivateLinkClient) Put(ctx context.Context, id Resourc var model ResourceManagementPrivateLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/version.go index 127e1df827f5..2f7cb36e7aa4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-05-01/resourcemanagementprivatelink/version.go @@ -1,12 +1,10 @@ package resourcemanagementprivatelink -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resourcemanagementprivatelink/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resourcemanagementprivatelink/2020-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/README.md index 9cd5c287efe2..72d551ebc448 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts` Documentation -The `deploymentscripts` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2020-10-01`). +The `deploymentscripts` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2020-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") payload := deploymentscripts.DeploymentScript{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") read, err := client.Get(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") read, err := client.GetLogs(ctx, id) if err != nil { @@ -90,7 +90,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") read, err := client.GetLogsDefault(ctx, id, deploymentscripts.DefaultGetLogsDefaultOperationOptions()) if err != nil { @@ -140,7 +140,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "deploymentScriptValue") +id := deploymentscripts.NewDeploymentScriptID("12345678-1234-9876-4563-123456789012", "example-resource-group", "scriptName") payload := deploymentscripts.DeploymentScriptUpdateParameter{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/client.go index f769ada70916..909bfb813a4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/client.go @@ -15,7 +15,7 @@ type DeploymentScriptsClient struct { } func NewDeploymentScriptsClientWithBaseURI(sdkApi sdkEnv.Api) (*DeploymentScriptsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deploymentscripts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deploymentscripts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeploymentScriptsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/id_deploymentscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/id_deploymentscript.go index cb29b3947deb..995e0ffbd553 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/id_deploymentscript.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/id_deploymentscript.go @@ -42,7 +42,7 @@ func ParseDeploymentScriptID(input string) (*DeploymentScriptId, error) { } id := DeploymentScriptId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeploymentScriptIDInsensitively(input string) (*DeploymentScriptId, er } id := DeploymentScriptId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id DeploymentScriptId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResources", "Microsoft.Resources", "Microsoft.Resources"), resourceids.StaticSegment("staticDeploymentScripts", "deploymentScripts", "deploymentScripts"), - resourceids.UserSpecifiedSegment("deploymentScriptName", "deploymentScriptValue"), + resourceids.UserSpecifiedSegment("deploymentScriptName", "scriptName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_create.go index c248110b7f5d..44670dd302ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_create.go @@ -18,7 +18,7 @@ type CreateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *DeploymentScript + Model DeploymentScript } // Create ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_get.go index 62510f6e60fe..5963268db14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DeploymentScript + Model DeploymentScript } // Get ... @@ -48,11 +48,11 @@ func (c DeploymentScriptsClient) Get(ctx context.Context, id DeploymentScriptId) if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDeploymentScriptImplementation(respObj) + model, err := UnmarshalDeploymentScriptImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogs.go index e734be7b1c43..62d5f16bda94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogs.go @@ -46,7 +46,6 @@ func (c DeploymentScriptsClient) GetLogs(ctx context.Context, id DeploymentScrip var model ScriptLogsList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go index 2876a3ebc283..0de9e1657418 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_getlogsdefault.go @@ -34,6 +34,7 @@ func (o GetLogsDefaultOperationOptions) ToHeaders() *client.Headers { func (o GetLogsDefaultOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c DeploymentScriptsClient) GetLogsDefault(ctx context.Context, id Deployme var model ScriptLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go index 85bb5985bd82..3448e8f9c4da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbyresourcegroup.go @@ -74,7 +74,7 @@ func (c DeploymentScriptsClient) ListByResourceGroup(ctx context.Context, id com temp := make([]DeploymentScript, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalDeploymentScriptImplementation(v) + val, err := UnmarshalDeploymentScriptImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for DeploymentScript (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go index 854e3b342b99..669cd76547e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_listbysubscription.go @@ -74,7 +74,7 @@ func (c DeploymentScriptsClient) ListBySubscription(ctx context.Context, id comm temp := make([]DeploymentScript, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalDeploymentScriptImplementation(v) + val, err := UnmarshalDeploymentScriptImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for DeploymentScript (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_update.go index 9c84c2f55cdd..c905916b2bb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/method_update.go @@ -15,7 +15,7 @@ import ( type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *DeploymentScript + Model DeploymentScript } // Update ... @@ -52,11 +52,11 @@ func (c DeploymentScriptsClient) Update(ctx context.Context, id DeploymentScript if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalDeploymentScriptImplementation(respObj) + model, err := UnmarshalDeploymentScriptImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurecliscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurecliscript.go index dee5017e10ce..d45b7f5abb98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurecliscript.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurecliscript.go @@ -17,8 +17,10 @@ type AzureCliScript struct { Properties AzureCliScriptProperties `json:"properties"` // Fields inherited from DeploymentScript + Id *string `json:"id,omitempty"` Identity *identity.UserAssignedMap `json:"identity,omitempty"` + Kind ScriptType `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` @@ -26,6 +28,19 @@ type AzureCliScript struct { Type *string `json:"type,omitempty"` } +func (s AzureCliScript) DeploymentScript() BaseDeploymentScriptImpl { + return BaseDeploymentScriptImpl{ + Id: s.Id, + Identity: s.Identity, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + SystemData: s.SystemData, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = AzureCliScript{} func (s AzureCliScript) MarshalJSON() ([]byte, error) { @@ -37,9 +52,10 @@ func (s AzureCliScript) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureCliScript: %+v", err) } + decoded["kind"] = "AzureCLI" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurepowershellscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurepowershellscript.go index d6847b26436a..bf5062d88386 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurepowershellscript.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_azurepowershellscript.go @@ -17,8 +17,10 @@ type AzurePowerShellScript struct { Properties AzurePowerShellScriptProperties `json:"properties"` // Fields inherited from DeploymentScript + Id *string `json:"id,omitempty"` Identity *identity.UserAssignedMap `json:"identity,omitempty"` + Kind ScriptType `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` @@ -26,6 +28,19 @@ type AzurePowerShellScript struct { Type *string `json:"type,omitempty"` } +func (s AzurePowerShellScript) DeploymentScript() BaseDeploymentScriptImpl { + return BaseDeploymentScriptImpl{ + Id: s.Id, + Identity: s.Identity, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + SystemData: s.SystemData, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = AzurePowerShellScript{} func (s AzurePowerShellScript) MarshalJSON() ([]byte, error) { @@ -37,9 +52,10 @@ func (s AzurePowerShellScript) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzurePowerShellScript: %+v", err) } + decoded["kind"] = "AzurePowerShell" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_deploymentscript.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_deploymentscript.go index bb259806d611..2f21ae85c4bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_deploymentscript.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/model_deploymentscript.go @@ -4,24 +4,51 @@ import ( "encoding/json" "fmt" "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" ) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeploymentScript interface { + DeploymentScript() BaseDeploymentScriptImpl +} + +var _ DeploymentScript = BaseDeploymentScriptImpl{} + +type BaseDeploymentScriptImpl struct { + Id *string `json:"id,omitempty"` + Identity *identity.UserAssignedMap `json:"identity,omitempty"` + Kind ScriptType `json:"kind"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseDeploymentScriptImpl) DeploymentScript() BaseDeploymentScriptImpl { + return s } -// RawDeploymentScriptImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ DeploymentScript = RawDeploymentScriptImpl{} + +// RawDeploymentScriptImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawDeploymentScriptImpl struct { - Type string - Values map[string]interface{} + deploymentScript BaseDeploymentScriptImpl + Type string + Values map[string]interface{} +} + +func (s RawDeploymentScriptImpl) DeploymentScript() BaseDeploymentScriptImpl { + return s.deploymentScript } -func unmarshalDeploymentScriptImplementation(input []byte) (DeploymentScript, error) { +func UnmarshalDeploymentScriptImplementation(input []byte) (DeploymentScript, error) { if input == nil { return nil, nil } @@ -31,9 +58,9 @@ func unmarshalDeploymentScriptImplementation(input []byte) (DeploymentScript, er return nil, fmt.Errorf("unmarshaling DeploymentScript into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureCLI") { @@ -52,10 +79,15 @@ func unmarshalDeploymentScriptImplementation(input []byte) (DeploymentScript, er return out, nil } - out := RawDeploymentScriptImpl{ - Type: value, - Values: temp, + var parent BaseDeploymentScriptImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseDeploymentScriptImpl: %+v", err) } - return out, nil + + return RawDeploymentScriptImpl{ + deploymentScript: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/version.go index 2a1d0814490f..1e3d7977b77c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2020-10-01/deploymentscripts/version.go @@ -1,12 +1,10 @@ package deploymentscripts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deploymentscripts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deploymentscripts/2020-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/README.md index eb376dd2c912..395efd5e6bb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features` Documentation -The `features` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2021-07-01`). +The `features` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2021-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "providerValue", "featureValue") +id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace", "featureName") read, err := client.Get(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := features.NewProviders2ID("12345678-1234-9876-4563-123456789012", "providerValue") +id := features.NewProviders2ID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "providerValue", "featureValue") +id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace", "featureName") read, err := client.Register(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "providerValue", "featureValue") +id := features.NewFeatureID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace", "featureName") read, err := client.Unregister(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/client.go index 9849a64bcf6d..d59e61d7dd1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/client.go @@ -15,7 +15,7 @@ type FeaturesClient struct { } func NewFeaturesClientWithBaseURI(sdkApi sdkEnv.Api) (*FeaturesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "features", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "features", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FeaturesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_feature.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_feature.go index ecc4d1fb6704..4a74bd6b53ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_feature.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_feature.go @@ -42,7 +42,7 @@ func ParseFeatureID(input string) (*FeatureId, error) { } id := FeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseFeatureIDInsensitively(input string) (*FeatureId, error) { } id := FeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id FeatureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftFeatures", "Microsoft.Features", "Microsoft.Features"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), - resourceids.UserSpecifiedSegment("providerName", "providerValue"), + resourceids.UserSpecifiedSegment("providerName", "resourceProviderNamespace"), resourceids.StaticSegment("staticFeatures", "features", "features"), - resourceids.UserSpecifiedSegment("featureName", "featureValue"), + resourceids.UserSpecifiedSegment("featureName", "featureName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_providers2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_providers2.go index 4a6fe0fcd319..da0daa70b018 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_providers2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/id_providers2.go @@ -40,7 +40,7 @@ func ParseProviders2ID(input string) (*Providers2Id, error) { } id := Providers2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviders2IDInsensitively(input string) (*Providers2Id, error) { } id := Providers2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id Providers2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftFeatures", "Microsoft.Features", "Microsoft.Features"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), - resourceids.UserSpecifiedSegment("providerName", "providerValue"), + resourceids.UserSpecifiedSegment("providerName", "resourceProviderNamespace"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_get.go index 525b4e934f2b..4ecf9e76521a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_get.go @@ -45,7 +45,6 @@ func (c FeaturesClient) Get(ctx context.Context, id FeatureId) (result GetOperat var model FeatureResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_register.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_register.go index be816c2e6e02..5d44b57ce1e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_register.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_register.go @@ -46,7 +46,6 @@ func (c FeaturesClient) Register(ctx context.Context, id FeatureId) (result Regi var model FeatureResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_unregister.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_unregister.go index 2509e094e274..766e193a6aa8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_unregister.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/method_unregister.go @@ -46,7 +46,6 @@ func (c FeaturesClient) Unregister(ctx context.Context, id FeatureId) (result Un var model FeatureResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/version.go index 02fe19a714cf..6722505ad156 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2021-07-01/features/version.go @@ -1,12 +1,10 @@ package features -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/features/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/features/2021-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/README.md index 69139c49a84e..3918b0ea9361 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions` Documentation -The `templatespecversions` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2022-02-01`). +The `templatespecversions` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2022-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecValue", "versionValue") +id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecName", "templateSpecVersion") payload := templatespecversions.TemplateSpecVersion{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecValue", "versionValue") +id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecName", "templateSpecVersion") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecValue", "versionValue") +id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecName", "templateSpecVersion") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := templatespecversions.NewVersionID("builtInTemplateSpecValue", "versionValue") +id := templatespecversions.NewVersionID("templateSpecName", "templateSpecVersion") read, err := client.GetBuiltIn(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := templatespecversions.NewTemplateSpecID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecValue") +id := templatespecversions.NewTemplateSpecID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -110,7 +110,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := templatespecversions.NewBuiltInTemplateSpecID("builtInTemplateSpecValue") +id := templatespecversions.NewBuiltInTemplateSpecID("templateSpecName") // alternatively `client.ListBuiltIns(ctx, id)` can be used to do batched pagination items, err := client.ListBuiltInsComplete(ctx, id) @@ -127,7 +127,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecValue", "versionValue") +id := templatespecversions.NewTemplateSpecVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "templateSpecName", "templateSpecVersion") payload := templatespecversions.TemplateSpecVersionUpdateModel{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/client.go index 7493bcc63fc8..e50617573f09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/client.go @@ -15,7 +15,7 @@ type TemplateSpecVersionsClient struct { } func NewTemplateSpecVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*TemplateSpecVersionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "templatespecversions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "templatespecversions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TemplateSpecVersionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_builtintemplatespec.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_builtintemplatespec.go index 9dc22b1a01e8..1f6ce46691e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_builtintemplatespec.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_builtintemplatespec.go @@ -38,7 +38,7 @@ func ParseBuiltInTemplateSpecID(input string) (*BuiltInTemplateSpecId, error) { } id := BuiltInTemplateSpecId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseBuiltInTemplateSpecIDInsensitively(input string) (*BuiltInTemplateSpec } id := BuiltInTemplateSpecId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id BuiltInTemplateSpecId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResources", "Microsoft.Resources", "Microsoft.Resources"), resourceids.StaticSegment("staticBuiltInTemplateSpecs", "builtInTemplateSpecs", "builtInTemplateSpecs"), - resourceids.UserSpecifiedSegment("builtInTemplateSpecName", "builtInTemplateSpecValue"), + resourceids.UserSpecifiedSegment("builtInTemplateSpecName", "templateSpecName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespec.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespec.go index 480a22e71c54..c082b898f657 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespec.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespec.go @@ -42,7 +42,7 @@ func ParseTemplateSpecID(input string) (*TemplateSpecId, error) { } id := TemplateSpecId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTemplateSpecIDInsensitively(input string) (*TemplateSpecId, error) { } id := TemplateSpecId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TemplateSpecId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResources", "Microsoft.Resources", "Microsoft.Resources"), resourceids.StaticSegment("staticTemplateSpecs", "templateSpecs", "templateSpecs"), - resourceids.UserSpecifiedSegment("templateSpecName", "templateSpecValue"), + resourceids.UserSpecifiedSegment("templateSpecName", "templateSpecName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespecversion.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespecversion.go index 51be51f34787..1f6af1be98c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespecversion.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_templatespecversion.go @@ -44,7 +44,7 @@ func ParseTemplateSpecVersionID(input string) (*TemplateSpecVersionId, error) { } id := TemplateSpecVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTemplateSpecVersionIDInsensitively(input string) (*TemplateSpecVersion } id := TemplateSpecVersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TemplateSpecVersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResources", "Microsoft.Resources", "Microsoft.Resources"), resourceids.StaticSegment("staticTemplateSpecs", "templateSpecs", "templateSpecs"), - resourceids.UserSpecifiedSegment("templateSpecName", "templateSpecValue"), + resourceids.UserSpecifiedSegment("templateSpecName", "templateSpecName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "templateSpecVersion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_version.go index 34736872df32..64b3c055cf4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/id_version.go @@ -40,7 +40,7 @@ func ParseVersionID(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseVersionIDInsensitively(input string) (*VersionId, error) { } id := VersionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id VersionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftResources", "Microsoft.Resources", "Microsoft.Resources"), resourceids.StaticSegment("staticBuiltInTemplateSpecs", "builtInTemplateSpecs", "builtInTemplateSpecs"), - resourceids.UserSpecifiedSegment("builtInTemplateSpecName", "builtInTemplateSpecValue"), + resourceids.UserSpecifiedSegment("builtInTemplateSpecName", "templateSpecName"), resourceids.StaticSegment("staticVersions", "versions", "versions"), - resourceids.UserSpecifiedSegment("versionName", "versionValue"), + resourceids.UserSpecifiedSegment("versionName", "templateSpecVersion"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_createorupdate.go index 25dc172f4ff2..f86e44504123 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_createorupdate.go @@ -50,7 +50,6 @@ func (c TemplateSpecVersionsClient) CreateOrUpdate(ctx context.Context, id Templ var model TemplateSpecVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_get.go index b57e439ac643..92e75b262daf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_get.go @@ -45,7 +45,6 @@ func (c TemplateSpecVersionsClient) Get(ctx context.Context, id TemplateSpecVers var model TemplateSpecVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_getbuiltin.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_getbuiltin.go index 08503c4ee956..efcb5327e7fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_getbuiltin.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_getbuiltin.go @@ -45,7 +45,6 @@ func (c TemplateSpecVersionsClient) GetBuiltIn(ctx context.Context, id VersionId var model TemplateSpecVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_update.go index 787f67bbb747..b692b7b1e8d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/method_update.go @@ -49,7 +49,6 @@ func (c TemplateSpecVersionsClient) Update(ctx context.Context, id TemplateSpecV var model TemplateSpecVersion result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/version.go index 47cb26ca227e..ad318cd3e907 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-02-01/templatespecversions/version.go @@ -1,12 +1,10 @@ package templatespecversions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/templatespecversions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/templatespecversions/2022-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/README.md index 13afd4e88e79..40cc2f54b710 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments` Documentation -The `policyassignments` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2022-06-01`). +The `policyassignments` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2022-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentValue") +id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentName") payload := policyassignments.PolicyAssignment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentIdValue") +id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentId") payload := policyassignments.PolicyAssignment{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentValue") +id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentIdValue") +id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentId") read, err := client.DeleteById(ctx, id) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentValue") +id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentName") read, err := client.Get(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentIdValue") +id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentId") read, err := client.GetById(ctx, id) if err != nil { @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewManagementGroupID("groupIdValue") +id := commonids.NewManagementGroupID("groupId") // alternatively `client.ListForManagementGroup(ctx, id, policyassignments.DefaultListForManagementGroupOperationOptions())` can be used to do batched pagination items, err := client.ListForManagementGroupComplete(ctx, id, policyassignments.DefaultListForManagementGroupOperationOptions()) @@ -199,7 +199,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentValue") +id := policyassignments.NewScopedPolicyAssignmentID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "policyAssignmentName") payload := policyassignments.PolicyAssignmentUpdate{ // ... @@ -220,7 +220,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentIdValue") +id := policyassignments.NewPolicyAssignmentIdID("policyAssignmentId") payload := policyassignments.PolicyAssignmentUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/client.go index 8e17cddc4c7b..402c2f10e044 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/client.go @@ -15,7 +15,7 @@ type PolicyAssignmentsClient struct { } func NewPolicyAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyAssignmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "policyassignments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "policyassignments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PolicyAssignmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_policyassignmentid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_policyassignmentid.go index dd4c7ddf9b76..9f1973f1f74b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_policyassignmentid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_policyassignmentid.go @@ -38,7 +38,7 @@ func ParsePolicyAssignmentIdID(input string) (*PolicyAssignmentIdId, error) { } id := PolicyAssignmentIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParsePolicyAssignmentIdIDInsensitively(input string) (*PolicyAssignmentIdId } id := PolicyAssignmentIdId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -96,7 +96,7 @@ func (id PolicyAssignmentIdId) ID() string { // Segments returns a slice of Resource ID Segments which comprise this Policy Assignment Id ID func (id PolicyAssignmentIdId) Segments() []resourceids.Segment { return []resourceids.Segment{ - resourceids.UserSpecifiedSegment("policyAssignmentId", "policyAssignmentIdValue"), + resourceids.UserSpecifiedSegment("policyAssignmentId", "policyAssignmentId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_scopedpolicyassignment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_scopedpolicyassignment.go index 2ed810504d23..1f8f559c69be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_scopedpolicyassignment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/id_scopedpolicyassignment.go @@ -40,7 +40,7 @@ func ParseScopedPolicyAssignmentID(input string) (*ScopedPolicyAssignmentId, err } id := ScopedPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedPolicyAssignmentIDInsensitively(input string) (*ScopedPolicyAssi } id := ScopedPolicyAssignmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedPolicyAssignmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAuthorization", "Microsoft.Authorization", "Microsoft.Authorization"), resourceids.StaticSegment("staticPolicyAssignments", "policyAssignments", "policyAssignments"), - resourceids.UserSpecifiedSegment("policyAssignmentName", "policyAssignmentValue"), + resourceids.UserSpecifiedSegment("policyAssignmentName", "policyAssignmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_create.go index a532f7d9a19c..38593afb7f22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_create.go @@ -49,7 +49,6 @@ func (c PolicyAssignmentsClient) Create(ctx context.Context, id ScopedPolicyAssi var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_createbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_createbyid.go index 674d24a20ae0..a2a99e106f75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_createbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_createbyid.go @@ -49,7 +49,6 @@ func (c PolicyAssignmentsClient) CreateById(ctx context.Context, id PolicyAssign var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_delete.go index 34fe8c30441f..27d5cdb250cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_delete.go @@ -46,7 +46,6 @@ func (c PolicyAssignmentsClient) Delete(ctx context.Context, id ScopedPolicyAssi var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_deletebyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_deletebyid.go index ef64fb620322..336b50d1923d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_deletebyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_deletebyid.go @@ -46,7 +46,6 @@ func (c PolicyAssignmentsClient) DeleteById(ctx context.Context, id PolicyAssign var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_get.go index 9e8e5bbce83e..bf3df6719ea3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_get.go @@ -45,7 +45,6 @@ func (c PolicyAssignmentsClient) Get(ctx context.Context, id ScopedPolicyAssignm var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_getbyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_getbyid.go index 8f0a663b93d1..bafd322c39fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_getbyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_getbyid.go @@ -45,7 +45,6 @@ func (c PolicyAssignmentsClient) GetById(ctx context.Context, id PolicyAssignmen var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_list.go index 78a0fc2e344f..39f4c7c0fc96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go index b32ecc0edc45..7abe2300095d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listformanagementgroup.go @@ -41,6 +41,7 @@ func (o ListForManagementGroupOperationOptions) ToHeaders() *client.Headers { func (o ListForManagementGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go index 39c781d143af..04e9474c95c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresource.go @@ -41,6 +41,7 @@ func (o ListForResourceOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go index 963b981c1321..127c89ef46ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_listforresourcegroup.go @@ -41,6 +41,7 @@ func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_update.go index 196a096f8943..1f53d65281e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_update.go @@ -49,7 +49,6 @@ func (c PolicyAssignmentsClient) Update(ctx context.Context, id ScopedPolicyAssi var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_updatebyid.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_updatebyid.go index 840a25a0f984..99e8c69a4574 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_updatebyid.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/method_updatebyid.go @@ -49,7 +49,6 @@ func (c PolicyAssignmentsClient) UpdateById(ctx context.Context, id PolicyAssign var model PolicyAssignment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/version.go index 1b1f00e46bea..42a8b90697ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-06-01/policyassignments/version.go @@ -1,12 +1,10 @@ package policyassignments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/policyassignments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/policyassignments/2022-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/README.md index 476bd35f9bd2..a4c00283c4e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers` Documentation -The `providers` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2022-09-01`). +The `providers` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2022-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue") +id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") read, err := client.Get(ctx, id, providers.DefaultGetOperationOptions()) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewProviderID("providerValue") +id := providers.NewProviderID("resourceProviderNamespace") read, err := client.GetAtTenantScope(ctx, id, providers.DefaultGetAtTenantScopeOperationOptions()) if err != nil { @@ -91,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue") +id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") // alternatively `client.ProviderPermissions(ctx, id)` can be used to do batched pagination items, err := client.ProviderPermissionsComplete(ctx, id) @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue") +id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") // alternatively `client.ProviderResourceTypesList(ctx, id, providers.DefaultProviderResourceTypesListOperationOptions())` can be used to do batched pagination items, err := client.ProviderResourceTypesListComplete(ctx, id, providers.DefaultProviderResourceTypesListOperationOptions()) @@ -125,7 +125,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue") +id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") payload := providers.ProviderRegistrationRequest{ // ... @@ -146,7 +146,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewProviders2ID("groupIdValue", "providerValue") +id := providers.NewProviders2ID("groupId", "resourceProviderNamespace") read, err := client.RegisterAtManagementGroupScope(ctx, id) if err != nil { @@ -162,7 +162,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "providerValue") +id := providers.NewSubscriptionProviderID("12345678-1234-9876-4563-123456789012", "resourceProviderNamespace") read, err := client.Unregister(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/client.go index d7c2b0e499dd..34b98302c9d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/client.go @@ -15,7 +15,7 @@ type ProvidersClient struct { } func NewProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "providers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "providers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_provider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_provider.go index bb7109d65501..64201d1da62a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_provider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_provider.go @@ -38,7 +38,7 @@ func ParseProviderID(input string) (*ProviderId, error) { } id := ProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseProviderIDInsensitively(input string) (*ProviderId, error) { } id := ProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -97,7 +97,7 @@ func (id ProviderId) ID() string { func (id ProviderId) Segments() []resourceids.Segment { return []resourceids.Segment{ resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.UserSpecifiedSegment("providerName", "providerValue"), + resourceids.UserSpecifiedSegment("providerName", "resourceProviderNamespace"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_providers2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_providers2.go index 7b308b2de67f..915907fb0ad2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_providers2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_providers2.go @@ -40,7 +40,7 @@ func ParseProviders2ID(input string) (*Providers2Id, error) { } id := Providers2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviders2IDInsensitively(input string) (*Providers2Id, error) { } id := Providers2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,9 +105,9 @@ func (id Providers2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftManagement", "Microsoft.Management", "Microsoft.Management"), resourceids.StaticSegment("staticManagementGroups", "managementGroups", "managementGroups"), - resourceids.UserSpecifiedSegment("groupId", "groupIdValue"), + resourceids.UserSpecifiedSegment("groupId", "groupId"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), - resourceids.UserSpecifiedSegment("providerName", "providerValue"), + resourceids.UserSpecifiedSegment("providerName", "resourceProviderNamespace"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_subscriptionprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_subscriptionprovider.go index 970cffaedfa6..652370f91027 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_subscriptionprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/id_subscriptionprovider.go @@ -40,7 +40,7 @@ func ParseSubscriptionProviderID(input string) (*SubscriptionProviderId, error) } id := SubscriptionProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseSubscriptionProviderIDInsensitively(input string) (*SubscriptionProvid } id := SubscriptionProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,7 +105,7 @@ func (id SubscriptionProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticProviders", "providers", "providers"), - resourceids.UserSpecifiedSegment("providerName", "providerValue"), + resourceids.UserSpecifiedSegment("providerName", "resourceProviderNamespace"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_get.go index d9ebc641bc32..2a780770db9d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ProvidersClient) Get(ctx context.Context, id SubscriptionProviderId, opt var model Provider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go index 179d43b8f069..18fae99a5b59 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_getattenantscope.go @@ -34,6 +34,7 @@ func (o GetAtTenantScopeOperationOptions) ToHeaders() *client.Headers { func (o GetAtTenantScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ProvidersClient) GetAtTenantScope(ctx context.Context, id ProviderId, op var model Provider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_list.go index efff36573fcd..d255799a080a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go index a89644b87b7c..6f2329165f24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_listattenantscope.go @@ -39,6 +39,7 @@ func (o ListAtTenantScopeOperationOptions) ToHeaders() *client.Headers { func (o ListAtTenantScopeOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go index b19a58feb1ab..f126b5fe4369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_providerresourcetypeslist.go @@ -39,6 +39,7 @@ func (o ProviderResourceTypesListOperationOptions) ToHeaders() *client.Headers { func (o ProviderResourceTypesListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_register.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_register.go index 4aeee8d7b46d..11d8a56a1074 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_register.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_register.go @@ -50,7 +50,6 @@ func (c ProvidersClient) Register(ctx context.Context, id SubscriptionProviderId var model Provider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_unregister.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_unregister.go index bad323e4b602..02cd514d18a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_unregister.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/method_unregister.go @@ -46,7 +46,6 @@ func (c ProvidersClient) Unregister(ctx context.Context, id SubscriptionProvider var model Provider result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/version.go index 4162fd2dcb64..9a60858ccd14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-09-01/providers/version.go @@ -1,12 +1,10 @@ package providers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/providers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/providers/2022-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/README.md index 2ed828afea8c..9794bd8a4e02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions` Documentation -The `subscriptions` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2022-12-01`). +The `subscriptions` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2022-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/client.go index 09be7cb1cfb0..84c92b4fb13a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/client.go @@ -15,7 +15,7 @@ type SubscriptionsClient struct { } func NewSubscriptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "subscriptions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "subscriptions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SubscriptionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_checkzonepeers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_checkzonepeers.go index 6d405dcc9cf2..973678b5c73f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_checkzonepeers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_checkzonepeers.go @@ -51,7 +51,6 @@ func (c SubscriptionsClient) CheckZonePeers(ctx context.Context, id commonids.Su var model CheckZonePeersResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_get.go index b282b4a832ff..ba4944a31ad5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_get.go @@ -46,7 +46,6 @@ func (c SubscriptionsClient) Get(ctx context.Context, id commonids.SubscriptionI var model Subscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go index cb1dc551775f..c067a6f1c734 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/method_listlocations.go @@ -35,6 +35,7 @@ func (o ListLocationsOperationOptions) ToHeaders() *client.Headers { func (o ListLocationsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c SubscriptionsClient) ListLocations(ctx context.Context, id commonids.Sub var model LocationListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/version.go index fdd4fbe1e588..fa12d5aef14b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2022-12-01/subscriptions/version.go @@ -1,12 +1,10 @@ package subscriptions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subscriptions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subscriptions/2022-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/README.md index 44f066eb5619..a9ebe042f4b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups` Documentation -The `resourcegroups` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2023-07-01`). +The `resourcegroups` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/client.go index 1f154d804228..770fb5d71d9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/client.go @@ -15,7 +15,7 @@ type ResourceGroupsClient struct { } func NewResourceGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resourcegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resourcegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_createorupdate.go index a0c7a8a2ada1..6b7f26d9e021 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_createorupdate.go @@ -51,7 +51,6 @@ func (c ResourceGroupsClient) CreateOrUpdate(ctx context.Context, id commonids.R var model ResourceGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go index e3e6402be672..7b9b6b4ff48d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_delete.go @@ -37,6 +37,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_get.go index a75549521ace..0a805dd40e24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_get.go @@ -46,7 +46,6 @@ func (c ResourceGroupsClient) Get(ctx context.Context, id commonids.ResourceGrou var model ResourceGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_list.go index 43e82e042cee..d78f8e8818d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_list.go @@ -41,6 +41,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go index e739ddc1a693..fc72e1e6ea6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_resourceslistbyresourcegroup.go @@ -42,6 +42,7 @@ func (o ResourcesListByResourceGroupOperationOptions) ToHeaders() *client.Header func (o ResourcesListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_update.go index 5e386a401ab3..0af23ede9e77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/method_update.go @@ -50,7 +50,6 @@ func (c ResourceGroupsClient) Update(ctx context.Context, id commonids.ResourceG var model ResourceGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/version.go index 6914f8ff0ff8..868aff97ec60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/resourcegroups/version.go @@ -1,12 +1,10 @@ package resourcegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resourcegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resourcegroups/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/README.md index 61f365bbcab1..4f6509680fbd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags` Documentation -The `tags` SDK allows for interaction with the Azure Resource Manager Service `resources` (API Version `2023-07-01`). +The `tags` SDK allows for interaction with Azure Resource Manager `resources` (API Version `2023-07-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tags.NewTagNameID("12345678-1234-9876-4563-123456789012", "tagValue") +id := tags.NewTagNameID("12345678-1234-9876-4563-123456789012", "tagName") read, err := client.CreateOrUpdate(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if err := client.CreateOrUpdateAtScopeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := tags.NewTagValueID("12345678-1234-9876-4563-123456789012", "tagValue", "tagValueValue") +id := tags.NewTagValueID("12345678-1234-9876-4563-123456789012", "tagName", "tagValue") read, err := client.CreateOrUpdateValue(ctx, id) if err != nil { @@ -74,7 +74,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tags.NewTagNameID("12345678-1234-9876-4563-123456789012", "tagValue") +id := tags.NewTagNameID("12345678-1234-9876-4563-123456789012", "tagName") read, err := client.Delete(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if err := client.DeleteAtScopeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := tags.NewTagValueID("12345678-1234-9876-4563-123456789012", "tagValue", "tagValueValue") +id := tags.NewTagValueID("12345678-1234-9876-4563-123456789012", "tagName", "tagValue") read, err := client.DeleteValue(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/client.go index 8ef9b9a30b40..1b337a567b01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/client.go @@ -15,7 +15,7 @@ type TagsClient struct { } func NewTagsClientWithBaseURI(sdkApi sdkEnv.Api) (*TagsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tags", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tags", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TagsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagname.go index 44322e58a520..e139995ddb1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagname.go @@ -40,7 +40,7 @@ func ParseTagNameID(input string) (*TagNameId, error) { } id := TagNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseTagNameIDInsensitively(input string) (*TagNameId, error) { } id := TagNameId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -105,7 +105,7 @@ func (id TagNameId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticTagNames", "tagNames", "tagNames"), - resourceids.UserSpecifiedSegment("tagName", "tagValue"), + resourceids.UserSpecifiedSegment("tagName", "tagName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagvalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagvalue.go index b7c8bfa62650..da625991a864 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagvalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/id_tagvalue.go @@ -42,7 +42,7 @@ func ParseTagValueID(input string) (*TagValueId, error) { } id := TagValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTagValueIDInsensitively(input string) (*TagValueId, error) { } id := TagValueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -111,9 +111,9 @@ func (id TagValueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), resourceids.StaticSegment("staticTagNames", "tagNames", "tagNames"), - resourceids.UserSpecifiedSegment("tagName", "tagValue"), + resourceids.UserSpecifiedSegment("tagName", "tagName"), resourceids.StaticSegment("staticTagValues", "tagValues", "tagValues"), - resourceids.UserSpecifiedSegment("tagValueName", "tagValueValue"), + resourceids.UserSpecifiedSegment("tagValueName", "tagValue"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdate.go index 1ecb632da6d1..117a6bb5ba7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdate.go @@ -46,7 +46,6 @@ func (c TagsClient) CreateOrUpdate(ctx context.Context, id TagNameId) (result Cr var model TagDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdatevalue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdatevalue.go index af5cdd0624b5..f5e9476bcb5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdatevalue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_createorupdatevalue.go @@ -46,7 +46,6 @@ func (c TagsClient) CreateOrUpdateValue(ctx context.Context, id TagValueId) (res var model TagValue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_getatscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_getatscope.go index 50af01905769..7f5afb9a8acb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_getatscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/method_getatscope.go @@ -47,7 +47,6 @@ func (c TagsClient) GetAtScope(ctx context.Context, id commonids.ScopeId) (resul var model TagsResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/version.go index c0dcd7cbde71..2782f2c42a2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/resources/2023-07-01/tags/version.go @@ -1,12 +1,10 @@ package tags -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-07-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tags/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tags/2023-07-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md index e9cc82f8c78f..bb1ec3448502 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services` Documentation -The `services` SDK allows for interaction with the Azure Resource Manager Service `search` (API Version `2022-09-01`). +The `services` SDK allows for interaction with Azure Resource Manager `search` (API Version `2022-09-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") payload := services.SearchService{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, services.DefaultCreate ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") read, err := client.Delete(ctx, id, services.DefaultDeleteOperationOptions()) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") read, err := client.Get(ctx, id, services.DefaultGetOperationOptions()) if err != nil { @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") payload := services.SearchServiceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go index dc4a72c1ff40..24dd876692e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/client.go @@ -15,7 +15,7 @@ type ServicesClient struct { } func NewServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "services", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "services", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go index b5227afb74e8..1cb359dc9959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/id_searchservice.go @@ -42,7 +42,7 @@ func ParseSearchServiceID(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SearchServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go index 4c5fb7d1b142..fc2d16f5577b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_checknameavailability.go @@ -37,6 +37,7 @@ func (o CheckNameAvailabilityOperationOptions) ToHeaders() *client.Headers { func (o CheckNameAvailabilityOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ServicesClient) CheckNameAvailability(ctx context.Context, id commonids. var model CheckNameAvailabilityOutput result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go index f9dd8790aee2..eb913bcdc6bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go index eb63a71a3508..da3e636b27e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go index 2c4d1b4d2143..7d3bc50da984 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ServicesClient) Get(ctx context.Context, id SearchServiceId, options Get var model SearchService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go index 97b07d6c5af4..e27921b39d4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbyresourcegroup.go @@ -42,6 +42,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go index 2285f7c82369..c72273bc4d86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_listbysubscription.go @@ -42,6 +42,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go index 89dca2cf67b3..2fcfddaf54e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ServicesClient) Update(ctx context.Context, id SearchServiceId, input Se var model SearchService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go index a89e916feea6..a9afc35316d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2022-09-01/services/version.go @@ -1,12 +1,10 @@ package services -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-09-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/services/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/services/2022-09-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md index c0bb2425c557..2f004f6143c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys` Documentation -The `adminkeys` SDK allows for interaction with the Azure Resource Manager Service `search` (API Version `2023-11-01`). +The `adminkeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := adminkeys.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := adminkeys.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") read, err := client.Get(ctx, id, adminkeys.DefaultGetOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := adminkeys.NewKeyKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "primary") +id := adminkeys.NewKeyKindID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "primary") read, err := client.Regenerate(ctx, id, adminkeys.DefaultRegenerateOperationOptions()) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go index 1d53a97f2d43..9107624f0f18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/client.go @@ -15,7 +15,7 @@ type AdminKeysClient struct { } func NewAdminKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "adminkeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "adminkeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AdminKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go index f266d00aa2e4..2d72e49e6619 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_keykind.go @@ -44,7 +44,7 @@ func ParseKeyKindID(input string) (*KeyKindId, error) { } id := KeyKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseKeyKindIDInsensitively(input string) (*KeyKindId, error) { } id := KeyKindId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -129,7 +129,7 @@ func (id KeyKindId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), resourceids.StaticSegment("staticRegenerateAdminKey", "regenerateAdminKey", "regenerateAdminKey"), resourceids.ConstantSegment("keyKind", PossibleValuesForAdminKeyKind(), "primary"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go index f6d34defe166..d5042de36efd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/id_searchservice.go @@ -42,7 +42,7 @@ func ParseSearchServiceID(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SearchServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go index 9ba02fb5b04d..fde80779fd5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c AdminKeysClient) Get(ctx context.Context, id SearchServiceId, options Ge var model AdminKeyResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go index 43b7d2531dcc..9dc7bd600095 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/method_regenerate.go @@ -36,6 +36,7 @@ func (o RegenerateOperationOptions) ToHeaders() *client.Headers { func (o RegenerateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c AdminKeysClient) Regenerate(ctx context.Context, id KeyKindId, options R var model AdminKeyResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go index a6708cd1feb3..3611d975f09e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/adminkeys/version.go @@ -1,12 +1,10 @@ package adminkeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/adminkeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/adminkeys/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md index b8f6b5e6eae0..006f89d76e0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys` Documentation -The `querykeys` SDK allows for interaction with the Azure Resource Manager Service `search` (API Version `2023-11-01`). +The `querykeys` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := querykeys.NewCreateQueryKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "createQueryKeyValue") +id := querykeys.NewCreateQueryKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "name") read, err := client.Create(ctx, id, querykeys.DefaultCreateOperationOptions()) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querykeys.NewDeleteQueryKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "deleteQueryKeyValue") +id := querykeys.NewDeleteQueryKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "key") read, err := client.Delete(ctx, id, querykeys.DefaultDeleteOperationOptions()) if err != nil { @@ -56,7 +56,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := querykeys.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := querykeys.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") // alternatively `client.ListBySearchService(ctx, id, querykeys.DefaultListBySearchServiceOperationOptions())` can be used to do batched pagination items, err := client.ListBySearchServiceComplete(ctx, id, querykeys.DefaultListBySearchServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go index 9b5b3fb9098f..225c811f3d85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/client.go @@ -15,7 +15,7 @@ type QueryKeysClient struct { } func NewQueryKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*QueryKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "querykeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "querykeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueryKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go index 36498e8e74a0..99815045b6e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_createquerykey.go @@ -44,7 +44,7 @@ func ParseCreateQueryKeyID(input string) (*CreateQueryKeyId, error) { } id := CreateQueryKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCreateQueryKeyIDInsensitively(input string) (*CreateQueryKeyId, error) } id := CreateQueryKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CreateQueryKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), resourceids.StaticSegment("staticCreateQueryKey", "createQueryKey", "createQueryKey"), - resourceids.UserSpecifiedSegment("createQueryKeyName", "createQueryKeyValue"), + resourceids.UserSpecifiedSegment("createQueryKeyName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go index 5b87d2a81f31..bdedadae458b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_deletequerykey.go @@ -44,7 +44,7 @@ func ParseDeleteQueryKeyID(input string) (*DeleteQueryKeyId, error) { } id := DeleteQueryKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeleteQueryKeyIDInsensitively(input string) (*DeleteQueryKeyId, error) } id := DeleteQueryKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeleteQueryKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), resourceids.StaticSegment("staticDeleteQueryKey", "deleteQueryKey", "deleteQueryKey"), - resourceids.UserSpecifiedSegment("deleteQueryKeyName", "deleteQueryKeyValue"), + resourceids.UserSpecifiedSegment("deleteQueryKeyName", "key"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go index a253bf2f3960..b68e0c910445 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/id_searchservice.go @@ -42,7 +42,7 @@ func ParseSearchServiceID(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SearchServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go index ce1d4d37167f..017b1da6e063 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_create.go @@ -36,6 +36,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c QueryKeysClient) Create(ctx context.Context, id CreateQueryKeyId, option var model QueryKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go index 99139d86e227..6b83eb0df5d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go index 190b78f9fd82..7419a6cdd954 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/method_listbysearchservice.go @@ -41,6 +41,7 @@ func (o ListBySearchServiceOperationOptions) ToHeaders() *client.Headers { func (o ListBySearchServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go index 43e074237192..45098cf520c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/querykeys/version.go @@ -1,12 +1,10 @@ package querykeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/querykeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/querykeys/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md index f08ea3116e2a..253d4b6c22b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services` Documentation -The `services` SDK allows for interaction with the Azure Resource Manager Service `search` (API Version `2023-11-01`). +The `services` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") payload := services.SearchService{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, services.DefaultCreate ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") read, err := client.Delete(ctx, id, services.DefaultDeleteOperationOptions()) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") read, err := client.Get(ctx, id, services.DefaultGetOperationOptions()) if err != nil { @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := services.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") payload := services.SearchServiceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go index dc4a72c1ff40..24dd876692e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/client.go @@ -15,7 +15,7 @@ type ServicesClient struct { } func NewServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "services", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "services", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServicesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go index b5227afb74e8..1cb359dc9959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/id_searchservice.go @@ -42,7 +42,7 @@ func ParseSearchServiceID(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SearchServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go index 4c5fb7d1b142..fc2d16f5577b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_checknameavailability.go @@ -37,6 +37,7 @@ func (o CheckNameAvailabilityOperationOptions) ToHeaders() *client.Headers { func (o CheckNameAvailabilityOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ServicesClient) CheckNameAvailability(ctx context.Context, id commonids. var model CheckNameAvailabilityOutput result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go index f9dd8790aee2..eb913bcdc6bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go index eb63a71a3508..da3e636b27e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go index 2c4d1b4d2143..7d3bc50da984 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c ServicesClient) Get(ctx context.Context, id SearchServiceId, options Get var model SearchService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go index 97b07d6c5af4..e27921b39d4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbyresourcegroup.go @@ -42,6 +42,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go index 2285f7c82369..c72273bc4d86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_listbysubscription.go @@ -42,6 +42,7 @@ func (o ListBySubscriptionOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go index 89dca2cf67b3..2fcfddaf54e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c ServicesClient) Update(ctx context.Context, id SearchServiceId, input Se var model SearchService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go index e24bd8634dfb..ee94c26885ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/services/version.go @@ -1,12 +1,10 @@ package services -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/services/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/services/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md index 6ec17da804c2..8f8f73557b8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources` Documentation -The `sharedprivatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `search` (API Version `2023-11-01`). +The `sharedprivatelinkresources` SDK allows for interaction with Azure Resource Manager `search` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue") +id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "sharedPrivateLinkResourceName") payload := sharedprivatelinkresources.SharedPrivateLinkResource{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, sharedprivatelinkresou ```go ctx := context.TODO() -id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue") +id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "sharedPrivateLinkResourceName") if err := client.DeleteThenPoll(ctx, id, sharedprivatelinkresources.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, sharedprivatelinkresources.DefaultDelet ```go ctx := context.TODO() -id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue", "sharedPrivateLinkResourceValue") +id := sharedprivatelinkresources.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName", "sharedPrivateLinkResourceName") read, err := client.Get(ctx, id, sharedprivatelinkresources.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sharedprivatelinkresources.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceValue") +id := sharedprivatelinkresources.NewSearchServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "searchServiceName") // alternatively `client.ListByService(ctx, id, sharedprivatelinkresources.DefaultListByServiceOperationOptions())` can be used to do batched pagination items, err := client.ListByServiceComplete(ctx, id, sharedprivatelinkresources.DefaultListByServiceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go index bf6da2067495..4e06c2f4a5dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/client.go @@ -15,7 +15,7 @@ type SharedPrivateLinkResourcesClient struct { } func NewSharedPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*SharedPrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sharedprivatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sharedprivatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SharedPrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go index ebcf6cc6d71a..225d4b0ceb24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_searchservice.go @@ -42,7 +42,7 @@ func ParseSearchServiceID(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSearchServiceIDInsensitively(input string) (*SearchServiceId, error) { } id := SearchServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SearchServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go index 0b15c9a166cc..9148a3fdf54a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/id_sharedprivatelinkresource.go @@ -44,7 +44,7 @@ func ParseSharedPrivateLinkResourceID(input string) (*SharedPrivateLinkResourceI } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSharedPrivateLinkResourceIDInsensitively(input string) (*SharedPrivate } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SharedPrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSearch", "Microsoft.Search", "Microsoft.Search"), resourceids.StaticSegment("staticSearchServices", "searchServices", "searchServices"), - resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceValue"), + resourceids.UserSpecifiedSegment("searchServiceName", "searchServiceName"), resourceids.StaticSegment("staticSharedPrivateLinkResources", "sharedPrivateLinkResources", "sharedPrivateLinkResources"), - resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceValue"), + resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go index becf8dbf0f80..502bb307fd49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_createorupdate.go @@ -39,6 +39,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go index 2300c5dbc1d5..8d4057611661 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go index e025dc81e808..aefab346f1de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SharedPrivateLinkResourcesClient) Get(ctx context.Context, id SharedPriv var model SharedPrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go index 61cd17de8d31..989aebe9b505 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/method_listbyservice.go @@ -41,6 +41,7 @@ func (o ListByServiceOperationOptions) ToHeaders() *client.Headers { func (o ListByServiceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go index 4cfe13fd8a25..31339f9fed01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/search/2023-11-01/sharedprivatelinkresources/version.go @@ -1,12 +1,10 @@ package sharedprivatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sharedprivatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sharedprivatelinkresources/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/README.md index a7a2c827f6e3..d7b7bb277c6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations` Documentation -The `automations` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2019-01-01-preview`). +The `automations` SDK allows for interaction with Azure Resource Manager `security` (API Version `2019-01-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationValue") +id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationName") payload := automations.Automation{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationValue") +id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationValue") +id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationValue") +id := automations.NewAutomationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "automationName") payload := automations.Automation{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/client.go index 96c013baa3dc..f31c62c7a8dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/client.go @@ -15,7 +15,7 @@ type AutomationsClient struct { } func NewAutomationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AutomationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "automations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "automations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AutomationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/id_automation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/id_automation.go index a4a55e151771..9da607f204ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/id_automation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/id_automation.go @@ -42,7 +42,7 @@ func ParseAutomationID(input string) (*AutomationId, error) { } id := AutomationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAutomationIDInsensitively(input string) (*AutomationId, error) { } id := AutomationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AutomationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurity", "Microsoft.Security", "Microsoft.Security"), resourceids.StaticSegment("staticAutomations", "automations", "automations"), - resourceids.UserSpecifiedSegment("automationName", "automationValue"), + resourceids.UserSpecifiedSegment("automationName", "automationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_createorupdate.go index cd3cde6e688b..c38a74b77e39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AutomationsClient) CreateOrUpdate(ctx context.Context, id AutomationId, var model Automation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_get.go index 3624696e16a3..369fd5cf804f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_get.go @@ -45,7 +45,6 @@ func (c AutomationsClient) Get(ctx context.Context, id AutomationId) (result Get var model Automation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_validate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_validate.go index 7315953962db..b15742c200b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_validate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/method_validate.go @@ -50,7 +50,6 @@ func (c AutomationsClient) Validate(ctx context.Context, id AutomationId, input var model AutomationValidationStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationaction.go index 27c4b29c654e..c58a4890e766 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationaction.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AutomationAction interface { + AutomationAction() BaseAutomationActionImpl } -// RawAutomationActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AutomationAction = BaseAutomationActionImpl{} + +type BaseAutomationActionImpl struct { + ActionType ActionType `json:"actionType"` +} + +func (s BaseAutomationActionImpl) AutomationAction() BaseAutomationActionImpl { + return s +} + +var _ AutomationAction = RawAutomationActionImpl{} + +// RawAutomationActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAutomationActionImpl struct { - Type string - Values map[string]interface{} + automationAction BaseAutomationActionImpl + Type string + Values map[string]interface{} +} + +func (s RawAutomationActionImpl) AutomationAction() BaseAutomationActionImpl { + return s.automationAction } -func unmarshalAutomationActionImplementation(input []byte) (AutomationAction, error) { +func UnmarshalAutomationActionImplementation(input []byte) (AutomationAction, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAutomationActionImplementation(input []byte) (AutomationAction, er return nil, fmt.Errorf("unmarshaling AutomationAction into map[string]interface: %+v", err) } - value, ok := temp["actionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["actionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "EventHub") { @@ -60,10 +77,15 @@ func unmarshalAutomationActionImplementation(input []byte) (AutomationAction, er return out, nil } - out := RawAutomationActionImpl{ - Type: value, - Values: temp, + var parent BaseAutomationActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAutomationActionImpl: %+v", err) } - return out, nil + + return RawAutomationActionImpl{ + automationAction: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactioneventhub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactioneventhub.go index 55af2e0a1ee6..680012103bf0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactioneventhub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactioneventhub.go @@ -16,6 +16,14 @@ type AutomationActionEventHub struct { SasPolicyName *string `json:"sasPolicyName,omitempty"` // Fields inherited from AutomationAction + + ActionType ActionType `json:"actionType"` +} + +func (s AutomationActionEventHub) AutomationAction() BaseAutomationActionImpl { + return BaseAutomationActionImpl{ + ActionType: s.ActionType, + } } var _ json.Marshaler = AutomationActionEventHub{} @@ -29,9 +37,10 @@ func (s AutomationActionEventHub) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AutomationActionEventHub: %+v", err) } + decoded["actionType"] = "EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionlogicapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionlogicapp.go index ccbfaaeacfe5..d445c8907905 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionlogicapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionlogicapp.go @@ -15,6 +15,14 @@ type AutomationActionLogicApp struct { Uri *string `json:"uri,omitempty"` // Fields inherited from AutomationAction + + ActionType ActionType `json:"actionType"` +} + +func (s AutomationActionLogicApp) AutomationAction() BaseAutomationActionImpl { + return BaseAutomationActionImpl{ + ActionType: s.ActionType, + } } var _ json.Marshaler = AutomationActionLogicApp{} @@ -28,9 +36,10 @@ func (s AutomationActionLogicApp) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AutomationActionLogicApp: %+v", err) } + decoded["actionType"] = "LogicApp" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionworkspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionworkspace.go index 88341552f67c..4f77085612bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionworkspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationactionworkspace.go @@ -14,6 +14,14 @@ type AutomationActionWorkspace struct { WorkspaceResourceId *string `json:"workspaceResourceId,omitempty"` // Fields inherited from AutomationAction + + ActionType ActionType `json:"actionType"` +} + +func (s AutomationActionWorkspace) AutomationAction() BaseAutomationActionImpl { + return BaseAutomationActionImpl{ + ActionType: s.ActionType, + } } var _ json.Marshaler = AutomationActionWorkspace{} @@ -27,9 +35,10 @@ func (s AutomationActionWorkspace) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AutomationActionWorkspace: %+v", err) } + decoded["actionType"] = "Workspace" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationproperties.go index 4003c49465ae..47297339a613 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/model_automationproperties.go @@ -19,10 +19,14 @@ type AutomationProperties struct { var _ json.Unmarshaler = &AutomationProperties{} func (s *AutomationProperties) UnmarshalJSON(bytes []byte) error { - type alias AutomationProperties - var decoded alias + var decoded struct { + Description *string `json:"description,omitempty"` + IsEnabled *bool `json:"isEnabled,omitempty"` + Scopes *[]AutomationScope `json:"scopes,omitempty"` + Sources *[]AutomationSource `json:"sources,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AutomationProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Description = decoded.Description @@ -43,7 +47,7 @@ func (s *AutomationProperties) UnmarshalJSON(bytes []byte) error { output := make([]AutomationAction, 0) for i, val := range listTemp { - impl, err := unmarshalAutomationActionImplementation(val) + impl, err := UnmarshalAutomationActionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Actions' for 'AutomationProperties': %+v", i, err) } @@ -51,5 +55,6 @@ func (s *AutomationProperties) UnmarshalJSON(bytes []byte) error { } s.Actions = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/version.go index 9cf92e72877f..07cf85edb782 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2019-01-01-preview/automations/version.go @@ -1,12 +1,10 @@ package automations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2019-01-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/automations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/automations/2019-01-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/README.md index f3ce63933c64..e81f774cac2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata` Documentation -The `assessmentsmetadata` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2021-06-01`). +The `assessmentsmetadata` SDK allows for interaction with Azure Resource Manager `security` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataValue") +id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataName") payload := assessmentsmetadata.SecurityAssessmentMetadataResponse{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataValue") +id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataName") read, err := client.DeleteInSubscription(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessmentsmetadata.NewAssessmentMetadataID("assessmentMetadataValue") +id := assessmentsmetadata.NewAssessmentMetadataID("assessmentMetadataName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataValue") +id := assessmentsmetadata.NewProviderAssessmentMetadataID("12345678-1234-9876-4563-123456789012", "assessmentMetadataName") read, err := client.GetInSubscription(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/client.go index 538aeb656d51..16c8d15e2269 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/client.go @@ -15,7 +15,7 @@ type AssessmentsMetadataClient struct { } func NewAssessmentsMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*AssessmentsMetadataClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "assessmentsmetadata", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "assessmentsmetadata", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AssessmentsMetadataClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_assessmentmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_assessmentmetadata.go index e45ffb62cb30..a8a7fb04a997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_assessmentmetadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_assessmentmetadata.go @@ -38,7 +38,7 @@ func ParseAssessmentMetadataID(input string) (*AssessmentMetadataId, error) { } id := AssessmentMetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseAssessmentMetadataIDInsensitively(input string) (*AssessmentMetadataId } id := AssessmentMetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id AssessmentMetadataId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurity", "Microsoft.Security", "Microsoft.Security"), resourceids.StaticSegment("staticAssessmentMetadata", "assessmentMetadata", "assessmentMetadata"), - resourceids.UserSpecifiedSegment("assessmentMetadataName", "assessmentMetadataValue"), + resourceids.UserSpecifiedSegment("assessmentMetadataName", "assessmentMetadataName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_providerassessmentmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_providerassessmentmetadata.go index 0c0835cc2726..fc3493119b85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_providerassessmentmetadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/id_providerassessmentmetadata.go @@ -40,7 +40,7 @@ func ParseProviderAssessmentMetadataID(input string) (*ProviderAssessmentMetadat } id := ProviderAssessmentMetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviderAssessmentMetadataIDInsensitively(input string) (*ProviderAsse } id := ProviderAssessmentMetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ProviderAssessmentMetadataId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurity", "Microsoft.Security", "Microsoft.Security"), resourceids.StaticSegment("staticAssessmentMetadata", "assessmentMetadata", "assessmentMetadata"), - resourceids.UserSpecifiedSegment("assessmentMetadataName", "assessmentMetadataValue"), + resourceids.UserSpecifiedSegment("assessmentMetadataName", "assessmentMetadataName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_createinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_createinsubscription.go index a81501a924b8..b1f54887a391 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_createinsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_createinsubscription.go @@ -49,7 +49,6 @@ func (c AssessmentsMetadataClient) CreateInSubscription(ctx context.Context, id var model SecurityAssessmentMetadataResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_get.go index 414b57d87c6d..bbbc5c18ff09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_get.go @@ -45,7 +45,6 @@ func (c AssessmentsMetadataClient) Get(ctx context.Context, id AssessmentMetadat var model SecurityAssessmentMetadataResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_getinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_getinsubscription.go index 1e38e35abec9..6def0b270c6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_getinsubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/method_getinsubscription.go @@ -45,7 +45,6 @@ func (c AssessmentsMetadataClient) GetInSubscription(ctx context.Context, id Pro var model SecurityAssessmentMetadataResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/version.go index 5c96708bc7cf..a911f458e397 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2021-06-01/assessmentsmetadata/version.go @@ -1,12 +1,10 @@ package assessmentsmetadata -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/assessmentsmetadata/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/assessmentsmetadata/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/README.md index b4f91326ce5e..abc5be7bad4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings` Documentation -The `settings` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2022-05-01`). +The `settings` SDK allows for interaction with Azure Resource Manager `security` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/client.go index 7a9bd9ec8a1d..a111b1f00a7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/client.go @@ -15,7 +15,7 @@ type SettingsClient struct { } func NewSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*SettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "settings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "settings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/id_setting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/id_setting.go index bb7aff420144..ec6ca94f882a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/id_setting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/id_setting.go @@ -40,7 +40,7 @@ func ParseSettingID(input string) (*SettingId, error) { } id := SettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseSettingIDInsensitively(input string) (*SettingId, error) { } id := SettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_get.go index 0ff21eba0401..d256d2722153 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *Setting + Model Setting } // Get ... @@ -48,11 +48,11 @@ func (c SettingsClient) Get(ctx context.Context, id SettingId) (result GetOperat if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalSettingImplementation(respObj) + model, err := UnmarshalSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_list.go index fd56235e0d68..1f2b35c36543 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_list.go @@ -74,7 +74,7 @@ func (c SettingsClient) List(ctx context.Context, id commonids.SubscriptionId) ( temp := make([]Setting, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalSettingImplementation(v) + val, err := UnmarshalSettingImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for Setting (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_update.go index 283f4df61771..e860fcad79ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/method_update.go @@ -15,7 +15,7 @@ import ( type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *Setting + Model Setting } // Update ... @@ -52,11 +52,11 @@ func (c SettingsClient) Update(ctx context.Context, id SettingId, input Setting) if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalSettingImplementation(respObj) + model, err := UnmarshalSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_alertsyncsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_alertsyncsettings.go index 091aee964d8d..513438d812d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_alertsyncsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_alertsyncsettings.go @@ -14,9 +14,20 @@ type AlertSyncSettings struct { Properties *AlertSyncSettingProperties `json:"properties,omitempty"` // Fields inherited from Setting - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind SettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s AlertSyncSettings) Setting() BaseSettingImpl { + return BaseSettingImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = AlertSyncSettings{} @@ -30,9 +41,10 @@ func (s AlertSyncSettings) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AlertSyncSettings: %+v", err) } + decoded["kind"] = "AlertSyncSettings" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_dataexportsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_dataexportsettings.go index fb1b53b7839a..852f6d87d628 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_dataexportsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_dataexportsettings.go @@ -14,9 +14,20 @@ type DataExportSettings struct { Properties *DataExportSettingProperties `json:"properties,omitempty"` // Fields inherited from Setting - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind SettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s DataExportSettings) Setting() BaseSettingImpl { + return BaseSettingImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + Type: s.Type, + } } var _ json.Marshaler = DataExportSettings{} @@ -30,9 +41,10 @@ func (s DataExportSettings) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DataExportSettings: %+v", err) } + decoded["kind"] = "DataExportSettings" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_setting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_setting.go index 8605c342c59e..d3629ff12272 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_setting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/model_setting.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Setting interface { + Setting() BaseSettingImpl } -// RawSettingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Setting = BaseSettingImpl{} + +type BaseSettingImpl struct { + Id *string `json:"id,omitempty"` + Kind SettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseSettingImpl) Setting() BaseSettingImpl { + return s +} + +var _ Setting = RawSettingImpl{} + +// RawSettingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSettingImpl struct { - Type string - Values map[string]interface{} + setting BaseSettingImpl + Type string + Values map[string]interface{} +} + +func (s RawSettingImpl) Setting() BaseSettingImpl { + return s.setting } -func unmarshalSettingImplementation(input []byte) (Setting, error) { +func UnmarshalSettingImplementation(input []byte) (Setting, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalSettingImplementation(input []byte) (Setting, error) { return nil, fmt.Errorf("unmarshaling Setting into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AlertSyncSettings") { @@ -52,10 +72,15 @@ func unmarshalSettingImplementation(input []byte) (Setting, error) { return out, nil } - out := RawSettingImpl{ - Type: value, - Values: temp, + var parent BaseSettingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSettingImpl: %+v", err) } - return out, nil + + return RawSettingImpl{ + setting: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/version.go index 64976e84b7b6..ec6499a37e05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-05-01/settings/version.go @@ -1,12 +1,10 @@ package settings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/settings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/settings/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md index b72ec1bbdc20..f2e0a79d4d43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage` Documentation -The `defenderforstorage` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2022-12-01-preview`). +The `defenderforstorage` SDK allows for interaction with Azure Resource Manager `security` (API Version `2022-12-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/client.go index cb1db4530c8c..5c920d30f535 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/client.go @@ -15,7 +15,7 @@ type DefenderForStorageClient struct { } func NewDefenderForStorageClientWithBaseURI(sdkApi sdkEnv.Api) (*DefenderForStorageClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "defenderforstorage", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "defenderforstorage", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DefenderForStorageClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_create.go index bc33b57be16a..606f30f7368c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_create.go @@ -52,7 +52,6 @@ func (c DefenderForStorageClient) Create(ctx context.Context, id commonids.Scope var model DefenderForStorageSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_get.go index a1f44e098acb..5645bd41e44e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/method_get.go @@ -47,7 +47,6 @@ func (c DefenderForStorageClient) Get(ctx context.Context, id commonids.ScopeId) var model DefenderForStorageSetting result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/version.go index 4992e9b255c3..9be66c42aa29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2022-12-01-preview/defenderforstorage/version.go @@ -1,12 +1,10 @@ package defenderforstorage -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-12-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/defenderforstorage/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/defenderforstorage/2022-12-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/README.md index 387e330bac44..839989f51f51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings` Documentation -The `pricings` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2023-01-01`). +The `pricings` SDK allows for interaction with Azure Resource Manager `security` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := pricings.NewPricingID("12345678-1234-9876-4563-123456789012", "pricingValue") +id := pricings.NewPricingID("12345678-1234-9876-4563-123456789012", "pricingName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := pricings.NewPricingID("12345678-1234-9876-4563-123456789012", "pricingValue") +id := pricings.NewPricingID("12345678-1234-9876-4563-123456789012", "pricingName") payload := pricings.Pricing{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/client.go index 7d9c16fd7af1..20a0e6c340e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/client.go @@ -15,7 +15,7 @@ type PricingsClient struct { } func NewPricingsClientWithBaseURI(sdkApi sdkEnv.Api) (*PricingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "pricings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "pricings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PricingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/id_pricing.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/id_pricing.go index 3a6e71ebd077..ffb24c52d7c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/id_pricing.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/id_pricing.go @@ -40,7 +40,7 @@ func ParsePricingID(input string) (*PricingId, error) { } id := PricingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParsePricingIDInsensitively(input string) (*PricingId, error) { } id := PricingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id PricingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurity", "Microsoft.Security", "Microsoft.Security"), resourceids.StaticSegment("staticPricings", "pricings", "pricings"), - resourceids.UserSpecifiedSegment("pricingName", "pricingValue"), + resourceids.UserSpecifiedSegment("pricingName", "pricingName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_get.go index 36f6a556ae2c..81e767bd096d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_get.go @@ -45,7 +45,6 @@ func (c PricingsClient) Get(ctx context.Context, id PricingId) (result GetOperat var model Pricing result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_list.go index ad645d5d8682..0d3d8b4d9f97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_list.go @@ -47,7 +47,6 @@ func (c PricingsClient) List(ctx context.Context, id commonids.SubscriptionId) ( var model PricingList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_update.go index 07420ccd7945..129c522649e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/method_update.go @@ -49,7 +49,6 @@ func (c PricingsClient) Update(ctx context.Context, id PricingId, input Pricing) var model Pricing result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/version.go index 9e0081a5b991..c00899a8f5e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-01-01/pricings/version.go @@ -1,12 +1,10 @@ package pricings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/pricings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/pricings/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md index 463e4732e09c..2877ea407959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings` Documentation -The `servervulnerabilityassessmentssettings` SDK allows for interaction with the Azure Resource Manager Service `security` (API Version `2023-05-01`). +The `servervulnerabilityassessmentssettings` SDK allows for interaction with Azure Resource Manager `security` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/client.go index 6f2ce3fb3259..f6be76011ae2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/client.go @@ -15,7 +15,7 @@ type ServerVulnerabilityAssessmentsSettingsClient struct { } func NewServerVulnerabilityAssessmentsSettingsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerVulnerabilityAssessmentsSettingsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servervulnerabilityassessmentssettings", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servervulnerabilityassessmentssettings", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerVulnerabilityAssessmentsSettingsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_createorupdate.go index 0d2d06907da3..60480b642d01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_createorupdate.go @@ -17,7 +17,7 @@ import ( type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ServerVulnerabilityAssessmentsSetting + Model ServerVulnerabilityAssessmentsSetting } // CreateOrUpdate ... @@ -55,11 +55,11 @@ func (c ServerVulnerabilityAssessmentsSettingsClient) CreateOrUpdate(ctx context if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalServerVulnerabilityAssessmentsSettingImplementation(respObj) + model, err := UnmarshalServerVulnerabilityAssessmentsSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_get.go index ca1ec434b0a5..ec4e46927915 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_get.go @@ -17,7 +17,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *ServerVulnerabilityAssessmentsSetting + Model ServerVulnerabilityAssessmentsSetting } // Get ... @@ -50,11 +50,11 @@ func (c ServerVulnerabilityAssessmentsSettingsClient) Get(ctx context.Context, i if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalServerVulnerabilityAssessmentsSettingImplementation(respObj) + model, err := UnmarshalServerVulnerabilityAssessmentsSettingImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go index 593672e8c31b..689b13787653 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/method_listbysubscription.go @@ -74,7 +74,7 @@ func (c ServerVulnerabilityAssessmentsSettingsClient) ListBySubscription(ctx con temp := make([]ServerVulnerabilityAssessmentsSetting, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalServerVulnerabilityAssessmentsSettingImplementation(v) + val, err := UnmarshalServerVulnerabilityAssessmentsSettingImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for ServerVulnerabilityAssessmentsSetting (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_azureserverssetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_azureserverssetting.go index 5dddb739adfd..ab1c44b3c37e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_azureserverssetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_azureserverssetting.go @@ -16,10 +16,22 @@ type AzureServersSetting struct { Properties *ServerVulnerabilityAssessmentsAzureSettingProperties `json:"properties,omitempty"` // Fields inherited from ServerVulnerabilityAssessmentsSetting - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Type *string `json:"type,omitempty"` + + Id *string `json:"id,omitempty"` + Kind ServerVulnerabilityAssessmentsSettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s AzureServersSetting) ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl { + return BaseServerVulnerabilityAssessmentsSettingImpl{ + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } } var _ json.Marshaler = AzureServersSetting{} @@ -33,9 +45,10 @@ func (s AzureServersSetting) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureServersSetting: %+v", err) } + decoded["kind"] = "AzureServersSetting" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_servervulnerabilityassessmentssetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_servervulnerabilityassessmentssetting.go index fce0f0509da7..e11e36bc1871 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_servervulnerabilityassessmentssetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/model_servervulnerabilityassessmentssetting.go @@ -4,24 +4,47 @@ import ( "encoding/json" "fmt" "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" ) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ServerVulnerabilityAssessmentsSetting interface { + ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl +} + +var _ ServerVulnerabilityAssessmentsSetting = BaseServerVulnerabilityAssessmentsSettingImpl{} + +type BaseServerVulnerabilityAssessmentsSettingImpl struct { + Id *string `json:"id,omitempty"` + Kind ServerVulnerabilityAssessmentsSettingKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseServerVulnerabilityAssessmentsSettingImpl) ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl { + return s } -// RawServerVulnerabilityAssessmentsSettingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ServerVulnerabilityAssessmentsSetting = RawServerVulnerabilityAssessmentsSettingImpl{} + +// RawServerVulnerabilityAssessmentsSettingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawServerVulnerabilityAssessmentsSettingImpl struct { - Type string - Values map[string]interface{} + serverVulnerabilityAssessmentsSetting BaseServerVulnerabilityAssessmentsSettingImpl + Type string + Values map[string]interface{} +} + +func (s RawServerVulnerabilityAssessmentsSettingImpl) ServerVulnerabilityAssessmentsSetting() BaseServerVulnerabilityAssessmentsSettingImpl { + return s.serverVulnerabilityAssessmentsSetting } -func unmarshalServerVulnerabilityAssessmentsSettingImplementation(input []byte) (ServerVulnerabilityAssessmentsSetting, error) { +func UnmarshalServerVulnerabilityAssessmentsSettingImplementation(input []byte) (ServerVulnerabilityAssessmentsSetting, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalServerVulnerabilityAssessmentsSettingImplementation(input []byte) return nil, fmt.Errorf("unmarshaling ServerVulnerabilityAssessmentsSetting into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureServersSetting") { @@ -44,10 +67,15 @@ func unmarshalServerVulnerabilityAssessmentsSettingImplementation(input []byte) return out, nil } - out := RawServerVulnerabilityAssessmentsSettingImpl{ - Type: value, - Values: temp, + var parent BaseServerVulnerabilityAssessmentsSettingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseServerVulnerabilityAssessmentsSettingImpl: %+v", err) } - return out, nil + + return RawServerVulnerabilityAssessmentsSettingImpl{ + serverVulnerabilityAssessmentsSetting: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/version.go index 3a55f7185fff..658c3df9d6ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/security/2023-05-01/servervulnerabilityassessmentssettings/version.go @@ -1,12 +1,10 @@ package servervulnerabilityassessmentssettings -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servervulnerabilityassessmentssettings/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servervulnerabilityassessmentssettings/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/README.md index 81a1e2123cce..2b4f4582c0d9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules` Documentation -The `alertrules` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-10-01-preview`). +The `alertrules` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "ruleIdValue") +id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "ruleId") payload := alertrules.AlertRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "ruleIdValue") +id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "ruleId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "ruleIdValue") +id := alertrules.NewAlertRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "ruleId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := alertrules.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := alertrules.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/client.go index e6ca04af9da5..20e26334cc48 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/client.go @@ -15,7 +15,7 @@ type AlertRulesClient struct { } func NewAlertRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "alertrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "alertrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AlertRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_alertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_alertrule.go index 818f124e5ef8..6d6969d0276d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_alertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_alertrule.go @@ -44,7 +44,7 @@ func ParseAlertRuleID(input string) (*AlertRuleId, error) { } id := AlertRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAlertRuleIDInsensitively(input string) (*AlertRuleId, error) { } id := AlertRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id AlertRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticAlertRules", "alertRules", "alertRules"), - resourceids.UserSpecifiedSegment("ruleId", "ruleIdValue"), + resourceids.UserSpecifiedSegment("ruleId", "ruleId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_workspace.go index 005b7fc90a73..6ca991d3ed14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_createorupdate.go index f77c7558d09a..13548ddf46e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_createorupdate.go @@ -15,7 +15,7 @@ import ( type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AlertRule + Model AlertRule } // CreateOrUpdate ... @@ -53,11 +53,11 @@ func (c AlertRulesClient) CreateOrUpdate(ctx context.Context, id AlertRuleId, in if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalAlertRuleImplementation(respObj) + model, err := UnmarshalAlertRuleImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_get.go index 945c07bfad12..f6b552d75c7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *AlertRule + Model AlertRule } // Get ... @@ -48,11 +48,11 @@ func (c AlertRulesClient) Get(ctx context.Context, id AlertRuleId) (result GetOp if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalAlertRuleImplementation(respObj) + model, err := UnmarshalAlertRuleImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go index 191ccd545bb3..55fff58c8614 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/method_list.go @@ -73,7 +73,7 @@ func (c AlertRulesClient) List(ctx context.Context, id WorkspaceId) (result List temp := make([]AlertRule, 0) if values.Values != nil { for i, v := range *values.Values { - val, err := unmarshalAlertRuleImplementation(v) + val, err := UnmarshalAlertRuleImplementation(v) if err != nil { err = fmt.Errorf("unmarshalling item %d for AlertRule (%q): %+v", i, v, err) return result, err diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_alertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_alertrule.go index 7bb4d493656b..706f1a808af0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_alertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_alertrule.go @@ -4,24 +4,48 @@ import ( "encoding/json" "fmt" "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" ) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AlertRule interface { + AlertRule() BaseAlertRuleImpl +} + +var _ AlertRule = BaseAlertRuleImpl{} + +type BaseAlertRuleImpl struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseAlertRuleImpl) AlertRule() BaseAlertRuleImpl { + return s } -// RawAlertRuleImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AlertRule = RawAlertRuleImpl{} + +// RawAlertRuleImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAlertRuleImpl struct { - Type string - Values map[string]interface{} + alertRule BaseAlertRuleImpl + Type string + Values map[string]interface{} +} + +func (s RawAlertRuleImpl) AlertRule() BaseAlertRuleImpl { + return s.alertRule } -func unmarshalAlertRuleImplementation(input []byte) (AlertRule, error) { +func UnmarshalAlertRuleImplementation(input []byte) (AlertRule, error) { if input == nil { return nil, nil } @@ -31,9 +55,9 @@ func unmarshalAlertRuleImplementation(input []byte) (AlertRule, error) { return nil, fmt.Errorf("unmarshaling AlertRule into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Fusion") { @@ -84,10 +108,15 @@ func unmarshalAlertRuleImplementation(input []byte) (AlertRule, error) { return out, nil } - out := RawAlertRuleImpl{ - Type: value, - Values: temp, + var parent BaseAlertRuleImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAlertRuleImpl: %+v", err) } - return out, nil + + return RawAlertRuleImpl{ + alertRule: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_fusionalertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_fusionalertrule.go index c4ed17f4319a..f9ebd649bd9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_fusionalertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_fusionalertrule.go @@ -16,13 +16,26 @@ type FusionAlertRule struct { Properties *FusionAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s FusionAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = FusionAlertRule{} func (s FusionAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s FusionAlertRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FusionAlertRule: %+v", err) } + decoded["kind"] = "Fusion" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_microsoftsecurityincidentcreationalertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_microsoftsecurityincidentcreationalertrule.go index 4fa227e3728a..ccf5f8899d4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_microsoftsecurityincidentcreationalertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_microsoftsecurityincidentcreationalertrule.go @@ -16,13 +16,26 @@ type MicrosoftSecurityIncidentCreationAlertRule struct { Properties *MicrosoftSecurityIncidentCreationAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s MicrosoftSecurityIncidentCreationAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = MicrosoftSecurityIncidentCreationAlertRule{} func (s MicrosoftSecurityIncidentCreationAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s MicrosoftSecurityIncidentCreationAlertRule) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MicrosoftSecurityIncidentCreationAlertRule: %+v", err) } + decoded["kind"] = "MicrosoftSecurityIncidentCreation" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_mlbehavioranalyticsalertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_mlbehavioranalyticsalertrule.go index e49aa4ea1f01..f5c3da24cd19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_mlbehavioranalyticsalertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_mlbehavioranalyticsalertrule.go @@ -16,13 +16,26 @@ type MLBehaviorAnalyticsAlertRule struct { Properties *MLBehaviorAnalyticsAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s MLBehaviorAnalyticsAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = MLBehaviorAnalyticsAlertRule{} func (s MLBehaviorAnalyticsAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s MLBehaviorAnalyticsAlertRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MLBehaviorAnalyticsAlertRule: %+v", err) } + decoded["kind"] = "MLBehaviorAnalytics" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_nrtalertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_nrtalertrule.go index d0d096cbfc58..4cb451bbb75b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_nrtalertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_nrtalertrule.go @@ -16,13 +16,26 @@ type NrtAlertRule struct { Properties *NrtAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s NrtAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = NrtAlertRule{} func (s NrtAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s NrtAlertRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NrtAlertRule: %+v", err) } + decoded["kind"] = "NRT" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_scheduledalertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_scheduledalertrule.go index cf91bcec4f27..6dc6c221e548 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_scheduledalertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_scheduledalertrule.go @@ -16,13 +16,26 @@ type ScheduledAlertRule struct { Properties *ScheduledAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s ScheduledAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = ScheduledAlertRule{} func (s ScheduledAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s ScheduledAlertRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScheduledAlertRule: %+v", err) } + decoded["kind"] = "Scheduled" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_threatintelligencealertrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_threatintelligencealertrule.go index fe9fc75c2e6e..ea1acdbd17c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_threatintelligencealertrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/model_threatintelligencealertrule.go @@ -16,13 +16,26 @@ type ThreatIntelligenceAlertRule struct { Properties *ThreatIntelligenceAlertRuleProperties `json:"properties,omitempty"` // Fields inherited from AlertRule + Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` + Kind AlertRuleKind `json:"kind"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` } +func (s ThreatIntelligenceAlertRule) AlertRule() BaseAlertRuleImpl { + return BaseAlertRuleImpl{ + Etag: s.Etag, + Id: s.Id, + Kind: s.Kind, + Name: s.Name, + SystemData: s.SystemData, + Type: s.Type, + } +} + var _ json.Marshaler = ThreatIntelligenceAlertRule{} func (s ThreatIntelligenceAlertRule) MarshalJSON() ([]byte, error) { @@ -34,9 +47,10 @@ func (s ThreatIntelligenceAlertRule) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ThreatIntelligenceAlertRule: %+v", err) } + decoded["kind"] = "ThreatIntelligence" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/version.go index 0eed78e43ceb..ee7f550859f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/alertrules/version.go @@ -1,12 +1,10 @@ package alertrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/alertrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/alertrules/2022-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/README.md index f076c49abe09..5b7482e58277 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules` Documentation -The `automationrules` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-10-01-preview`). +The `automationrules` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "automationRuleIdValue") +id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "automationRuleId") payload := automationrules.AutomationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "automationRuleIdValue") +id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "automationRuleId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "automationRuleIdValue") +id := automationrules.NewAutomationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "automationRuleId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := automationrules.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := automationrules.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/client.go index 18fafea1496d..75f337247687 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/client.go @@ -15,7 +15,7 @@ type AutomationRulesClient struct { } func NewAutomationRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AutomationRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "automationrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "automationrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AutomationRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_automationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_automationrule.go index 00c7db776a3c..a216bae9c59a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_automationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_automationrule.go @@ -44,7 +44,7 @@ func ParseAutomationRuleID(input string) (*AutomationRuleId, error) { } id := AutomationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAutomationRuleIDInsensitively(input string) (*AutomationRuleId, error) } id := AutomationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id AutomationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticAutomationRules", "automationRules", "automationRules"), - resourceids.UserSpecifiedSegment("automationRuleId", "automationRuleIdValue"), + resourceids.UserSpecifiedSegment("automationRuleId", "automationRuleId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_workspace.go index 72d00c877718..4a0efecf109d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_createorupdate.go index 6ab8b05e0fbe..9f70d87aab47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AutomationRulesClient) CreateOrUpdate(ctx context.Context, id Automation var model AutomationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_delete.go index c32a7e886ad3..5915b112d229 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_delete.go @@ -46,7 +46,6 @@ func (c AutomationRulesClient) Delete(ctx context.Context, id AutomationRuleId) var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_get.go index b5c7ce72e300..e180fc005e47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/method_get.go @@ -45,7 +45,6 @@ func (c AutomationRulesClient) Get(ctx context.Context, id AutomationRuleId) (re var model AutomationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleaction.go index 77887bb8adf9..3ec6734e0339 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleaction.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AutomationRuleAction interface { + AutomationRuleAction() BaseAutomationRuleActionImpl } -// RawAutomationRuleActionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AutomationRuleAction = BaseAutomationRuleActionImpl{} + +type BaseAutomationRuleActionImpl struct { + ActionType ActionType `json:"actionType"` + Order int64 `json:"order"` +} + +func (s BaseAutomationRuleActionImpl) AutomationRuleAction() BaseAutomationRuleActionImpl { + return s +} + +var _ AutomationRuleAction = RawAutomationRuleActionImpl{} + +// RawAutomationRuleActionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAutomationRuleActionImpl struct { - Type string - Values map[string]interface{} + automationRuleAction BaseAutomationRuleActionImpl + Type string + Values map[string]interface{} +} + +func (s RawAutomationRuleActionImpl) AutomationRuleAction() BaseAutomationRuleActionImpl { + return s.automationRuleAction } -func unmarshalAutomationRuleActionImplementation(input []byte) (AutomationRuleAction, error) { +func UnmarshalAutomationRuleActionImplementation(input []byte) (AutomationRuleAction, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalAutomationRuleActionImplementation(input []byte) (AutomationRuleAc return nil, fmt.Errorf("unmarshaling AutomationRuleAction into map[string]interface: %+v", err) } - value, ok := temp["actionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["actionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "ModifyProperties") { @@ -52,10 +70,15 @@ func unmarshalAutomationRuleActionImplementation(input []byte) (AutomationRuleAc return out, nil } - out := RawAutomationRuleActionImpl{ - Type: value, - Values: temp, + var parent BaseAutomationRuleActionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAutomationRuleActionImpl: %+v", err) } - return out, nil + + return RawAutomationRuleActionImpl{ + automationRuleAction: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulebooleancondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulebooleancondition.go index b73d49b15540..212fe74a341b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulebooleancondition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulebooleancondition.go @@ -16,10 +16,11 @@ type AutomationRuleBooleanCondition struct { var _ json.Unmarshaler = &AutomationRuleBooleanCondition{} func (s *AutomationRuleBooleanCondition) UnmarshalJSON(bytes []byte) error { - type alias AutomationRuleBooleanCondition - var decoded alias + var decoded struct { + Operator *AutomationRuleBooleanConditionSupportedOperator `json:"operator,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AutomationRuleBooleanCondition: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Operator = decoded.Operator @@ -37,7 +38,7 @@ func (s *AutomationRuleBooleanCondition) UnmarshalJSON(bytes []byte) error { output := make([]AutomationRuleCondition, 0) for i, val := range listTemp { - impl, err := unmarshalAutomationRuleConditionImplementation(val) + impl, err := UnmarshalAutomationRuleConditionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'InnerConditions' for 'AutomationRuleBooleanCondition': %+v", i, err) } @@ -45,5 +46,6 @@ func (s *AutomationRuleBooleanCondition) UnmarshalJSON(bytes []byte) error { } s.InnerConditions = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulecondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulecondition.go index 6e9c0bf07a81..5d0e38c4d6d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulecondition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulecondition.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AutomationRuleCondition interface { + AutomationRuleCondition() BaseAutomationRuleConditionImpl } -// RawAutomationRuleConditionImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AutomationRuleCondition = BaseAutomationRuleConditionImpl{} + +type BaseAutomationRuleConditionImpl struct { + ConditionType ConditionType `json:"conditionType"` +} + +func (s BaseAutomationRuleConditionImpl) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return s +} + +var _ AutomationRuleCondition = RawAutomationRuleConditionImpl{} + +// RawAutomationRuleConditionImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAutomationRuleConditionImpl struct { - Type string - Values map[string]interface{} + automationRuleCondition BaseAutomationRuleConditionImpl + Type string + Values map[string]interface{} +} + +func (s RawAutomationRuleConditionImpl) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return s.automationRuleCondition } -func unmarshalAutomationRuleConditionImplementation(input []byte) (AutomationRuleCondition, error) { +func UnmarshalAutomationRuleConditionImplementation(input []byte) (AutomationRuleCondition, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAutomationRuleConditionImplementation(input []byte) (AutomationRul return nil, fmt.Errorf("unmarshaling AutomationRuleCondition into map[string]interface: %+v", err) } - value, ok := temp["conditionType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["conditionType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Boolean") { @@ -76,10 +93,15 @@ func unmarshalAutomationRuleConditionImplementation(input []byte) (AutomationRul return out, nil } - out := RawAutomationRuleConditionImpl{ - Type: value, - Values: temp, + var parent BaseAutomationRuleConditionImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAutomationRuleConditionImpl: %+v", err) } - return out, nil + + return RawAutomationRuleConditionImpl{ + automationRuleCondition: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulemodifypropertiesaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulemodifypropertiesaction.go index 98eb39b6a9bb..59b10e5bc34c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulemodifypropertiesaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulemodifypropertiesaction.go @@ -14,7 +14,16 @@ type AutomationRuleModifyPropertiesAction struct { ActionConfiguration *IncidentPropertiesAction `json:"actionConfiguration,omitempty"` // Fields inherited from AutomationRuleAction - Order int64 `json:"order"` + + ActionType ActionType `json:"actionType"` + Order int64 `json:"order"` +} + +func (s AutomationRuleModifyPropertiesAction) AutomationRuleAction() BaseAutomationRuleActionImpl { + return BaseAutomationRuleActionImpl{ + ActionType: s.ActionType, + Order: s.Order, + } } var _ json.Marshaler = AutomationRuleModifyPropertiesAction{} @@ -28,9 +37,10 @@ func (s AutomationRuleModifyPropertiesAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AutomationRuleModifyPropertiesAction: %+v", err) } + decoded["actionType"] = "ModifyProperties" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleproperties.go index 5460f9b5fbaa..2a5465d549b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruleproperties.go @@ -49,10 +49,17 @@ func (o *AutomationRuleProperties) SetLastModifiedTimeUtcAsTime(input time.Time) var _ json.Unmarshaler = &AutomationRuleProperties{} func (s *AutomationRuleProperties) UnmarshalJSON(bytes []byte) error { - type alias AutomationRuleProperties - var decoded alias + var decoded struct { + CreatedBy *ClientInfo `json:"createdBy,omitempty"` + CreatedTimeUtc *string `json:"createdTimeUtc,omitempty"` + DisplayName string `json:"displayName"` + LastModifiedBy *ClientInfo `json:"lastModifiedBy,omitempty"` + LastModifiedTimeUtc *string `json:"lastModifiedTimeUtc,omitempty"` + Order int64 `json:"order"` + TriggeringLogic AutomationRuleTriggeringLogic `json:"triggeringLogic"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AutomationRuleProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.CreatedBy = decoded.CreatedBy @@ -76,7 +83,7 @@ func (s *AutomationRuleProperties) UnmarshalJSON(bytes []byte) error { output := make([]AutomationRuleAction, 0) for i, val := range listTemp { - impl, err := unmarshalAutomationRuleActionImplementation(val) + impl, err := UnmarshalAutomationRuleActionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Actions' for 'AutomationRuleProperties': %+v", i, err) } @@ -84,5 +91,6 @@ func (s *AutomationRuleProperties) UnmarshalJSON(bytes []byte) error { } s.Actions = output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulepropertyarrayvaluescondition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulepropertyarrayvaluescondition.go index 5d2faa180e54..76ac1193114d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulepropertyarrayvaluescondition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulepropertyarrayvaluescondition.go @@ -17,10 +17,12 @@ type AutomationRulePropertyArrayValuesCondition struct { var _ json.Unmarshaler = &AutomationRulePropertyArrayValuesCondition{} func (s *AutomationRulePropertyArrayValuesCondition) UnmarshalJSON(bytes []byte) error { - type alias AutomationRulePropertyArrayValuesCondition - var decoded alias + var decoded struct { + ArrayConditionType *AutomationRulePropertyArrayConditionSupportedArrayConditionType `json:"arrayConditionType,omitempty"` + ArrayType *AutomationRulePropertyArrayConditionSupportedArrayType `json:"arrayType,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AutomationRulePropertyArrayValuesCondition: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ArrayConditionType = decoded.ArrayConditionType @@ -39,7 +41,7 @@ func (s *AutomationRulePropertyArrayValuesCondition) UnmarshalJSON(bytes []byte) output := make([]AutomationRuleCondition, 0) for i, val := range listTemp { - impl, err := unmarshalAutomationRuleConditionImplementation(val) + impl, err := UnmarshalAutomationRuleConditionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'ItemConditions' for 'AutomationRulePropertyArrayValuesCondition': %+v", i, err) } @@ -47,5 +49,6 @@ func (s *AutomationRulePropertyArrayValuesCondition) UnmarshalJSON(bytes []byte) } s.ItemConditions = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulerunplaybookaction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulerunplaybookaction.go index c3e139aacf77..eba12a31777b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulerunplaybookaction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationrulerunplaybookaction.go @@ -14,7 +14,16 @@ type AutomationRuleRunPlaybookAction struct { ActionConfiguration *PlaybookActionProperties `json:"actionConfiguration,omitempty"` // Fields inherited from AutomationRuleAction - Order int64 `json:"order"` + + ActionType ActionType `json:"actionType"` + Order int64 `json:"order"` +} + +func (s AutomationRuleRunPlaybookAction) AutomationRuleAction() BaseAutomationRuleActionImpl { + return BaseAutomationRuleActionImpl{ + ActionType: s.ActionType, + Order: s.Order, + } } var _ json.Marshaler = AutomationRuleRunPlaybookAction{} @@ -28,9 +37,10 @@ func (s AutomationRuleRunPlaybookAction) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AutomationRuleRunPlaybookAction: %+v", err) } + decoded["actionType"] = "RunPlaybook" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruletriggeringlogic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruletriggeringlogic.go index 2f4592c4269a..e121c9bd56e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruletriggeringlogic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_automationruletriggeringlogic.go @@ -34,10 +34,14 @@ func (o *AutomationRuleTriggeringLogic) SetExpirationTimeUtcAsTime(input time.Ti var _ json.Unmarshaler = &AutomationRuleTriggeringLogic{} func (s *AutomationRuleTriggeringLogic) UnmarshalJSON(bytes []byte) error { - type alias AutomationRuleTriggeringLogic - var decoded alias + var decoded struct { + ExpirationTimeUtc *string `json:"expirationTimeUtc,omitempty"` + IsEnabled bool `json:"isEnabled"` + TriggersOn TriggersOn `json:"triggersOn"` + TriggersWhen TriggersWhen `json:"triggersWhen"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AutomationRuleTriggeringLogic: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ExpirationTimeUtc = decoded.ExpirationTimeUtc @@ -58,7 +62,7 @@ func (s *AutomationRuleTriggeringLogic) UnmarshalJSON(bytes []byte) error { output := make([]AutomationRuleCondition, 0) for i, val := range listTemp { - impl, err := unmarshalAutomationRuleConditionImplementation(val) + impl, err := UnmarshalAutomationRuleConditionImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Conditions' for 'AutomationRuleTriggeringLogic': %+v", i, err) } @@ -66,5 +70,6 @@ func (s *AutomationRuleTriggeringLogic) UnmarshalJSON(bytes []byte) error { } s.Conditions = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_booleanconditionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_booleanconditionproperties.go index 41e5695b030e..3fa5b52a6203 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_booleanconditionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_booleanconditionproperties.go @@ -14,6 +14,14 @@ type BooleanConditionProperties struct { ConditionProperties *AutomationRuleBooleanCondition `json:"conditionProperties,omitempty"` // Fields inherited from AutomationRuleCondition + + ConditionType ConditionType `json:"conditionType"` +} + +func (s BooleanConditionProperties) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return BaseAutomationRuleConditionImpl{ + ConditionType: s.ConditionType, + } } var _ json.Marshaler = BooleanConditionProperties{} @@ -27,9 +35,10 @@ func (s BooleanConditionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BooleanConditionProperties: %+v", err) } + decoded["conditionType"] = "Boolean" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarraychangedconditionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarraychangedconditionproperties.go index 9abf0187ac48..07c0eb5accea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarraychangedconditionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarraychangedconditionproperties.go @@ -14,6 +14,14 @@ type PropertyArrayChangedConditionProperties struct { ConditionProperties *AutomationRulePropertyArrayChangedValuesCondition `json:"conditionProperties,omitempty"` // Fields inherited from AutomationRuleCondition + + ConditionType ConditionType `json:"conditionType"` +} + +func (s PropertyArrayChangedConditionProperties) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return BaseAutomationRuleConditionImpl{ + ConditionType: s.ConditionType, + } } var _ json.Marshaler = PropertyArrayChangedConditionProperties{} @@ -27,9 +35,10 @@ func (s PropertyArrayChangedConditionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PropertyArrayChangedConditionProperties: %+v", err) } + decoded["conditionType"] = "PropertyArrayChanged" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarrayconditionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarrayconditionproperties.go index 9e700cb4a8c3..9db5d4f37026 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarrayconditionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyarrayconditionproperties.go @@ -14,6 +14,14 @@ type PropertyArrayConditionProperties struct { ConditionProperties *AutomationRulePropertyArrayValuesCondition `json:"conditionProperties,omitempty"` // Fields inherited from AutomationRuleCondition + + ConditionType ConditionType `json:"conditionType"` +} + +func (s PropertyArrayConditionProperties) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return BaseAutomationRuleConditionImpl{ + ConditionType: s.ConditionType, + } } var _ json.Marshaler = PropertyArrayConditionProperties{} @@ -27,9 +35,10 @@ func (s PropertyArrayConditionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PropertyArrayConditionProperties: %+v", err) } + decoded["conditionType"] = "PropertyArray" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertychangedconditionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertychangedconditionproperties.go index b72736f49a21..960f23ee56e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertychangedconditionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertychangedconditionproperties.go @@ -14,6 +14,14 @@ type PropertyChangedConditionProperties struct { ConditionProperties *AutomationRulePropertyValuesChangedCondition `json:"conditionProperties,omitempty"` // Fields inherited from AutomationRuleCondition + + ConditionType ConditionType `json:"conditionType"` +} + +func (s PropertyChangedConditionProperties) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return BaseAutomationRuleConditionImpl{ + ConditionType: s.ConditionType, + } } var _ json.Marshaler = PropertyChangedConditionProperties{} @@ -27,9 +35,10 @@ func (s PropertyChangedConditionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PropertyChangedConditionProperties: %+v", err) } + decoded["conditionType"] = "PropertyChanged" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyconditionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyconditionproperties.go index 6e77d74c58c5..92672dc4e8c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyconditionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/model_propertyconditionproperties.go @@ -14,6 +14,14 @@ type PropertyConditionProperties struct { ConditionProperties *AutomationRulePropertyValuesCondition `json:"conditionProperties,omitempty"` // Fields inherited from AutomationRuleCondition + + ConditionType ConditionType `json:"conditionType"` +} + +func (s PropertyConditionProperties) AutomationRuleCondition() BaseAutomationRuleConditionImpl { + return BaseAutomationRuleConditionImpl{ + ConditionType: s.ConditionType, + } } var _ json.Marshaler = PropertyConditionProperties{} @@ -27,9 +35,10 @@ func (s PropertyConditionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PropertyConditionProperties: %+v", err) } + decoded["conditionType"] = "Property" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/version.go index ef670d008512..00fec497e56d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/automationrules/version.go @@ -1,12 +1,10 @@ package automationrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/automationrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/automationrules/2022-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/README.md index 9fd09e95e924..3f7238e21f2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata` Documentation -The `metadata` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-10-01-preview`). +The `metadata` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "metadataValue") +id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "metadataName") payload := metadata.MetadataModel{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "metadataValue") +id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "metadataName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "metadataValue") +id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "metadataName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := metadata.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := metadata.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.List(ctx, id, metadata.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, metadata.DefaultListOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "metadataValue") +id := metadata.NewMetadataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "metadataName") payload := metadata.MetadataPatch{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/client.go index 59e4192159fe..2f569e1f755a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/client.go @@ -15,7 +15,7 @@ type MetadataClient struct { } func NewMetadataClientWithBaseURI(sdkApi sdkEnv.Api) (*MetadataClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "metadata", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "metadata", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MetadataClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_metadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_metadata.go index 5d97d463191e..d3336a335284 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_metadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_metadata.go @@ -44,7 +44,7 @@ func ParseMetadataID(input string) (*MetadataId, error) { } id := MetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseMetadataIDInsensitively(input string) (*MetadataId, error) { } id := MetadataId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id MetadataId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticMetadata", "metadata", "metadata"), - resourceids.UserSpecifiedSegment("metadataName", "metadataValue"), + resourceids.UserSpecifiedSegment("metadataName", "metadataName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_workspace.go index 6248b4d13cc1..26aa00d7b691 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_create.go index fd4a74a030a9..72fc34ee83b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_create.go @@ -50,7 +50,6 @@ func (c MetadataClient) Create(ctx context.Context, id MetadataId, input Metadat var model MetadataModel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_get.go index 68228f0b583d..6e0fd8a67016 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_get.go @@ -45,7 +45,6 @@ func (c MetadataClient) Get(ctx context.Context, id MetadataId) (result GetOpera var model MetadataModel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go index 398be67d7f38..d02ed2346684 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_update.go index e6911fcbc1d8..3b55664e813e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/method_update.go @@ -49,7 +49,6 @@ func (c MetadataClient) Update(ctx context.Context, id MetadataId, input Metadat var model MetadataModel result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/version.go index 3a614451da1d..e98f389e130a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-10-01-preview/metadata/version.go @@ -1,12 +1,10 @@ package metadata -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/metadata/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/metadata/2022-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/README.md index 6b4ebf64ca1e..dc4ae6f8a979 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates` Documentation -The `sentinelonboardingstates` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-11-01`). +The `sentinelonboardingstates` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "onboardingStateValue") +id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sentinelOnboardingStateName") payload := sentinelonboardingstates.SentinelOnboardingState{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "onboardingStateValue") +id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sentinelOnboardingStateName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "onboardingStateValue") +id := sentinelonboardingstates.NewOnboardingStateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "sentinelOnboardingStateName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sentinelonboardingstates.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := sentinelonboardingstates.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/client.go index 94701ed853a1..cfbcc6f54196 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/client.go @@ -15,7 +15,7 @@ type SentinelOnboardingStatesClient struct { } func NewSentinelOnboardingStatesClientWithBaseURI(sdkApi sdkEnv.Api) (*SentinelOnboardingStatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sentinelonboardingstates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sentinelonboardingstates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SentinelOnboardingStatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_onboardingstate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_onboardingstate.go index a0b15d704d49..ea5355343997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_onboardingstate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_onboardingstate.go @@ -44,7 +44,7 @@ func ParseOnboardingStateID(input string) (*OnboardingStateId, error) { } id := OnboardingStateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOnboardingStateIDInsensitively(input string) (*OnboardingStateId, erro } id := OnboardingStateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id OnboardingStateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticOnboardingStates", "onboardingStates", "onboardingStates"), - resourceids.UserSpecifiedSegment("onboardingStateName", "onboardingStateValue"), + resourceids.UserSpecifiedSegment("onboardingStateName", "sentinelOnboardingStateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_workspace.go index 25f0d18c095f..772088ec02af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_create.go index be0336fbceee..8049e43d14cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_create.go @@ -50,7 +50,6 @@ func (c SentinelOnboardingStatesClient) Create(ctx context.Context, id Onboardin var model SentinelOnboardingState result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_get.go index e7b2c2cb86b8..ff9b62feecea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_get.go @@ -45,7 +45,6 @@ func (c SentinelOnboardingStatesClient) Get(ctx context.Context, id OnboardingSt var model SentinelOnboardingState result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_list.go index d53893d78424..81a5556ad1e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/method_list.go @@ -46,7 +46,6 @@ func (c SentinelOnboardingStatesClient) List(ctx context.Context, id WorkspaceId var model SentinelOnboardingStatesList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/version.go index 640d5d66c5c8..25f841b720c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/sentinelonboardingstates/version.go @@ -1,12 +1,10 @@ package sentinelonboardingstates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sentinelonboardingstates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sentinelonboardingstates/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/README.md index 0c691ae868e0..606d637f41d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems` Documentation -The `watchlistitems` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-11-01`). +The `watchlistitems` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue", "watchlistItemIdValue") +id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias", "watchlistItemId") payload := watchlistitems.WatchlistItem{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue", "watchlistItemIdValue") +id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias", "watchlistItemId") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue", "watchlistItemIdValue") +id := watchlistitems.NewWatchlistItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias", "watchlistItemId") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlistitems.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue") +id := watchlistitems.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/client.go index d3193694a484..f5126a4483dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/client.go @@ -15,7 +15,7 @@ type WatchlistItemsClient struct { } func NewWatchlistItemsClientWithBaseURI(sdkApi sdkEnv.Api) (*WatchlistItemsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "watchlistitems", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "watchlistitems", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WatchlistItemsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlist.go index 7df2e8c25629..1971e9fceee9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlist.go @@ -44,7 +44,7 @@ func ParseWatchlistID(input string) (*WatchlistId, error) { } id := WatchlistId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWatchlistIDInsensitively(input string) (*WatchlistId, error) { } id := WatchlistId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id WatchlistId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticWatchlists", "watchlists", "watchlists"), - resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAliasValue"), + resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAlias"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlistitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlistitem.go index 95aa9b8f56d3..0ba7c805d15a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlistitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/id_watchlistitem.go @@ -46,7 +46,7 @@ func ParseWatchlistItemID(input string) (*WatchlistItemId, error) { } id := WatchlistItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWatchlistItemIDInsensitively(input string) (*WatchlistItemId, error) { } id := WatchlistItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,13 +127,13 @@ func (id WatchlistItemId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticWatchlists", "watchlists", "watchlists"), - resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAliasValue"), + resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAlias"), resourceids.StaticSegment("staticWatchlistItems", "watchlistItems", "watchlistItems"), - resourceids.UserSpecifiedSegment("watchlistItemId", "watchlistItemIdValue"), + resourceids.UserSpecifiedSegment("watchlistItemId", "watchlistItemId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_createorupdate.go index 68142e971a8a..1e71da4f4efd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WatchlistItemsClient) CreateOrUpdate(ctx context.Context, id WatchlistIt var model WatchlistItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_get.go index 1973c679f9e0..6f2b74513dae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/method_get.go @@ -45,7 +45,6 @@ func (c WatchlistItemsClient) Get(ctx context.Context, id WatchlistItemId) (resu var model WatchlistItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/version.go index ec616dc40971..1a93ccf421c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlistitems/version.go @@ -1,12 +1,10 @@ package watchlistitems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/watchlistitems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/watchlistitems/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/README.md index 3ba89e2e84ba..38c9250d296c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists` Documentation -The `watchlists` SDK allows for interaction with the Azure Resource Manager Service `securityinsights` (API Version `2022-11-01`). +The `watchlists` SDK allows for interaction with Azure Resource Manager `securityinsights` (API Version `2022-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue") +id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias") payload := watchlists.Watchlist{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue") +id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "watchlistAliasValue") +id := watchlists.NewWatchlistID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "watchlistAlias") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := watchlists.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue") +id := watchlists.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/client.go index 452111750544..22f5472a0adc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/client.go @@ -15,7 +15,7 @@ type WatchlistsClient struct { } func NewWatchlistsClientWithBaseURI(sdkApi sdkEnv.Api) (*WatchlistsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "watchlists", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "watchlists", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WatchlistsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_watchlist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_watchlist.go index e5b47b1456e2..0cae904f935a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_watchlist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_watchlist.go @@ -44,7 +44,7 @@ func ParseWatchlistID(input string) (*WatchlistId, error) { } id := WatchlistId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWatchlistIDInsensitively(input string) (*WatchlistId, error) { } id := WatchlistId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id WatchlistId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), resourceids.StaticSegment("staticProviders2", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSecurityInsights", "Microsoft.SecurityInsights", "Microsoft.SecurityInsights"), resourceids.StaticSegment("staticWatchlists", "watchlists", "watchlists"), - resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAliasValue"), + resourceids.UserSpecifiedSegment("watchlistAlias", "watchlistAlias"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_workspace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_workspace.go index d8e6bddfee79..075df09733df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_workspace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/id_workspace.go @@ -42,7 +42,7 @@ func ParseWorkspaceID(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error) { } id := WorkspaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WorkspaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftOperationalInsights", "Microsoft.OperationalInsights", "Microsoft.OperationalInsights"), resourceids.StaticSegment("staticWorkspaces", "workspaces", "workspaces"), - resourceids.UserSpecifiedSegment("workspaceName", "workspaceValue"), + resourceids.UserSpecifiedSegment("workspaceName", "workspaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_createorupdate.go index eb0b4f9396dc..219b2a467eb4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_createorupdate.go @@ -50,7 +50,6 @@ func (c WatchlistsClient) CreateOrUpdate(ctx context.Context, id WatchlistId, in var model Watchlist result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_get.go index 7aac16c3975f..2b6dcd7e6dab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/method_get.go @@ -45,7 +45,6 @@ func (c WatchlistsClient) Get(ctx context.Context, id WatchlistId) (result GetOp var model Watchlist result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/version.go index 788356a761df..431c5b210b68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/securityinsights/2022-11-01/watchlists/version.go @@ -1,12 +1,10 @@ package watchlists -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/watchlists/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/watchlists/2022-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/README.md index dff335030677..50891123f99b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs` Documentation -The `disasterrecoveryconfigs` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `disasterrecoveryconfigs` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.BreakPairing(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := disasterrecoveryconfigs.CheckNameAvailability{ // ... @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") payload := disasterrecoveryconfigs.ArmDisasterRecovery{ // ... @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.Delete(ctx, id) if err != nil { @@ -98,7 +98,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") payload := disasterrecoveryconfigs.FailoverProperties{ // ... @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") read, err := client.Get(ctx, id) if err != nil { @@ -135,7 +135,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue", "authorizationRuleValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias", "authorizationRuleName") read, err := client.GetAuthorizationRule(ctx, id) if err != nil { @@ -151,7 +151,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := disasterrecoveryconfigs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -168,7 +168,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias") // alternatively `client.ListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.ListAuthorizationRulesComplete(ctx, id) @@ -185,7 +185,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := disasterrecoveryconfigs.NewDisasterRecoveryConfigAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "disasterRecoveryConfigValue", "authorizationRuleValue") +id := disasterrecoveryconfigs.NewDisasterRecoveryConfigAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "alias", "authorizationRuleName") read, err := client.ListKeys(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/client.go index d3041d193c24..90cf91aa7962 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/client.go @@ -15,7 +15,7 @@ type DisasterRecoveryConfigsClient struct { } func NewDisasterRecoveryConfigsClientWithBaseURI(sdkApi sdkEnv.Api) (*DisasterRecoveryConfigsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "disasterrecoveryconfigs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "disasterrecoveryconfigs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DisasterRecoveryConfigsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfig.go index d78686c63d6f..d79ea87a231f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfig.go @@ -44,7 +44,7 @@ func ParseDisasterRecoveryConfigID(input string) (*DisasterRecoveryConfigId, err } id := DisasterRecoveryConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDisasterRecoveryConfigIDInsensitively(input string) (*DisasterRecovery } id := DisasterRecoveryConfigId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DisasterRecoveryConfigId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticDisasterRecoveryConfigs", "disasterRecoveryConfigs", "disasterRecoveryConfigs"), - resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "disasterRecoveryConfigValue"), + resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "alias"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfigauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfigauthorizationrule.go index 80f09c5d9ded..04d899e6626a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfigauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_disasterrecoveryconfigauthorizationrule.go @@ -46,7 +46,7 @@ func ParseDisasterRecoveryConfigAuthorizationRuleID(input string) (*DisasterReco } id := DisasterRecoveryConfigAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively(input string) ( } id := DisasterRecoveryConfigAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DisasterRecoveryConfigAuthorizationRuleId) Segments() []resourceids.Seg resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticDisasterRecoveryConfigs", "disasterRecoveryConfigs", "disasterRecoveryConfigs"), - resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "disasterRecoveryConfigValue"), + resourceids.UserSpecifiedSegment("disasterRecoveryConfigName", "alias"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_namespace.go index d822b2f45ad1..96957b7a10c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_checknameavailability.go index e261ea340a09..b3426ed43574 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Context var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_createorupdate.go index c3af61b71424..e1eee1022dbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_createorupdate.go @@ -50,7 +50,6 @@ func (c DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, id Di var model ArmDisasterRecovery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_get.go index 2f089dba4766..70681ee49028 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_get.go @@ -45,7 +45,6 @@ func (c DisasterRecoveryConfigsClient) Get(ctx context.Context, id DisasterRecov var model ArmDisasterRecovery result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_getauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_getauthorizationrule.go index 91215fd5302c..9549eb3d609d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_getauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_getauthorizationrule.go @@ -45,7 +45,6 @@ func (c DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Context, var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listkeys.go index 220c96798153..ac1aae7ffae4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/method_listkeys.go @@ -46,7 +46,6 @@ func (c DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, id Disaster var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/version.go index 36f568cd68c9..ea9eaee2d77f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/disasterrecoveryconfigs/version.go @@ -1,12 +1,10 @@ package disasterrecoveryconfigs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/disasterrecoveryconfigs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/disasterrecoveryconfigs/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/README.md index d0b6b63a6237..ccc7994f6772 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule` Documentation -The `namespacesauthorizationrule` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `namespacesauthorizationrule` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespacesauthorizationrule.SBAuthorizationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesDeleteAuthorizationRule(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesGetAuthorizationRule(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespacesauthorizationrule.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.NamespacesListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.NamespacesListAuthorizationRulesComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") read, err := client.NamespacesListKeys(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "authorizationRuleValue") +id := namespacesauthorizationrule.NewAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "authorizationRuleName") payload := namespacesauthorizationrule.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/client.go index a0c6e352d8cf..809a1c20d922 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/client.go @@ -15,7 +15,7 @@ type NamespacesAuthorizationRuleClient struct { } func NewNamespacesAuthorizationRuleClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesAuthorizationRuleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespacesauthorizationrule", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespacesauthorizationrule", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesAuthorizationRuleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_authorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_authorizationrule.go index 763e3f9b6528..a1b2dc8486bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_authorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_authorizationrule.go @@ -44,7 +44,7 @@ func ParseAuthorizationRuleID(input string) (*AuthorizationRuleId, error) { } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationRuleIDInsensitively(input string) (*AuthorizationRuleId, } id := AuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_namespace.go index fa39a9f46dcd..b35890768777 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacescreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacescreateorupdateauthorizationrule.go index 920a3777a5c1..8241f93fca07 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacescreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacescreateorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c NamespacesAuthorizationRuleClient) NamespacesCreateOrUpdateAuthorization var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesgetauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesgetauthorizationrule.go index 7269769d225c..51230fc9440b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesgetauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesgetauthorizationrule.go @@ -45,7 +45,6 @@ func (c NamespacesAuthorizationRuleClient) NamespacesGetAuthorizationRule(ctx co var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistkeys.go index d298427cba4d..6a93a6302fbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespaceslistkeys.go @@ -46,7 +46,6 @@ func (c NamespacesAuthorizationRuleClient) NamespacesListKeys(ctx context.Contex var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesregeneratekeys.go index 7de4cfbcda56..6ef65dd596e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/method_namespacesregeneratekeys.go @@ -50,7 +50,6 @@ func (c NamespacesAuthorizationRuleClient) NamespacesRegenerateKeys(ctx context. var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/version.go index 885c529038e1..b6b64c586e4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/namespacesauthorizationrule/version.go @@ -1,12 +1,10 @@ package namespacesauthorizationrule -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespacesauthorizationrule/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespacesauthorizationrule/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/README.md index 0e4e9288f7e9..ab1ef67cdbe4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues` Documentation -The `queues` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `queues` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue") +id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName") payload := queues.SBQueue{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue") +id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue") +id := queues.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queues.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := queues.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListByNamespace(ctx, id, queues.DefaultListByNamespaceOperationOptions())` can be used to do batched pagination items, err := client.ListByNamespaceComplete(ctx, id, queues.DefaultListByNamespaceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/client.go index fae8d74b48b3..8abe908aa3aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/client.go @@ -15,7 +15,7 @@ type QueuesClient struct { } func NewQueuesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueuesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "queues", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "queues", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueuesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_namespace.go index 0e88b5e37fe1..fb5f1687deb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_queue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_queue.go index 6518d2d350fb..6369a59e6c3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_queue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/id_queue.go @@ -44,7 +44,7 @@ func ParseQueueID(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseQueueIDInsensitively(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id QueueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticQueues", "queues", "queues"), - resourceids.UserSpecifiedSegment("queueName", "queueValue"), + resourceids.UserSpecifiedSegment("queueName", "queueName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_createorupdate.go index eee33052bb54..35b83f53d1af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_createorupdate.go @@ -49,7 +49,6 @@ func (c QueuesClient) CreateOrUpdate(ctx context.Context, id QueueId, input SBQu var model SBQueue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_get.go index 4191a084c1d8..3a6cb9046fe4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_get.go @@ -45,7 +45,6 @@ func (c QueuesClient) Get(ctx context.Context, id QueueId) (result GetOperationR var model SBQueue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go index 8c8839829fc3..4c886c7a3d90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/method_listbynamespace.go @@ -40,6 +40,7 @@ func (o ListByNamespaceOperationOptions) ToHeaders() *client.Headers { func (o ListByNamespaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/version.go index 49e5f391bc33..e19ddad1867a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queues/version.go @@ -1,12 +1,10 @@ package queues -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/queues/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/queues/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/README.md index 5f09a842c30d..5d096fd5454e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule` Documentation -The `queuesauthorizationrule` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `queuesauthorizationrule` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue", "authorizationRuleValue") +id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName", "authorizationRuleName") payload := queuesauthorizationrule.SBAuthorizationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue", "authorizationRuleValue") +id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName", "authorizationRuleName") read, err := client.QueuesDeleteAuthorizationRule(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue", "authorizationRuleValue") +id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName", "authorizationRuleName") read, err := client.QueuesGetAuthorizationRule(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue") +id := queuesauthorizationrule.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName") // alternatively `client.QueuesListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.QueuesListAuthorizationRulesComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue", "authorizationRuleValue") +id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName", "authorizationRuleName") read, err := client.QueuesListKeys(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "queueValue", "authorizationRuleValue") +id := queuesauthorizationrule.NewQueueAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "queueName", "authorizationRuleName") payload := queuesauthorizationrule.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/client.go index 3814c23f148d..b16150ebb111 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/client.go @@ -15,7 +15,7 @@ type QueuesAuthorizationRuleClient struct { } func NewQueuesAuthorizationRuleClientWithBaseURI(sdkApi sdkEnv.Api) (*QueuesAuthorizationRuleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "queuesauthorizationrule", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "queuesauthorizationrule", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueuesAuthorizationRuleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queue.go index 3f3a95c2ee28..c6638d4f30aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queue.go @@ -44,7 +44,7 @@ func ParseQueueID(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseQueueIDInsensitively(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id QueueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticQueues", "queues", "queues"), - resourceids.UserSpecifiedSegment("queueName", "queueValue"), + resourceids.UserSpecifiedSegment("queueName", "queueName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queueauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queueauthorizationrule.go index 426c3a1273bb..ab1adebace20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queueauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/id_queueauthorizationrule.go @@ -46,7 +46,7 @@ func ParseQueueAuthorizationRuleID(input string) (*QueueAuthorizationRuleId, err } id := QueueAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseQueueAuthorizationRuleIDInsensitively(input string) (*QueueAuthorizati } id := QueueAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id QueueAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticQueues", "queues", "queues"), - resourceids.UserSpecifiedSegment("queueName", "queueValue"), + resourceids.UserSpecifiedSegment("queueName", "queueName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuescreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuescreateorupdateauthorizationrule.go index bbd4c457faee..7d4662041579 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuescreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuescreateorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c QueuesAuthorizationRuleClient) QueuesCreateOrUpdateAuthorizationRule(ctx var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesgetauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesgetauthorizationrule.go index 39fc51065f04..29040ba18df5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesgetauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesgetauthorizationrule.go @@ -45,7 +45,6 @@ func (c QueuesAuthorizationRuleClient) QueuesGetAuthorizationRule(ctx context.Co var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistkeys.go index 0e46e6b16b5b..a4f8ada9af57 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queueslistkeys.go @@ -46,7 +46,6 @@ func (c QueuesAuthorizationRuleClient) QueuesListKeys(ctx context.Context, id Qu var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesregeneratekeys.go index b023ca0643af..76179d4340bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/method_queuesregeneratekeys.go @@ -50,7 +50,6 @@ func (c QueuesAuthorizationRuleClient) QueuesRegenerateKeys(ctx context.Context, var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/version.go index 65270c408ffb..2faf90a0a1d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/queuesauthorizationrule/version.go @@ -1,12 +1,10 @@ package queuesauthorizationrule -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/queuesauthorizationrule/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/queuesauthorizationrule/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/README.md index 80162617b4fe..306e11e3dd5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules` Documentation -The `rules` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `rules` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue", "ruleValue") +id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName", "ruleName") payload := rules.Rule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue", "ruleValue") +id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName", "ruleName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := rules.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue") +id := rules.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName") // alternatively `client.ListBySubscriptions(ctx, id, rules.DefaultListBySubscriptionsOperationOptions())` can be used to do batched pagination items, err := client.ListBySubscriptionsComplete(ctx, id, rules.DefaultListBySubscriptionsOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/client.go index d145cf8c38ad..ee5a5154cef5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/client.go @@ -15,7 +15,7 @@ type RulesClient struct { } func NewRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "rules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "rules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_rule.go index 17dbace32bbd..03d994ecd20c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_rule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_rule.go @@ -48,7 +48,7 @@ func ParseRuleID(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseRuleIDInsensitively(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id RuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionName"), resourceids.StaticSegment("staticRules", "rules", "rules"), - resourceids.UserSpecifiedSegment("ruleName", "ruleValue"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_subscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_subscriptions2.go index e757ae49a58c..b0a28a26edee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_subscriptions2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/id_subscriptions2.go @@ -46,7 +46,7 @@ func ParseSubscriptions2ID(input string) (*Subscriptions2Id, error) { } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSubscriptions2IDInsensitively(input string) (*Subscriptions2Id, error) } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id Subscriptions2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_createorupdate.go index 5276c2803f37..d44e0313dfdd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_createorupdate.go @@ -49,7 +49,6 @@ func (c RulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input Rule) var model Rule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go index 8c82af50502c..c053b0d1bc42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/method_listbysubscriptions.go @@ -40,6 +40,7 @@ func (o ListBySubscriptionsOperationOptions) ToHeaders() *client.Headers { func (o ListBySubscriptionsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/version.go index e9a07c4c0584..f796c2e5099d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/rules/version.go @@ -1,12 +1,10 @@ package rules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/rules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/rules/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/README.md index 08287c5e5dc4..08484e7f0bee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions` Documentation -The `subscriptions` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `subscriptions` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue") +id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName") payload := subscriptions.SBSubscription{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue") +id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue") +id := subscriptions.NewSubscriptions2ID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue") +id := subscriptions.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName") // alternatively `client.ListByTopic(ctx, id, subscriptions.DefaultListByTopicOperationOptions())` can be used to do batched pagination items, err := client.ListByTopicComplete(ctx, id, subscriptions.DefaultListByTopicOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subscriptions.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "subscriptionValue", "ruleValue") +id := subscriptions.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "subscriptionName", "ruleName") read, err := client.RulesGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/client.go index 09be7cb1cfb0..84c92b4fb13a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/client.go @@ -15,7 +15,7 @@ type SubscriptionsClient struct { } func NewSubscriptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*SubscriptionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "subscriptions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "subscriptions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SubscriptionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_rule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_rule.go index 852a424d8c15..87061ae57d08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_rule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_rule.go @@ -48,7 +48,7 @@ func ParseRuleID(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseRuleIDInsensitively(input string) (*RuleId, error) { } id := RuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id RuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionName"), resourceids.StaticSegment("staticRules", "rules", "rules"), - resourceids.UserSpecifiedSegment("ruleName", "ruleValue"), + resourceids.UserSpecifiedSegment("ruleName", "ruleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_subscriptions2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_subscriptions2.go index c95ceb041210..453d2e083b82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_subscriptions2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_subscriptions2.go @@ -46,7 +46,7 @@ func ParseSubscriptions2ID(input string) (*Subscriptions2Id, error) { } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSubscriptions2IDInsensitively(input string) (*Subscriptions2Id, error) } id := Subscriptions2Id{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id Subscriptions2Id) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticSubscriptions2", "subscriptions", "subscriptions"), - resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionValue"), + resourceids.UserSpecifiedSegment("subscriptionName", "subscriptionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_topic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_topic.go index 7967b7a7b803..83842837cf29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_topic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/id_topic.go @@ -44,7 +44,7 @@ func ParseTopicID(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTopicIDInsensitively(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_createorupdate.go index 901d06c89a2f..748ff319e3df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_createorupdate.go @@ -49,7 +49,6 @@ func (c SubscriptionsClient) CreateOrUpdate(ctx context.Context, id Subscription var model SBSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_get.go index 6ea6dc0ce0b9..e2a1ae18ad90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_get.go @@ -45,7 +45,6 @@ func (c SubscriptionsClient) Get(ctx context.Context, id Subscriptions2Id) (resu var model SBSubscription result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go index c4544d08fa8f..381c07523357 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_listbytopic.go @@ -40,6 +40,7 @@ func (o ListByTopicOperationOptions) ToHeaders() *client.Headers { func (o ListByTopicOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_rulesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_rulesget.go index 5e64ad1526ac..e0312e3b0f8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_rulesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/method_rulesget.go @@ -45,7 +45,6 @@ func (c SubscriptionsClient) RulesGet(ctx context.Context, id RuleId) (result Ru var model Rule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/version.go index 0ee9e9513ad2..c5588cf2a188 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/subscriptions/version.go @@ -1,12 +1,10 @@ package subscriptions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subscriptions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subscriptions/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/README.md index bff215cc2ccd..03a3b96c1756 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics` Documentation -The `topics` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `topics` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName") payload := topics.SBTopic{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue") +id := topics.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topics.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := topics.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListByNamespace(ctx, id, topics.DefaultListByNamespaceOperationOptions())` can be used to do batched pagination items, err := client.ListByNamespaceComplete(ctx, id, topics.DefaultListByNamespaceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/client.go index 0e7b8385566a..f2c8eb0e68f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/client.go @@ -15,7 +15,7 @@ type TopicsClient struct { } func NewTopicsClientWithBaseURI(sdkApi sdkEnv.Api) (*TopicsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "topics", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "topics", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TopicsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_namespace.go index da652f14c17a..867743967c65 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_topic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_topic.go index 1d0c26757b86..0e56d30d64cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_topic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/id_topic.go @@ -44,7 +44,7 @@ func ParseTopicID(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTopicIDInsensitively(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_createorupdate.go index 6101e6f4579c..f5b592cb5219 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_createorupdate.go @@ -49,7 +49,6 @@ func (c TopicsClient) CreateOrUpdate(ctx context.Context, id TopicId, input SBTo var model SBTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_get.go index d58747892e92..5ca20491fb66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_get.go @@ -45,7 +45,6 @@ func (c TopicsClient) Get(ctx context.Context, id TopicId) (result GetOperationR var model SBTopic result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go index 2c16062a76f3..fa2869f8fb4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/method_listbynamespace.go @@ -40,6 +40,7 @@ func (o ListByNamespaceOperationOptions) ToHeaders() *client.Headers { func (o ListByNamespaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/version.go index f30136ef355c..13e5cd669190 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topics/version.go @@ -1,12 +1,10 @@ package topics -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/topics/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/topics/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/README.md index 9f43c536d697..7c4944fb4eba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule` Documentation -The `topicsauthorizationrule` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2021-06-01-preview`). +The `topicsauthorizationrule` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2021-06-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "authorizationRuleValue") +id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "authorizationRuleName") payload := topicsauthorizationrule.SBAuthorizationRule{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "authorizationRuleValue") +id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "authorizationRuleName") read, err := client.TopicsDeleteAuthorizationRule(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "authorizationRuleValue") +id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "authorizationRuleName") read, err := client.TopicsGetAuthorizationRule(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue") +id := topicsauthorizationrule.NewTopicID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName") // alternatively `client.TopicsListAuthorizationRules(ctx, id)` can be used to do batched pagination items, err := client.TopicsListAuthorizationRulesComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "authorizationRuleValue") +id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "authorizationRuleName") read, err := client.TopicsListKeys(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "topicValue", "authorizationRuleValue") +id := topicsauthorizationrule.NewTopicAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName", "topicName", "authorizationRuleName") payload := topicsauthorizationrule.RegenerateAccessKeyParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/client.go index ccb288f23017..f8a239cc2b6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/client.go @@ -15,7 +15,7 @@ type TopicsAuthorizationRuleClient struct { } func NewTopicsAuthorizationRuleClientWithBaseURI(sdkApi sdkEnv.Api) (*TopicsAuthorizationRuleClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "topicsauthorizationrule", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "topicsauthorizationrule", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TopicsAuthorizationRuleClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topic.go index 63d2bdeaa5b3..68d8bc056b73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topic.go @@ -44,7 +44,7 @@ func ParseTopicID(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTopicIDInsensitively(input string) (*TopicId, error) { } id := TopicId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TopicId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topicauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topicauthorizationrule.go index e2abae1a8625..5688ec651224 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topicauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/id_topicauthorizationrule.go @@ -46,7 +46,7 @@ func ParseTopicAuthorizationRuleID(input string) (*TopicAuthorizationRuleId, err } id := TopicAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseTopicAuthorizationRuleIDInsensitively(input string) (*TopicAuthorizati } id := TopicAuthorizationRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id TopicAuthorizationRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), resourceids.StaticSegment("staticTopics", "topics", "topics"), - resourceids.UserSpecifiedSegment("topicName", "topicValue"), + resourceids.UserSpecifiedSegment("topicName", "topicName"), resourceids.StaticSegment("staticAuthorizationRules", "authorizationRules", "authorizationRules"), - resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleValue"), + resourceids.UserSpecifiedSegment("authorizationRuleName", "authorizationRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicscreateorupdateauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicscreateorupdateauthorizationrule.go index a2f8efa55c43..6e07fe35ad1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicscreateorupdateauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicscreateorupdateauthorizationrule.go @@ -49,7 +49,6 @@ func (c TopicsAuthorizationRuleClient) TopicsCreateOrUpdateAuthorizationRule(ctx var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsgetauthorizationrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsgetauthorizationrule.go index fd9be427a578..4fd3c49a4519 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsgetauthorizationrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsgetauthorizationrule.go @@ -45,7 +45,6 @@ func (c TopicsAuthorizationRuleClient) TopicsGetAuthorizationRule(ctx context.Co var model SBAuthorizationRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistkeys.go index 2d2cf65d77f1..2085ad5457d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicslistkeys.go @@ -46,7 +46,6 @@ func (c TopicsAuthorizationRuleClient) TopicsListKeys(ctx context.Context, id To var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsregeneratekeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsregeneratekeys.go index 5bb9a92bbc3a..39e981eddd5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsregeneratekeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/method_topicsregeneratekeys.go @@ -50,7 +50,6 @@ func (c TopicsAuthorizationRuleClient) TopicsRegenerateKeys(ctx context.Context, var model AccessKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/version.go index 744b13fb7f30..7556d52bbd49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-06-01-preview/topicsauthorizationrule/version.go @@ -1,12 +1,10 @@ package topicsauthorizationrule -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/topicsauthorizationrule/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/topicsauthorizationrule/2021-06-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md index 2858d698d860..909dd1fc3ea7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces` Documentation -The `namespaces` SDK allows for interaction with the Azure Resource Manager Service `servicebus` (API Version `2022-10-01-preview`). +The `namespaces` SDK allows for interaction with Azure Resource Manager `servicebus` (API Version `2022-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.SBNamespace{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.NetworkRuleSet{ // ... @@ -84,7 +84,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -96,7 +96,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.Get(ctx, id) if err != nil { @@ -112,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") read, err := client.GetNetworkRuleSet(ctx, id) if err != nil { @@ -162,7 +162,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") // alternatively `client.ListNetworkRuleSets(ctx, id)` can be used to do batched pagination items, err := client.ListNetworkRuleSetsComplete(ctx, id) @@ -179,7 +179,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue") +id := namespaces.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceName") payload := namespaces.SBNamespaceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/client.go index c0bca4870e18..6a91c8e7de9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/client.go @@ -15,7 +15,7 @@ type NamespacesClient struct { } func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "namespaces", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "namespaces", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NamespacesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/id_namespace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/id_namespace.go index 4fe92d0f5633..6227d4a712fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/id_namespace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/id_namespace.go @@ -42,7 +42,7 @@ func ParseNamespaceID(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error) { } id := NamespaceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id NamespaceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceBus", "Microsoft.ServiceBus", "Microsoft.ServiceBus"), resourceids.StaticSegment("staticNamespaces", "namespaces", "namespaces"), - resourceids.UserSpecifiedSegment("namespaceName", "namespaceValue"), + resourceids.UserSpecifiedSegment("namespaceName", "namespaceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_checknameavailability.go index a9ae6f754a97..2870fd8d1f29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c NamespacesClient) CheckNameAvailability(ctx context.Context, id commonid var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_createorupdatenetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_createorupdatenetworkruleset.go index e76e779ef824..6d1b63438587 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_createorupdatenetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_createorupdatenetworkruleset.go @@ -50,7 +50,6 @@ func (c NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, id N var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_get.go index d53457bd0f00..05fd5a0d22aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_get.go @@ -45,7 +45,6 @@ func (c NamespacesClient) Get(ctx context.Context, id NamespaceId) (result GetOp var model SBNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_getnetworkruleset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_getnetworkruleset.go index f6767e352f16..373b726a4180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_getnetworkruleset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_getnetworkruleset.go @@ -46,7 +46,6 @@ func (c NamespacesClient) GetNetworkRuleSet(ctx context.Context, id NamespaceId) var model NetworkRuleSet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_update.go index 10e3dd89ba66..98ca51285e1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/method_update.go @@ -51,7 +51,6 @@ func (c NamespacesClient) Update(ctx context.Context, id NamespaceId, input SBNa var model SBNamespace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/version.go index 2ed3f103ad17..7a4ba7a7a66a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2022-10-01-preview/namespaces/version.go @@ -1,12 +1,10 @@ package namespaces -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/namespaces/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/namespaces/2022-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/README.md index 04c87dd27538..1a21114399eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster` Documentation -The `cluster` SDK allows for interaction with the Azure Resource Manager Service `servicefabric` (API Version `2021-06-01`). +The `cluster` SDK allows for interaction with Azure Resource Manager `servicefabric` (API Version `2021-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := cluster.Cluster{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := cluster.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := cluster.ClusterUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/client.go index 2a0e60ffb2b5..dfc40b753940 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/client.go @@ -15,7 +15,7 @@ type ClusterClient struct { } func NewClusterClientWithBaseURI(sdkApi sdkEnv.Api) (*ClusterClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cluster", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cluster", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClusterClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/id_cluster.go index 8a2c96a108be..c2a144f67f83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceFabric", "Microsoft.ServiceFabric", "Microsoft.ServiceFabric"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/method_get.go index 2b89d15b18f9..8c04188eb0c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/method_get.go @@ -45,7 +45,6 @@ func (c ClusterClient) Get(ctx context.Context, id ClusterId) (result GetOperati var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/version.go index 06f520be6868..5a3face91622 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabric/2021-06-01/cluster/version.go @@ -1,12 +1,10 @@ package cluster -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cluster/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cluster/2021-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md index 93cd824ff2ad..b1f14a60b453 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster` Documentation -The `managedcluster` SDK allows for interaction with the Azure Resource Manager Service `servicefabricmanagedcluster` (API Version `2021-05-01`). +The `managedcluster` SDK allows for interaction with Azure Resource Manager `servicefabricmanagedcluster` (API Version `2021-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := managedcluster.ManagedCluster{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := managedcluster.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := managedcluster.ManagedClusterUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/client.go index 14c21d22764e..2fc4e18bbbf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/client.go @@ -15,7 +15,7 @@ type ManagedClusterClient struct { } func NewManagedClusterClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedClusterClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedcluster", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedcluster", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedClusterClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/id_managedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/id_managedcluster.go index ff8dcd9645d5..7a851f414475 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/id_managedcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/id_managedcluster.go @@ -42,7 +42,7 @@ func ParseManagedClusterID(input string) (*ManagedClusterId, error) { } id := ManagedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedClusterIDInsensitively(input string) (*ManagedClusterId, error) } id := ManagedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceFabric", "Microsoft.ServiceFabric", "Microsoft.ServiceFabric"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_get.go index f7c939b1bfe3..1bb7c311f599 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_get.go @@ -45,7 +45,6 @@ func (c ManagedClusterClient) Get(ctx context.Context, id ManagedClusterId) (res var model ManagedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_update.go index 7b34690f35e9..cf624f79925b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/method_update.go @@ -49,7 +49,6 @@ func (c ManagedClusterClient) Update(ctx context.Context, id ManagedClusterId, i var model ManagedCluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/version.go index 795d386419da..ac50183570b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/managedcluster/version.go @@ -1,12 +1,10 @@ package managedcluster -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedcluster/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedcluster/2021-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/README.md index 26b58580e566..fad13d4578db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype` Documentation -The `nodetype` SDK allows for interaction with the Azure Resource Manager Service `servicefabricmanagedcluster` (API Version `2021-05-01`). +The `nodetype` SDK allows for interaction with Azure Resource Manager `servicefabricmanagedcluster` (API Version `2021-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") payload := nodetype.NodeType{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") payload := nodetype.NodeTypeActionParameters{ // ... @@ -70,7 +70,7 @@ if err := client.DeleteNodeThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") read, err := client.Get(ctx, id) if err != nil { @@ -86,7 +86,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := nodetype.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue") +id := nodetype.NewManagedClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByManagedClusters(ctx, id)` can be used to do batched pagination items, err := client.ListByManagedClustersComplete(ctx, id) @@ -103,7 +103,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") payload := nodetype.NodeTypeActionParameters{ // ... @@ -120,7 +120,7 @@ if err := client.ReimageThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") payload := nodetype.NodeTypeActionParameters{ // ... @@ -137,7 +137,7 @@ if err := client.RestartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedClusterValue", "nodeTypeValue") +id := nodetype.NewNodeTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "nodeTypeName") payload := nodetype.NodeTypeUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/client.go index ae6880601d4d..8ee7d2c73ea3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/client.go @@ -15,7 +15,7 @@ type NodeTypeClient struct { } func NewNodeTypeClientWithBaseURI(sdkApi sdkEnv.Api) (*NodeTypeClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "nodetype", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "nodetype", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating NodeTypeClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_managedcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_managedcluster.go index 045b223bc19d..e7defe953866 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_managedcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_managedcluster.go @@ -42,7 +42,7 @@ func ParseManagedClusterID(input string) (*ManagedClusterId, error) { } id := ManagedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedClusterIDInsensitively(input string) (*ManagedClusterId, error) } id := ManagedClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ManagedClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceFabric", "Microsoft.ServiceFabric", "Microsoft.ServiceFabric"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_nodetype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_nodetype.go index b6155dff9adf..ec806fd907ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_nodetype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/id_nodetype.go @@ -44,7 +44,7 @@ func ParseNodeTypeID(input string) (*NodeTypeId, error) { } id := NodeTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNodeTypeIDInsensitively(input string) (*NodeTypeId, error) { } id := NodeTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NodeTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceFabric", "Microsoft.ServiceFabric", "Microsoft.ServiceFabric"), resourceids.StaticSegment("staticManagedClusters", "managedClusters", "managedClusters"), - resourceids.UserSpecifiedSegment("managedClusterName", "managedClusterValue"), + resourceids.UserSpecifiedSegment("managedClusterName", "clusterName"), resourceids.StaticSegment("staticNodeTypes", "nodeTypes", "nodeTypes"), - resourceids.UserSpecifiedSegment("nodeTypeName", "nodeTypeValue"), + resourceids.UserSpecifiedSegment("nodeTypeName", "nodeTypeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_get.go index ce7c44fb0e13..aa9a394de9b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_get.go @@ -45,7 +45,6 @@ func (c NodeTypeClient) Get(ctx context.Context, id NodeTypeId) (result GetOpera var model NodeType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_update.go index 0b922d8e9e0f..561e3dc10678 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/method_update.go @@ -49,7 +49,6 @@ func (c NodeTypeClient) Update(ctx context.Context, id NodeTypeId, input NodeTyp var model NodeType result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/version.go index fe315c182819..4e97d1afbe21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicefabricmanagedcluster/2021-05-01/nodetype/version.go @@ -1,12 +1,10 @@ package nodetype -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/nodetype/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/nodetype/2021-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/README.md index 7026a61d69fe..85acf1e8771f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links` Documentation -The `links` SDK allows for interaction with the Azure Resource Manager Service `servicelinker` (API Version `2022-05-01`). +The `links` SDK allows for interaction with Azure Resource Manager `servicelinker` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") if err := client.LinkerDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -36,7 +36,7 @@ if err := client.LinkerDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") read, err := client.LinkerListConfigurations(ctx, id) if err != nil { @@ -52,7 +52,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") payload := links.LinkerPatch{ // ... @@ -69,7 +69,7 @@ if err := client.LinkerUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := links.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") if err := client.LinkerValidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/client.go index 8dc9ce345ce7..2ab333ac564a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/client.go @@ -15,7 +15,7 @@ type LinksClient struct { } func NewLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*LinksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "links", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "links", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LinksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/id_scopedlinker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/id_scopedlinker.go index 2f3b7e056249..616469351760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/id_scopedlinker.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/id_scopedlinker.go @@ -40,7 +40,7 @@ func ParseScopedLinkerID(input string) (*ScopedLinkerId, error) { } id := ScopedLinkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedLinkerIDInsensitively(input string) (*ScopedLinkerId, error) { } id := ScopedLinkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedLinkerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceLinker", "Microsoft.ServiceLinker", "Microsoft.ServiceLinker"), resourceids.StaticSegment("staticLinkers", "linkers", "linkers"), - resourceids.UserSpecifiedSegment("linkerName", "linkerValue"), + resourceids.UserSpecifiedSegment("linkerName", "linkerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/method_linkerlistconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/method_linkerlistconfigurations.go index be301d723447..69a7eb454cb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/method_linkerlistconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/method_linkerlistconfigurations.go @@ -46,7 +46,6 @@ func (c LinksClient) LinkerListConfigurations(ctx context.Context, id ScopedLink var model SourceConfigurationResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_authinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_authinfobase.go index 69f8da16ba9b..6429b5d1610f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_authinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_authinfobase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AuthInfoBase interface { + AuthInfoBase() BaseAuthInfoBaseImpl } -// RawAuthInfoBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AuthInfoBase = BaseAuthInfoBaseImpl{} + +type BaseAuthInfoBaseImpl struct { + AuthType AuthType `json:"authType"` +} + +func (s BaseAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl { + return s +} + +var _ AuthInfoBase = RawAuthInfoBaseImpl{} + +// RawAuthInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAuthInfoBaseImpl struct { - Type string - Values map[string]interface{} + authInfoBase BaseAuthInfoBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl { + return s.authInfoBase } -func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { +func UnmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { return nil, fmt.Errorf("unmarshaling AuthInfoBase into map[string]interface: %+v", err) } - value, ok := temp["authType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["authType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "secret") { @@ -76,10 +93,15 @@ func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { return out, nil } - out := RawAuthInfoBaseImpl{ - Type: value, - Values: temp, + var parent BaseAuthInfoBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAuthInfoBaseImpl: %+v", err) } - return out, nil + + return RawAuthInfoBaseImpl{ + authInfoBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azurekeyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azurekeyvaultproperties.go index e38862e57ae0..fbbeaf992248 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azurekeyvaultproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azurekeyvaultproperties.go @@ -14,6 +14,14 @@ type AzureKeyVaultProperties struct { ConnectAsKubernetesCsiDriver *bool `json:"connectAsKubernetesCsiDriver,omitempty"` // Fields inherited from AzureResourcePropertiesBase + + Type AzureResourceType `json:"type"` +} + +func (s AzureKeyVaultProperties) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return BaseAzureResourcePropertiesBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureKeyVaultProperties{} @@ -27,9 +35,10 @@ func (s AzureKeyVaultProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureKeyVaultProperties: %+v", err) } + decoded["type"] = "KeyVault" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresource.go index 56c8436bc7bf..1fbd4c977034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresource.go @@ -15,6 +15,14 @@ type AzureResource struct { ResourceProperties AzureResourcePropertiesBase `json:"resourceProperties"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s AzureResource) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureResource{} @@ -28,9 +36,10 @@ func (s AzureResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureResource: %+v", err) } + decoded["type"] = "AzureResource" encoded, err = json.Marshal(decoded) @@ -44,13 +53,16 @@ func (s AzureResource) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureResource{} func (s *AzureResource) UnmarshalJSON(bytes []byte) error { - type alias AzureResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Type TargetServiceType `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -58,11 +70,12 @@ func (s *AzureResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["resourceProperties"]; ok { - impl, err := unmarshalAzureResourcePropertiesBaseImplementation(v) + impl, err := UnmarshalAzureResourcePropertiesBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'AzureResource': %+v", err) } s.ResourceProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresourcepropertiesbase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresourcepropertiesbase.go index d7d98345d685..9aaf79b627bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresourcepropertiesbase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_azureresourcepropertiesbase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AzureResourcePropertiesBase interface { + AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl } -// RawAzureResourcePropertiesBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AzureResourcePropertiesBase = BaseAzureResourcePropertiesBaseImpl{} + +type BaseAzureResourcePropertiesBaseImpl struct { + Type AzureResourceType `json:"type"` +} + +func (s BaseAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return s +} + +var _ AzureResourcePropertiesBase = RawAzureResourcePropertiesBaseImpl{} + +// RawAzureResourcePropertiesBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAzureResourcePropertiesBaseImpl struct { - Type string - Values map[string]interface{} + azureResourcePropertiesBase BaseAzureResourcePropertiesBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return s.azureResourcePropertiesBase } -func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureResourcePropertiesBase, error) { +func UnmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureResourcePropertiesBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureReso return nil, fmt.Errorf("unmarshaling AzureResourcePropertiesBase into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "KeyVault") { @@ -44,10 +61,15 @@ func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureReso return out, nil } - out := RawAzureResourcePropertiesBaseImpl{ - Type: value, - Values: temp, + var parent BaseAzureResourcePropertiesBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAzureResourcePropertiesBaseImpl: %+v", err) } - return out, nil + + return RawAzureResourcePropertiesBaseImpl{ + azureResourcePropertiesBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentbootstrapserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentbootstrapserver.go index e826d3a15694..36cdbcc0ce13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentbootstrapserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentbootstrapserver.go @@ -14,6 +14,14 @@ type ConfluentBootstrapServer struct { Endpoint *string `json:"endpoint,omitempty"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s ConfluentBootstrapServer) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = ConfluentBootstrapServer{} @@ -27,9 +35,10 @@ func (s ConfluentBootstrapServer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ConfluentBootstrapServer: %+v", err) } + decoded["type"] = "ConfluentBootstrapServer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentschemaregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentschemaregistry.go index 3bbf94f748a2..a58c12b824df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentschemaregistry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_confluentschemaregistry.go @@ -14,6 +14,14 @@ type ConfluentSchemaRegistry struct { Endpoint *string `json:"endpoint,omitempty"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s ConfluentSchemaRegistry) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = ConfluentSchemaRegistry{} @@ -27,9 +35,10 @@ func (s ConfluentSchemaRegistry) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ConfluentSchemaRegistry: %+v", err) } + decoded["type"] = "ConfluentSchemaRegistry" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecretreferencesecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecretreferencesecretinfo.go index 97fd87695b06..84d5a5c6f790 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecretreferencesecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecretreferencesecretinfo.go @@ -15,6 +15,14 @@ type KeyVaultSecretReferenceSecretInfo struct { Version *string `json:"version,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s KeyVaultSecretReferenceSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = KeyVaultSecretReferenceSecretInfo{} @@ -28,9 +36,10 @@ func (s KeyVaultSecretReferenceSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KeyVaultSecretReferenceSecretInfo: %+v", err) } + decoded["secretType"] = "keyVaultSecretReference" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecreturisecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecreturisecretinfo.go index abd8430f65b1..da7eca865072 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecreturisecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_keyvaultsecreturisecretinfo.go @@ -14,6 +14,14 @@ type KeyVaultSecretUriSecretInfo struct { Value *string `json:"value,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s KeyVaultSecretUriSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = KeyVaultSecretUriSecretInfo{} @@ -27,9 +35,10 @@ func (s KeyVaultSecretUriSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KeyVaultSecretUriSecretInfo: %+v", err) } + decoded["secretType"] = "keyVaultSecretUri" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_linkerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_linkerproperties.go index c3e24a527db3..f595470afb7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_linkerproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_linkerproperties.go @@ -21,10 +21,15 @@ type LinkerProperties struct { var _ json.Unmarshaler = &LinkerProperties{} func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { - type alias LinkerProperties - var decoded alias + var decoded struct { + ClientType *ClientType `json:"clientType,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + Scope *string `json:"scope,omitempty"` + SecretStore *SecretStore `json:"secretStore,omitempty"` + VNetSolution *VNetSolution `json:"vNetSolution,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into LinkerProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ClientType = decoded.ClientType @@ -39,7 +44,7 @@ func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["authInfo"]; ok { - impl, err := unmarshalAuthInfoBaseImplementation(v) + impl, err := UnmarshalAuthInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'AuthInfo' for 'LinkerProperties': %+v", err) } @@ -47,11 +52,12 @@ func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["targetService"]; ok { - impl, err := unmarshalTargetServiceBaseImplementation(v) + impl, err := UnmarshalTargetServiceBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'TargetService' for 'LinkerProperties': %+v", err) } s.TargetService = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretauthinfo.go index 315fc2b1e9a0..2168e26051fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretauthinfo.go @@ -15,6 +15,14 @@ type SecretAuthInfo struct { SecretInfo SecretInfoBase `json:"secretInfo"` // Fields inherited from AuthInfoBase + + AuthType AuthType `json:"authType"` +} + +func (s SecretAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = SecretAuthInfo{} @@ -28,9 +36,10 @@ func (s SecretAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SecretAuthInfo: %+v", err) } + decoded["authType"] = "secret" encoded, err = json.Marshal(decoded) @@ -44,13 +53,16 @@ func (s SecretAuthInfo) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &SecretAuthInfo{} func (s *SecretAuthInfo) UnmarshalJSON(bytes []byte) error { - type alias SecretAuthInfo - var decoded alias + var decoded struct { + Name *string `json:"name,omitempty"` + AuthType AuthType `json:"authType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SecretAuthInfo: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Name = decoded.Name + s.AuthType = decoded.AuthType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -58,11 +70,12 @@ func (s *SecretAuthInfo) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["secretInfo"]; ok { - impl, err := unmarshalSecretInfoBaseImplementation(v) + impl, err := UnmarshalSecretInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SecretInfo' for 'SecretAuthInfo': %+v", err) } s.SecretInfo = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretinfobase.go index e9869b2628b2..1b247bd22f44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_secretinfobase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SecretInfoBase interface { + SecretInfoBase() BaseSecretInfoBaseImpl } -// RawSecretInfoBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SecretInfoBase = BaseSecretInfoBaseImpl{} + +type BaseSecretInfoBaseImpl struct { + SecretType SecretType `json:"secretType"` +} + +func (s BaseSecretInfoBaseImpl) SecretInfoBase() BaseSecretInfoBaseImpl { + return s +} + +var _ SecretInfoBase = RawSecretInfoBaseImpl{} + +// RawSecretInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSecretInfoBaseImpl struct { - Type string - Values map[string]interface{} + secretInfoBase BaseSecretInfoBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawSecretInfoBaseImpl) SecretInfoBase() BaseSecretInfoBaseImpl { + return s.secretInfoBase } -func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) { +func UnmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) return nil, fmt.Errorf("unmarshaling SecretInfoBase into map[string]interface: %+v", err) } - value, ok := temp["secretType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["secretType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "keyVaultSecretReference") { @@ -60,10 +77,15 @@ func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) return out, nil } - out := RawSecretInfoBaseImpl{ - Type: value, - Values: temp, + var parent BaseSecretInfoBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSecretInfoBaseImpl: %+v", err) } - return out, nil + + return RawSecretInfoBaseImpl{ + secretInfoBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalcertificateauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalcertificateauthinfo.go index 874e93d5febe..ef25bbce438c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalcertificateauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalcertificateauthinfo.go @@ -16,6 +16,14 @@ type ServicePrincipalCertificateAuthInfo struct { PrincipalId string `json:"principalId"` // Fields inherited from AuthInfoBase + + AuthType AuthType `json:"authType"` +} + +func (s ServicePrincipalCertificateAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = ServicePrincipalCertificateAuthInfo{} @@ -29,9 +37,10 @@ func (s ServicePrincipalCertificateAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalCertificateAuthInfo: %+v", err) } + decoded["authType"] = "servicePrincipalCertificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalsecretauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalsecretauthinfo.go index 68b5a00ccf04..127eece4582b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalsecretauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_serviceprincipalsecretauthinfo.go @@ -16,6 +16,14 @@ type ServicePrincipalSecretAuthInfo struct { Secret string `json:"secret"` // Fields inherited from AuthInfoBase + + AuthType AuthType `json:"authType"` +} + +func (s ServicePrincipalSecretAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = ServicePrincipalSecretAuthInfo{} @@ -29,9 +37,10 @@ func (s ServicePrincipalSecretAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalSecretAuthInfo: %+v", err) } + decoded["authType"] = "servicePrincipalSecret" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_systemassignedidentityauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_systemassignedidentityauthinfo.go index 607b05fdfe4f..b9ed3e386907 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_systemassignedidentityauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_systemassignedidentityauthinfo.go @@ -13,6 +13,14 @@ var _ AuthInfoBase = SystemAssignedIdentityAuthInfo{} type SystemAssignedIdentityAuthInfo struct { // Fields inherited from AuthInfoBase + + AuthType AuthType `json:"authType"` +} + +func (s SystemAssignedIdentityAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = SystemAssignedIdentityAuthInfo{} @@ -26,9 +34,10 @@ func (s SystemAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SystemAssignedIdentityAuthInfo: %+v", err) } + decoded["authType"] = "systemAssignedIdentity" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_targetservicebase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_targetservicebase.go index 226cec33e165..2bd572fdde8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_targetservicebase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_targetservicebase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TargetServiceBase interface { + TargetServiceBase() BaseTargetServiceBaseImpl } -// RawTargetServiceBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TargetServiceBase = BaseTargetServiceBaseImpl{} + +type BaseTargetServiceBaseImpl struct { + Type TargetServiceType `json:"type"` +} + +func (s BaseTargetServiceBaseImpl) TargetServiceBase() BaseTargetServiceBaseImpl { + return s +} + +var _ TargetServiceBase = RawTargetServiceBaseImpl{} + +// RawTargetServiceBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTargetServiceBaseImpl struct { - Type string - Values map[string]interface{} + targetServiceBase BaseTargetServiceBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawTargetServiceBaseImpl) TargetServiceBase() BaseTargetServiceBaseImpl { + return s.targetServiceBase } -func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, error) { +func UnmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, return nil, fmt.Errorf("unmarshaling TargetServiceBase into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureResource") { @@ -60,10 +77,15 @@ func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, return out, nil } - out := RawTargetServiceBaseImpl{ - Type: value, - Values: temp, + var parent BaseTargetServiceBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTargetServiceBaseImpl: %+v", err) } - return out, nil + + return RawTargetServiceBaseImpl{ + targetServiceBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_userassignedidentityauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_userassignedidentityauthinfo.go index 2202d6498670..94709ce88c1b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_userassignedidentityauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_userassignedidentityauthinfo.go @@ -15,6 +15,14 @@ type UserAssignedIdentityAuthInfo struct { SubscriptionId *string `json:"subscriptionId,omitempty"` // Fields inherited from AuthInfoBase + + AuthType AuthType `json:"authType"` +} + +func (s UserAssignedIdentityAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthType: s.AuthType, + } } var _ json.Marshaler = UserAssignedIdentityAuthInfo{} @@ -28,9 +36,10 @@ func (s UserAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling UserAssignedIdentityAuthInfo: %+v", err) } + decoded["authType"] = "userAssignedIdentity" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_valuesecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_valuesecretinfo.go index a10b8af91267..b74d77369892 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_valuesecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/model_valuesecretinfo.go @@ -14,6 +14,14 @@ type ValueSecretInfo struct { Value *string `json:"value,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s ValueSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = ValueSecretInfo{} @@ -27,9 +35,10 @@ func (s ValueSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ValueSecretInfo: %+v", err) } + decoded["secretType"] = "rawValue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/version.go index b0046c85418a..4af28a6800bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2022-05-01/links/version.go @@ -1,12 +1,10 @@ package links -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/links/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/links/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/README.md index fa140a90ca63..b0024da6e56d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker` Documentation -The `servicelinker` SDK allows for interaction with the Azure Resource Manager Service `servicelinker` (API Version `2024-04-01`). +The `servicelinker` SDK allows for interaction with Azure Resource Manager `servicelinker` (API Version `2024-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := servicelinker.NewConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "connectorValue") +id := servicelinker.NewConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location", "connectorName") payload := servicelinker.LinkerResource{ // ... @@ -42,7 +42,7 @@ if err := client.ConnectorCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servicelinker.NewConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "connectorValue") +id := servicelinker.NewConnectorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location", "connectorName") read, err := client.ConnectorGet(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := servicelinker.NewLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := servicelinker.NewLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "location") // alternatively `client.ConnectorList(ctx, id)` can be used to do batched pagination items, err := client.ConnectorListComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := servicelinker.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := servicelinker.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") payload := servicelinker.LinkerResource{ // ... @@ -92,7 +92,7 @@ if err := client.LinkerCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := servicelinker.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerValue") +id := servicelinker.NewScopedLinkerID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "linkerName") read, err := client.LinkerGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/client.go index b55ab79fe84d..bce1af86af42 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/client.go @@ -15,7 +15,7 @@ type ServiceLinkerClient struct { } func NewServiceLinkerClientWithBaseURI(sdkApi sdkEnv.Api) (*ServiceLinkerClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servicelinker", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servicelinker", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServiceLinkerClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_connector.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_connector.go index cf482b00b858..fe72fde3441c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_connector.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_connector.go @@ -44,7 +44,7 @@ func ParseConnectorID(input string) (*ConnectorId, error) { } id := ConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectorIDInsensitively(input string) (*ConnectorId, error) { } id := ConnectorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ConnectorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceLinker", "Microsoft.ServiceLinker", "Microsoft.ServiceLinker"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticConnectors", "connectors", "connectors"), - resourceids.UserSpecifiedSegment("connectorName", "connectorValue"), + resourceids.UserSpecifiedSegment("connectorName", "connectorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_location.go index 93f09da17cdb..9d5d09f4c53a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_location.go @@ -42,7 +42,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceLinker", "Microsoft.ServiceLinker", "Microsoft.ServiceLinker"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_scopedlinker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_scopedlinker.go index 5673d7405015..c23a9135ec32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_scopedlinker.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/id_scopedlinker.go @@ -40,7 +40,7 @@ func ParseScopedLinkerID(input string) (*ScopedLinkerId, error) { } id := ScopedLinkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseScopedLinkerIDInsensitively(input string) (*ScopedLinkerId, error) { } id := ScopedLinkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -106,7 +106,7 @@ func (id ScopedLinkerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceLinker", "Microsoft.ServiceLinker", "Microsoft.ServiceLinker"), resourceids.StaticSegment("staticLinkers", "linkers", "linkers"), - resourceids.UserSpecifiedSegment("linkerName", "linkerValue"), + resourceids.UserSpecifiedSegment("linkerName", "linkerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorget.go index a38d945229ab..563973d103ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_connectorget.go @@ -45,7 +45,6 @@ func (c ServiceLinkerClient) ConnectorGet(ctx context.Context, id ConnectorId) ( var model LinkerResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerget.go index baa9bec34964..61f8cc1a8305 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/method_linkerget.go @@ -45,7 +45,6 @@ func (c ServiceLinkerClient) LinkerGet(ctx context.Context, id ScopedLinkerId) ( var model LinkerResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_accesskeyinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_accesskeyinfobase.go index 91d2ed71ebc8..2eb0e204a2b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_accesskeyinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_accesskeyinfobase.go @@ -14,7 +14,16 @@ type AccessKeyInfoBase struct { Permissions *[]AccessKeyPermissions `json:"permissions,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s AccessKeyInfoBase) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = AccessKeyInfoBase{} @@ -28,9 +37,10 @@ func (s AccessKeyInfoBase) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AccessKeyInfoBase: %+v", err) } + decoded["authType"] = "accessKey" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_authinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_authinfobase.go index 7dd53251e68f..650ff51476ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_authinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_authinfobase.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AuthInfoBase interface { + AuthInfoBase() BaseAuthInfoBaseImpl } -// RawAuthInfoBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AuthInfoBase = BaseAuthInfoBaseImpl{} + +type BaseAuthInfoBaseImpl struct { + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s BaseAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl { + return s +} + +var _ AuthInfoBase = RawAuthInfoBaseImpl{} + +// RawAuthInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAuthInfoBaseImpl struct { - Type string - Values map[string]interface{} + authInfoBase BaseAuthInfoBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawAuthInfoBaseImpl) AuthInfoBase() BaseAuthInfoBaseImpl { + return s.authInfoBase } -func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { +func UnmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { return nil, fmt.Errorf("unmarshaling AuthInfoBase into map[string]interface: %+v", err) } - value, ok := temp["authType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["authType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "accessKey") { @@ -100,10 +118,15 @@ func unmarshalAuthInfoBaseImplementation(input []byte) (AuthInfoBase, error) { return out, nil } - out := RawAuthInfoBaseImpl{ - Type: value, - Values: temp, + var parent BaseAuthInfoBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAuthInfoBaseImpl: %+v", err) } - return out, nil + + return RawAuthInfoBaseImpl{ + authInfoBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azurekeyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azurekeyvaultproperties.go index 68ba606d2167..6330e655cd23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azurekeyvaultproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azurekeyvaultproperties.go @@ -14,6 +14,14 @@ type AzureKeyVaultProperties struct { ConnectAsKubernetesCsiDriver *bool `json:"connectAsKubernetesCsiDriver,omitempty"` // Fields inherited from AzureResourcePropertiesBase + + Type AzureResourceType `json:"type"` +} + +func (s AzureKeyVaultProperties) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return BaseAzureResourcePropertiesBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureKeyVaultProperties{} @@ -27,9 +35,10 @@ func (s AzureKeyVaultProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureKeyVaultProperties: %+v", err) } + decoded["type"] = "KeyVault" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresource.go index ce0dcb00a30c..c73e464ca5a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresource.go @@ -15,6 +15,14 @@ type AzureResource struct { ResourceProperties AzureResourcePropertiesBase `json:"resourceProperties"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s AzureResource) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureResource{} @@ -28,9 +36,10 @@ func (s AzureResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureResource: %+v", err) } + decoded["type"] = "AzureResource" encoded, err = json.Marshal(decoded) @@ -44,13 +53,16 @@ func (s AzureResource) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &AzureResource{} func (s *AzureResource) UnmarshalJSON(bytes []byte) error { - type alias AzureResource - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Type TargetServiceType `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into AzureResource: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -58,11 +70,12 @@ func (s *AzureResource) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["resourceProperties"]; ok { - impl, err := unmarshalAzureResourcePropertiesBaseImplementation(v) + impl, err := UnmarshalAzureResourcePropertiesBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'AzureResource': %+v", err) } s.ResourceProperties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresourcepropertiesbase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresourcepropertiesbase.go index 8770e9d89a1c..e92f5fb1272d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresourcepropertiesbase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_azureresourcepropertiesbase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type AzureResourcePropertiesBase interface { + AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl } -// RawAzureResourcePropertiesBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ AzureResourcePropertiesBase = BaseAzureResourcePropertiesBaseImpl{} + +type BaseAzureResourcePropertiesBaseImpl struct { + Type AzureResourceType `json:"type"` +} + +func (s BaseAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return s +} + +var _ AzureResourcePropertiesBase = RawAzureResourcePropertiesBaseImpl{} + +// RawAzureResourcePropertiesBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawAzureResourcePropertiesBaseImpl struct { - Type string - Values map[string]interface{} + azureResourcePropertiesBase BaseAzureResourcePropertiesBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawAzureResourcePropertiesBaseImpl) AzureResourcePropertiesBase() BaseAzureResourcePropertiesBaseImpl { + return s.azureResourcePropertiesBase } -func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureResourcePropertiesBase, error) { +func UnmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureResourcePropertiesBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureReso return nil, fmt.Errorf("unmarshaling AzureResourcePropertiesBase into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "KeyVault") { @@ -44,10 +61,15 @@ func unmarshalAzureResourcePropertiesBaseImplementation(input []byte) (AzureReso return out, nil } - out := RawAzureResourcePropertiesBaseImpl{ - Type: value, - Values: temp, + var parent BaseAzureResourcePropertiesBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseAzureResourcePropertiesBaseImpl: %+v", err) } - return out, nil + + return RawAzureResourcePropertiesBaseImpl{ + azureResourcePropertiesBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentbootstrapserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentbootstrapserver.go index f35c8799a1f7..44e86fdb4e32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentbootstrapserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentbootstrapserver.go @@ -14,6 +14,14 @@ type ConfluentBootstrapServer struct { Endpoint *string `json:"endpoint,omitempty"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s ConfluentBootstrapServer) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = ConfluentBootstrapServer{} @@ -27,9 +35,10 @@ func (s ConfluentBootstrapServer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ConfluentBootstrapServer: %+v", err) } + decoded["type"] = "ConfluentBootstrapServer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentschemaregistry.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentschemaregistry.go index 5d5bfe99668c..5344db21f62d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentschemaregistry.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_confluentschemaregistry.go @@ -14,6 +14,14 @@ type ConfluentSchemaRegistry struct { Endpoint *string `json:"endpoint,omitempty"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s ConfluentSchemaRegistry) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = ConfluentSchemaRegistry{} @@ -27,9 +35,10 @@ func (s ConfluentSchemaRegistry) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ConfluentSchemaRegistry: %+v", err) } + decoded["type"] = "ConfluentSchemaRegistry" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_easyauthmicrosoftentraidauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_easyauthmicrosoftentraidauthinfo.go index dd37c2831c4a..7ce75fff72df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_easyauthmicrosoftentraidauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_easyauthmicrosoftentraidauthinfo.go @@ -16,7 +16,16 @@ type EasyAuthMicrosoftEntraIDAuthInfo struct { Secret *string `json:"secret,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s EasyAuthMicrosoftEntraIDAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = EasyAuthMicrosoftEntraIDAuthInfo{} @@ -30,9 +39,10 @@ func (s EasyAuthMicrosoftEntraIDAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EasyAuthMicrosoftEntraIDAuthInfo: %+v", err) } + decoded["authType"] = "easyAuthMicrosoftEntraID" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecretreferencesecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecretreferencesecretinfo.go index ba11cd6c5369..fbe7039ab556 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecretreferencesecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecretreferencesecretinfo.go @@ -15,6 +15,14 @@ type KeyVaultSecretReferenceSecretInfo struct { Version *string `json:"version,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s KeyVaultSecretReferenceSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = KeyVaultSecretReferenceSecretInfo{} @@ -28,9 +36,10 @@ func (s KeyVaultSecretReferenceSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KeyVaultSecretReferenceSecretInfo: %+v", err) } + decoded["secretType"] = "keyVaultSecretReference" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecreturisecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecreturisecretinfo.go index 31c102db91cd..73f67f23d0da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecreturisecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_keyvaultsecreturisecretinfo.go @@ -14,6 +14,14 @@ type KeyVaultSecretUriSecretInfo struct { Value *string `json:"value,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s KeyVaultSecretUriSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = KeyVaultSecretUriSecretInfo{} @@ -27,9 +35,10 @@ func (s KeyVaultSecretUriSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling KeyVaultSecretUriSecretInfo: %+v", err) } + decoded["secretType"] = "keyVaultSecretUri" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_linkerproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_linkerproperties.go index add34de01cd7..4816d9222e98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_linkerproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_linkerproperties.go @@ -23,10 +23,17 @@ type LinkerProperties struct { var _ json.Unmarshaler = &LinkerProperties{} func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { - type alias LinkerProperties - var decoded alias + var decoded struct { + ClientType *ClientType `json:"clientType,omitempty"` + ConfigurationInfo *ConfigurationInfo `json:"configurationInfo,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + PublicNetworkSolution *PublicNetworkSolution `json:"publicNetworkSolution,omitempty"` + Scope *string `json:"scope,omitempty"` + SecretStore *SecretStore `json:"secretStore,omitempty"` + VNetSolution *VNetSolution `json:"vNetSolution,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into LinkerProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.ClientType = decoded.ClientType @@ -43,7 +50,7 @@ func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["authInfo"]; ok { - impl, err := unmarshalAuthInfoBaseImplementation(v) + impl, err := UnmarshalAuthInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'AuthInfo' for 'LinkerProperties': %+v", err) } @@ -51,11 +58,12 @@ func (s *LinkerProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["targetService"]; ok { - impl, err := unmarshalTargetServiceBaseImplementation(v) + impl, err := UnmarshalTargetServiceBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'TargetService' for 'LinkerProperties': %+v", err) } s.TargetService = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretauthinfo.go index 9e56a8f74eb2..a147dc94b570 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretauthinfo.go @@ -15,7 +15,16 @@ type SecretAuthInfo struct { SecretInfo SecretInfoBase `json:"secretInfo"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s SecretAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = SecretAuthInfo{} @@ -29,9 +38,10 @@ func (s SecretAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SecretAuthInfo: %+v", err) } + decoded["authType"] = "secret" encoded, err = json.Marshal(decoded) @@ -45,14 +55,18 @@ func (s SecretAuthInfo) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &SecretAuthInfo{} func (s *SecretAuthInfo) UnmarshalJSON(bytes []byte) error { - type alias SecretAuthInfo - var decoded alias + var decoded struct { + Name *string `json:"name,omitempty"` + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SecretAuthInfo: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.AuthMode = decoded.AuthMode s.Name = decoded.Name + s.AuthMode = decoded.AuthMode + s.AuthType = decoded.AuthType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -60,11 +74,12 @@ func (s *SecretAuthInfo) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["secretInfo"]; ok { - impl, err := unmarshalSecretInfoBaseImplementation(v) + impl, err := UnmarshalSecretInfoBaseImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SecretInfo' for 'SecretAuthInfo': %+v", err) } s.SecretInfo = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretinfobase.go index 2f256c61e4a8..ef1e1ad8c423 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretinfobase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_secretinfobase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SecretInfoBase interface { + SecretInfoBase() BaseSecretInfoBaseImpl } -// RawSecretInfoBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SecretInfoBase = BaseSecretInfoBaseImpl{} + +type BaseSecretInfoBaseImpl struct { + SecretType SecretType `json:"secretType"` +} + +func (s BaseSecretInfoBaseImpl) SecretInfoBase() BaseSecretInfoBaseImpl { + return s +} + +var _ SecretInfoBase = RawSecretInfoBaseImpl{} + +// RawSecretInfoBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSecretInfoBaseImpl struct { - Type string - Values map[string]interface{} + secretInfoBase BaseSecretInfoBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawSecretInfoBaseImpl) SecretInfoBase() BaseSecretInfoBaseImpl { + return s.secretInfoBase } -func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) { +func UnmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) return nil, fmt.Errorf("unmarshaling SecretInfoBase into map[string]interface: %+v", err) } - value, ok := temp["secretType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["secretType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "keyVaultSecretReference") { @@ -60,10 +77,15 @@ func unmarshalSecretInfoBaseImplementation(input []byte) (SecretInfoBase, error) return out, nil } - out := RawSecretInfoBaseImpl{ - Type: value, - Values: temp, + var parent BaseSecretInfoBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSecretInfoBaseImpl: %+v", err) } - return out, nil + + return RawSecretInfoBaseImpl{ + secretInfoBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_selfhostedserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_selfhostedserver.go index d4e9856e1b12..2c37e868571d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_selfhostedserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_selfhostedserver.go @@ -14,6 +14,14 @@ type SelfHostedServer struct { Endpoint *string `json:"endpoint,omitempty"` // Fields inherited from TargetServiceBase + + Type TargetServiceType `json:"type"` +} + +func (s SelfHostedServer) TargetServiceBase() BaseTargetServiceBaseImpl { + return BaseTargetServiceBaseImpl{ + Type: s.Type, + } } var _ json.Marshaler = SelfHostedServer{} @@ -27,9 +35,10 @@ func (s SelfHostedServer) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SelfHostedServer: %+v", err) } + decoded["type"] = "SelfHostedServer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalcertificateauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalcertificateauthinfo.go index 3301f2965c29..98ff83b797e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalcertificateauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalcertificateauthinfo.go @@ -18,7 +18,16 @@ type ServicePrincipalCertificateAuthInfo struct { Roles *[]string `json:"roles,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s ServicePrincipalCertificateAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = ServicePrincipalCertificateAuthInfo{} @@ -32,9 +41,10 @@ func (s ServicePrincipalCertificateAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalCertificateAuthInfo: %+v", err) } + decoded["authType"] = "servicePrincipalCertificate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalsecretauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalsecretauthinfo.go index e8761f65dd45..6bd6617c6eb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalsecretauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_serviceprincipalsecretauthinfo.go @@ -19,7 +19,16 @@ type ServicePrincipalSecretAuthInfo struct { UserName *string `json:"userName,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s ServicePrincipalSecretAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = ServicePrincipalSecretAuthInfo{} @@ -33,9 +42,10 @@ func (s ServicePrincipalSecretAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServicePrincipalSecretAuthInfo: %+v", err) } + decoded["authType"] = "servicePrincipalSecret" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_systemassignedidentityauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_systemassignedidentityauthinfo.go index c50f751bd8e3..451a99507a27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_systemassignedidentityauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_systemassignedidentityauthinfo.go @@ -16,7 +16,16 @@ type SystemAssignedIdentityAuthInfo struct { UserName *string `json:"userName,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s SystemAssignedIdentityAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = SystemAssignedIdentityAuthInfo{} @@ -30,9 +39,10 @@ func (s SystemAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SystemAssignedIdentityAuthInfo: %+v", err) } + decoded["authType"] = "systemAssignedIdentity" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_targetservicebase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_targetservicebase.go index 7a5efdef9e5f..be8c89ac3a72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_targetservicebase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_targetservicebase.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type TargetServiceBase interface { + TargetServiceBase() BaseTargetServiceBaseImpl } -// RawTargetServiceBaseImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ TargetServiceBase = BaseTargetServiceBaseImpl{} + +type BaseTargetServiceBaseImpl struct { + Type TargetServiceType `json:"type"` +} + +func (s BaseTargetServiceBaseImpl) TargetServiceBase() BaseTargetServiceBaseImpl { + return s +} + +var _ TargetServiceBase = RawTargetServiceBaseImpl{} + +// RawTargetServiceBaseImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawTargetServiceBaseImpl struct { - Type string - Values map[string]interface{} + targetServiceBase BaseTargetServiceBaseImpl + Type string + Values map[string]interface{} +} + +func (s RawTargetServiceBaseImpl) TargetServiceBase() BaseTargetServiceBaseImpl { + return s.targetServiceBase } -func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, error) { +func UnmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, return nil, fmt.Errorf("unmarshaling TargetServiceBase into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureResource") { @@ -68,10 +85,15 @@ func unmarshalTargetServiceBaseImplementation(input []byte) (TargetServiceBase, return out, nil } - out := RawTargetServiceBaseImpl{ - Type: value, - Values: temp, + var parent BaseTargetServiceBaseImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseTargetServiceBaseImpl: %+v", err) } - return out, nil + + return RawTargetServiceBaseImpl{ + targetServiceBase: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_useraccountauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_useraccountauthinfo.go index ca69829596ea..5afc13a96fd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_useraccountauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_useraccountauthinfo.go @@ -17,7 +17,16 @@ type UserAccountAuthInfo struct { UserName *string `json:"userName,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s UserAccountAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = UserAccountAuthInfo{} @@ -31,9 +40,10 @@ func (s UserAccountAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling UserAccountAuthInfo: %+v", err) } + decoded["authType"] = "userAccount" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_userassignedidentityauthinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_userassignedidentityauthinfo.go index ac394061c66a..f47d06c3b3d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_userassignedidentityauthinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_userassignedidentityauthinfo.go @@ -18,7 +18,16 @@ type UserAssignedIdentityAuthInfo struct { UserName *string `json:"userName,omitempty"` // Fields inherited from AuthInfoBase + AuthMode *AuthMode `json:"authMode,omitempty"` + AuthType AuthType `json:"authType"` +} + +func (s UserAssignedIdentityAuthInfo) AuthInfoBase() BaseAuthInfoBaseImpl { + return BaseAuthInfoBaseImpl{ + AuthMode: s.AuthMode, + AuthType: s.AuthType, + } } var _ json.Marshaler = UserAssignedIdentityAuthInfo{} @@ -32,9 +41,10 @@ func (s UserAssignedIdentityAuthInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling UserAssignedIdentityAuthInfo: %+v", err) } + decoded["authType"] = "userAssignedIdentity" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_valuesecretinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_valuesecretinfo.go index 3c638a82a47c..c6f3d5e30f2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_valuesecretinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/model_valuesecretinfo.go @@ -14,6 +14,14 @@ type ValueSecretInfo struct { Value *string `json:"value,omitempty"` // Fields inherited from SecretInfoBase + + SecretType SecretType `json:"secretType"` +} + +func (s ValueSecretInfo) SecretInfoBase() BaseSecretInfoBaseImpl { + return BaseSecretInfoBaseImpl{ + SecretType: s.SecretType, + } } var _ json.Marshaler = ValueSecretInfo{} @@ -27,9 +35,10 @@ func (s ValueSecretInfo) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ValueSecretInfo: %+v", err) } + decoded["secretType"] = "rawValue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/version.go index 64e6feca9c16..f4b01fe09f3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicelinker/2024-04-01/servicelinker/version.go @@ -1,12 +1,10 @@ package servicelinker -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2024-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servicelinker/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servicelinker/2024-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/README.md index f3a0d0737081..25f6ed773de6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface` Documentation -The `associationsinterface` SDK allows for interaction with the Azure Resource Manager Service `servicenetworking` (API Version `2023-11-01`). +The `associationsinterface` SDK allows for interaction with Azure Resource Manager `servicenetworking` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue") +id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "associationName") payload := associationsinterface.Association{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue") +id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "associationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue") +id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "associationName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := associationsinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := associationsinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") // alternatively `client.ListByTrafficController(ctx, id)` can be used to do batched pagination items, err := client.ListByTrafficControllerComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "associationValue") +id := associationsinterface.NewAssociationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "associationName") payload := associationsinterface.AssociationUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/client.go index 3a72a2144732..560416300366 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/client.go @@ -15,7 +15,7 @@ type AssociationsInterfaceClient struct { } func NewAssociationsInterfaceClientWithBaseURI(sdkApi sdkEnv.Api) (*AssociationsInterfaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "associationsinterface", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "associationsinterface", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AssociationsInterfaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_association.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_association.go index 6bc9a61764d9..f9dc7107c007 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_association.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_association.go @@ -44,7 +44,7 @@ func ParseAssociationID(input string) (*AssociationId, error) { } id := AssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAssociationIDInsensitively(input string) (*AssociationId, error) { } id := AssociationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AssociationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceNetworking", "Microsoft.ServiceNetworking", "Microsoft.ServiceNetworking"), resourceids.StaticSegment("staticTrafficControllers", "trafficControllers", "trafficControllers"), - resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerValue"), + resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerName"), resourceids.StaticSegment("staticAssociations", "associations", "associations"), - resourceids.UserSpecifiedSegment("associationName", "associationValue"), + resourceids.UserSpecifiedSegment("associationName", "associationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_trafficcontroller.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_trafficcontroller.go index 38f10cc04024..ce9c4da0d6c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_trafficcontroller.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/id_trafficcontroller.go @@ -42,7 +42,7 @@ func ParseTrafficControllerID(input string) (*TrafficControllerId, error) { } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTrafficControllerIDInsensitively(input string) (*TrafficControllerId, } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TrafficControllerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceNetworking", "Microsoft.ServiceNetworking", "Microsoft.ServiceNetworking"), resourceids.StaticSegment("staticTrafficControllers", "trafficControllers", "trafficControllers"), - resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerValue"), + resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_get.go index 93fa5a358c27..4ba57d2c8563 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_get.go @@ -45,7 +45,6 @@ func (c AssociationsInterfaceClient) Get(ctx context.Context, id AssociationId) var model Association result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_update.go index 6836c655a0a3..dab57f9779f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/method_update.go @@ -49,7 +49,6 @@ func (c AssociationsInterfaceClient) Update(ctx context.Context, id AssociationI var model Association result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/version.go index e61866e435f4..f907fe63e16a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/associationsinterface/version.go @@ -1,12 +1,10 @@ package associationsinterface -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/associationsinterface/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/associationsinterface/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/README.md index ab186331d633..b1e5a1d05d1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface` Documentation -The `frontendsinterface` SDK allows for interaction with the Azure Resource Manager Service `servicenetworking` (API Version `2023-11-01`). +The `frontendsinterface` SDK allows for interaction with Azure Resource Manager `servicenetworking` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "frontendValue") +id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "frontendName") payload := frontendsinterface.Frontend{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "frontendValue") +id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "frontendName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "frontendValue") +id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "frontendName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := frontendsinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := frontendsinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") // alternatively `client.ListByTrafficController(ctx, id)` can be used to do batched pagination items, err := client.ListByTrafficControllerComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue", "frontendValue") +id := frontendsinterface.NewFrontendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName", "frontendName") payload := frontendsinterface.FrontendUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/client.go index ced20e82fea8..77cd97766d3b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/client.go @@ -15,7 +15,7 @@ type FrontendsInterfaceClient struct { } func NewFrontendsInterfaceClientWithBaseURI(sdkApi sdkEnv.Api) (*FrontendsInterfaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "frontendsinterface", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "frontendsinterface", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FrontendsInterfaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_frontend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_frontend.go index 58376b02e14b..8432266caae8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_frontend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_frontend.go @@ -44,7 +44,7 @@ func ParseFrontendID(input string) (*FrontendId, error) { } id := FrontendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFrontendIDInsensitively(input string) (*FrontendId, error) { } id := FrontendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FrontendId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceNetworking", "Microsoft.ServiceNetworking", "Microsoft.ServiceNetworking"), resourceids.StaticSegment("staticTrafficControllers", "trafficControllers", "trafficControllers"), - resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerValue"), + resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerName"), resourceids.StaticSegment("staticFrontends", "frontends", "frontends"), - resourceids.UserSpecifiedSegment("frontendName", "frontendValue"), + resourceids.UserSpecifiedSegment("frontendName", "frontendName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_trafficcontroller.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_trafficcontroller.go index 2d8a198688bc..be465042d572 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_trafficcontroller.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/id_trafficcontroller.go @@ -42,7 +42,7 @@ func ParseTrafficControllerID(input string) (*TrafficControllerId, error) { } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTrafficControllerIDInsensitively(input string) (*TrafficControllerId, } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TrafficControllerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceNetworking", "Microsoft.ServiceNetworking", "Microsoft.ServiceNetworking"), resourceids.StaticSegment("staticTrafficControllers", "trafficControllers", "trafficControllers"), - resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerValue"), + resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_get.go index b3cc78b78d61..983aac9a8740 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_get.go @@ -45,7 +45,6 @@ func (c FrontendsInterfaceClient) Get(ctx context.Context, id FrontendId) (resul var model Frontend result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_update.go index 10e722a3212e..a4c8148292c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/method_update.go @@ -49,7 +49,6 @@ func (c FrontendsInterfaceClient) Update(ctx context.Context, id FrontendId, inp var model Frontend result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/version.go index db233385e8ef..7ddf1e63b067 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/frontendsinterface/version.go @@ -1,12 +1,10 @@ package frontendsinterface -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/frontendsinterface/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/frontendsinterface/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md index c85867edcbfa..04214de60801 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface` Documentation -The `trafficcontrollerinterface` SDK allows for interaction with the Azure Resource Manager Service `servicenetworking` (API Version `2023-11-01`). +The `trafficcontrollerinterface` SDK allows for interaction with Azure Resource Manager `servicenetworking` (API Version `2023-11-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") payload := trafficcontrollerinterface.TrafficController{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerValue") +id := trafficcontrollerinterface.NewTrafficControllerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficControllerName") payload := trafficcontrollerinterface.TrafficControllerUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/client.go index 4396983ea366..2cf5ce133587 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/client.go @@ -15,7 +15,7 @@ type TrafficControllerInterfaceClient struct { } func NewTrafficControllerInterfaceClientWithBaseURI(sdkApi sdkEnv.Api) (*TrafficControllerInterfaceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "trafficcontrollerinterface", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "trafficcontrollerinterface", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TrafficControllerInterfaceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/id_trafficcontroller.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/id_trafficcontroller.go index 18a50663371e..6bd9619a01c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/id_trafficcontroller.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/id_trafficcontroller.go @@ -42,7 +42,7 @@ func ParseTrafficControllerID(input string) (*TrafficControllerId, error) { } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTrafficControllerIDInsensitively(input string) (*TrafficControllerId, } id := TrafficControllerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TrafficControllerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftServiceNetworking", "Microsoft.ServiceNetworking", "Microsoft.ServiceNetworking"), resourceids.StaticSegment("staticTrafficControllers", "trafficControllers", "trafficControllers"), - resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerValue"), + resourceids.UserSpecifiedSegment("trafficControllerName", "trafficControllerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_get.go index 4a01f242f3a0..076825ace84b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_get.go @@ -45,7 +45,6 @@ func (c TrafficControllerInterfaceClient) Get(ctx context.Context, id TrafficCon var model TrafficController result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_update.go index d5e058059cd9..45a38d199f64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/method_update.go @@ -49,7 +49,6 @@ func (c TrafficControllerInterfaceClient) Update(ctx context.Context, id Traffic var model TrafficController result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/version.go index ca9d4837ab46..46ca202f1685 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/servicenetworking/2023-11-01/trafficcontrollerinterface/version.go @@ -1,12 +1,10 @@ package trafficcontrollerinterface -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-11-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/trafficcontrollerinterface/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/trafficcontrollerinterface/2023-11-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/README.md index 1d2fac260efc..802e758f1746 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr` Documentation -The `signalr` SDK allows for interaction with the Azure Resource Manager Service `signalr` (API Version `2023-02-01`). +The `signalr` SDK allows for interaction with Azure Resource Manager `signalr` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := signalr.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := signalr.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := signalr.NameAvailabilityParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := signalr.SignalRResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customCertificateValue") +id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") payload := signalr.CustomCertificate{ // ... @@ -80,7 +80,7 @@ if err := client.CustomCertificatesCreateOrUpdateThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customCertificateValue") +id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") read, err := client.CustomCertificatesDelete(ctx, id) if err != nil { @@ -96,7 +96,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customCertificateValue") +id := signalr.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") read, err := client.CustomCertificatesGet(ctx, id) if err != nil { @@ -112,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.CustomCertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CustomCertificatesListComplete(ctx, id) @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customDomainValue") +id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") payload := signalr.CustomDomain{ // ... @@ -146,7 +146,7 @@ if err := client.CustomDomainsCreateOrUpdateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customDomainValue") +id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -158,7 +158,7 @@ if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "customDomainValue") +id := signalr.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") read, err := client.CustomDomainsGet(ctx, id) if err != nil { @@ -174,7 +174,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.CustomDomainsList(ctx, id)` can be used to do batched pagination items, err := client.CustomDomainsListComplete(ctx, id) @@ -191,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -253,7 +253,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -269,7 +269,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.ListSkus(ctx, id)` can be used to do batched pagination items, err := client.ListSkusComplete(ctx, id) @@ -286,7 +286,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "privateEndpointConnectionValue") +id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") if err := client.PrivateEndpointConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -298,7 +298,7 @@ if err := client.PrivateEndpointConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "privateEndpointConnectionValue") +id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") read, err := client.PrivateEndpointConnectionsGet(ctx, id) if err != nil { @@ -314,7 +314,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.PrivateEndpointConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.PrivateEndpointConnectionsListComplete(ctx, id) @@ -331,7 +331,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "privateEndpointConnectionValue") +id := signalr.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") payload := signalr.PrivateEndpointConnection{ // ... @@ -352,7 +352,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.PrivateLinkResourcesList(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkResourcesListComplete(ctx, id) @@ -369,7 +369,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := signalr.RegenerateKeyParameters{ // ... @@ -386,7 +386,7 @@ if err := client.RegenerateKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -398,7 +398,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "sharedPrivateLinkResourceValue") +id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") payload := signalr.SharedPrivateLinkResource{ // ... @@ -415,7 +415,7 @@ if err := client.SharedPrivateLinkResourcesCreateOrUpdateThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "sharedPrivateLinkResourceValue") +id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") if err := client.SharedPrivateLinkResourcesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -427,7 +427,7 @@ if err := client.SharedPrivateLinkResourcesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue", "sharedPrivateLinkResourceValue") +id := signalr.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") read, err := client.SharedPrivateLinkResourcesGet(ctx, id) if err != nil { @@ -443,7 +443,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.SharedPrivateLinkResourcesList(ctx, id)` can be used to do batched pagination items, err := client.SharedPrivateLinkResourcesListComplete(ctx, id) @@ -460,7 +460,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "signalRValue") +id := signalr.NewSignalRID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := signalr.SignalRResource{ // ... @@ -477,7 +477,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := signalr.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := signalr.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.UsagesList(ctx, id)` can be used to do batched pagination items, err := client.UsagesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/client.go index 1ffbc8a319bb..4717d8b7d707 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/client.go @@ -15,7 +15,7 @@ type SignalRClient struct { } func NewSignalRClientWithBaseURI(sdkApi sdkEnv.Api) (*SignalRClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "signalr", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "signalr", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SignalRClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customcertificate.go index 82841ff421fe..aa9014105a66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customcertificate.go @@ -44,7 +44,7 @@ func ParseCustomCertificateID(input string) (*CustomCertificateId, error) { } id := CustomCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCustomCertificateIDInsensitively(input string) (*CustomCertificateId, } id := CustomCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CustomCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticSignalR", "signalR", "signalR"), - resourceids.UserSpecifiedSegment("signalRName", "signalRValue"), + resourceids.UserSpecifiedSegment("signalRName", "resourceName"), resourceids.StaticSegment("staticCustomCertificates", "customCertificates", "customCertificates"), - resourceids.UserSpecifiedSegment("customCertificateName", "customCertificateValue"), + resourceids.UserSpecifiedSegment("customCertificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customdomain.go index a96bdc49a7f9..8c85fb094fe4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customdomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_customdomain.go @@ -44,7 +44,7 @@ func ParseCustomDomainID(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCustomDomainIDInsensitively(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CustomDomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticSignalR", "signalR", "signalR"), - resourceids.UserSpecifiedSegment("signalRName", "signalRValue"), + resourceids.UserSpecifiedSegment("signalRName", "resourceName"), resourceids.StaticSegment("staticCustomDomains", "customDomains", "customDomains"), - resourceids.UserSpecifiedSegment("customDomainName", "customDomainValue"), + resourceids.UserSpecifiedSegment("customDomainName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_location.go index 03b35c694c8a..d0bc29ecf7e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_privateendpointconnection.go index 3ae4e64f3d38..8ff61f8ac1c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticSignalR", "signalR", "signalR"), - resourceids.UserSpecifiedSegment("signalRName", "signalRValue"), + resourceids.UserSpecifiedSegment("signalRName", "resourceName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_sharedprivatelinkresource.go index 6fce0e78e3e2..8434a97dc986 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_sharedprivatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_sharedprivatelinkresource.go @@ -44,7 +44,7 @@ func ParseSharedPrivateLinkResourceID(input string) (*SharedPrivateLinkResourceI } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSharedPrivateLinkResourceIDInsensitively(input string) (*SharedPrivate } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SharedPrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticSignalR", "signalR", "signalR"), - resourceids.UserSpecifiedSegment("signalRName", "signalRValue"), + resourceids.UserSpecifiedSegment("signalRName", "resourceName"), resourceids.StaticSegment("staticSharedPrivateLinkResources", "sharedPrivateLinkResources", "sharedPrivateLinkResources"), - resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceValue"), + resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_signalr.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_signalr.go index 3c2909478d79..355dc0b4f670 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_signalr.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/id_signalr.go @@ -42,7 +42,7 @@ func ParseSignalRID(input string) (*SignalRId, error) { } id := SignalRId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSignalRIDInsensitively(input string) (*SignalRId, error) { } id := SignalRId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SignalRId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticSignalR", "signalR", "signalR"), - resourceids.UserSpecifiedSegment("signalRName", "signalRValue"), + resourceids.UserSpecifiedSegment("signalRName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_checknameavailability.go index bcd49e5f1c1b..5270d0bce114 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c SignalRClient) CheckNameAvailability(ctx context.Context, id LocationId, var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customcertificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customcertificatesget.go index d578f431c419..2d1423b5b36c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customcertificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customcertificatesget.go @@ -45,7 +45,6 @@ func (c SignalRClient) CustomCertificatesGet(ctx context.Context, id CustomCerti var model CustomCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customdomainsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customdomainsget.go index 0d2b6dbe7df7..1d8f4054958a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customdomainsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_customdomainsget.go @@ -45,7 +45,6 @@ func (c SignalRClient) CustomDomainsGet(ctx context.Context, id CustomDomainId) var model CustomDomain result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_get.go index 21bba97c916b..9df02c247e0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_get.go @@ -45,7 +45,6 @@ func (c SignalRClient) Get(ctx context.Context, id SignalRId) (result GetOperati var model SignalRResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_listkeys.go index d64c1522a2b4..91940f903810 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_listkeys.go @@ -46,7 +46,6 @@ func (c SignalRClient) ListKeys(ctx context.Context, id SignalRId) (result ListK var model SignalRKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsget.go index 7db6c53904f2..5e67b601f939 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsget.go @@ -45,7 +45,6 @@ func (c SignalRClient) PrivateEndpointConnectionsGet(ctx context.Context, id Pri var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsupdate.go index 08598a73e3a2..021e46afe766 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_privateendpointconnectionsupdate.go @@ -49,7 +49,6 @@ func (c SignalRClient) PrivateEndpointConnectionsUpdate(ctx context.Context, id var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourcesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourcesget.go index d0b8ac5ccc90..b12ea2d7fc6a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourcesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/method_sharedprivatelinkresourcesget.go @@ -45,7 +45,6 @@ func (c SignalRClient) SharedPrivateLinkResourcesGet(ctx context.Context, id Sha var model SharedPrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/version.go index 33187b558dbc..38adde581b64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/signalr/2023-02-01/signalr/version.go @@ -1,12 +1,10 @@ package signalr -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/signalr/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/signalr/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/README.md index bdfe198c3a35..221723bc13f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies` Documentation -The `backupshorttermretentionpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `backupshorttermretentionpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := backupshorttermretentionpolicies.BackupShortTermRetentionPolicy{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/client.go index b01ca3b95edc..d77d7e4b208e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/client.go @@ -15,7 +15,7 @@ type BackupShortTermRetentionPoliciesClient struct { } func NewBackupShortTermRetentionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*BackupShortTermRetentionPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "backupshorttermretentionpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "backupshorttermretentionpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BackupShortTermRetentionPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/method_get.go index f44a938b3f88..0a7a2b75778c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/method_get.go @@ -47,7 +47,6 @@ func (c BackupShortTermRetentionPoliciesClient) Get(ctx context.Context, id comm var model BackupShortTermRetentionPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/version.go index 1b4189b9f656..c2ee86d945a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/backupshorttermretentionpolicies/version.go @@ -1,12 +1,10 @@ package backupshorttermretentionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/backupshorttermretentionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/backupshorttermretentionpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/README.md index be11f97b56dd..31c468dfa9b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing` Documentation -The `blobauditing` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `blobauditing` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := blobauditing.DatabaseBlobAuditingPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.DatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.DatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.DatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -79,7 +79,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := blobauditing.ExtendedDatabaseBlobAuditingPolicy{ // ... @@ -100,7 +100,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.ExtendedDatabaseBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -116,7 +116,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ExtendedDatabaseBlobAuditingPoliciesListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ExtendedDatabaseBlobAuditingPoliciesListByDatabaseComplete(ctx, id) @@ -133,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := blobauditing.ExtendedServerBlobAuditingPolicy{ // ... @@ -150,7 +150,7 @@ if err := client.ExtendedServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, i ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ExtendedServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -166,7 +166,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ExtendedServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ExtendedServerBlobAuditingPoliciesListByServerComplete(ctx, id) @@ -183,7 +183,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := blobauditing.ServerBlobAuditingPolicy{ // ... @@ -200,7 +200,7 @@ if err := client.ServerBlobAuditingPoliciesCreateOrUpdateThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.ServerBlobAuditingPoliciesGet(ctx, id) if err != nil { @@ -216,7 +216,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ServerBlobAuditingPoliciesListByServer(ctx, id)` can be used to do batched pagination items, err := client.ServerBlobAuditingPoliciesListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/client.go index d8c96733d85b..d77ae84974ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/client.go @@ -15,7 +15,7 @@ type BlobAuditingClient struct { } func NewBlobAuditingClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobAuditingClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "blobauditing", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "blobauditing", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BlobAuditingClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciescreateorupdate.go index 589911c6f42b..69f704a405e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciescreateorupdate.go @@ -52,7 +52,6 @@ func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesCreateOrUpdate(ctx conte var model DatabaseBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciesget.go index fc66178ed6e1..fbc605bc326e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_databaseblobauditingpoliciesget.go @@ -47,7 +47,6 @@ func (c BlobAuditingClient) DatabaseBlobAuditingPoliciesGet(ctx context.Context, var model DatabaseBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciescreateorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciescreateorupdate.go index 03952a4b8964..1296c38402d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciescreateorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciescreateorupdate.go @@ -52,7 +52,6 @@ func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesCreateOrUpdate(c var model ExtendedDatabaseBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciesget.go index 3e29e0f05f00..68921db640e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendeddatabaseblobauditingpoliciesget.go @@ -47,7 +47,6 @@ func (c BlobAuditingClient) ExtendedDatabaseBlobAuditingPoliciesGet(ctx context. var model ExtendedDatabaseBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendedserverblobauditingpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendedserverblobauditingpoliciesget.go index c0e81b5a0db5..f23d1799cafc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendedserverblobauditingpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_extendedserverblobauditingpoliciesget.go @@ -47,7 +47,6 @@ func (c BlobAuditingClient) ExtendedServerBlobAuditingPoliciesGet(ctx context.Co var model ExtendedServerBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_serverblobauditingpoliciesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_serverblobauditingpoliciesget.go index 75e49afd4f9b..bf9a8ef1b2fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_serverblobauditingpoliciesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/method_serverblobauditingpoliciesget.go @@ -47,7 +47,6 @@ func (c BlobAuditingClient) ServerBlobAuditingPoliciesGet(ctx context.Context, i var model ServerBlobAuditingPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/version.go index 16a0414802ef..372e3941d428 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/blobauditing/version.go @@ -1,12 +1,10 @@ package blobauditing -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/blobauditing/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/blobauditing/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/README.md index 9bf83cd16d23..d4edead068e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases` Documentation -The `databases` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `databases` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.Database{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.ExportDatabaseDefinition{ // ... @@ -71,7 +71,7 @@ if err := client.ExportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -83,7 +83,7 @@ if err := client.FailoverThenPoll(ctx, id, databases.DefaultFailoverOperationOpt ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id, databases.DefaultGetOperationOptions()) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.ImportExistingDatabaseDefinition{ // ... @@ -116,7 +116,7 @@ if err := client.ImportThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") // alternatively `client.ListByElasticPool(ctx, id)` can be used to do batched pagination items, err := client.ListByElasticPoolComplete(ctx, id) @@ -133,7 +133,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -150,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListInaccessibleByServer(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByServerComplete(ctx, id) @@ -167,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.PauseThenPoll(ctx, id); err != nil { // handle the error @@ -179,7 +179,7 @@ if err := client.PauseThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.ResourceMoveDefinition{ // ... @@ -200,7 +200,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.ResumeThenPoll(ctx, id); err != nil { // handle the error @@ -212,7 +212,7 @@ if err := client.ResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databases.DatabaseUpdate{ // ... @@ -229,7 +229,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") if err := client.UpgradeDataWarehouseThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/client.go index 11c4bb68fa0e..87de2d4fe594 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/client.go @@ -15,7 +15,7 @@ type DatabasesClient struct { } func NewDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_failover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_failover.go index 7afbab02040c..8de72667a50a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_failover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_failover.go @@ -37,6 +37,7 @@ func (o FailoverOperationOptions) ToHeaders() *client.Headers { func (o FailoverOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_get.go index a9f44b0b589f..1009685d61e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/method_get.go @@ -36,6 +36,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c DatabasesClient) Get(ctx context.Context, id commonids.SqlDatabaseId, op var model Database result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/version.go index 56916000b26c..49766108c071 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databases/version.go @@ -1,12 +1,10 @@ package databases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databases/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/README.md index f3d9234056fa..b0de60aaf14e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies` Documentation -The `databasesecurityalertpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `databasesecurityalertpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := databasesecurityalertpolicies.DatabaseSecurityAlertPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/client.go index ede593698c74..5dc5a476ce28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/client.go @@ -15,7 +15,7 @@ type DatabaseSecurityAlertPoliciesClient struct { } func NewDatabaseSecurityAlertPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseSecurityAlertPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databasesecurityalertpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databasesecurityalertpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabaseSecurityAlertPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_createorupdate.go index 793251a94582..0752c0334f84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_createorupdate.go @@ -52,7 +52,6 @@ func (c DatabaseSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, var model DatabaseSecurityAlertPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_get.go index f2e3ec9cf180..ad2feedc3e73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/method_get.go @@ -47,7 +47,6 @@ func (c DatabaseSecurityAlertPoliciesClient) Get(ctx context.Context, id commoni var model DatabaseSecurityAlertPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/version.go index 211964d8708f..437709ad574a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasesecurityalertpolicies/version.go @@ -1,12 +1,10 @@ package databasesecurityalertpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databasesecurityalertpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databasesecurityalertpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/README.md index daef0b49640c..f62e907423a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines` Documentation -The `databasevulnerabilityassessmentrulebaselines` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `databasevulnerabilityassessmentrulebaselines` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "ruleIdValue", "default") +id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "ruleId", "default") payload := databasevulnerabilityassessmentrulebaselines.DatabaseVulnerabilityAssessmentRuleBaseline{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "ruleIdValue", "default") +id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "ruleId", "default") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "ruleIdValue", "default") +id := databasevulnerabilityassessmentrulebaselines.NewBaselineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "ruleId", "default") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/client.go index 799c20cce659..9d705cb01693 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/client.go @@ -15,7 +15,7 @@ type DatabaseVulnerabilityAssessmentRuleBaselinesClient struct { } func NewDatabaseVulnerabilityAssessmentRuleBaselinesClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseVulnerabilityAssessmentRuleBaselinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "databasevulnerabilityassessmentrulebaselines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "databasevulnerabilityassessmentrulebaselines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DatabaseVulnerabilityAssessmentRuleBaselinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/id_baseline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/id_baseline.go index afee2c5691ac..c1529c9615a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/id_baseline.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/id_baseline.go @@ -48,7 +48,7 @@ func ParseBaselineID(input string) (*BaselineId, error) { } id := BaselineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseBaselineIDInsensitively(input string) (*BaselineId, error) { } id := BaselineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -141,13 +141,13 @@ func (id BaselineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), resourceids.StaticSegment("staticVulnerabilityAssessments", "vulnerabilityAssessments", "vulnerabilityAssessments"), resourceids.StaticSegment("vulnerabilityAssessmentName", "default", "default"), resourceids.StaticSegment("staticRules", "rules", "rules"), - resourceids.UserSpecifiedSegment("ruleId", "ruleIdValue"), + resourceids.UserSpecifiedSegment("ruleId", "ruleId"), resourceids.StaticSegment("staticBaselines", "baselines", "baselines"), resourceids.ConstantSegment("baselineName", PossibleValuesForVulnerabilityAssessmentPolicyBaselineName(), "default"), } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_createorupdate.go index 2fc65238eb35..e0a57bf0eef1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_createorupdate.go @@ -49,7 +49,6 @@ func (c DatabaseVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx c var model DatabaseVulnerabilityAssessmentRuleBaseline result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_get.go index 53027872e33b..554e6664a471 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/method_get.go @@ -45,7 +45,6 @@ func (c DatabaseVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Cont var model DatabaseVulnerabilityAssessmentRuleBaseline result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/version.go index 593a3c8bfc89..cbafc5034a13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/databasevulnerabilityassessmentrulebaselines/version.go @@ -1,12 +1,10 @@ package databasevulnerabilityassessmentrulebaselines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/databasevulnerabilityassessmentrulebaselines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/databasevulnerabilityassessmentrulebaselines/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/README.md index ea689a198d67..d35a25574a40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools` Documentation -The `elasticpools` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `elasticpools` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") payload := elasticpools.ElasticPool{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id, elasticpools.DefaultListByServerOperationOptions())` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id, elasticpools.DefaultListByServerOperationOptions()) @@ -99,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "elasticPoolValue") +id := commonids.NewSqlElasticPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "elasticPoolName") payload := elasticpools.ElasticPoolUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/client.go index 2fbd56d5c0d4..d63351794701 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/client.go @@ -15,7 +15,7 @@ type ElasticPoolsClient struct { } func NewElasticPoolsClientWithBaseURI(sdkApi sdkEnv.Api) (*ElasticPoolsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "elasticpools", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "elasticpools", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ElasticPoolsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_get.go index f311ee6c3f93..8cad14ea50b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_get.go @@ -46,7 +46,6 @@ func (c ElasticPoolsClient) Get(ctx context.Context, id commonids.SqlElasticPool var model ElasticPool result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_listbyserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_listbyserver.go index 6d3b53d468bf..62ae75c61d67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_listbyserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/method_listbyserver.go @@ -40,6 +40,7 @@ func (o ListByServerOperationOptions) ToHeaders() *client.Headers { func (o ListByServerOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/version.go index 677c093d4fe6..0237bdee258d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/elasticpools/version.go @@ -1,12 +1,10 @@ package elasticpools -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/elasticpools/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/elasticpools/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/README.md index 4ca4fcd9365f..9a5f45e47868 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors` Documentation -The `encryptionprotectors` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `encryptionprotectors` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := encryptionprotectors.EncryptionProtector{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/client.go index 0213a8a383d9..f72697edceb0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/client.go @@ -15,7 +15,7 @@ type EncryptionProtectorsClient struct { } func NewEncryptionProtectorsClientWithBaseURI(sdkApi sdkEnv.Api) (*EncryptionProtectorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "encryptionprotectors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "encryptionprotectors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EncryptionProtectorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/method_get.go index 659214dd4e9f..f1b561315dc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/method_get.go @@ -47,7 +47,6 @@ func (c EncryptionProtectorsClient) Get(ctx context.Context, id commonids.SqlSer var model EncryptionProtector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/version.go index 849019339de9..83ac31ef9792 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/encryptionprotectors/version.go @@ -1,12 +1,10 @@ package encryptionprotectors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/encryptionprotectors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/encryptionprotectors/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/README.md index 3ab4ba5ac3bb..3a1ee7b406e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups` Documentation -The `failovergroups` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `failovergroups` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") payload := failovergroups.FailoverGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") if err := client.ForceFailoverAllowDataLossThenPoll(ctx, id); err != nil { // handle the error @@ -78,7 +78,7 @@ if err := client.ForceFailoverAllowDataLossThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -111,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") if err := client.TryPlannedBeforeForcedFailoverThenPoll(ctx, id); err != nil { // handle the error @@ -123,7 +123,7 @@ if err := client.TryPlannedBeforeForcedFailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "failoverGroupValue") +id := failovergroups.NewFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "failoverGroupName") payload := failovergroups.FailoverGroupUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/client.go index edf4434aceef..2ea4965a0c01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/client.go @@ -15,7 +15,7 @@ type FailoverGroupsClient struct { } func NewFailoverGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*FailoverGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "failovergroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "failovergroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FailoverGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/id_failovergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/id_failovergroup.go index b27ee1d2961d..05603ab02873 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/id_failovergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/id_failovergroup.go @@ -44,7 +44,7 @@ func ParseFailoverGroupID(input string) (*FailoverGroupId, error) { } id := FailoverGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFailoverGroupIDInsensitively(input string) (*FailoverGroupId, error) { } id := FailoverGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FailoverGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticFailoverGroups", "failoverGroups", "failoverGroups"), - resourceids.UserSpecifiedSegment("failoverGroupName", "failoverGroupValue"), + resourceids.UserSpecifiedSegment("failoverGroupName", "failoverGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/method_get.go index ab2386fa0a56..61d249dd805f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/method_get.go @@ -45,7 +45,6 @@ func (c FailoverGroupsClient) Get(ctx context.Context, id FailoverGroupId) (resu var model FailoverGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/version.go index 47594b7e93d0..9b466ab7cf71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/failovergroups/version.go @@ -1,12 +1,10 @@ package failovergroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/failovergroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/failovergroups/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/README.md index 1df2c1177a0f..191e351cd4cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules` Documentation -The `firewallrules` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `firewallrules` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") payload := firewallrules.FirewallRule{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "firewallRuleValue") +id := firewallrules.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "firewallRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := firewallrules.FirewallRuleList{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/client.go index ca183214bd2f..5ecd222a8c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/client.go @@ -15,7 +15,7 @@ type FirewallRulesClient struct { } func NewFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*FirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "firewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "firewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/id_firewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/id_firewallrule.go index 36610c932a05..c35d061d8136 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/id_firewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/id_firewallrule.go @@ -44,7 +44,7 @@ func ParseFirewallRuleID(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error) { } id := FirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticFirewallRules", "firewallRules", "firewallRules"), - resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleValue"), + resourceids.UserSpecifiedSegment("firewallRuleName", "firewallRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_createorupdate.go index 20251b56b612..a122b14e4d9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_createorupdate.go @@ -50,7 +50,6 @@ func (c FirewallRulesClient) CreateOrUpdate(ctx context.Context, id FirewallRule var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_get.go index 37bca7c40d82..6b53b2919c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_get.go @@ -45,7 +45,6 @@ func (c FirewallRulesClient) Get(ctx context.Context, id FirewallRuleId) (result var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_replace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_replace.go index 5541e3df8a2d..97cafcd2e7ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_replace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/method_replace.go @@ -52,7 +52,6 @@ func (c FirewallRulesClient) Replace(ctx context.Context, id commonids.SqlServer var model FirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/version.go index 19e5d1fde3b3..3d23e65959ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/firewallrules/version.go @@ -1,12 +1,10 @@ package firewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/firewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/firewallrules/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/README.md index e0a7a0869637..df6254f5d247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies` Documentation -The `geobackuppolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `geobackuppolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := geobackuppolicies.GeoBackupPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/client.go index dbc369d4a8ac..bef6b6157227 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/client.go @@ -15,7 +15,7 @@ type GeoBackupPoliciesClient struct { } func NewGeoBackupPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*GeoBackupPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "geobackuppolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "geobackuppolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GeoBackupPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_createorupdate.go index 0df4cf0ab5dc..d329ea74a15e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_createorupdate.go @@ -52,7 +52,6 @@ func (c GeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, id commonid var model GeoBackupPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_get.go index 7927b9f10a64..8a37d55fda52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/method_get.go @@ -47,7 +47,6 @@ func (c GeoBackupPoliciesClient) Get(ctx context.Context, id commonids.SqlDataba var model GeoBackupPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/version.go index 098c56ed02de..f43905680824 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/geobackuppolicies/version.go @@ -1,12 +1,10 @@ package geobackuppolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/geobackuppolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/geobackuppolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/README.md index 4f66bd83dfaa..e45bf154d967 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups` Documentation -The `instancefailovergroups` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `instancefailovergroups` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "instanceFailoverGroupValue") +id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName", "failoverGroupName") payload := instancefailovergroups.InstanceFailoverGroup{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "instanceFailoverGroupValue") +id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName", "failoverGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "instanceFailoverGroupValue") +id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName", "failoverGroupName") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "instanceFailoverGroupValue") +id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName", "failoverGroupName") if err := client.ForceFailoverAllowDataLossThenPoll(ctx, id); err != nil { // handle the error @@ -77,7 +77,7 @@ if err := client.ForceFailoverAllowDataLossThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue", "instanceFailoverGroupValue") +id := instancefailovergroups.NewInstanceFailoverGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName", "failoverGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := instancefailovergroups.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") +id := instancefailovergroups.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationName") // alternatively `client.ListByLocation(ctx, id)` can be used to do batched pagination items, err := client.ListByLocationComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/client.go index 77237fd2c0a7..32dba8d6339b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/client.go @@ -15,7 +15,7 @@ type InstanceFailoverGroupsClient struct { } func NewInstanceFailoverGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*InstanceFailoverGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "instancefailovergroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "instancefailovergroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating InstanceFailoverGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_instancefailovergroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_instancefailovergroup.go index 56d3645eed9a..0a35e73b057d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_instancefailovergroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_instancefailovergroup.go @@ -44,7 +44,7 @@ func ParseInstanceFailoverGroupID(input string) (*InstanceFailoverGroupId, error } id := InstanceFailoverGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInstanceFailoverGroupIDInsensitively(input string) (*InstanceFailoverG } id := InstanceFailoverGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InstanceFailoverGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), resourceids.StaticSegment("staticInstanceFailoverGroups", "instanceFailoverGroups", "instanceFailoverGroups"), - resourceids.UserSpecifiedSegment("instanceFailoverGroupName", "instanceFailoverGroupValue"), + resourceids.UserSpecifiedSegment("instanceFailoverGroupName", "failoverGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_providerlocation.go index 433544172373..11a7a4a824ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/id_providerlocation.go @@ -42,7 +42,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "locationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/method_get.go index 1254e8ce94bd..97fdea7143e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/method_get.go @@ -45,7 +45,6 @@ func (c InstanceFailoverGroupsClient) Get(ctx context.Context, id InstanceFailov var model InstanceFailoverGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/version.go index ea6b1f62688a..d68238eb49c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/instancefailovergroups/version.go @@ -1,12 +1,10 @@ package instancefailovergroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/instancefailovergroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/instancefailovergroups/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/README.md index cefec31899f9..ea87745bc09b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents` Documentation -The `jobagents` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `jobagents` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue") +id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName") payload := jobagents.JobAgent{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue") +id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue") +id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue") +id := jobagents.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName") payload := jobagents.JobAgentUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/client.go index ab27e52d87af..12ff1946c039 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/client.go @@ -15,7 +15,7 @@ type JobAgentsClient struct { } func NewJobAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobAgentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobagents", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobagents", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobAgentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/id_jobagent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/id_jobagent.go index 35f4497a3da3..373bc0c8dfc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/id_jobagent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/id_jobagent.go @@ -44,7 +44,7 @@ func ParseJobAgentID(input string) (*JobAgentId, error) { } id := JobAgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseJobAgentIDInsensitively(input string) (*JobAgentId, error) { } id := JobAgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id JobAgentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticJobAgents", "jobAgents", "jobAgents"), - resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentValue"), + resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/method_get.go index 433d5a1b380d..ee85f1b86c79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/method_get.go @@ -45,7 +45,6 @@ func (c JobAgentsClient) Get(ctx context.Context, id JobAgentId) (result GetOper var model JobAgent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/version.go index f543d9d576cc..f2368f31c801 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobagents/version.go @@ -1,12 +1,10 @@ package jobagents -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobagents/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobagents/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/README.md index 2c830e23f4d2..362592ff4b5b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials` Documentation -The `jobcredentials` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `jobcredentials` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue", "credentialValue") +id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "credentialName") payload := jobcredentials.JobCredential{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue", "credentialValue") +id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "credentialName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue", "credentialValue") +id := jobcredentials.NewCredentialID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName", "credentialName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobcredentials.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "jobAgentValue") +id := jobcredentials.NewJobAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "jobAgentName") // alternatively `client.ListByAgent(ctx, id)` can be used to do batched pagination items, err := client.ListByAgentComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/client.go index 0977cf3d384a..9bc1ca997fe5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/client.go @@ -15,7 +15,7 @@ type JobCredentialsClient struct { } func NewJobCredentialsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobCredentialsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobcredentials", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobcredentials", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobCredentialsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_credential.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_credential.go index 6b7ea0b08a18..9d3793337de0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_credential.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_credential.go @@ -46,7 +46,7 @@ func ParseCredentialID(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCredentialIDInsensitively(input string) (*CredentialId, error) { } id := CredentialId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CredentialId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticJobAgents", "jobAgents", "jobAgents"), - resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentValue"), + resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentName"), resourceids.StaticSegment("staticCredentials", "credentials", "credentials"), - resourceids.UserSpecifiedSegment("credentialName", "credentialValue"), + resourceids.UserSpecifiedSegment("credentialName", "credentialName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_jobagent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_jobagent.go index 94291d1711b7..58756841c98e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_jobagent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/id_jobagent.go @@ -44,7 +44,7 @@ func ParseJobAgentID(input string) (*JobAgentId, error) { } id := JobAgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseJobAgentIDInsensitively(input string) (*JobAgentId, error) { } id := JobAgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id JobAgentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticJobAgents", "jobAgents", "jobAgents"), - resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentValue"), + resourceids.UserSpecifiedSegment("jobAgentName", "jobAgentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_createorupdate.go index 3f021789ab40..9cd18192efa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_createorupdate.go @@ -50,7 +50,6 @@ func (c JobCredentialsClient) CreateOrUpdate(ctx context.Context, id CredentialI var model JobCredential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_get.go index 27cbbfe35505..c9c5e2020d99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/method_get.go @@ -45,7 +45,6 @@ func (c JobCredentialsClient) Get(ctx context.Context, id CredentialId) (result var model JobCredential result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/version.go index 554efe5721dd..df716508da50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/jobcredentials/version.go @@ -1,12 +1,10 @@ package jobcredentials -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobcredentials/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobcredentials/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/README.md index 530c5a1db79a..8e9713937a08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies` Documentation -The `longtermretentionpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `longtermretentionpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := longtermretentionpolicies.LongTermRetentionPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/client.go index 04222fc512ad..6cb0156b4216 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/client.go @@ -15,7 +15,7 @@ type LongTermRetentionPoliciesClient struct { } func NewLongTermRetentionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*LongTermRetentionPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "longtermretentionpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "longtermretentionpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LongTermRetentionPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/method_get.go index db0dc3527df7..094e02d94719 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/method_get.go @@ -47,7 +47,6 @@ func (c LongTermRetentionPoliciesClient) Get(ctx context.Context, id commonids.S var model LongTermRetentionPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/version.go index 9de8f7f05957..f69b4b9a8978 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/longtermretentionpolicies/version.go @@ -1,12 +1,10 @@ package longtermretentionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/longtermretentionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/longtermretentionpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/README.md index 3c87388b7c0b..02d26d6c0a0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies` Documentation -The `managedbackupshorttermretentionpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedbackupshorttermretentionpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := managedbackupshorttermretentionpolicies.ManagedBackupShortTermRetentionPolicy{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/client.go index d012d8b6e323..ded8568660aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/client.go @@ -15,7 +15,7 @@ type ManagedBackupShortTermRetentionPoliciesClient struct { } func NewManagedBackupShortTermRetentionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedBackupShortTermRetentionPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedbackupshorttermretentionpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedbackupshorttermretentionpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedBackupShortTermRetentionPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/method_get.go index 1c274cb2a2b5..e79878dc564e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ManagedBackupShortTermRetentionPoliciesClient) Get(ctx context.Context, var model ManagedBackupShortTermRetentionPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/version.go index 14b1ba138557..32357dc7a56d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedbackupshorttermretentionpolicies/version.go @@ -1,12 +1,10 @@ package managedbackupshorttermretentionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedbackupshorttermretentionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedbackupshorttermretentionpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/README.md index ff8a9366c9bc..41a164d173a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases` Documentation -The `manageddatabases` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `manageddatabases` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -42,7 +42,7 @@ if err := client.CancelMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.ManagedDatabaseMoveDefinition{ // ... @@ -59,7 +59,7 @@ if err := client.CompleteMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.CompleteDatabaseRestoreDefinition{ // ... @@ -76,7 +76,7 @@ if err := client.CompleteRestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.ManagedDatabase{ // ... @@ -93,7 +93,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -105,7 +105,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -121,7 +121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -138,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListInaccessibleByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListInaccessibleByInstanceComplete(ctx, id) @@ -155,7 +155,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.ManagedDatabaseStartMoveDefinition{ // ... @@ -172,7 +172,7 @@ if err := client.StartMoveThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := manageddatabases.ManagedDatabaseUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/client.go index d7286c73b101..ba3a6da68af3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/client.go @@ -15,7 +15,7 @@ type ManagedDatabasesClient struct { } func NewManagedDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedDatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "manageddatabases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "manageddatabases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedDatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/method_get.go index d04774f62a4a..66605aa10976 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/method_get.go @@ -46,7 +46,6 @@ func (c ManagedDatabasesClient) Get(ctx context.Context, id commonids.SqlManaged var model ManagedDatabase result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/version.go index d965dc2294e2..67859485257c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/manageddatabases/version.go @@ -1,12 +1,10 @@ package manageddatabases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/manageddatabases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/manageddatabases/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/README.md index a11f59673000..6c3173863776 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators` Documentation -The `managedinstanceadministrators` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstanceadministrators` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstanceadministrators.ManagedInstanceAdministrator{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/client.go index 3f7e77dcf0f8..a7a2aabd80b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/client.go @@ -15,7 +15,7 @@ type ManagedInstanceAdministratorsClient struct { } func NewManagedInstanceAdministratorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceAdministratorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstanceadministrators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstanceadministrators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceAdministratorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/method_get.go index 471776e28e8a..c4397fcdc5d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/method_get.go @@ -47,7 +47,6 @@ func (c ManagedInstanceAdministratorsClient) Get(ctx context.Context, id commoni var model ManagedInstanceAdministrator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/version.go index 47b4d51e30e5..10c279affb7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceadministrators/version.go @@ -1,12 +1,10 @@ package managedinstanceadministrators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstanceadministrators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstanceadministrators/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/README.md index dbdaadcfa03d..77257a46490c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications` Documentation -The `managedinstanceazureadonlyauthentications` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstanceazureadonlyauthentications` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstanceazureadonlyauthentications.ManagedInstanceAzureADOnlyAuthentication{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/client.go index 75cbb0831fd8..b6f667aa0f1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/client.go @@ -15,7 +15,7 @@ type ManagedInstanceAzureADOnlyAuthenticationsClient struct { } func NewManagedInstanceAzureADOnlyAuthenticationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceAzureADOnlyAuthenticationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstanceazureadonlyauthentications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstanceazureadonlyauthentications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceAzureADOnlyAuthenticationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/method_get.go index ad7d02117cc5..5b42ddb7ce2e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/method_get.go @@ -47,7 +47,6 @@ func (c ManagedInstanceAzureADOnlyAuthenticationsClient) Get(ctx context.Context var model ManagedInstanceAzureADOnlyAuthentication result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/version.go index c15dbd25db99..8867f78c12df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceazureadonlyauthentications/version.go @@ -1,12 +1,10 @@ package managedinstanceazureadonlyauthentications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstanceazureadonlyauthentications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstanceazureadonlyauthentications/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/README.md index c4f23676c31a..c55440e401cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors` Documentation -The `managedinstanceencryptionprotectors` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstanceencryptionprotectors` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstanceencryptionprotectors.ManagedInstanceEncryptionProtector{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) @@ -75,7 +75,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.RevalidateThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/client.go index 3688e97050ce..37d9140cc63f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/client.go @@ -15,7 +15,7 @@ type ManagedInstanceEncryptionProtectorsClient struct { } func NewManagedInstanceEncryptionProtectorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceEncryptionProtectorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstanceencryptionprotectors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstanceencryptionprotectors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceEncryptionProtectorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/method_get.go index 067629deb84a..d999fb817fd4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/method_get.go @@ -47,7 +47,6 @@ func (c ManagedInstanceEncryptionProtectorsClient) Get(ctx context.Context, id c var model ManagedInstanceEncryptionProtector result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/version.go index aa0f51f26d5a..e9ae380f25ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstanceencryptionprotectors/version.go @@ -1,12 +1,10 @@ package managedinstanceencryptionprotectors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstanceencryptionprotectors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstanceencryptionprotectors/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/README.md index fff5fc692cc7..0e010e41c289 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys` Documentation -The `managedinstancekeys` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstancekeys` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "keyValue") +id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "keyName") payload := managedinstancekeys.ManagedInstanceKey{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "keyValue") +id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "keyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "keyValue") +id := managedinstancekeys.NewManagedInstanceKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "keyName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id, managedinstancekeys.DefaultListByInstanceOperationOptions()) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/client.go index 06797198c4d9..10eda0b80205 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/client.go @@ -15,7 +15,7 @@ type ManagedInstanceKeysClient struct { } func NewManagedInstanceKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstancekeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstancekeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/id_managedinstancekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/id_managedinstancekey.go index 3636ab872d7d..7d07c1ee9266 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/id_managedinstancekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/id_managedinstancekey.go @@ -44,7 +44,7 @@ func ParseManagedInstanceKeyID(input string) (*ManagedInstanceKeyId, error) { } id := ManagedInstanceKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseManagedInstanceKeyIDInsensitively(input string) (*ManagedInstanceKeyId } id := ManagedInstanceKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ManagedInstanceKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticManagedInstances", "managedInstances", "managedInstances"), - resourceids.UserSpecifiedSegment("managedInstanceName", "managedInstanceValue"), + resourceids.UserSpecifiedSegment("managedInstanceName", "managedInstanceName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_get.go index c7d5ce953d0b..a7b6c034e213 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_get.go @@ -45,7 +45,6 @@ func (c ManagedInstanceKeysClient) Get(ctx context.Context, id ManagedInstanceKe var model ManagedInstanceKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_listbyinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_listbyinstance.go index 140196d0475c..ccdcd5aba240 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_listbyinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/method_listbyinstance.go @@ -40,6 +40,7 @@ func (o ListByInstanceOperationOptions) ToHeaders() *client.Headers { func (o ListByInstanceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/version.go index 843a1f45c7e0..3dc0010bee6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancekeys/version.go @@ -1,12 +1,10 @@ package managedinstancekeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstancekeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstancekeys/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/README.md index dbe2eb4a02bf..96b66a1de558 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies` Documentation -The `managedinstancelongtermretentionpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstancelongtermretentionpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") payload := managedinstancelongtermretentionpolicies.ManagedInstanceLongTermRetentionPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue", "databaseValue") +id := commonids.NewSqlManagedInstanceDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/client.go index d86d5f1cb6dc..ed08dffdc434 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/client.go @@ -15,7 +15,7 @@ type ManagedInstanceLongTermRetentionPoliciesClient struct { } func NewManagedInstanceLongTermRetentionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceLongTermRetentionPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstancelongtermretentionpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstancelongtermretentionpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceLongTermRetentionPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/method_get.go index 5d0631421515..17bc6f25917e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ManagedInstanceLongTermRetentionPoliciesClient) Get(ctx context.Context, var model ManagedInstanceLongTermRetentionPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/version.go index f5e1a98083c3..4b55c3e6c497 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancelongtermretentionpolicies/version.go @@ -1,12 +1,10 @@ package managedinstancelongtermretentionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstancelongtermretentionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstancelongtermretentionpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/README.md index 7204ccc35e71..705376c6852f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances` Documentation -The `managedinstances` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstances` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstances.ManagedInstance{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id, managedinstances.DefaultFailoverOpera ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id, managedinstances.DefaultGetOperationOptions()) if err != nil { @@ -99,7 +99,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := managedinstances.NewInstancePoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "instancePoolValue") +id := managedinstances.NewInstancePoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "instancePoolName") // alternatively `client.ListByInstancePool(ctx, id, managedinstances.DefaultListByInstancePoolOperationOptions())` can be used to do batched pagination items, err := client.ListByInstancePoolComplete(ctx, id, managedinstances.DefaultListByInstancePoolOperationOptions()) @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByManagedInstance(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions())` can be used to do batched pagination items, err := client.ListByManagedInstanceComplete(ctx, id, managedinstances.DefaultListByManagedInstanceOperationOptions()) @@ -150,7 +150,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListOutboundNetworkDependenciesByManagedInstance(ctx, id)` can be used to do batched pagination items, err := client.ListOutboundNetworkDependenciesByManagedInstanceComplete(ctx, id) @@ -167,7 +167,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -179,7 +179,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -191,7 +191,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstances.ManagedInstanceUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/client.go index 0618c7ec8de4..e894127c1fa9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/client.go @@ -15,7 +15,7 @@ type ManagedInstancesClient struct { } func NewManagedInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/id_instancepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/id_instancepool.go index c4d1f83519fd..a25635e8b219 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/id_instancepool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/id_instancepool.go @@ -42,7 +42,7 @@ func ParseInstancePoolID(input string) (*InstancePoolId, error) { } id := InstancePoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseInstancePoolIDInsensitively(input string) (*InstancePoolId, error) { } id := InstancePoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id InstancePoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticInstancePools", "instancePools", "instancePools"), - resourceids.UserSpecifiedSegment("instancePoolName", "instancePoolValue"), + resourceids.UserSpecifiedSegment("instancePoolName", "instancePoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_failover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_failover.go index 6a09e24ad410..d4650489f175 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_failover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_failover.go @@ -37,6 +37,7 @@ func (o FailoverOperationOptions) ToHeaders() *client.Headers { func (o FailoverOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_get.go index 2c318ce242db..21e7a5561c76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ManagedInstancesClient) Get(ctx context.Context, id commonids.SqlManaged var model ManagedInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_list.go index 55f688b91aca..685fc7f9a70c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyinstancepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyinstancepool.go index f98c7ba29014..8ff253cace4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyinstancepool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyinstancepool.go @@ -39,6 +39,7 @@ func (o ListByInstancePoolOperationOptions) ToHeaders() *client.Headers { func (o ListByInstancePoolOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbymanagedinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbymanagedinstance.go index 8a7c6f76675a..61e9c8e3192a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbymanagedinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbymanagedinstance.go @@ -46,6 +46,7 @@ func (o ListByManagedInstanceOperationOptions) ToHeaders() *client.Headers { func (o ListByManagedInstanceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyresourcegroup.go index 0a8a15041c2b..adbecb68c735 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/version.go index 7867a271c1ca..928a6bcd3e28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstances/version.go @@ -1,12 +1,10 @@ package managedinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstances/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/README.md index 93a00ceadf0e..97c8a21ca155 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments` Documentation -The `managedinstancevulnerabilityassessments` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedinstancevulnerabilityassessments` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedinstancevulnerabilityassessments.ManagedInstanceVulnerabilityAssessment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/client.go index 9b83141b5c63..3caaad8212d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/client.go @@ -15,7 +15,7 @@ type ManagedInstanceVulnerabilityAssessmentsClient struct { } func NewManagedInstanceVulnerabilityAssessmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedInstanceVulnerabilityAssessmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedinstancevulnerabilityassessments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedinstancevulnerabilityassessments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedInstanceVulnerabilityAssessmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_createorupdate.go index eee4d2c43187..e99b5bc3559e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_createorupdate.go @@ -52,7 +52,6 @@ func (c ManagedInstanceVulnerabilityAssessmentsClient) CreateOrUpdate(ctx contex var model ManagedInstanceVulnerabilityAssessment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_get.go index d5735bb6e64a..cf5585970252 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/method_get.go @@ -47,7 +47,6 @@ func (c ManagedInstanceVulnerabilityAssessmentsClient) Get(ctx context.Context, var model ManagedInstanceVulnerabilityAssessment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/version.go index 889c9475c591..b236f6271ba8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedinstancevulnerabilityassessments/version.go @@ -1,12 +1,10 @@ package managedinstancevulnerabilityassessments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedinstancevulnerabilityassessments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedinstancevulnerabilityassessments/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/README.md index 746017e06158..24db18f32fe8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies` Documentation -The `managedserversecurityalertpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `managedserversecurityalertpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") payload := managedserversecurityalertpolicies.ManagedServerSecurityAlertPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceValue") +id := commonids.NewSqlManagedInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "managedInstanceName") // alternatively `client.ListByInstance(ctx, id)` can be used to do batched pagination items, err := client.ListByInstanceComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/client.go index 9c1b65773ae7..96e6a83b8ad2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/client.go @@ -15,7 +15,7 @@ type ManagedServerSecurityAlertPoliciesClient struct { } func NewManagedServerSecurityAlertPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedServerSecurityAlertPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedserversecurityalertpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedserversecurityalertpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedServerSecurityAlertPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/method_get.go index fb823b520414..5e927a5ac667 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ManagedServerSecurityAlertPoliciesClient) Get(ctx context.Context, id co var model ManagedServerSecurityAlertPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/version.go index 56787f9ddb9f..f9bf5e6842a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/managedserversecurityalertpolicies/version.go @@ -1,12 +1,10 @@ package managedserversecurityalertpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedserversecurityalertpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedserversecurityalertpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/README.md index cd56841830ff..86d75be6d4a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules` Documentation -The `outboundfirewallrules` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `outboundfirewallrules` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "outboundFirewallRuleValue") +id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "outboundRuleFqdn") if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { // handle the error @@ -37,7 +37,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "outboundFirewallRuleValue") +id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "outboundRuleFqdn") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -49,7 +49,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "outboundFirewallRuleValue") +id := outboundfirewallrules.NewOutboundFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "outboundRuleFqdn") read, err := client.Get(ctx, id) if err != nil { @@ -65,7 +65,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/client.go index 785040374ca1..da90d0a7fa0c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/client.go @@ -15,7 +15,7 @@ type OutboundFirewallRulesClient struct { } func NewOutboundFirewallRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*OutboundFirewallRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "outboundfirewallrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "outboundfirewallrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OutboundFirewallRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/id_outboundfirewallrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/id_outboundfirewallrule.go index 98acb0e9aa71..bbf9a7359795 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/id_outboundfirewallrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/id_outboundfirewallrule.go @@ -44,7 +44,7 @@ func ParseOutboundFirewallRuleID(input string) (*OutboundFirewallRuleId, error) } id := OutboundFirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOutboundFirewallRuleIDInsensitively(input string) (*OutboundFirewallRu } id := OutboundFirewallRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OutboundFirewallRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticOutboundFirewallRules", "outboundFirewallRules", "outboundFirewallRules"), - resourceids.UserSpecifiedSegment("outboundFirewallRuleName", "outboundFirewallRuleValue"), + resourceids.UserSpecifiedSegment("outboundFirewallRuleName", "outboundRuleFqdn"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/method_get.go index beb1537e220b..13c62b7ab156 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/method_get.go @@ -45,7 +45,6 @@ func (c OutboundFirewallRulesClient) Get(ctx context.Context, id OutboundFirewal var model OutboundFirewallRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/version.go index 5947ff5151ef..a1b2db54ce14 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/outboundfirewallrules/version.go @@ -1,12 +1,10 @@ package outboundfirewallrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/outboundfirewallrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/outboundfirewallrules/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/README.md index f53e6b1061d6..335b5325ff26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks` Documentation -The `replicationlinks` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `replicationlinks` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") payload := replicationlinks.ReplicationLink{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") if err := client.FailoverThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.FailoverThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") if err := client.FailoverAllowDataLossThenPoll(ctx, id); err != nil { // handle the error @@ -78,7 +78,7 @@ if err := client.FailoverAllowDataLossThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") read, err := client.Get(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) @@ -111,7 +111,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue", "linkIdValue") +id := replicationlinks.NewReplicationLinkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName", "linkId") payload := replicationlinks.ReplicationLinkUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/client.go index e250a69e9a99..3b6d95b17297 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/client.go @@ -15,7 +15,7 @@ type ReplicationLinksClient struct { } func NewReplicationLinksClientWithBaseURI(sdkApi sdkEnv.Api) (*ReplicationLinksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "replicationlinks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "replicationlinks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReplicationLinksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/id_replicationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/id_replicationlink.go index 2875766d6b99..d9069de6613b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/id_replicationlink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/id_replicationlink.go @@ -46,7 +46,7 @@ func ParseReplicationLinkID(input string) (*ReplicationLinkId, error) { } id := ReplicationLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseReplicationLinkIDInsensitively(input string) (*ReplicationLinkId, erro } id := ReplicationLinkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ReplicationLinkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticDatabases", "databases", "databases"), - resourceids.UserSpecifiedSegment("databaseName", "databaseValue"), + resourceids.UserSpecifiedSegment("databaseName", "databaseName"), resourceids.StaticSegment("staticReplicationLinks", "replicationLinks", "replicationLinks"), - resourceids.UserSpecifiedSegment("linkId", "linkIdValue"), + resourceids.UserSpecifiedSegment("linkId", "linkId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/method_get.go index ed216d101734..640a612f1084 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/method_get.go @@ -45,7 +45,6 @@ func (c ReplicationLinksClient) Get(ctx context.Context, id ReplicationLinkId) ( var model ReplicationLink result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/version.go index d88b66b94264..6b593b9df98a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/replicationlinks/version.go @@ -1,12 +1,10 @@ package replicationlinks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/replicationlinks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/replicationlinks/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/README.md index 2928bac0a38b..c02dadd904cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases` Documentation -The `restorabledroppeddatabases` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `restorabledroppeddatabases` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := restorabledroppeddatabases.NewRestorableDroppedDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "restorableDroppedDatabaseIdValue") +id := restorabledroppeddatabases.NewRestorableDroppedDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "restorableDroppedDatabaseId") read, err := client.Get(ctx, id, restorabledroppeddatabases.DefaultGetOperationOptions()) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/client.go index f6cc9d16ce0f..b005e027e5e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/client.go @@ -15,7 +15,7 @@ type RestorableDroppedDatabasesClient struct { } func NewRestorableDroppedDatabasesClientWithBaseURI(sdkApi sdkEnv.Api) (*RestorableDroppedDatabasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "restorabledroppeddatabases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "restorabledroppeddatabases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RestorableDroppedDatabasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/id_restorabledroppeddatabase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/id_restorabledroppeddatabase.go index c354a8d7d778..c4e2c1a3e758 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/id_restorabledroppeddatabase.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/id_restorabledroppeddatabase.go @@ -44,7 +44,7 @@ func ParseRestorableDroppedDatabaseID(input string) (*RestorableDroppedDatabaseI } id := RestorableDroppedDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRestorableDroppedDatabaseIDInsensitively(input string) (*RestorableDro } id := RestorableDroppedDatabaseId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RestorableDroppedDatabaseId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticRestorableDroppedDatabases", "restorableDroppedDatabases", "restorableDroppedDatabases"), - resourceids.UserSpecifiedSegment("restorableDroppedDatabaseId", "restorableDroppedDatabaseIdValue"), + resourceids.UserSpecifiedSegment("restorableDroppedDatabaseId", "restorableDroppedDatabaseId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/method_get.go index 03d3fe22529e..7327393e7478 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c RestorableDroppedDatabasesClient) Get(ctx context.Context, id Restorable var model RestorableDroppedDatabase result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/version.go index 64c066a60410..106fd4d85825 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/restorabledroppeddatabases/version.go @@ -1,12 +1,10 @@ package restorabledroppeddatabases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/restorabledroppeddatabases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/restorabledroppeddatabases/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/README.md index b8b42cd81e82..a7e2f30e80b7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators` Documentation -The `serverazureadadministrators` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverazureadadministrators` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverazureadadministrators.ServerAzureADAdministrator{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/client.go index f50b24e55ac5..47d3cf27389c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/client.go @@ -15,7 +15,7 @@ type ServerAzureADAdministratorsClient struct { } func NewServerAzureADAdministratorsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAzureADAdministratorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverazureadadministrators", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverazureadadministrators", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerAzureADAdministratorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/method_get.go index f0fcd511e04b..98ead18b09a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/method_get.go @@ -47,7 +47,6 @@ func (c ServerAzureADAdministratorsClient) Get(ctx context.Context, id commonids var model ServerAzureADAdministrator result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/version.go index fb1d3ff2173b..696a267e9d45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadadministrators/version.go @@ -1,12 +1,10 @@ package serverazureadadministrators -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverazureadadministrators/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverazureadadministrators/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/README.md index aee7e7b05752..889ae9b49fb6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications` Documentation -The `serverazureadonlyauthentications` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverazureadonlyauthentications` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverazureadonlyauthentications.ServerAzureADOnlyAuthentication{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/client.go index 21c08da1953d..14d36937a755 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/client.go @@ -15,7 +15,7 @@ type ServerAzureADOnlyAuthenticationsClient struct { } func NewServerAzureADOnlyAuthenticationsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerAzureADOnlyAuthenticationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverazureadonlyauthentications", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverazureadonlyauthentications", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerAzureADOnlyAuthenticationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/method_get.go index f254750271a4..937c73a56976 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/method_get.go @@ -47,7 +47,6 @@ func (c ServerAzureADOnlyAuthenticationsClient) Get(ctx context.Context, id comm var model ServerAzureADOnlyAuthentication result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/version.go index a8c41d733c25..545fe91466ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverazureadonlyauthentications/version.go @@ -1,12 +1,10 @@ package serverazureadonlyauthentications -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverazureadonlyauthentications/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverazureadonlyauthentications/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/README.md index 82d13df82b02..683d0b7d3b4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies` Documentation -The `serverconnectionpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverconnectionpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverconnectionpolicies.ServerConnectionPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/client.go index 15991ddbd85a..a4b5aa95d548 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/client.go @@ -15,7 +15,7 @@ type ServerConnectionPoliciesClient struct { } func NewServerConnectionPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerConnectionPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverconnectionpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverconnectionpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerConnectionPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/method_get.go index afcb959ee652..48f33b38281f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ServerConnectionPoliciesClient) Get(ctx context.Context, id commonids.Sq var model ServerConnectionPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/version.go index 74fe1fd90149..ce9697bf7040 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverconnectionpolicies/version.go @@ -1,12 +1,10 @@ package serverconnectionpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverconnectionpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverconnectionpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/README.md index 741937c83ad3..92e5e0d1dec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit` Documentation -The `serverdevopsaudit` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverdevopsaudit` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serverdevopsaudit.ServerDevOpsAuditingSettings{ // ... @@ -42,7 +42,7 @@ if err := client.SettingsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.SettingsGet(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.SettingsListByServer(ctx, id)` can be used to do batched pagination items, err := client.SettingsListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/client.go index 535c6daec99f..5e560080c0c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/client.go @@ -15,7 +15,7 @@ type ServerDevOpsAuditClient struct { } func NewServerDevOpsAuditClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerDevOpsAuditClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverdevopsaudit", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverdevopsaudit", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerDevOpsAuditClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/method_settingsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/method_settingsget.go index 47e850924e2c..6f6c514f848d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/method_settingsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/method_settingsget.go @@ -47,7 +47,6 @@ func (c ServerDevOpsAuditClient) SettingsGet(ctx context.Context, id commonids.S var model ServerDevOpsAuditingSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/version.go index bd0493f4a08a..d27b397981b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdevopsaudit/version.go @@ -1,12 +1,10 @@ package serverdevopsaudit -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverdevopsaudit/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverdevopsaudit/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/README.md index c16ab0ca8942..41d8c6ae655f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases` Documentation -The `serverdnsaliases` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverdnsaliases` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "dnsAliasValue") +id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "dnsAliasName") payload := serverdnsaliases.ServerDnsAliasAcquisition{ // ... @@ -42,7 +42,7 @@ if err := client.AcquireThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "dnsAliasValue") +id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "dnsAliasName") if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "dnsAliasValue") +id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "dnsAliasName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "dnsAliasValue") +id := serverdnsaliases.NewDnsAliasID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "dnsAliasName") read, err := client.Get(ctx, id) if err != nil { @@ -82,7 +82,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/client.go index f8e554ac6f05..7f03630ea409 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/client.go @@ -15,7 +15,7 @@ type ServerDnsAliasesClient struct { } func NewServerDnsAliasesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerDnsAliasesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverdnsaliases", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverdnsaliases", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerDnsAliasesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/id_dnsalias.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/id_dnsalias.go index 89703b594cdb..ffc5b029ee0f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/id_dnsalias.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/id_dnsalias.go @@ -44,7 +44,7 @@ func ParseDnsAliasID(input string) (*DnsAliasId, error) { } id := DnsAliasId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDnsAliasIDInsensitively(input string) (*DnsAliasId, error) { } id := DnsAliasId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DnsAliasId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticDnsAliases", "dnsAliases", "dnsAliases"), - resourceids.UserSpecifiedSegment("dnsAliasName", "dnsAliasValue"), + resourceids.UserSpecifiedSegment("dnsAliasName", "dnsAliasName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/method_get.go index 103cdf86db15..7c3666bd13ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/method_get.go @@ -45,7 +45,6 @@ func (c ServerDnsAliasesClient) Get(ctx context.Context, id DnsAliasId) (result var model ServerDnsAlias result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/version.go index 2bfa15bbd056..efa619eaa5fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverdnsaliases/version.go @@ -1,12 +1,10 @@ package serverdnsaliases -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverdnsaliases/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverdnsaliases/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/README.md index 6bafb740132a..95e6d593e1a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys` Documentation -The `serverkeys` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serverkeys` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") payload := serverkeys.ServerKey{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "keyValue") +id := serverkeys.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "keyName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/client.go index 83970b7eb35d..0616b182cbba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/client.go @@ -15,7 +15,7 @@ type ServerKeysClient struct { } func NewServerKeysClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerKeysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverkeys", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverkeys", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerKeysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/id_key.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/id_key.go index a6d8137a5d3c..916ff4d30593 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/id_key.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/id_key.go @@ -44,7 +44,7 @@ func ParseKeyID(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseKeyIDInsensitively(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id KeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/method_get.go index cdd81e30407d..e6b4acc396aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/method_get.go @@ -45,7 +45,6 @@ func (c ServerKeysClient) Get(ctx context.Context, id KeyId) (result GetOperatio var model ServerKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/version.go index 5f90937a4f87..bb5611da7307 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serverkeys/version.go @@ -1,12 +1,10 @@ package serverkeys -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverkeys/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverkeys/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/README.md index 97dcfdfb44f0..83dc2170fe81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers` Documentation -The `servers` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `servers` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.Server{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -75,7 +75,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id, servers.DefaultGetOperationOptions()) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ImportNewDatabaseDefinition{ // ... @@ -142,7 +142,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") if err := client.RefreshStatusThenPoll(ctx, id); err != nil { // handle the error @@ -154,7 +154,7 @@ if err := client.RefreshStatusThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servers.ServerUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/client.go index 64c1b8daeb31..806c95250004 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/client.go @@ -15,7 +15,7 @@ type ServersClient struct { } func NewServersClientWithBaseURI(sdkApi sdkEnv.Api) (*ServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_checknameavailability.go index 33491559bacd..d4dc423607a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ServersClient) CheckNameAvailability(ctx context.Context, id commonids.S var model CheckNameAvailabilityResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_get.go index 9fa3523f4824..186e44d6c15a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_get.go @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c ServersClient) Get(ctx context.Context, id commonids.SqlServerId, option var model Server result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_list.go index 0ce97ea8572e..7c8dc454f0d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_listbyresourcegroup.go index eb7122c8a0ae..9ded1776fd1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/version.go index 45695708a26e..2a627d7ede77 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servers/version.go @@ -1,12 +1,10 @@ package servers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servers/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/README.md index bc488ab47a29..2ce923a3229b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies` Documentation -The `serversecurityalertpolicies` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `serversecurityalertpolicies` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := serversecurityalertpolicies.ServerSecurityAlertPolicy{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/client.go index d3b8f5dac1b6..cb80188b5008 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/client.go @@ -15,7 +15,7 @@ type ServerSecurityAlertPoliciesClient struct { } func NewServerSecurityAlertPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerSecurityAlertPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serversecurityalertpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serversecurityalertpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerSecurityAlertPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/method_get.go index 52a7b24a5a4e..b7f63c8bb22c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ServerSecurityAlertPoliciesClient) Get(ctx context.Context, id commonids var model ServerSecurityAlertPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/version.go index d84cac2cff19..35f67de8e6ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/serversecurityalertpolicies/version.go @@ -1,12 +1,10 @@ package serversecurityalertpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serversecurityalertpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serversecurityalertpolicies/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/README.md index 9495a712316e..005ae26e9685 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments` Documentation -The `servervulnerabilityassessments` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `servervulnerabilityassessments` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") payload := servervulnerabilityassessments.ServerVulnerabilityAssessment{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/client.go index 5ab28ece52e4..e7d2ead05453 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/client.go @@ -15,7 +15,7 @@ type ServerVulnerabilityAssessmentsClient struct { } func NewServerVulnerabilityAssessmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerVulnerabilityAssessmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "servervulnerabilityassessments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "servervulnerabilityassessments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerVulnerabilityAssessmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_createorupdate.go index 6833023e5f85..9b468796ec2c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_createorupdate.go @@ -52,7 +52,6 @@ func (c ServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context var model ServerVulnerabilityAssessment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_get.go index 84e9a7c32435..09f63e48019f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/method_get.go @@ -47,7 +47,6 @@ func (c ServerVulnerabilityAssessmentsClient) Get(ctx context.Context, id common var model ServerVulnerabilityAssessment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/version.go index 1eb694979461..426bcfcbc873 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments/version.go @@ -1,12 +1,10 @@ package servervulnerabilityassessments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/servervulnerabilityassessments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/servervulnerabilityassessments/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/README.md index 12678b2e7d5f..49be3f6165d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions` Documentation -The `transparentdataencryptions` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `transparentdataencryptions` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") payload := transparentdataencryptions.LogicalDatabaseTransparentDataEncryption{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") read, err := client.Get(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "databaseValue") +id := commonids.NewSqlDatabaseID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "databaseName") // alternatively `client.ListByDatabase(ctx, id)` can be used to do batched pagination items, err := client.ListByDatabaseComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/client.go index 405c2a9c03a3..023e8247a473 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/client.go @@ -15,7 +15,7 @@ type TransparentDataEncryptionsClient struct { } func NewTransparentDataEncryptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*TransparentDataEncryptionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "transparentdataencryptions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "transparentdataencryptions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TransparentDataEncryptionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/method_get.go index 30de417b32aa..607b29fc4f03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/method_get.go @@ -47,7 +47,6 @@ func (c TransparentDataEncryptionsClient) Get(ctx context.Context, id commonids. var model LogicalDatabaseTransparentDataEncryption result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/version.go index d8e1d4b5a102..b7a3a5c68508 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/transparentdataencryptions/version.go @@ -1,12 +1,10 @@ package transparentdataencryptions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/transparentdataencryptions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/transparentdataencryptions/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/README.md index 460f9322cf33..74a038c74259 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules` Documentation -The `virtualnetworkrules` SDK allows for interaction with the Azure Resource Manager Service `sql` (API Version `2023-08-01-preview`). +The `virtualnetworkrules` SDK allows for interaction with Azure Resource Manager `sql` (API Version `2023-08-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") payload := virtualnetworkrules.VirtualNetworkRule{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue", "virtualNetworkRuleValue") +id := virtualnetworkrules.NewVirtualNetworkRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName", "virtualNetworkRuleName") read, err := client.Get(ctx, id) if err != nil { @@ -70,7 +70,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverValue") +id := commonids.NewSqlServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverName") // alternatively `client.ListByServer(ctx, id)` can be used to do batched pagination items, err := client.ListByServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/client.go index 1395850f955e..05336264e4f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/client.go @@ -15,7 +15,7 @@ type VirtualNetworkRulesClient struct { } func NewVirtualNetworkRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworkRulesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworkrules", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworkrules", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworkRulesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/id_virtualnetworkrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/id_virtualnetworkrule.go index cda6be2068fc..3202dec43255 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/id_virtualnetworkrule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/id_virtualnetworkrule.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkRuleID(input string) (*VirtualNetworkRuleId, error) { } id := VirtualNetworkRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkRuleIDInsensitively(input string) (*VirtualNetworkRuleId } id := VirtualNetworkRuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkRuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSql", "Microsoft.Sql", "Microsoft.Sql"), resourceids.StaticSegment("staticServers", "servers", "servers"), - resourceids.UserSpecifiedSegment("serverName", "serverValue"), + resourceids.UserSpecifiedSegment("serverName", "serverName"), resourceids.StaticSegment("staticVirtualNetworkRules", "virtualNetworkRules", "virtualNetworkRules"), - resourceids.UserSpecifiedSegment("virtualNetworkRuleName", "virtualNetworkRuleValue"), + resourceids.UserSpecifiedSegment("virtualNetworkRuleName", "virtualNetworkRuleName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/method_get.go index 5a63376cc384..ffe91c541177 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworkRulesClient) Get(ctx context.Context, id VirtualNetworkRul var model VirtualNetworkRule result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/version.go index 53db2f31acfb..ba428e6123ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/virtualnetworkrules/version.go @@ -1,12 +1,10 @@ package virtualnetworkrules -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-08-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworkrules/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworkrules/2023-08-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/README.md index 7fdf992168d9..9000b30a1bd7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners` Documentation -The `availabilitygrouplisteners` SDK allows for interaction with the Azure Resource Manager Service `sqlvirtualmachine` (API Version `2023-10-01`). +The `availabilitygrouplisteners` SDK allows for interaction with Azure Resource Manager `sqlvirtualmachine` (API Version `2023-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue", "availabilityGroupListenerValue") +id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName", "availabilityGroupListenerName") payload := availabilitygrouplisteners.AvailabilityGroupListener{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue", "availabilityGroupListenerValue") +id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName", "availabilityGroupListenerName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue", "availabilityGroupListenerValue") +id := availabilitygrouplisteners.NewAvailabilityGroupListenerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName", "availabilityGroupListenerName") read, err := client.Get(ctx, id, availabilitygrouplisteners.DefaultGetOperationOptions()) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := availabilitygrouplisteners.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := availabilitygrouplisteners.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") // alternatively `client.ListByGroup(ctx, id)` can be used to do batched pagination items, err := client.ListByGroupComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/client.go index dd5ea297a040..a13c1d45cf55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/client.go @@ -15,7 +15,7 @@ type AvailabilityGroupListenersClient struct { } func NewAvailabilityGroupListenersClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailabilityGroupListenersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "availabilitygrouplisteners", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "availabilitygrouplisteners", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AvailabilityGroupListenersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_availabilitygrouplistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_availabilitygrouplistener.go index a98aa636876a..c337c92582a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_availabilitygrouplistener.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_availabilitygrouplistener.go @@ -44,7 +44,7 @@ func ParseAvailabilityGroupListenerID(input string) (*AvailabilityGroupListenerI } id := AvailabilityGroupListenerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAvailabilityGroupListenerIDInsensitively(input string) (*AvailabilityG } id := AvailabilityGroupListenerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AvailabilityGroupListenerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSqlVirtualMachine", "Microsoft.SqlVirtualMachine", "Microsoft.SqlVirtualMachine"), resourceids.StaticSegment("staticSqlVirtualMachineGroups", "sqlVirtualMachineGroups", "sqlVirtualMachineGroups"), - resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupValue"), + resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupName"), resourceids.StaticSegment("staticAvailabilityGroupListeners", "availabilityGroupListeners", "availabilityGroupListeners"), - resourceids.UserSpecifiedSegment("availabilityGroupListenerName", "availabilityGroupListenerValue"), + resourceids.UserSpecifiedSegment("availabilityGroupListenerName", "availabilityGroupListenerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_sqlvirtualmachinegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_sqlvirtualmachinegroup.go index d86535520936..ebf64b6ceab1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_sqlvirtualmachinegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/id_sqlvirtualmachinegroup.go @@ -42,7 +42,7 @@ func ParseSqlVirtualMachineGroupID(input string) (*SqlVirtualMachineGroupId, err } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSqlVirtualMachineGroupIDInsensitively(input string) (*SqlVirtualMachin } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SqlVirtualMachineGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSqlVirtualMachine", "Microsoft.SqlVirtualMachine", "Microsoft.SqlVirtualMachine"), resourceids.StaticSegment("staticSqlVirtualMachineGroups", "sqlVirtualMachineGroups", "sqlVirtualMachineGroups"), - resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupValue"), + resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go index 926cc90bed39..e61caf014297 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c AvailabilityGroupListenersClient) Get(ctx context.Context, id Availabili var model AvailabilityGroupListener result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/version.go index c237d268700b..d6ade3d09cf9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/availabilitygrouplisteners/version.go @@ -1,12 +1,10 @@ package availabilitygrouplisteners -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/availabilitygrouplisteners/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/availabilitygrouplisteners/2023-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/README.md index b1a6248c5d72..692898ee23cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups` Documentation -The `sqlvirtualmachinegroups` SDK allows for interaction with the Azure Resource Manager Service `sqlvirtualmachine` (API Version `2023-10-01`). +The `sqlvirtualmachinegroups` SDK allows for interaction with Azure Resource Manager `sqlvirtualmachine` (API Version `2023-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") payload := sqlvirtualmachinegroups.SqlVirtualMachineGroup{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := sqlvirtualmachinegroups.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") payload := sqlvirtualmachinegroups.SqlVirtualMachineGroupUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/client.go index 1bf6a0b88a75..eb31f314e0b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/client.go @@ -15,7 +15,7 @@ type SqlVirtualMachineGroupsClient struct { } func NewSqlVirtualMachineGroupsClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlVirtualMachineGroupsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sqlvirtualmachinegroups", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sqlvirtualmachinegroups", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SqlVirtualMachineGroupsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/id_sqlvirtualmachinegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/id_sqlvirtualmachinegroup.go index ad826656b971..5f81813d0f6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/id_sqlvirtualmachinegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/id_sqlvirtualmachinegroup.go @@ -42,7 +42,7 @@ func ParseSqlVirtualMachineGroupID(input string) (*SqlVirtualMachineGroupId, err } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSqlVirtualMachineGroupIDInsensitively(input string) (*SqlVirtualMachin } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SqlVirtualMachineGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSqlVirtualMachine", "Microsoft.SqlVirtualMachine", "Microsoft.SqlVirtualMachine"), resourceids.StaticSegment("staticSqlVirtualMachineGroups", "sqlVirtualMachineGroups", "sqlVirtualMachineGroups"), - resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupValue"), + resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_get.go index 211cb57a9053..17849af621f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/method_get.go @@ -45,7 +45,6 @@ func (c SqlVirtualMachineGroupsClient) Get(ctx context.Context, id SqlVirtualMac var model SqlVirtualMachineGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/version.go index ae2caae5adf9..bfc86a23e569 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachinegroups/version.go @@ -1,12 +1,10 @@ package sqlvirtualmachinegroups -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sqlvirtualmachinegroups/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sqlvirtualmachinegroups/2023-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/README.md index 4b92ac3cf14d..ab7eea30656a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines` Documentation -The `sqlvirtualmachines` SDK allows for interaction with the Azure Resource Manager Service `sqlvirtualmachine` (API Version `2023-10-01`). +The `sqlvirtualmachines` SDK allows for interaction with Azure Resource Manager `sqlvirtualmachine` (API Version `2023-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") payload := sqlvirtualmachines.SqlVirtualMachine{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") payload := sqlvirtualmachines.DiskConfigAssessmentRequest{ // ... @@ -71,7 +71,7 @@ if err := client.FetchDCAssessmentThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") read, err := client.Get(ctx, id, sqlvirtualmachines.DefaultGetOperationOptions()) if err != nil { @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupValue") +id := sqlvirtualmachines.NewSqlVirtualMachineGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineGroupName") // alternatively `client.ListBySqlVMGroup(ctx, id)` can be used to do batched pagination items, err := client.ListBySqlVMGroupComplete(ctx, id) @@ -138,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") if err := client.RedeployThenPoll(ctx, id); err != nil { // handle the error @@ -150,7 +150,7 @@ if err := client.RedeployThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") if err := client.StartAssessmentThenPoll(ctx, id); err != nil { // handle the error @@ -162,7 +162,7 @@ if err := client.StartAssessmentThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineValue") +id := sqlvirtualmachines.NewSqlVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sqlVirtualMachineName") payload := sqlvirtualmachines.SqlVirtualMachineUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/client.go index d3578ee4c553..706440aad78a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/client.go @@ -15,7 +15,7 @@ type SqlVirtualMachinesClient struct { } func NewSqlVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlVirtualMachinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sqlvirtualmachines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sqlvirtualmachines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SqlVirtualMachinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachine.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachine.go index 67c55ddda18d..d75254da89f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachine.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachine.go @@ -42,7 +42,7 @@ func ParseSqlVirtualMachineID(input string) (*SqlVirtualMachineId, error) { } id := SqlVirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSqlVirtualMachineIDInsensitively(input string) (*SqlVirtualMachineId, } id := SqlVirtualMachineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SqlVirtualMachineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSqlVirtualMachine", "Microsoft.SqlVirtualMachine", "Microsoft.SqlVirtualMachine"), resourceids.StaticSegment("staticSqlVirtualMachines", "sqlVirtualMachines", "sqlVirtualMachines"), - resourceids.UserSpecifiedSegment("sqlVirtualMachineName", "sqlVirtualMachineValue"), + resourceids.UserSpecifiedSegment("sqlVirtualMachineName", "sqlVirtualMachineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachinegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachinegroup.go index 5949af3d82cf..abe044d4068e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachinegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/id_sqlvirtualmachinegroup.go @@ -42,7 +42,7 @@ func ParseSqlVirtualMachineGroupID(input string) (*SqlVirtualMachineGroupId, err } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSqlVirtualMachineGroupIDInsensitively(input string) (*SqlVirtualMachin } id := SqlVirtualMachineGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SqlVirtualMachineGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSqlVirtualMachine", "Microsoft.SqlVirtualMachine", "Microsoft.SqlVirtualMachine"), resourceids.StaticSegment("staticSqlVirtualMachineGroups", "sqlVirtualMachineGroups", "sqlVirtualMachineGroups"), - resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupValue"), + resourceids.UserSpecifiedSegment("sqlVirtualMachineGroupName", "sqlVirtualMachineGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go index 0fffbe8a99bc..9b663ace099a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c SqlVirtualMachinesClient) Get(ctx context.Context, id SqlVirtualMachineI var model SqlVirtualMachine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/version.go index 2c8d7fb3ad31..a68cf6d077a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/sqlvirtualmachine/2023-10-01/sqlvirtualmachines/version.go @@ -1,12 +1,10 @@ package sqlvirtualmachines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sqlvirtualmachines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sqlvirtualmachines/2023-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/README.md index 7e01ae7f0d6a..81cd133ef166 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations` Documentation -The `accountmigrations` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `accountmigrations` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := accountmigrations.StorageAccountMigration{ // ... @@ -42,7 +42,7 @@ if err := client.StorageAccountsCustomerInitiatedMigrationThenPoll(ctx, id, payl ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.StorageAccountsGetCustomerInitiatedMigration(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/client.go index 076c5aff6a09..ea6474187709 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/client.go @@ -15,7 +15,7 @@ type AccountMigrationsClient struct { } func NewAccountMigrationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountMigrationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "accountmigrations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "accountmigrations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccountMigrationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go index a39987ec8f5a..4e4a8102905c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/method_storageaccountsgetcustomerinitiatedmigration.go @@ -47,7 +47,6 @@ func (c AccountMigrationsClient) StorageAccountsGetCustomerInitiatedMigration(ct var model StorageAccountMigration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/version.go index 2829a585b895..b8cec88a9564 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/accountmigrations/version.go @@ -1,12 +1,10 @@ package accountmigrations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/accountmigrations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/accountmigrations/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/README.md index d8001ed8b499..b1de63275650 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers` Documentation -The `blobcontainers` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `blobcontainers` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.LegalHold{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.BlobContainer{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.ImmutabilityPolicy{ // ... @@ -88,7 +88,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") read, err := client.Delete(ctx, id) if err != nil { @@ -104,7 +104,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") read, err := client.DeleteImmutabilityPolicy(ctx, id, blobcontainers.DefaultDeleteImmutabilityPolicyOperationOptions()) if err != nil { @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.ImmutabilityPolicy{ // ... @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") read, err := client.Get(ctx, id) if err != nil { @@ -157,7 +157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") read, err := client.GetImmutabilityPolicy(ctx, id, blobcontainers.DefaultGetImmutabilityPolicyOperationOptions()) if err != nil { @@ -173,7 +173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.LeaseContainerRequest{ // ... @@ -194,7 +194,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") // alternatively `client.List(ctx, id, blobcontainers.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, blobcontainers.DefaultListOperationOptions()) @@ -211,7 +211,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") read, err := client.LockImmutabilityPolicy(ctx, id, blobcontainers.DefaultLockImmutabilityPolicyOperationOptions()) if err != nil { @@ -227,7 +227,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") if err := client.ObjectLevelWormThenPoll(ctx, id); err != nil { // handle the error @@ -239,7 +239,7 @@ if err := client.ObjectLevelWormThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.LegalHold{ // ... @@ -260,7 +260,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue") +id := commonids.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName", "containerName") payload := blobcontainers.BlobContainer{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/client.go index d6fb59316128..f8c4f0054744 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/client.go @@ -15,7 +15,7 @@ type BlobContainersClient struct { } func NewBlobContainersClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobContainersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "blobcontainers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "blobcontainers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BlobContainersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_clearlegalhold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_clearlegalhold.go index 160259634e57..ff43462d451c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_clearlegalhold.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_clearlegalhold.go @@ -51,7 +51,6 @@ func (c BlobContainersClient) ClearLegalHold(ctx context.Context, id commonids.S var model LegalHold result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_create.go index 652075bc4564..8a507c13c086 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_create.go @@ -51,7 +51,6 @@ func (c BlobContainersClient) Create(ctx context.Context, id commonids.StorageCo var model BlobContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go index d5d718510734..c683f139c1d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_createorupdateimmutabilitypolicy.go @@ -37,6 +37,7 @@ func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToHeaders() *client.He func (o CreateOrUpdateImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Conte var model ImmutabilityPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go index 71dcef6dd82f..a24507c4578a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_deleteimmutabilitypolicy.go @@ -37,6 +37,7 @@ func (o DeleteImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { func (o DeleteImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, id c var model ImmutabilityPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go index e2b3562b6e61..4e18a4334d3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_extendimmutabilitypolicy.go @@ -37,6 +37,7 @@ func (o ExtendImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { func (o ExtendImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, id c var model ImmutabilityPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_get.go index 18793964e8ca..b0a980a8e540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_get.go @@ -46,7 +46,6 @@ func (c BlobContainersClient) Get(ctx context.Context, id commonids.StorageConta var model BlobContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go index a86d0abab3f7..a2100e1a1cda 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_getimmutabilitypolicy.go @@ -37,6 +37,7 @@ func (o GetImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { func (o GetImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, id comm var model ImmutabilityPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lease.go index deead4db335b..10eca29be96f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lease.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lease.go @@ -51,7 +51,6 @@ func (c BlobContainersClient) Lease(ctx context.Context, id commonids.StorageCon var model LeaseContainerResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_list.go index 7e4f85cf9f40..595846418069 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go index 613d1a91b0f4..772bf3c0fe64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_lockimmutabilitypolicy.go @@ -37,6 +37,7 @@ func (o LockImmutabilityPolicyOperationOptions) ToHeaders() *client.Headers { func (o LockImmutabilityPolicyOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, id com var model ImmutabilityPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_setlegalhold.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_setlegalhold.go index 0a4e957fc3aa..66c886c244f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_setlegalhold.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_setlegalhold.go @@ -51,7 +51,6 @@ func (c BlobContainersClient) SetLegalHold(ctx context.Context, id commonids.Sto var model LegalHold result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_update.go index ddaf5078f6ac..9924675791bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/method_update.go @@ -50,7 +50,6 @@ func (c BlobContainersClient) Update(ctx context.Context, id commonids.StorageCo var model BlobContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/version.go index f3e041e8af96..1e0608dcca4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobcontainers/version.go @@ -1,12 +1,10 @@ package blobcontainers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/blobcontainers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/blobcontainers/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md index 311fa2bf8840..43edfe5e40bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies` Documentation -The `blobinventorypolicies` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `blobinventorypolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := blobinventorypolicies.BlobInventoryPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/client.go index 64177c4faea5..ead543ae1eab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/client.go @@ -15,7 +15,7 @@ type BlobInventoryPoliciesClient struct { } func NewBlobInventoryPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobInventoryPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "blobinventorypolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "blobinventorypolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BlobInventoryPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_createorupdate.go index 4ec3e51d549c..d9aa7bb2ce5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_createorupdate.go @@ -51,7 +51,6 @@ func (c BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, id comm var model BlobInventoryPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_get.go index 592d8485606c..f6596807e4a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_get.go @@ -47,7 +47,6 @@ func (c BlobInventoryPoliciesClient) Get(ctx context.Context, id commonids.Stora var model BlobInventoryPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_list.go index 4c0c8b995669..6dd03a8e79fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/method_list.go @@ -47,7 +47,6 @@ func (c BlobInventoryPoliciesClient) List(ctx context.Context, id commonids.Stor var model ListBlobInventoryPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/version.go index 3132be051674..28da557ea73b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobinventorypolicies/version.go @@ -1,12 +1,10 @@ package blobinventorypolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/blobinventorypolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/blobinventorypolicies/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/README.md index 9ebdcbc742be..c534c8ad1584 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice` Documentation -The `blobservice` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `blobservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.GetServiceProperties(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := blobservice.BlobServiceProperties{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/client.go index f67861e99f3e..8e7d9478e1ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/client.go @@ -15,7 +15,7 @@ type BlobServiceClient struct { } func NewBlobServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "blobservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "blobservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating BlobServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_getserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_getserviceproperties.go index 3ad4b249f57a..e576638e6369 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_getserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_getserviceproperties.go @@ -47,7 +47,6 @@ func (c BlobServiceClient) GetServiceProperties(ctx context.Context, id commonid var model BlobServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_list.go index 0663b1a875bc..16076d2e6eaf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_list.go @@ -47,7 +47,6 @@ func (c BlobServiceClient) List(ctx context.Context, id commonids.StorageAccount var model BlobServiceItems result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_setserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_setserviceproperties.go index 7f23880f2e17..48c8c11a18db 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_setserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/method_setserviceproperties.go @@ -51,7 +51,6 @@ func (c BlobServiceClient) SetServiceProperties(ctx context.Context, id commonid var model BlobServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/version.go index 536b992fec40..7bc1aca3b398 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/blobservice/version.go @@ -1,12 +1,10 @@ package blobservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/blobservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/blobservice/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/README.md index 93c899a08fc8..b1e95e05eca1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts` Documentation -The `deletedaccounts` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `deletedaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := deletedaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedAccountValue") +id := deletedaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "location", "deletedAccountName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/client.go index 63277691ee32..126cde4e75fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/client.go @@ -15,7 +15,7 @@ type DeletedAccountsClient struct { } func NewDeletedAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*DeletedAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "deletedaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "deletedaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DeletedAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/id_deletedaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/id_deletedaccount.go index 966f6c88de33..e2e845c203bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/id_deletedaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/id_deletedaccount.go @@ -42,7 +42,7 @@ func ParseDeletedAccountID(input string) (*DeletedAccountId, error) { } id := DeletedAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseDeletedAccountIDInsensitively(input string) (*DeletedAccountId, error) } id := DeletedAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id DeletedAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticDeletedAccounts", "deletedAccounts", "deletedAccounts"), - resourceids.UserSpecifiedSegment("deletedAccountName", "deletedAccountValue"), + resourceids.UserSpecifiedSegment("deletedAccountName", "deletedAccountName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/method_get.go index d8f0b6dec40f..226604e9e7dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/method_get.go @@ -45,7 +45,6 @@ func (c DeletedAccountsClient) Get(ctx context.Context, id DeletedAccountId) (re var model DeletedAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/version.go index 8d76b97cfa39..64e95debfbea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/deletedaccounts/version.go @@ -1,12 +1,10 @@ package deletedaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/deletedaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/deletedaccounts/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/README.md index dfd329a3bdb7..5ea54ee3807b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes` Documentation -The `encryptionscopes` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `encryptionscopes` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "encryptionScopeValue") +id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "encryptionScopeName") read, err := client.Get(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") // alternatively `client.List(ctx, id, encryptionscopes.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, encryptionscopes.DefaultListOperationOptions()) @@ -58,7 +58,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "encryptionScopeValue") +id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "encryptionScopeName") payload := encryptionscopes.EncryptionScope{ // ... @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "encryptionScopeValue") +id := encryptionscopes.NewEncryptionScopeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "encryptionScopeName") payload := encryptionscopes.EncryptionScope{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/client.go index cece7665062e..b91c7fbf3ceb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/client.go @@ -15,7 +15,7 @@ type EncryptionScopesClient struct { } func NewEncryptionScopesClientWithBaseURI(sdkApi sdkEnv.Api) (*EncryptionScopesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "encryptionscopes", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "encryptionscopes", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EncryptionScopesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/id_encryptionscope.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/id_encryptionscope.go index b9ea58e8e9ff..89c250e57ba2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/id_encryptionscope.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/id_encryptionscope.go @@ -44,7 +44,7 @@ func ParseEncryptionScopeID(input string) (*EncryptionScopeId, error) { } id := EncryptionScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEncryptionScopeIDInsensitively(input string) (*EncryptionScopeId, erro } id := EncryptionScopeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EncryptionScopeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticEncryptionScopes", "encryptionScopes", "encryptionScopes"), - resourceids.UserSpecifiedSegment("encryptionScopeName", "encryptionScopeValue"), + resourceids.UserSpecifiedSegment("encryptionScopeName", "encryptionScopeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_get.go index f3d244a9d4a9..9804f1d3dcdd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_get.go @@ -45,7 +45,6 @@ func (c EncryptionScopesClient) Get(ctx context.Context, id EncryptionScopeId) ( var model EncryptionScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go index 270b8f24cf7c..a918ca41cedd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_patch.go index 5eb446f9e7ad..f078a793f314 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_patch.go @@ -49,7 +49,6 @@ func (c EncryptionScopesClient) Patch(ctx context.Context, id EncryptionScopeId, var model EncryptionScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_put.go index 6a6f5484c545..a44ea7672dfb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/method_put.go @@ -50,7 +50,6 @@ func (c EncryptionScopesClient) Put(ctx context.Context, id EncryptionScopeId, i var model EncryptionScope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/version.go index 2b111f0a4a95..6b66090f6b46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/encryptionscopes/version.go @@ -1,12 +1,10 @@ package encryptionscopes -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/encryptionscopes/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/encryptionscopes/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/README.md index 8e915ef9e705..9df4032bbc3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice` Documentation -The `fileservice` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `fileservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.GetServiceProperties(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := fileservice.FileServiceProperties{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/client.go index 3da62522778e..cca027047952 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/client.go @@ -15,7 +15,7 @@ type FileServiceClient struct { } func NewFileServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*FileServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fileservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fileservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FileServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_getserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_getserviceproperties.go index eaece7b8b981..ca53fe209094 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_getserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_getserviceproperties.go @@ -47,7 +47,6 @@ func (c FileServiceClient) GetServiceProperties(ctx context.Context, id commonid var model FileServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_list.go index 222e614bfa4f..981e8f7a7518 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_list.go @@ -47,7 +47,6 @@ func (c FileServiceClient) List(ctx context.Context, id commonids.StorageAccount var model FileServiceItems result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_setserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_setserviceproperties.go index 72f930f18185..71205c1011a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_setserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/method_setserviceproperties.go @@ -51,7 +51,6 @@ func (c FileServiceClient) SetServiceProperties(ctx context.Context, id commonid var model FileServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/version.go index 28e2e8a133f1..d104500778b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileservice/version.go @@ -1,12 +1,10 @@ package fileservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fileservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fileservice/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/README.md index 33903a18a8bd..32e21208f16d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares` Documentation -The `fileshares` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `fileshares` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := fileshares.FileShare{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") read, err := client.Delete(ctx, id, fileshares.DefaultDeleteOperationOptions()) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") read, err := client.Get(ctx, id, fileshares.DefaultGetOperationOptions()) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := fileshares.LeaseShareRequest{ // ... @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") // alternatively `client.List(ctx, id, fileshares.DefaultListOperationOptions())` can be used to do batched pagination items, err := client.ListComplete(ctx, id, fileshares.DefaultListOperationOptions()) @@ -116,7 +116,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := fileshares.DeletedShare{ // ... @@ -137,7 +137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "shareValue") +id := fileshares.NewShareID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "shareName") payload := fileshares.FileShare{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/client.go index 716a45d91ac9..168c9b6dd91b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/client.go @@ -15,7 +15,7 @@ type FileSharesClient struct { } func NewFileSharesClientWithBaseURI(sdkApi sdkEnv.Api) (*FileSharesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "fileshares", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "fileshares", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FileSharesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/id_share.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/id_share.go index f2712c47ee99..3b551884bcc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/id_share.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/id_share.go @@ -44,7 +44,7 @@ func ParseShareID(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseShareIDInsensitively(input string) (*ShareId, error) { } id := ShareId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id ShareId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticFileServices", "fileServices", "fileServices"), resourceids.StaticSegment("staticDefault", "default", "default"), resourceids.StaticSegment("staticShares", "shares", "shares"), - resourceids.UserSpecifiedSegment("shareName", "shareValue"), + resourceids.UserSpecifiedSegment("shareName", "shareName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_create.go index 3f1b71f5e919..a70229ca4726 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_create.go @@ -34,6 +34,7 @@ func (o CreateOperationOptions) ToHeaders() *client.Headers { func (o CreateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c FileSharesClient) Create(ctx context.Context, id ShareId, input FileShar var model FileShare result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_delete.go index 5149309d1416..b8b6c1131bcb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_get.go index b20b8f157e09..c76778a7da81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_get.go @@ -37,6 +37,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -77,7 +78,6 @@ func (c FileSharesClient) Get(ctx context.Context, id ShareId, options GetOperat var model FileShare result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_lease.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_lease.go index 45f4fab799b5..4f96787c84ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_lease.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_lease.go @@ -36,6 +36,7 @@ func (o LeaseOperationOptions) ToHeaders() *client.Headers { func (o LeaseOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c FileSharesClient) Lease(ctx context.Context, id ShareId, input LeaseShar var model LeaseShareResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_list.go index 6c096ded1b06..90f4e9bad07d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_list.go @@ -42,6 +42,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_update.go index 3b4a9855c687..4df6495f034f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/method_update.go @@ -49,7 +49,6 @@ func (c FileSharesClient) Update(ctx context.Context, id ShareId, input FileShar var model FileShare result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/version.go index f2474f502f94..a51f5384d041 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/fileshares/version.go @@ -1,12 +1,10 @@ package fileshares -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/fileshares/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/fileshares/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/README.md index d8d0f5948ccb..e39aecabe05a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers` Documentation -The `localusers` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `localusers` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "localUserValue") +id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "username") payload := localusers.LocalUser{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "localUserValue") +id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "username") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "localUserValue") +id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "username") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "localUserValue") +id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "username") read, err := client.ListKeys(ctx, id) if err != nil { @@ -110,7 +110,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "localUserValue") +id := localusers.NewLocalUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "username") read, err := client.RegeneratePassword(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/client.go index ab85d2cf8f7d..75f6ec63bc9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/client.go @@ -15,7 +15,7 @@ type LocalUsersClient struct { } func NewLocalUsersClientWithBaseURI(sdkApi sdkEnv.Api) (*LocalUsersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "localusers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "localusers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating LocalUsersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/id_localuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/id_localuser.go index 00f822aadb5f..972952de1ee2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/id_localuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/id_localuser.go @@ -44,7 +44,7 @@ func ParseLocalUserID(input string) (*LocalUserId, error) { } id := LocalUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLocalUserIDInsensitively(input string) (*LocalUserId, error) { } id := LocalUserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LocalUserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticLocalUsers", "localUsers", "localUsers"), - resourceids.UserSpecifiedSegment("localUserName", "localUserValue"), + resourceids.UserSpecifiedSegment("localUserName", "username"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_createorupdate.go index 6350d0cbb401..a4f5dae589af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_createorupdate.go @@ -49,7 +49,6 @@ func (c LocalUsersClient) CreateOrUpdate(ctx context.Context, id LocalUserId, in var model LocalUser result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_get.go index d9fe1a2ab29a..a1b7d29ccf54 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_get.go @@ -45,7 +45,6 @@ func (c LocalUsersClient) Get(ctx context.Context, id LocalUserId) (result GetOp var model LocalUser result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_list.go index f63b295e61e9..81d69009a7c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_list.go @@ -47,7 +47,6 @@ func (c LocalUsersClient) List(ctx context.Context, id commonids.StorageAccountI var model LocalUsers result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_listkeys.go index bc45754e287e..18c79940bfd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_listkeys.go @@ -46,7 +46,6 @@ func (c LocalUsersClient) ListKeys(ctx context.Context, id LocalUserId) (result var model LocalUserKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_regeneratepassword.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_regeneratepassword.go index e7bc7e44e6e7..db714c7bbf93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_regeneratepassword.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/method_regeneratepassword.go @@ -46,7 +46,6 @@ func (c LocalUsersClient) RegeneratePassword(ctx context.Context, id LocalUserId var model LocalUserRegeneratePasswordResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/version.go index 8ee926256e70..6e50a1f7bac2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/localusers/version.go @@ -1,12 +1,10 @@ package localusers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/localusers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/localusers/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/README.md index 83cdc3e510bf..80362ec6ac84 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies` Documentation -The `managementpolicies` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `managementpolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := managementpolicies.ManagementPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.Get(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/client.go index c3647dcfd90b..3c6c8bfbeab9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/client.go @@ -15,7 +15,7 @@ type ManagementPoliciesClient struct { } func NewManagementPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagementPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managementpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managementpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagementPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_createorupdate.go index ac866e17759d..581da6420d58 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_createorupdate.go @@ -51,7 +51,6 @@ func (c ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, id commoni var model ManagementPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_get.go index 7265da724b93..d7d0d1067578 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/method_get.go @@ -47,7 +47,6 @@ func (c ManagementPoliciesClient) Get(ctx context.Context, id commonids.StorageA var model ManagementPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/version.go index f598d6ab4b9f..fbffb9ccd3d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/managementpolicies/version.go @@ -1,12 +1,10 @@ package managementpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managementpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managementpolicies/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md index 382b7712eb75..5288f1c912a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies` Documentation -The `objectreplicationpolicies` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `objectreplicationpolicies` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "objectReplicationPolicyIdValue") +id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "objectReplicationPolicyId") payload := objectreplicationpolicies.ObjectReplicationPolicy{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "objectReplicationPolicyIdValue") +id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "objectReplicationPolicyId") read, err := client.Delete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "objectReplicationPolicyIdValue") +id := objectreplicationpolicies.NewObjectReplicationPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "objectReplicationPolicyId") read, err := client.Get(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/client.go index 1a6ea0f15c3b..0a7166592571 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/client.go @@ -15,7 +15,7 @@ type ObjectReplicationPoliciesClient struct { } func NewObjectReplicationPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*ObjectReplicationPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "objectreplicationpolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "objectreplicationpolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ObjectReplicationPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/id_objectreplicationpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/id_objectreplicationpolicy.go index 8e0a9404f7f1..037ef44e15c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/id_objectreplicationpolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/id_objectreplicationpolicy.go @@ -44,7 +44,7 @@ func ParseObjectReplicationPolicyID(input string) (*ObjectReplicationPolicyId, e } id := ObjectReplicationPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseObjectReplicationPolicyIDInsensitively(input string) (*ObjectReplicati } id := ObjectReplicationPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ObjectReplicationPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticObjectReplicationPolicies", "objectReplicationPolicies", "objectReplicationPolicies"), - resourceids.UserSpecifiedSegment("objectReplicationPolicyId", "objectReplicationPolicyIdValue"), + resourceids.UserSpecifiedSegment("objectReplicationPolicyId", "objectReplicationPolicyId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_createorupdate.go index 35caabe9bd6c..986601726d9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_createorupdate.go @@ -49,7 +49,6 @@ func (c ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, id var model ObjectReplicationPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_get.go index cf2e59b413d9..bebd8d8cdd29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_get.go @@ -45,7 +45,6 @@ func (c ObjectReplicationPoliciesClient) Get(ctx context.Context, id ObjectRepli var model ObjectReplicationPolicy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_list.go index 234ecd924ec8..ee3fc07bcbe2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/method_list.go @@ -47,7 +47,6 @@ func (c ObjectReplicationPoliciesClient) List(ctx context.Context, id commonids. var model ObjectReplicationPolicies result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/version.go index 00c3bbb6a6a7..8d2345bc4e5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/objectreplicationpolicies/version.go @@ -1,12 +1,10 @@ package objectreplicationpolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/objectreplicationpolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/objectreplicationpolicies/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/README.md index 35f8cbaed282..3dec067e8005 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections` Documentation -The `privateendpointconnections` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `privateendpointconnections` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "privateEndpointConnectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "privateEndpointConnectionName") read, err := client.Get(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.List(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "privateEndpointConnectionValue") +id := privateendpointconnections.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "privateEndpointConnectionName") payload := privateendpointconnections.PrivateEndpointConnection{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/client.go index 3bf7a6afe1ff..50eaf09dcce9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/client.go @@ -15,7 +15,7 @@ type PrivateEndpointConnectionsClient struct { } func NewPrivateEndpointConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpointconnections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpointconnections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/id_privateendpointconnection.go index d90e3c0365b9..d52b958b0d75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_get.go index 8dc28d7ff7af..351242746d44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointConnectionsClient) Get(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_list.go index 8917977fc4ea..d17e2e90a974 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_list.go @@ -47,7 +47,6 @@ func (c PrivateEndpointConnectionsClient) List(ctx context.Context, id commonids var model PrivateEndpointConnectionListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_put.go index c3eb19aec494..4e3b24e9ce0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/method_put.go @@ -49,7 +49,6 @@ func (c PrivateEndpointConnectionsClient) Put(ctx context.Context, id PrivateEnd var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/version.go index 9e2a36fc3502..5963c7d52f20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privateendpointconnections/version.go @@ -1,12 +1,10 @@ package privateendpointconnections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpointconnections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpointconnections/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/README.md index e6119768bc9b..c6cd41fea768 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources` Documentation -The `privatelinkresources` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `privatelinkresources` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.ListByStorageAccount(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/client.go index e6e22caa7468..28c00b21f034 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/client.go @@ -15,7 +15,7 @@ type PrivateLinkResourcesClient struct { } func NewPrivateLinkResourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateLinkResourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privatelinkresources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privatelinkresources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateLinkResourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/method_listbystorageaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/method_listbystorageaccount.go index 91a6e88551af..c824d249e2fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/method_listbystorageaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/method_listbystorageaccount.go @@ -47,7 +47,6 @@ func (c PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, id var model PrivateLinkResourceListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/version.go index d020bb9e164e..80e78c9dced0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/privatelinkresources/version.go @@ -1,12 +1,10 @@ package privatelinkresources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privatelinkresources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privatelinkresources/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/README.md index d326c7b157a9..c3f20467f074 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice` Documentation -The `queueservice` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `queueservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "queueValue") +id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "queueName") payload := queueservice.StorageQueue{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "queueValue") +id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "queueName") read, err := client.QueueDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "queueValue") +id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "queueName") read, err := client.QueueGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") // alternatively `client.QueueList(ctx, id, queueservice.DefaultQueueListOperationOptions())` can be used to do batched pagination items, err := client.QueueListComplete(ctx, id, queueservice.DefaultQueueListOperationOptions()) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "queueValue") +id := queueservice.NewQueueID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "queueName") payload := queueservice.StorageQueue{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/client.go index 66324e7dadf4..2c8a13a7cbf8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/client.go @@ -15,7 +15,7 @@ type QueueServiceClient struct { } func NewQueueServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "queueservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "queueservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueueServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/id_queue.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/id_queue.go index 068439f287e2..fb990559096d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/id_queue.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/id_queue.go @@ -44,7 +44,7 @@ func ParseQueueID(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseQueueIDInsensitively(input string) (*QueueId, error) { } id := QueueId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id QueueId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticQueueServices", "queueServices", "queueServices"), resourceids.StaticSegment("staticDefault", "default", "default"), resourceids.StaticSegment("staticQueues", "queues", "queues"), - resourceids.UserSpecifiedSegment("queueName", "queueValue"), + resourceids.UserSpecifiedSegment("queueName", "queueName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuecreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuecreate.go index 88bdb6a519ca..98fe87a46ee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuecreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuecreate.go @@ -49,7 +49,6 @@ func (c QueueServiceClient) QueueCreate(ctx context.Context, id QueueId, input S var model StorageQueue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueget.go index 6368b8bfeec8..92a46418f560 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueget.go @@ -45,7 +45,6 @@ func (c QueueServiceClient) QueueGet(ctx context.Context, id QueueId) (result Qu var model StorageQueue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go index 318e140f7d5e..32f4154907a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queuelist.go @@ -41,6 +41,7 @@ func (o QueueListOperationOptions) ToHeaders() *client.Headers { func (o QueueListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueupdate.go index 2e75cd7f5181..1683fdf8d92c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/method_queueupdate.go @@ -49,7 +49,6 @@ func (c QueueServiceClient) QueueUpdate(ctx context.Context, id QueueId, input S var model StorageQueue result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/version.go index ceec81321036..8aa139053168 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueservice/version.go @@ -1,12 +1,10 @@ package queueservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/queueservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/queueservice/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/README.md index 296ea37b88b8..78e1ce439325 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties` Documentation -The `queueserviceproperties` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `queueserviceproperties` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.QueueServicesGetServiceProperties(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.QueueServicesList(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := queueserviceproperties.QueueServiceProperties{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/client.go index 03af2c66f432..561ee9327f85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/client.go @@ -15,7 +15,7 @@ type QueueServicePropertiesClient struct { } func NewQueueServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*QueueServicePropertiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "queueserviceproperties", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "queueserviceproperties", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating QueueServicePropertiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicesgetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicesgetserviceproperties.go index 633879116165..f78f2a984e87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicesgetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicesgetserviceproperties.go @@ -47,7 +47,6 @@ func (c QueueServicePropertiesClient) QueueServicesGetServiceProperties(ctx cont var model QueueServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueserviceslist.go index c6efdced89c9..4838af6a6108 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueserviceslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueserviceslist.go @@ -47,7 +47,6 @@ func (c QueueServicePropertiesClient) QueueServicesList(ctx context.Context, id var model ListQueueServices result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicessetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicessetserviceproperties.go index adcb748bcea8..2d8525c0af1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicessetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/method_queueservicessetserviceproperties.go @@ -51,7 +51,6 @@ func (c QueueServicePropertiesClient) QueueServicesSetServiceProperties(ctx cont var model QueueServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/version.go index 06d03ca1ee0c..25f47e29580e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/queueserviceproperties/version.go @@ -1,12 +1,10 @@ package queueserviceproperties -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/queueserviceproperties/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/queueserviceproperties/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/README.md index 6e20ff6578c1..0c0b835ea6be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus` Documentation -The `skus` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `skus` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/client.go index 90cd04245b3e..8db417218634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/client.go @@ -15,7 +15,7 @@ type SkusClient struct { } func NewSkusClientWithBaseURI(sdkApi sdkEnv.Api) (*SkusClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "skus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "skus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SkusClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/method_list.go index fef91f385c79..a8f7100a2489 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/method_list.go @@ -47,7 +47,6 @@ func (c SkusClient) List(ctx context.Context, id commonids.SubscriptionId) (resu var model StorageSkuListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/version.go index 72603d4eebe7..467edf994fa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/skus/version.go @@ -1,12 +1,10 @@ package skus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/skus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/skus/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/README.md index af72ad8400e3..3adb33a21d37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts` Documentation -The `storageaccounts` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `storageaccounts` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") if err := client.AbortHierarchicalNamespaceMigrationThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.StorageAccountCreateParameters{ // ... @@ -75,7 +75,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.Delete(ctx, id) if err != nil { @@ -91,7 +91,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") if err := client.FailoverThenPoll(ctx, id, storageaccounts.DefaultFailoverOperationOptions()); err != nil { // handle the error @@ -103,7 +103,7 @@ if err := client.FailoverThenPoll(ctx, id, storageaccounts.DefaultFailoverOperat ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.GetProperties(ctx, id, storageaccounts.DefaultGetPropertiesOperationOptions()) if err != nil { @@ -119,7 +119,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") if err := client.HierarchicalNamespaceMigrationThenPoll(ctx, id, storageaccounts.DefaultHierarchicalNamespaceMigrationOperationOptions()); err != nil { // handle the error @@ -148,7 +148,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.AccountSasParameters{ // ... @@ -186,7 +186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.ListKeys(ctx, id, storageaccounts.DefaultListKeysOperationOptions()) if err != nil { @@ -202,7 +202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.ServiceSasParameters{ // ... @@ -223,7 +223,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.StorageAccountRegenerateKeyParameters{ // ... @@ -244,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.BlobRestoreParameters{ // ... @@ -261,7 +261,7 @@ if err := client.RestoreBlobRangesThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.RevokeUserDelegationKeys(ctx, id) if err != nil { @@ -277,7 +277,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := storageaccounts.StorageAccountUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/client.go index ea316d84f83a..8fad6eedb7ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/client.go @@ -15,7 +15,7 @@ type StorageAccountsClient struct { } func NewStorageAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageAccountsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storageaccounts", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storageaccounts", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageAccountsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_checknameavailability.go index e843f48137c6..c26dc1685082 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c StorageAccountsClient) CheckNameAvailability(ctx context.Context, id com var model CheckNameAvailabilityResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go index 232206ae331b..2dacce2190a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_failover.go @@ -37,6 +37,7 @@ func (o FailoverOperationOptions) ToHeaders() *client.Headers { func (o FailoverOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go index 0670e27212f2..889e7b6b811b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_getproperties.go @@ -35,6 +35,7 @@ func (o GetPropertiesOperationOptions) ToHeaders() *client.Headers { func (o GetPropertiesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c StorageAccountsClient) GetProperties(ctx context.Context, id commonids.S var model StorageAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go index aacd24aa153c..645a7ebf72aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_hierarchicalnamespacemigration.go @@ -37,6 +37,7 @@ func (o HierarchicalNamespaceMigrationOperationOptions) ToHeaders() *client.Head func (o HierarchicalNamespaceMigrationOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listaccountsas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listaccountsas.go index 97c0b14e799b..8e8d8524427e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listaccountsas.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listaccountsas.go @@ -51,7 +51,6 @@ func (c StorageAccountsClient) ListAccountSAS(ctx context.Context, id commonids. var model ListAccountSasResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go index 2d73921315f9..0c1536ce92ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listkeys.go @@ -35,6 +35,7 @@ func (o ListKeysOperationOptions) ToHeaders() *client.Headers { func (o ListKeysOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c StorageAccountsClient) ListKeys(ctx context.Context, id commonids.Storag var model StorageAccountListKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listservicesas.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listservicesas.go index 4ac7ad0b3afe..1381cbd5c33b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listservicesas.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_listservicesas.go @@ -51,7 +51,6 @@ func (c StorageAccountsClient) ListServiceSAS(ctx context.Context, id commonids. var model ListServiceSasResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_regeneratekey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_regeneratekey.go index 7a2b6a977989..fed50b969901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_regeneratekey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_regeneratekey.go @@ -51,7 +51,6 @@ func (c StorageAccountsClient) RegenerateKey(ctx context.Context, id commonids.S var model StorageAccountListKeysResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_update.go index 0d35afd28b20..7878fcc1eebc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/method_update.go @@ -50,7 +50,6 @@ func (c StorageAccountsClient) Update(ctx context.Context, id commonids.StorageA var model StorageAccount result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/version.go index a06af287f637..996a046b1ce2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/storageaccounts/version.go @@ -1,12 +1,10 @@ package storageaccounts -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storageaccounts/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storageaccounts/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/README.md index c791fc9fe76a..6822425d480f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice` Documentation -The `tableservice` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `tableservice` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue") +id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := tableservice.Table{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue") +id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableDelete(ctx, id) if err != nil { @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue") +id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") read, err := client.TableGet(ctx, id) if err != nil { @@ -78,7 +78,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") // alternatively `client.TableList(ctx, id)` can be used to do batched pagination items, err := client.TableListComplete(ctx, id) @@ -95,7 +95,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "tableValue") +id := tableservice.NewTableID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountName", "tableName") payload := tableservice.Table{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/client.go index 03b4e028e988..953b6a4b29eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/client.go @@ -15,7 +15,7 @@ type TableServiceClient struct { } func NewTableServiceClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServiceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tableservice", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tableservice", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TableServiceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/id_table.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/id_table.go index 4603ffec8ff4..3c22dad82f99 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/id_table.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/id_table.go @@ -44,7 +44,7 @@ func ParseTableID(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTableIDInsensitively(input string) (*TableId, error) { } id := TableId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id TableId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorage", "Microsoft.Storage", "Microsoft.Storage"), resourceids.StaticSegment("staticStorageAccounts", "storageAccounts", "storageAccounts"), - resourceids.UserSpecifiedSegment("storageAccountName", "storageAccountValue"), + resourceids.UserSpecifiedSegment("storageAccountName", "accountName"), resourceids.StaticSegment("staticTableServices", "tableServices", "tableServices"), resourceids.StaticSegment("staticDefault", "default", "default"), resourceids.StaticSegment("staticTables", "tables", "tables"), - resourceids.UserSpecifiedSegment("tableName", "tableValue"), + resourceids.UserSpecifiedSegment("tableName", "tableName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tablecreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tablecreate.go index 9c014b5de227..f2970fc65abc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tablecreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tablecreate.go @@ -49,7 +49,6 @@ func (c TableServiceClient) TableCreate(ctx context.Context, id TableId, input T var model Table result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableget.go index 4db47fcbf28a..aef020e4c88b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableget.go @@ -45,7 +45,6 @@ func (c TableServiceClient) TableGet(ctx context.Context, id TableId) (result Ta var model Table result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableupdate.go index c92604b27e09..2508510e5717 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/method_tableupdate.go @@ -49,7 +49,6 @@ func (c TableServiceClient) TableUpdate(ctx context.Context, id TableId, input T var model Table result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/version.go index 1e5bddb8405e..ad59eb788ffe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableservice/version.go @@ -1,12 +1,10 @@ package tableservice -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tableservice/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tableservice/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/README.md index 3c2f010bd7de..79149b27b31a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties` Documentation -The `tableserviceproperties` SDK allows for interaction with the Azure Resource Manager Service `storage` (API Version `2023-01-01`). +The `tableserviceproperties` SDK allows for interaction with Azure Resource Manager `storage` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.TableServicesGetServiceProperties(ctx, id) if err != nil { @@ -41,7 +41,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") read, err := client.TableServicesList(ctx, id) if err != nil { @@ -57,7 +57,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue") +id := commonids.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountName") payload := tableserviceproperties.TableServiceProperties{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/client.go index ae0b242ba7c2..dcb7653dd46c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/client.go @@ -15,7 +15,7 @@ type TableServicePropertiesClient struct { } func NewTableServicePropertiesClientWithBaseURI(sdkApi sdkEnv.Api) (*TableServicePropertiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "tableserviceproperties", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "tableserviceproperties", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TableServicePropertiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicesgetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicesgetserviceproperties.go index 4293264696e5..e1a990554595 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicesgetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicesgetserviceproperties.go @@ -47,7 +47,6 @@ func (c TableServicePropertiesClient) TableServicesGetServiceProperties(ctx cont var model TableServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableserviceslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableserviceslist.go index 138c39b2ca26..613a663b4569 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableserviceslist.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableserviceslist.go @@ -47,7 +47,6 @@ func (c TableServicePropertiesClient) TableServicesList(ctx context.Context, id var model ListTableServices result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicessetserviceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicessetserviceproperties.go index 4ce4a5db53d0..e9e9f143a095 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicessetserviceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/method_tableservicessetserviceproperties.go @@ -51,7 +51,6 @@ func (c TableServicePropertiesClient) TableServicesSetServiceProperties(ctx cont var model TableServiceProperties result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/version.go index c59a531d81ee..5fb548b94b4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-01-01/tableserviceproperties/version.go @@ -1,12 +1,10 @@ package tableserviceproperties -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/tableserviceproperties/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/tableserviceproperties/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md index f65f94c1f1b6..875b760200b9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems` Documentation -The `amlfilesystems` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `amlfilesystems` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") payload := amlfilesystems.AmlFilesystemArchiveInfo{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") read, err := client.CancelArchive(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") payload := amlfilesystems.AmlFilesystem{ // ... @@ -100,7 +100,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -112,7 +112,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") read, err := client.Get(ctx, id) if err != nil { @@ -183,7 +183,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemValue") +id := amlfilesystems.NewAmlFilesystemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "amlFilesystemName") payload := amlfilesystems.AmlFilesystemUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/client.go index a9967587cb4b..be5c37e9f254 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/client.go @@ -15,7 +15,7 @@ type AmlFilesystemsClient struct { } func NewAmlFilesystemsClientWithBaseURI(sdkApi sdkEnv.Api) (*AmlFilesystemsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "amlfilesystems", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "amlfilesystems", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AmlFilesystemsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/id_amlfilesystem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/id_amlfilesystem.go index 79bc2d6e34a9..7ed542b7b36e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/id_amlfilesystem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/id_amlfilesystem.go @@ -42,7 +42,7 @@ func ParseAmlFilesystemID(input string) (*AmlFilesystemId, error) { } id := AmlFilesystemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAmlFilesystemIDInsensitively(input string) (*AmlFilesystemId, error) { } id := AmlFilesystemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AmlFilesystemId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageCache", "Microsoft.StorageCache", "Microsoft.StorageCache"), resourceids.StaticSegment("staticAmlFilesystems", "amlFilesystems", "amlFilesystems"), - resourceids.UserSpecifiedSegment("amlFilesystemName", "amlFilesystemValue"), + resourceids.UserSpecifiedSegment("amlFilesystemName", "amlFilesystemName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_get.go index 345b54c274bf..043972d89b6e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_get.go @@ -45,7 +45,6 @@ func (c AmlFilesystemsClient) Get(ctx context.Context, id AmlFilesystemId) (resu var model AmlFilesystem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_getrequiredamlfssubnetssize.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_getrequiredamlfssubnetssize.go index c9447ea07a44..6a0580a6ae94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_getrequiredamlfssubnetssize.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/method_getrequiredamlfssubnetssize.go @@ -51,7 +51,6 @@ func (c AmlFilesystemsClient) GetRequiredAmlFSSubnetsSize(ctx context.Context, i var model RequiredAmlFilesystemSubnetsSize result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/version.go index 365cdbd59bce..b2e514a30179 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/amlfilesystems/version.go @@ -1,12 +1,10 @@ package amlfilesystems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/amlfilesystems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/amlfilesystems/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/README.md index 3084bd163f56..3045f17ce263 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages` Documentation -The `ascusages` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `ascusages` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := ascusages.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := ascusages.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/client.go index b1d28a898349..110522a8bbf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/client.go @@ -15,7 +15,7 @@ type AscUsagesClient struct { } func NewAscUsagesClientWithBaseURI(sdkApi sdkEnv.Api) (*AscUsagesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "ascusages", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "ascusages", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AscUsagesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/id_location.go index 96db2d03aee4..20c8a0b7271b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageCache", "Microsoft.StorageCache", "Microsoft.StorageCache"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/version.go index 09de6bfd1c72..7e8df087e104 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/ascusages/version.go @@ -1,12 +1,10 @@ package ascusages -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/ascusages/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/ascusages/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/README.md index 95e060eed944..5e92464a95bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches` Documentation -The `caches` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `caches` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.Cache{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.DebugInfoThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DebugInfoThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -66,7 +66,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.FlushThenPoll(ctx, id); err != nil { // handle the error @@ -78,7 +78,7 @@ if err := client.FlushThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") read, err := client.Get(ctx, id) if err != nil { @@ -128,7 +128,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.PrimingJobIdParameter{ // ... @@ -145,7 +145,7 @@ if err := client.PausePrimingJobThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.PrimingJobIdParameter{ // ... @@ -162,7 +162,7 @@ if err := client.ResumePrimingJobThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") var payload []StorageTargetSpaceAllocation if err := client.SpaceAllocationThenPoll(ctx, id, payload); err != nil { @@ -175,7 +175,7 @@ if err := client.SpaceAllocationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -187,7 +187,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.PrimingJob{ // ... @@ -204,7 +204,7 @@ if err := client.StartPrimingJobThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -216,7 +216,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.PrimingJobIdParameter{ // ... @@ -233,7 +233,7 @@ if err := client.StopPrimingJobThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") payload := caches.Cache{ // ... @@ -250,7 +250,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := caches.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") if err := client.UpgradeFirmwareThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/client.go index 0502f89bac3d..76c49d24efe9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/client.go @@ -15,7 +15,7 @@ type CachesClient struct { } func NewCachesClientWithBaseURI(sdkApi sdkEnv.Api) (*CachesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "caches", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "caches", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CachesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/id_cache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/id_cache.go index 0ded0974f33d..ffc0d0e36c7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/id_cache.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/id_cache.go @@ -42,7 +42,7 @@ func ParseCacheID(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCacheIDInsensitively(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CacheId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageCache", "Microsoft.StorageCache", "Microsoft.StorageCache"), resourceids.StaticSegment("staticCaches", "caches", "caches"), - resourceids.UserSpecifiedSegment("cacheName", "cacheValue"), + resourceids.UserSpecifiedSegment("cacheName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/method_get.go index 189a309780cd..ad6f21bc8c9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/method_get.go @@ -45,7 +45,6 @@ func (c CachesClient) Get(ctx context.Context, id CacheId) (result GetOperationR var model Cache result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/version.go index 624dbabb7ba4..38fb691955a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/caches/version.go @@ -1,12 +1,10 @@ package caches -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/caches/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/caches/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/README.md index 83f7399336fe..cb34530f0017 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus` Documentation -The `skus` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `skus` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/client.go index d2fbc1d3af0b..0a133f4bbca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/client.go @@ -15,7 +15,7 @@ type SKUsClient struct { } func NewSKUsClientWithBaseURI(sdkApi sdkEnv.Api) (*SKUsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "skus", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "skus", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SKUsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/version.go index a773105fcacb..fbf7e498613f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/skus/version.go @@ -1,12 +1,10 @@ package skus -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/skus/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/skus/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/README.md index 21f4d78cc31c..12cd4e8e0338 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets` Documentation -The `storagetargets` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `storagetargets` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") payload := storagetargets.StorageTarget{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.DeleteThenPoll(ctx, id, storagetargets.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id, storagetargets.DefaultDeleteOperationOp ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.DnsRefreshThenPoll(ctx, id); err != nil { // handle the error @@ -65,7 +65,7 @@ if err := client.DnsRefreshThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") read, err := client.Get(ctx, id) if err != nil { @@ -81,7 +81,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagetargets.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue") +id := storagetargets.NewCacheID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName") // alternatively `client.ListByCache(ctx, id)` can be used to do batched pagination items, err := client.ListByCacheComplete(ctx, id) @@ -98,7 +98,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.RestoreDefaultsThenPoll(ctx, id); err != nil { // handle the error @@ -110,7 +110,7 @@ if err := client.RestoreDefaultsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.StorageTargetFlushThenPoll(ctx, id); err != nil { // handle the error @@ -122,7 +122,7 @@ if err := client.StorageTargetFlushThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.StorageTargetInvalidateThenPoll(ctx, id); err != nil { // handle the error @@ -134,7 +134,7 @@ if err := client.StorageTargetInvalidateThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.StorageTargetResumeThenPoll(ctx, id); err != nil { // handle the error @@ -146,7 +146,7 @@ if err := client.StorageTargetResumeThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheValue", "storageTargetValue") +id := storagetargets.NewStorageTargetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cacheName", "storageTargetName") if err := client.StorageTargetSuspendThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/client.go index 06219399bc45..256f84013a86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/client.go @@ -15,7 +15,7 @@ type StorageTargetsClient struct { } func NewStorageTargetsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageTargetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storagetargets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storagetargets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageTargetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_cache.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_cache.go index 58ed3d8eda63..ce5d4b02d95f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_cache.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_cache.go @@ -42,7 +42,7 @@ func ParseCacheID(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCacheIDInsensitively(input string) (*CacheId, error) { } id := CacheId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CacheId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageCache", "Microsoft.StorageCache", "Microsoft.StorageCache"), resourceids.StaticSegment("staticCaches", "caches", "caches"), - resourceids.UserSpecifiedSegment("cacheName", "cacheValue"), + resourceids.UserSpecifiedSegment("cacheName", "cacheName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_storagetarget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_storagetarget.go index a7fa0e89afcf..6cd73781ea86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_storagetarget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/id_storagetarget.go @@ -44,7 +44,7 @@ func ParseStorageTargetID(input string) (*StorageTargetId, error) { } id := StorageTargetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseStorageTargetIDInsensitively(input string) (*StorageTargetId, error) { } id := StorageTargetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id StorageTargetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageCache", "Microsoft.StorageCache", "Microsoft.StorageCache"), resourceids.StaticSegment("staticCaches", "caches", "caches"), - resourceids.UserSpecifiedSegment("cacheName", "cacheValue"), + resourceids.UserSpecifiedSegment("cacheName", "cacheName"), resourceids.StaticSegment("staticStorageTargets", "storageTargets", "storageTargets"), - resourceids.UserSpecifiedSegment("storageTargetName", "storageTargetValue"), + resourceids.UserSpecifiedSegment("storageTargetName", "storageTargetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go index efd1a49d34b8..987aa8114eb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_get.go index c96eec978231..492cfcf69231 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/method_get.go @@ -45,7 +45,6 @@ func (c StorageTargetsClient) Get(ctx context.Context, id StorageTargetId) (resu var model StorageTarget result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/version.go index fc23780879f4..11fdd8ec9092 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/storagetargets/version.go @@ -1,12 +1,10 @@ package storagetargets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storagetargets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storagetargets/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/README.md index 282e0524289f..83bc7b752805 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels` Documentation -The `usagemodels` SDK allows for interaction with the Azure Resource Manager Service `storagecache` (API Version `2023-05-01`). +The `usagemodels` SDK allows for interaction with Azure Resource Manager `storagecache` (API Version `2023-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/client.go index 1755ed557249..2954bb3a6a3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/client.go @@ -15,7 +15,7 @@ type UsageModelsClient struct { } func NewUsageModelsClientWithBaseURI(sdkApi sdkEnv.Api) (*UsageModelsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "usagemodels", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "usagemodels", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating UsageModelsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/version.go index 609fb98d5877..118ac7751c11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagecache/2023-05-01/usagemodels/version.go @@ -1,12 +1,10 @@ package usagemodels -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/usagemodels/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/usagemodels/2023-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/README.md index cd62e7c1955f..d177402b65c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents` Documentation -The `agents` SDK allows for interaction with the Azure Resource Manager Service `storagemover` (API Version `2023-03-01`). +The `agents` SDK allows for interaction with Azure Resource Manager `storagemover` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "agentValue") +id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "agentName") payload := agents.Agent{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "agentValue") +id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "agentName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "agentValue") +id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "agentName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := agents.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := agents.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "agentValue") +id := agents.NewAgentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "agentName") payload := agents.AgentUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/client.go index 254beaaa1f05..a61cb38143c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/client.go @@ -15,7 +15,7 @@ type AgentsClient struct { } func NewAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AgentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "agents", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "agents", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AgentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_agent.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_agent.go index 14d3ecd63f67..54596a361308 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_agent.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_agent.go @@ -44,7 +44,7 @@ func ParseAgentID(input string) (*AgentId, error) { } id := AgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAgentIDInsensitively(input string) (*AgentId, error) { } id := AgentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AgentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), resourceids.StaticSegment("staticAgents", "agents", "agents"), - resourceids.UserSpecifiedSegment("agentName", "agentValue"), + resourceids.UserSpecifiedSegment("agentName", "agentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_storagemover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_storagemover.go index ee1fcd76358c..0457fe4ddec2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_storagemover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/id_storagemover.go @@ -42,7 +42,7 @@ func ParseStorageMoverID(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageMoverIDInsensitively(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageMoverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_createorupdate.go index 478a1373c456..445cf73d5974 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_createorupdate.go @@ -49,7 +49,6 @@ func (c AgentsClient) CreateOrUpdate(ctx context.Context, id AgentId, input Agen var model Agent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_get.go index afbf184b539d..36caeb9d18ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_get.go @@ -45,7 +45,6 @@ func (c AgentsClient) Get(ctx context.Context, id AgentId) (result GetOperationR var model Agent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_update.go index f55ad6d36780..89368848db12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/method_update.go @@ -49,7 +49,6 @@ func (c AgentsClient) Update(ctx context.Context, id AgentId, input AgentUpdateP var model Agent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/version.go index 9181413d185d..63a287f4e081 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/agents/version.go @@ -1,12 +1,10 @@ package agents -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/agents/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/agents/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/README.md index 50f43b91e98a..81d8f48253e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints` Documentation -The `endpoints` SDK allows for interaction with the Azure Resource Manager Service `storagemover` (API Version `2023-03-01`). +The `endpoints` SDK allows for interaction with Azure Resource Manager `storagemover` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "endpointName") payload := endpoints.Endpoint{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "endpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "endpointName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := endpoints.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "endpointValue") +id := endpoints.NewEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "endpointName") payload := endpoints.EndpointBaseUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/client.go index 5f6c4ea9eceb..754a364cd33a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/client.go @@ -15,7 +15,7 @@ type EndpointsClient struct { } func NewEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*EndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "endpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "endpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_endpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_endpoint.go index 22e0301b989a..310b58aadb63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_endpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_endpoint.go @@ -44,7 +44,7 @@ func ParseEndpointID(input string) (*EndpointId, error) { } id := EndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEndpointIDInsensitively(input string) (*EndpointId, error) { } id := EndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), resourceids.StaticSegment("staticEndpoints", "endpoints", "endpoints"), - resourceids.UserSpecifiedSegment("endpointName", "endpointValue"), + resourceids.UserSpecifiedSegment("endpointName", "endpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_storagemover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_storagemover.go index a873b8a0122b..e29753d872c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_storagemover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/id_storagemover.go @@ -42,7 +42,7 @@ func ParseStorageMoverID(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageMoverIDInsensitively(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageMoverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_createorupdate.go index a1f0e15bfe70..92fc7fede172 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_createorupdate.go @@ -49,7 +49,6 @@ func (c EndpointsClient) CreateOrUpdate(ctx context.Context, id EndpointId, inpu var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_get.go index d0d322403d01..b81e42bd7da6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_get.go @@ -45,7 +45,6 @@ func (c EndpointsClient) Get(ctx context.Context, id EndpointId) (result GetOper var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_update.go index 4cf1d8184f81..6d19a26f790b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/method_update.go @@ -49,7 +49,6 @@ func (c EndpointsClient) Update(ctx context.Context, id EndpointId, input Endpoi var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_azurestorageblobcontainerendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_azurestorageblobcontainerendpointproperties.go index 3a655d2725d9..57295e3ee83f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_azurestorageblobcontainerendpointproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_azurestorageblobcontainerendpointproperties.go @@ -15,10 +15,20 @@ type AzureStorageBlobContainerEndpointProperties struct { StorageAccountResourceId string `json:"storageAccountResourceId"` // Fields inherited from EndpointBaseProperties + Description *string `json:"description,omitempty"` + EndpointType EndpointType `json:"endpointType"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` } +func (s AzureStorageBlobContainerEndpointProperties) EndpointBaseProperties() BaseEndpointBasePropertiesImpl { + return BaseEndpointBasePropertiesImpl{ + Description: s.Description, + EndpointType: s.EndpointType, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = AzureStorageBlobContainerEndpointProperties{} func (s AzureStorageBlobContainerEndpointProperties) MarshalJSON() ([]byte, error) { @@ -30,9 +40,10 @@ func (s AzureStorageBlobContainerEndpointProperties) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureStorageBlobContainerEndpointProperties: %+v", err) } + decoded["endpointType"] = "AzureStorageBlobContainer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpoint.go index 5f30fb5dd539..d6242c9e22f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpoint.go @@ -21,10 +21,14 @@ type Endpoint struct { var _ json.Unmarshaler = &Endpoint{} func (s *Endpoint) UnmarshalJSON(bytes []byte) error { - type alias Endpoint - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Endpoint: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -38,11 +42,12 @@ func (s *Endpoint) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalEndpointBasePropertiesImplementation(v) + impl, err := UnmarshalEndpointBasePropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Endpoint': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpointbaseproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpointbaseproperties.go index 211401ab8156..229555022886 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpointbaseproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_endpointbaseproperties.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EndpointBaseProperties interface { + EndpointBaseProperties() BaseEndpointBasePropertiesImpl } -// RawEndpointBasePropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EndpointBaseProperties = BaseEndpointBasePropertiesImpl{} + +type BaseEndpointBasePropertiesImpl struct { + Description *string `json:"description,omitempty"` + EndpointType EndpointType `json:"endpointType"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` +} + +func (s BaseEndpointBasePropertiesImpl) EndpointBaseProperties() BaseEndpointBasePropertiesImpl { + return s +} + +var _ EndpointBaseProperties = RawEndpointBasePropertiesImpl{} + +// RawEndpointBasePropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEndpointBasePropertiesImpl struct { - Type string - Values map[string]interface{} + endpointBaseProperties BaseEndpointBasePropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawEndpointBasePropertiesImpl) EndpointBaseProperties() BaseEndpointBasePropertiesImpl { + return s.endpointBaseProperties } -func unmarshalEndpointBasePropertiesImplementation(input []byte) (EndpointBaseProperties, error) { +func UnmarshalEndpointBasePropertiesImplementation(input []byte) (EndpointBaseProperties, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalEndpointBasePropertiesImplementation(input []byte) (EndpointBasePr return nil, fmt.Errorf("unmarshaling EndpointBaseProperties into map[string]interface: %+v", err) } - value, ok := temp["endpointType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["endpointType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "AzureStorageBlobContainer") { @@ -52,10 +71,15 @@ func unmarshalEndpointBasePropertiesImplementation(input []byte) (EndpointBasePr return out, nil } - out := RawEndpointBasePropertiesImpl{ - Type: value, - Values: temp, + var parent BaseEndpointBasePropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEndpointBasePropertiesImpl: %+v", err) } - return out, nil + + return RawEndpointBasePropertiesImpl{ + endpointBaseProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_nfsmountendpointproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_nfsmountendpointproperties.go index d8631f3caf2d..8f95e9503d64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_nfsmountendpointproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/model_nfsmountendpointproperties.go @@ -16,10 +16,20 @@ type NfsMountEndpointProperties struct { NfsVersion *NfsVersion `json:"nfsVersion,omitempty"` // Fields inherited from EndpointBaseProperties + Description *string `json:"description,omitempty"` + EndpointType EndpointType `json:"endpointType"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` } +func (s NfsMountEndpointProperties) EndpointBaseProperties() BaseEndpointBasePropertiesImpl { + return BaseEndpointBasePropertiesImpl{ + Description: s.Description, + EndpointType: s.EndpointType, + ProvisioningState: s.ProvisioningState, + } +} + var _ json.Marshaler = NfsMountEndpointProperties{} func (s NfsMountEndpointProperties) MarshalJSON() ([]byte, error) { @@ -31,9 +41,10 @@ func (s NfsMountEndpointProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling NfsMountEndpointProperties: %+v", err) } + decoded["endpointType"] = "NfsMount" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/version.go index 4a86d747ef80..c425ac8bce1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/endpoints/version.go @@ -1,12 +1,10 @@ package endpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/endpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/endpoints/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/README.md index 533f765ce8f8..3b265315902c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions` Documentation -The `jobdefinitions` SDK allows for interaction with the Azure Resource Manager Service `storagemover` (API Version `2023-03-01`). +The `jobdefinitions` SDK allows for interaction with Azure Resource Manager `storagemover` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") payload := jobdefinitions.JobDefinition{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobdefinitions.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue") +id := jobdefinitions.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") read, err := client.StartJob(ctx, id) if err != nil { @@ -106,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") read, err := client.StopJob(ctx, id) if err != nil { @@ -122,7 +122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue", "jobDefinitionValue") +id := jobdefinitions.NewJobDefinitionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName", "jobDefinitionName") payload := jobdefinitions.JobDefinitionUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/client.go index 4e6d06c84335..8c25cd5af602 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/client.go @@ -15,7 +15,7 @@ type JobDefinitionsClient struct { } func NewJobDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*JobDefinitionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "jobdefinitions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "jobdefinitions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating JobDefinitionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_jobdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_jobdefinition.go index d5625dff2dce..4ff73287279c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_jobdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_jobdefinition.go @@ -46,7 +46,7 @@ func ParseJobDefinitionID(input string) (*JobDefinitionId, error) { } id := JobDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseJobDefinitionIDInsensitively(input string) (*JobDefinitionId, error) { } id := JobDefinitionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id JobDefinitionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), resourceids.StaticSegment("staticJobDefinitions", "jobDefinitions", "jobDefinitions"), - resourceids.UserSpecifiedSegment("jobDefinitionName", "jobDefinitionValue"), + resourceids.UserSpecifiedSegment("jobDefinitionName", "jobDefinitionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_project.go index 8726b737c471..687ab2fd482b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/id_project.go @@ -44,7 +44,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_createorupdate.go index dde487ce89de..90bd643a87b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_createorupdate.go @@ -49,7 +49,6 @@ func (c JobDefinitionsClient) CreateOrUpdate(ctx context.Context, id JobDefiniti var model JobDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_get.go index 0327bb98aa01..2a727ebb2050 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_get.go @@ -45,7 +45,6 @@ func (c JobDefinitionsClient) Get(ctx context.Context, id JobDefinitionId) (resu var model JobDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_startjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_startjob.go index 9a565e0fb4ed..26fa7ef42d22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_startjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_startjob.go @@ -46,7 +46,6 @@ func (c JobDefinitionsClient) StartJob(ctx context.Context, id JobDefinitionId) var model JobRunResourceId result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_stopjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_stopjob.go index 73dcd00fa614..635ea650d964 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_stopjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_stopjob.go @@ -46,7 +46,6 @@ func (c JobDefinitionsClient) StopJob(ctx context.Context, id JobDefinitionId) ( var model JobRunResourceId result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_update.go index 387e8a2e770f..67633d28211f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/method_update.go @@ -49,7 +49,6 @@ func (c JobDefinitionsClient) Update(ctx context.Context, id JobDefinitionId, in var model JobDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/version.go index b631aa2d405f..05d5ed5835cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/jobdefinitions/version.go @@ -1,12 +1,10 @@ package jobdefinitions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/jobdefinitions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/jobdefinitions/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/README.md index 3e28ba82de07..c0cc36ce9a4d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects` Documentation -The `projects` SDK allows for interaction with the Azure Resource Manager Service `storagemover` (API Version `2023-03-01`). +The `projects` SDK allows for interaction with Azure Resource Manager `storagemover` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName") payload := projects.Project{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := projects.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := projects.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -90,7 +90,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue", "projectValue") +id := projects.NewProjectID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName", "projectName") payload := projects.ProjectUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/client.go index f862a93697cd..78ad23b0856f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/client.go @@ -15,7 +15,7 @@ type ProjectsClient struct { } func NewProjectsClientWithBaseURI(sdkApi sdkEnv.Api) (*ProjectsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "projects", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "projects", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProjectsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_project.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_project.go index 49bb0c8603b0..89e0282dd518 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_project.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_project.go @@ -44,7 +44,7 @@ func ParseProjectID(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProjectIDInsensitively(input string) (*ProjectId, error) { } id := ProjectId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProjectId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), resourceids.StaticSegment("staticProjects", "projects", "projects"), - resourceids.UserSpecifiedSegment("projectName", "projectValue"), + resourceids.UserSpecifiedSegment("projectName", "projectName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_storagemover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_storagemover.go index ed115952d8c8..fd65ee87c8d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_storagemover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/id_storagemover.go @@ -42,7 +42,7 @@ func ParseStorageMoverID(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageMoverIDInsensitively(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageMoverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_createorupdate.go index c763c8600378..0aee10b71097 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_createorupdate.go @@ -49,7 +49,6 @@ func (c ProjectsClient) CreateOrUpdate(ctx context.Context, id ProjectId, input var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_get.go index b37e667ef3db..98e1f02f1882 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_get.go @@ -45,7 +45,6 @@ func (c ProjectsClient) Get(ctx context.Context, id ProjectId) (result GetOperat var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_update.go index a1f2fd6ad096..b99452439f29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/method_update.go @@ -49,7 +49,6 @@ func (c ProjectsClient) Update(ctx context.Context, id ProjectId, input ProjectU var model Project result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/version.go index e56f0693d3e7..4da5fa6b1ba1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/projects/version.go @@ -1,12 +1,10 @@ package projects -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/projects/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/projects/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/README.md index 9dfd009614dd..7088ffaa60e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers` Documentation -The `storagemovers` SDK allows for interaction with the Azure Resource Manager Service `storagemover` (API Version `2023-03-01`). +The `storagemovers` SDK allows for interaction with Azure Resource Manager `storagemover` (API Version `2023-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") payload := storagemovers.StorageMover{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -58,7 +58,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") read, err := client.Get(ctx, id) if err != nil { @@ -108,7 +108,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverValue") +id := storagemovers.NewStorageMoverID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageMoverName") payload := storagemovers.StorageMoverUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/client.go index 6dcabe53e93a..74f29bdf07b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/client.go @@ -15,7 +15,7 @@ type StorageMoversClient struct { } func NewStorageMoversClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageMoversClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storagemovers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storagemovers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageMoversClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/id_storagemover.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/id_storagemover.go index f8397bed89a5..7221bc4fb559 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/id_storagemover.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/id_storagemover.go @@ -42,7 +42,7 @@ func ParseStorageMoverID(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageMoverIDInsensitively(input string) (*StorageMoverId, error) { } id := StorageMoverId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageMoverId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageMover", "Microsoft.StorageMover", "Microsoft.StorageMover"), resourceids.StaticSegment("staticStorageMovers", "storageMovers", "storageMovers"), - resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverValue"), + resourceids.UserSpecifiedSegment("storageMoverName", "storageMoverName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_createorupdate.go index 0dc3b557a9d2..5677fa57e8de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_createorupdate.go @@ -49,7 +49,6 @@ func (c StorageMoversClient) CreateOrUpdate(ctx context.Context, id StorageMover var model StorageMover result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_get.go index a0277aad7ffd..deb7aec635f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_get.go @@ -45,7 +45,6 @@ func (c StorageMoversClient) Get(ctx context.Context, id StorageMoverId) (result var model StorageMover result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_update.go index 849c8b7148eb..673f20f52f7f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/method_update.go @@ -49,7 +49,6 @@ func (c StorageMoversClient) Update(ctx context.Context, id StorageMoverId, inpu var model StorageMover result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/version.go index c8a8ab7d2aef..621be8f606c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagemover/2023-03-01/storagemovers/version.go @@ -1,12 +1,10 @@ package storagemovers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storagemovers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storagemovers/2023-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/README.md index 7e69db3614f6..7ca1be0110bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource` Documentation -The `cloudendpointresource` SDK allows for interaction with the Azure Resource Manager Service `storagesync` (API Version `2020-03-01`). +The `cloudendpointresource` SDK allows for interaction with Azure Resource Manager `storagesync` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.CloudEndpointCreateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.CloudEndpointsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") if err := client.CloudEndpointsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.CloudEndpointsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") read, err := client.CloudEndpointsGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cloudendpointresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue") +id := cloudendpointresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName") read, err := client.CloudEndpointsListBySyncGroup(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.BackupRequest{ // ... @@ -102,7 +102,7 @@ if err := client.CloudEndpointsPostBackupThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.PostRestoreRequest{ // ... @@ -119,7 +119,7 @@ if err := client.CloudEndpointsPostRestoreThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.BackupRequest{ // ... @@ -136,7 +136,7 @@ if err := client.CloudEndpointsPreBackupThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.PreRestoreRequest{ // ... @@ -153,7 +153,7 @@ if err := client.CloudEndpointsPreRestoreThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") payload := cloudendpointresource.TriggerChangeDetectionParameters{ // ... @@ -170,7 +170,7 @@ if err := client.CloudEndpointsTriggerChangeDetectionThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "cloudEndpointValue") +id := cloudendpointresource.NewCloudEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "cloudEndpointName") read, err := client.CloudEndpointsrestoreheartbeat(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/client.go index 0610ae1640c6..0628efbfdddf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/client.go @@ -15,7 +15,7 @@ type CloudEndpointResourceClient struct { } func NewCloudEndpointResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*CloudEndpointResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "cloudendpointresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "cloudendpointresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CloudEndpointResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_cloudendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_cloudendpoint.go index ec2056edd2fd..bf48f7f8cd8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_cloudendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_cloudendpoint.go @@ -46,7 +46,7 @@ func ParseCloudEndpointID(input string) (*CloudEndpointId, error) { } id := CloudEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseCloudEndpointIDInsensitively(input string) (*CloudEndpointId, error) { } id := CloudEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id CloudEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticSyncGroups", "syncGroups", "syncGroups"), - resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupValue"), + resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupName"), resourceids.StaticSegment("staticCloudEndpoints", "cloudEndpoints", "cloudEndpoints"), - resourceids.UserSpecifiedSegment("cloudEndpointName", "cloudEndpointValue"), + resourceids.UserSpecifiedSegment("cloudEndpointName", "cloudEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_syncgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_syncgroup.go index 74148b8e9145..3cb3207a67bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_syncgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/id_syncgroup.go @@ -44,7 +44,7 @@ func ParseSyncGroupID(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSyncGroupIDInsensitively(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SyncGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticSyncGroups", "syncGroups", "syncGroups"), - resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupValue"), + resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointsget.go index b2d283865994..c5155a907d4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointsget.go @@ -45,7 +45,6 @@ func (c CloudEndpointResourceClient) CloudEndpointsGet(ctx context.Context, id C var model CloudEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointslistbysyncgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointslistbysyncgroup.go index dd0200cc4f07..103c2802ea30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointslistbysyncgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/method_cloudendpointslistbysyncgroup.go @@ -46,7 +46,6 @@ func (c CloudEndpointResourceClient) CloudEndpointsListBySyncGroup(ctx context.C var model CloudEndpointArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/version.go index ed42dc8dadfe..763147890bc8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/cloudendpointresource/version.go @@ -1,12 +1,10 @@ package cloudendpointresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/cloudendpointresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/cloudendpointresource/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/README.md index 8d34e481816d..c77015db0601 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource` Documentation -The `registeredserverresource` SDK allows for interaction with the Azure Resource Manager Service `storagesync` (API Version `2020-03-01`). +The `registeredserverresource` SDK allows for interaction with Azure Resource Manager `storagesync` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue") +id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "serverId") payload := registeredserverresource.RegisteredServerCreateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.RegisteredServersCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue") +id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "serverId") if err := client.RegisteredServersDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.RegisteredServersDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue") +id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "serverId") read, err := client.RegisteredServersGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registeredserverresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := registeredserverresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") read, err := client.RegisteredServersListByStorageSyncService(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "serverIdValue") +id := registeredserverresource.NewRegisteredServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "serverId") payload := registeredserverresource.TriggerRolloverRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/client.go index b1ee6e2a5654..cba938bf266d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/client.go @@ -15,7 +15,7 @@ type RegisteredServerResourceClient struct { } func NewRegisteredServerResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*RegisteredServerResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "registeredserverresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "registeredserverresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating RegisteredServerResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_registeredserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_registeredserver.go index 0db72c025d29..8b5afede25fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_registeredserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_registeredserver.go @@ -44,7 +44,7 @@ func ParseRegisteredServerID(input string) (*RegisteredServerId, error) { } id := RegisteredServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseRegisteredServerIDInsensitively(input string) (*RegisteredServerId, er } id := RegisteredServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id RegisteredServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticRegisteredServers", "registeredServers", "registeredServers"), - resourceids.UserSpecifiedSegment("serverId", "serverIdValue"), + resourceids.UserSpecifiedSegment("serverId", "serverId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_storagesyncservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_storagesyncservice.go index f671ced549f0..68c6bd42538c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_storagesyncservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/id_storagesyncservice.go @@ -42,7 +42,7 @@ func ParseStorageSyncServiceID(input string) (*StorageSyncServiceId, error) { } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageSyncServiceIDInsensitively(input string) (*StorageSyncServiceId } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageSyncServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserversget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserversget.go index 76075f446ebd..e2fd904133ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserversget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserversget.go @@ -45,7 +45,6 @@ func (c RegisteredServerResourceClient) RegisteredServersGet(ctx context.Context var model RegisteredServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserverslistbystoragesyncservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserverslistbystoragesyncservice.go index 4c3c2388c13d..c8b3c7f67044 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserverslistbystoragesyncservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/method_registeredserverslistbystoragesyncservice.go @@ -46,7 +46,6 @@ func (c RegisteredServerResourceClient) RegisteredServersListByStorageSyncServic var model RegisteredServerArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/version.go index aa095fcb8b65..53d9d6625b61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/registeredserverresource/version.go @@ -1,12 +1,10 @@ package registeredserverresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/registeredserverresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/registeredserverresource/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/README.md index 5a119896d273..b42035abd41c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource` Documentation -The `serverendpointresource` SDK allows for interaction with the Azure Resource Manager Service `storagesync` (API Version `2020-03-01`). +The `serverendpointresource` SDK allows for interaction with Azure Resource Manager `storagesync` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue") +id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "serverEndpointName") payload := serverendpointresource.ServerEndpointCreateParameters{ // ... @@ -41,7 +41,7 @@ if err := client.ServerEndpointsCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue") +id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "serverEndpointName") if err := client.ServerEndpointsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.ServerEndpointsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue") +id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "serverEndpointName") read, err := client.ServerEndpointsGet(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverendpointresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue") +id := serverendpointresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName") read, err := client.ServerEndpointsListBySyncGroup(ctx, id) if err != nil { @@ -85,7 +85,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue") +id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "serverEndpointName") payload := serverendpointresource.ServerEndpointUpdateParameters{ // ... @@ -102,7 +102,7 @@ if err := client.ServerEndpointsUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue", "serverEndpointValue") +id := serverendpointresource.NewServerEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName", "serverEndpointName") payload := serverendpointresource.RecallActionParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/client.go index f271fb80cdda..6bc241fe18f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/client.go @@ -15,7 +15,7 @@ type ServerEndpointResourceClient struct { } func NewServerEndpointResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerEndpointResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "serverendpointresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "serverendpointresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ServerEndpointResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_serverendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_serverendpoint.go index bb3127c0aa0a..1dbc477088d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_serverendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_serverendpoint.go @@ -46,7 +46,7 @@ func ParseServerEndpointID(input string) (*ServerEndpointId, error) { } id := ServerEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseServerEndpointIDInsensitively(input string) (*ServerEndpointId, error) } id := ServerEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ServerEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticSyncGroups", "syncGroups", "syncGroups"), - resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupValue"), + resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupName"), resourceids.StaticSegment("staticServerEndpoints", "serverEndpoints", "serverEndpoints"), - resourceids.UserSpecifiedSegment("serverEndpointName", "serverEndpointValue"), + resourceids.UserSpecifiedSegment("serverEndpointName", "serverEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_syncgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_syncgroup.go index da829c13661e..88fe5d44e0c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_syncgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/id_syncgroup.go @@ -44,7 +44,7 @@ func ParseSyncGroupID(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSyncGroupIDInsensitively(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SyncGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticSyncGroups", "syncGroups", "syncGroups"), - resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupValue"), + resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointsget.go index c223fad2ab55..fde4b957eee0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointsget.go @@ -45,7 +45,6 @@ func (c ServerEndpointResourceClient) ServerEndpointsGet(ctx context.Context, id var model ServerEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointslistbysyncgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointslistbysyncgroup.go index fe8bae2b91ab..70aa4b357d22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointslistbysyncgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/method_serverendpointslistbysyncgroup.go @@ -46,7 +46,6 @@ func (c ServerEndpointResourceClient) ServerEndpointsListBySyncGroup(ctx context var model ServerEndpointArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/version.go index 9103e1e958dc..83ac559eb401 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/serverendpointresource/version.go @@ -1,12 +1,10 @@ package serverendpointresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/serverendpointresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/serverendpointresource/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md index 08fd015b7320..991b02d257d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource` Documentation -The `storagesyncservicesresource` SDK allows for interaction with the Azure Resource Manager Service `storagesync` (API Version `2020-03-01`). +The `storagesyncservicesresource` SDK allows for interaction with Azure Resource Manager `storagesync` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") payload := storagesyncservicesresource.StorageSyncServiceCreateParameters{ // ... @@ -42,7 +42,7 @@ if err := client.StorageSyncServicesCreateThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") if err := client.StorageSyncServicesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.StorageSyncServicesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") read, err := client.StorageSyncServicesGet(ctx, id) if err != nil { @@ -102,7 +102,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := storagesyncservicesresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") payload := storagesyncservicesresource.StorageSyncServiceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/client.go index 78afa44b3dc2..2729e72c5ce1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/client.go @@ -15,7 +15,7 @@ type StorageSyncServicesResourceClient struct { } func NewStorageSyncServicesResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageSyncServicesResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "storagesyncservicesresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "storagesyncservicesresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StorageSyncServicesResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/id_storagesyncservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/id_storagesyncservice.go index 5b3599a57040..392199b93918 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/id_storagesyncservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/id_storagesyncservice.go @@ -42,7 +42,7 @@ func ParseStorageSyncServiceID(input string) (*StorageSyncServiceId, error) { } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageSyncServiceIDInsensitively(input string) (*StorageSyncServiceId } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageSyncServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncservicesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncservicesget.go index 836c09f83002..25776788fd26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncservicesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncservicesget.go @@ -45,7 +45,6 @@ func (c StorageSyncServicesResourceClient) StorageSyncServicesGet(ctx context.Co var model StorageSyncService result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbyresourcegroup.go index b8d2d65efb1e..f3bd22328f35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbyresourcegroup.go @@ -47,7 +47,6 @@ func (c StorageSyncServicesResourceClient) StorageSyncServicesListByResourceGrou var model StorageSyncServiceArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbysubscription.go index 0d83e1c87330..9bb41f89b64f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/method_storagesyncserviceslistbysubscription.go @@ -47,7 +47,6 @@ func (c StorageSyncServicesResourceClient) StorageSyncServicesListBySubscription var model StorageSyncServiceArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/version.go index 37c902ac6135..4a1e09892e7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/storagesyncservicesresource/version.go @@ -1,12 +1,10 @@ package storagesyncservicesresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/storagesyncservicesresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/storagesyncservicesresource/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/README.md index ab51ced31633..e8c75a601b3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource` Documentation -The `syncgroupresource` SDK allows for interaction with the Azure Resource Manager Service `storagesync` (API Version `2020-03-01`). +The `syncgroupresource` SDK allows for interaction with Azure Resource Manager `storagesync` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue") +id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName") payload := syncgroupresource.SyncGroupCreateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue") +id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName") read, err := client.SyncGroupsDelete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue", "syncGroupValue") +id := syncgroupresource.NewSyncGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName", "syncGroupName") read, err := client.SyncGroupsGet(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := syncgroupresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceValue") +id := syncgroupresource.NewStorageSyncServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageSyncServiceName") read, err := client.SyncGroupsListByStorageSyncService(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/client.go index 867de974cc64..d9f2719c2b83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/client.go @@ -15,7 +15,7 @@ type SyncGroupResourceClient struct { } func NewSyncGroupResourceClientWithBaseURI(sdkApi sdkEnv.Api) (*SyncGroupResourceClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "syncgroupresource", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "syncgroupresource", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SyncGroupResourceClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_storagesyncservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_storagesyncservice.go index de79c3af3105..f9fed51343ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_storagesyncservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_storagesyncservice.go @@ -42,7 +42,7 @@ func ParseStorageSyncServiceID(input string) (*StorageSyncServiceId, error) { } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStorageSyncServiceIDInsensitively(input string) (*StorageSyncServiceId } id := StorageSyncServiceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StorageSyncServiceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_syncgroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_syncgroup.go index 107f7b352654..0e553760acdf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_syncgroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/id_syncgroup.go @@ -44,7 +44,7 @@ func ParseSyncGroupID(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSyncGroupIDInsensitively(input string) (*SyncGroupId, error) { } id := SyncGroupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SyncGroupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStorageSync", "Microsoft.StorageSync", "Microsoft.StorageSync"), resourceids.StaticSegment("staticStorageSyncServices", "storageSyncServices", "storageSyncServices"), - resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceValue"), + resourceids.UserSpecifiedSegment("storageSyncServiceName", "storageSyncServiceName"), resourceids.StaticSegment("staticSyncGroups", "syncGroups", "syncGroups"), - resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupValue"), + resourceids.UserSpecifiedSegment("syncGroupName", "syncGroupName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupscreate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupscreate.go index ac2d73788448..0bd9e3623bb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupscreate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupscreate.go @@ -49,7 +49,6 @@ func (c SyncGroupResourceClient) SyncGroupsCreate(ctx context.Context, id SyncGr var model SyncGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupsget.go index 1fcde3f82021..859e169adb60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupsget.go @@ -45,7 +45,6 @@ func (c SyncGroupResourceClient) SyncGroupsGet(ctx context.Context, id SyncGroup var model SyncGroup result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupslistbystoragesyncservice.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupslistbystoragesyncservice.go index da1c49eb341c..7651ad30901b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupslistbystoragesyncservice.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/method_syncgroupslistbystoragesyncservice.go @@ -46,7 +46,6 @@ func (c SyncGroupResourceClient) SyncGroupsListByStorageSyncService(ctx context. var model SyncGroupArray result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/version.go index be3d8ef4ddb1..6e628e0223df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/storagesync/2020-03-01/syncgroupresource/version.go @@ -1,12 +1,10 @@ package syncgroupresource -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/syncgroupresource/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/syncgroupresource/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/README.md index 6c1638f90381..c5b68470bd0e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `clusters` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.Cluster{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload, clusters.DefaultCreate ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListStreamingJobs(ctx, id)` can be used to do batched pagination items, err := client.ListStreamingJobsComplete(ctx, id) @@ -121,7 +121,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") payload := clusters.Cluster{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/id_cluster.go index 4bde74442656..b11b7209acab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go index 9e8ad9f9868c..8c2205e33934 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_createorupdate.go @@ -43,6 +43,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_get.go index 73c53aa936be..8265f74e8631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_get.go @@ -45,7 +45,6 @@ func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperat var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go index 0f74f78f1a7c..1f52c36a7bc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/method_update.go @@ -39,6 +39,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/version.go index f01857557675..a186170b036a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/README.md index 16d63841ae65..6d08cdf19926 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions` Documentation -The `functions` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `functions` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") payload := functions.Function{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := functions.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := functions.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.ListByStreamingJob(ctx, id, functions.DefaultListByStreamingJobOperationOptions())` can be used to do batched pagination items, err := client.ListByStreamingJobComplete(ctx, id, functions.DefaultListByStreamingJobOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") payload := functions.FunctionRetrieveDefaultDefinitionParameters{ // ... @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") payload := functions.Function{ // ... @@ -132,7 +132,7 @@ if err := client.TestThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "functionValue") +id := functions.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "functionName") payload := functions.Function{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/client.go index 07fdb1da32c6..342ebf01c861 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/client.go @@ -15,7 +15,7 @@ type FunctionsClient struct { } func NewFunctionsClientWithBaseURI(sdkApi sdkEnv.Api) (*FunctionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "functions", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "functions", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating FunctionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_function.go index 073641028bb1..198804bfbcf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_function.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_function.go @@ -44,7 +44,7 @@ func ParseFunctionID(input string) (*FunctionId, error) { } id := FunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFunctionIDInsensitively(input string) (*FunctionId, error) { } id := FunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FunctionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), resourceids.StaticSegment("staticFunctions", "functions", "functions"), - resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.UserSpecifiedSegment("functionName", "functionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_streamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_streamingjob.go index 08227ba2a586..9e7caa027a71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_streamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/id_streamingjob.go @@ -42,7 +42,7 @@ func ParseStreamingJobID(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStreamingJobIDInsensitively(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StreamingJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go index 7dea75541535..ed1f138eed49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_createorreplace.go @@ -40,6 +40,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c FunctionsClient) CreateOrReplace(ctx context.Context, id FunctionId, inp var model Function result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_get.go index 670c49fd02cd..960145e94e93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_get.go @@ -45,7 +45,6 @@ func (c FunctionsClient) Get(ctx context.Context, id FunctionId) (result GetOper var model Function result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go index e468719df51d..f05c6d46876b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_listbystreamingjob.go @@ -39,6 +39,7 @@ func (o ListByStreamingJobOperationOptions) ToHeaders() *client.Headers { func (o ListByStreamingJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_retrievedefaultdefinition.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_retrievedefaultdefinition.go index 1cc7018cdcec..0150693121da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_retrievedefaultdefinition.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_retrievedefaultdefinition.go @@ -50,7 +50,6 @@ func (c FunctionsClient) RetrieveDefaultDefinition(ctx context.Context, id Funct var model Function result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_update.go index 9a6b1d2d2942..152c2a26f668 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c FunctionsClient) Update(ctx context.Context, id FunctionId, input Functi var model Function result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_aggregatefunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_aggregatefunctionproperties.go index 86a1998c8f9e..200a416aac56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_aggregatefunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_aggregatefunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = AggregateFunctionProperties{} type AggregateFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s AggregateFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = AggregateFunctionProperties{} @@ -28,9 +38,10 @@ func (s AggregateFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AggregateFunctionProperties: %+v", err) } + decoded["type"] = "Aggregate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionbinding.go index 8581f5be64c3..0be6d76df8f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionbinding.go @@ -14,6 +14,14 @@ type AzureMachineLearningWebServiceFunctionBinding struct { Properties *AzureMachineLearningWebServiceFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s AzureMachineLearningWebServiceFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureMachineLearningWebServiceFunctionBinding{} @@ -27,9 +35,10 @@ func (s AzureMachineLearningWebServiceFunctionBinding) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureMachineLearningWebServiceFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.MachineLearning/WebService" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionretrievedefaultdefinitionparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionretrievedefaultdefinitionparameters.go index f64e7b2570ba..d54c7a4aea69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionretrievedefaultdefinitionparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_azuremachinelearningwebservicefunctionretrievedefaultdefinitionparameters.go @@ -14,6 +14,14 @@ type AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters s BindingRetrievalProperties *AzureMachineLearningWebServiceFunctionBindingRetrievalProperties `json:"bindingRetrievalProperties,omitempty"` // Fields inherited from FunctionRetrieveDefaultDefinitionParameters + + BindingType string `json:"bindingType"` +} + +func (s AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters) FunctionRetrieveDefaultDefinitionParameters() BaseFunctionRetrieveDefaultDefinitionParametersImpl { + return BaseFunctionRetrieveDefaultDefinitionParametersImpl{ + BindingType: s.BindingType, + } } var _ json.Marshaler = AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters{} @@ -27,9 +35,10 @@ func (s AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameter } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters: %+v", err) } + decoded["bindingType"] = "Microsoft.MachineLearning/WebService" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_function.go index 2abf7cfc9d39..9a76c867579e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_function.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_function.go @@ -18,10 +18,13 @@ type Function struct { var _ json.Unmarshaler = &Function{} func (s *Function) UnmarshalJSON(bytes []byte) error { - type alias Function - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Function: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Function) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalFunctionPropertiesImplementation(v) + impl, err := UnmarshalFunctionPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Function': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionbinding.go index b1a7c39083af..72b99515d3ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionbinding.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionBinding interface { + FunctionBinding() BaseFunctionBindingImpl } -// RawFunctionBindingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionBinding = BaseFunctionBindingImpl{} + +type BaseFunctionBindingImpl struct { + Type string `json:"type"` +} + +func (s BaseFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s +} + +var _ FunctionBinding = RawFunctionBindingImpl{} + +// RawFunctionBindingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionBindingImpl struct { - Type string - Values map[string]interface{} + functionBinding BaseFunctionBindingImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s.functionBinding } -func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { +func UnmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return nil, fmt.Errorf("unmarshaling FunctionBinding into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.MachineLearning/WebService") { @@ -52,10 +69,15 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return out, nil } - out := RawFunctionBindingImpl{ - Type: value, - Values: temp, + var parent BaseFunctionBindingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionBindingImpl: %+v", err) } - return out, nil + + return RawFunctionBindingImpl{ + functionBinding: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionconfiguration.go index d6bfb45f5224..2692c48d734b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionconfiguration.go @@ -17,10 +17,12 @@ type FunctionConfiguration struct { var _ json.Unmarshaler = &FunctionConfiguration{} func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { - type alias FunctionConfiguration - var decoded alias + var decoded struct { + Inputs *[]FunctionInput `json:"inputs,omitempty"` + Output *FunctionOutput `json:"output,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FunctionConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Inputs = decoded.Inputs @@ -32,11 +34,12 @@ func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["binding"]; ok { - impl, err := unmarshalFunctionBindingImplementation(v) + impl, err := UnmarshalFunctionBindingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Binding' for 'FunctionConfiguration': %+v", err) } s.Binding = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionproperties.go index 181c74ee5c0a..7bf55d3f266d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionproperties.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionProperties interface { + FunctionProperties() BaseFunctionPropertiesImpl } -// RawFunctionPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionProperties = BaseFunctionPropertiesImpl{} + +type BaseFunctionPropertiesImpl struct { + Etag *string `json:"etag,omitempty"` + Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s BaseFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s +} + +var _ FunctionProperties = RawFunctionPropertiesImpl{} + +// RawFunctionPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionPropertiesImpl struct { - Type string - Values map[string]interface{} + functionProperties BaseFunctionPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s.functionProperties } -func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { +func UnmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return nil, fmt.Errorf("unmarshaling FunctionProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Aggregate") { @@ -52,10 +71,15 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return out, nil } - out := RawFunctionPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseFunctionPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionPropertiesImpl: %+v", err) } - return out, nil + + return RawFunctionPropertiesImpl{ + functionProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionretrievedefaultdefinitionparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionretrievedefaultdefinitionparameters.go index 8a0a51f4aba7..f19fdee6d824 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionretrievedefaultdefinitionparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_functionretrievedefaultdefinitionparameters.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionRetrieveDefaultDefinitionParameters interface { + FunctionRetrieveDefaultDefinitionParameters() BaseFunctionRetrieveDefaultDefinitionParametersImpl } -// RawFunctionRetrieveDefaultDefinitionParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionRetrieveDefaultDefinitionParameters = BaseFunctionRetrieveDefaultDefinitionParametersImpl{} + +type BaseFunctionRetrieveDefaultDefinitionParametersImpl struct { + BindingType string `json:"bindingType"` +} + +func (s BaseFunctionRetrieveDefaultDefinitionParametersImpl) FunctionRetrieveDefaultDefinitionParameters() BaseFunctionRetrieveDefaultDefinitionParametersImpl { + return s +} + +var _ FunctionRetrieveDefaultDefinitionParameters = RawFunctionRetrieveDefaultDefinitionParametersImpl{} + +// RawFunctionRetrieveDefaultDefinitionParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionRetrieveDefaultDefinitionParametersImpl struct { - Type string - Values map[string]interface{} + functionRetrieveDefaultDefinitionParameters BaseFunctionRetrieveDefaultDefinitionParametersImpl + Type string + Values map[string]interface{} } -func unmarshalFunctionRetrieveDefaultDefinitionParametersImplementation(input []byte) (FunctionRetrieveDefaultDefinitionParameters, error) { +func (s RawFunctionRetrieveDefaultDefinitionParametersImpl) FunctionRetrieveDefaultDefinitionParameters() BaseFunctionRetrieveDefaultDefinitionParametersImpl { + return s.functionRetrieveDefaultDefinitionParameters +} + +func UnmarshalFunctionRetrieveDefaultDefinitionParametersImplementation(input []byte) (FunctionRetrieveDefaultDefinitionParameters, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFunctionRetrieveDefaultDefinitionParametersImplementation(input [] return nil, fmt.Errorf("unmarshaling FunctionRetrieveDefaultDefinitionParameters into map[string]interface: %+v", err) } - value, ok := temp["bindingType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["bindingType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.MachineLearning/WebService") { @@ -52,10 +69,15 @@ func unmarshalFunctionRetrieveDefaultDefinitionParametersImplementation(input [] return out, nil } - out := RawFunctionRetrieveDefaultDefinitionParametersImpl{ + var parent BaseFunctionRetrieveDefaultDefinitionParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionRetrieveDefaultDefinitionParametersImpl: %+v", err) + } + + return RawFunctionRetrieveDefaultDefinitionParametersImpl{ + functionRetrieveDefaultDefinitionParameters: parent, Type: value, Values: temp, - } - return out, nil + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionbinding.go index 8ba9643dac73..58ce1399594e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionbinding.go @@ -14,6 +14,14 @@ type JavaScriptFunctionBinding struct { Properties *JavaScriptFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s JavaScriptFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = JavaScriptFunctionBinding{} @@ -27,9 +35,10 @@ func (s JavaScriptFunctionBinding) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JavaScriptFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.StreamAnalytics/JavascriptUdf" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionretrievedefaultdefinitionparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionretrievedefaultdefinitionparameters.go index e1c65cb6e12e..25c79127f41d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionretrievedefaultdefinitionparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_javascriptfunctionretrievedefaultdefinitionparameters.go @@ -14,6 +14,14 @@ type JavaScriptFunctionRetrieveDefaultDefinitionParameters struct { BindingRetrievalProperties *JavaScriptFunctionBindingRetrievalProperties `json:"bindingRetrievalProperties,omitempty"` // Fields inherited from FunctionRetrieveDefaultDefinitionParameters + + BindingType string `json:"bindingType"` +} + +func (s JavaScriptFunctionRetrieveDefaultDefinitionParameters) FunctionRetrieveDefaultDefinitionParameters() BaseFunctionRetrieveDefaultDefinitionParametersImpl { + return BaseFunctionRetrieveDefaultDefinitionParametersImpl{ + BindingType: s.BindingType, + } } var _ json.Marshaler = JavaScriptFunctionRetrieveDefaultDefinitionParameters{} @@ -27,9 +35,10 @@ func (s JavaScriptFunctionRetrieveDefaultDefinitionParameters) MarshalJSON() ([] } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JavaScriptFunctionRetrieveDefaultDefinitionParameters: %+v", err) } + decoded["bindingType"] = "Microsoft.StreamAnalytics/JavascriptUdf" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_scalarfunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_scalarfunctionproperties.go index bf0d985730be..64480a5e8997 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_scalarfunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/model_scalarfunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = ScalarFunctionProperties{} type ScalarFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s ScalarFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = ScalarFunctionProperties{} @@ -28,9 +38,10 @@ func (s ScalarFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScalarFunctionProperties: %+v", err) } + decoded["type"] = "Scalar" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/version.go index 072d1a764e5f..90ebd366a3ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/functions/version.go @@ -1,12 +1,10 @@ package functions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/functions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/functions/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/README.md index 2e3a97aca698..932039253e31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs` Documentation -The `inputs` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `inputs` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "inputValue") +id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "inputName") payload := inputs.Input{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "inputValue") +id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "inputName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "inputValue") +id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "inputName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inputs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := inputs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.ListByStreamingJob(ctx, id, inputs.DefaultListByStreamingJobOperationOptions())` can be used to do batched pagination items, err := client.ListByStreamingJobComplete(ctx, id, inputs.DefaultListByStreamingJobOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "inputValue") +id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "inputName") payload := inputs.Input{ // ... @@ -111,7 +111,7 @@ if err := client.TestThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "inputValue") +id := inputs.NewInputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "inputName") payload := inputs.Input{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/client.go index fa5493aa37f9..38ee7cad2f19 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/client.go @@ -15,7 +15,7 @@ type InputsClient struct { } func NewInputsClientWithBaseURI(sdkApi sdkEnv.Api) (*InputsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "inputs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "inputs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating InputsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_input.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_input.go index d83a6e6c49ce..a6ebd09a833e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_input.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_input.go @@ -44,7 +44,7 @@ func ParseInputID(input string) (*InputId, error) { } id := InputId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInputIDInsensitively(input string) (*InputId, error) { } id := InputId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InputId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), resourceids.StaticSegment("staticInputs", "inputs", "inputs"), - resourceids.UserSpecifiedSegment("inputName", "inputValue"), + resourceids.UserSpecifiedSegment("inputName", "inputName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_streamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_streamingjob.go index 9067b3fd8c6b..55b8f30c9984 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_streamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/id_streamingjob.go @@ -42,7 +42,7 @@ func ParseStreamingJobID(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStreamingJobIDInsensitively(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StreamingJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go index e42ec1acffd4..76dbf5413443 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_createorreplace.go @@ -40,6 +40,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c InputsClient) CreateOrReplace(ctx context.Context, id InputId, input Inp var model Input result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_get.go index 3d03a3a34cf0..60ab0f4b1d5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_get.go @@ -45,7 +45,6 @@ func (c InputsClient) Get(ctx context.Context, id InputId) (result GetOperationR var model Input result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go index 4e682830afc0..4aba162645fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_listbystreamingjob.go @@ -39,6 +39,7 @@ func (o ListByStreamingJobOperationOptions) ToHeaders() *client.Headers { func (o ListByStreamingJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go index 0291f7c2025b..b2b905bfcf85 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c InputsClient) Update(ctx context.Context, id InputId, input Input, optio var model Input result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_avroserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_avroserialization.go index 9b5e4003b9bd..f3486db5718f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_avroserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_avroserialization.go @@ -14,6 +14,14 @@ type AvroSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s AvroSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = AvroSerialization{} @@ -27,9 +35,10 @@ func (s AvroSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AvroSerialization: %+v", err) } + decoded["type"] = "Avro" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_azuresqlreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_azuresqlreferenceinputdatasource.go index a79836d10691..2cdc9b8ddb6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_azuresqlreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_azuresqlreferenceinputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlReferenceInputDataSource struct { Properties *AzureSqlReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobreferenceinputdatasource.go index 274d914fba87..ff45e4f18c92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobreferenceinputdatasource.go @@ -14,6 +14,14 @@ type BlobReferenceInputDataSource struct { Properties *BlobDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s BlobReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobstreaminputdatasource.go index c619735bae5d..4a87f069f746 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_blobstreaminputdatasource.go @@ -14,6 +14,14 @@ type BlobStreamInputDataSource struct { Properties *BlobStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s BlobStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_csvserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_csvserialization.go index a1712b42d98d..793ed106b3c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_csvserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_csvserialization.go @@ -14,6 +14,14 @@ type CsvSerialization struct { Properties *CsvSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CsvSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CsvSerialization{} @@ -27,9 +35,10 @@ func (s CsvSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CsvSerialization: %+v", err) } + decoded["type"] = "Csv" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubstreaminputdatasource.go index da4a5db65500..e27807610f50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubstreaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubStreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubv2streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubv2streaminputdatasource.go index 1344f077e5ae..4a715d2a6a64 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubv2streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_eventhubv2streaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2StreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2StreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2StreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2StreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2StreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_filereferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_filereferenceinputdatasource.go index bca612a4940f..ba2057422465 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_filereferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_filereferenceinputdatasource.go @@ -14,6 +14,14 @@ type FileReferenceInputDataSource struct { Properties *FileReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s FileReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = FileReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s FileReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileReferenceInputDataSource: %+v", err) } + decoded["type"] = "File" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_gatewaymessagebusstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_gatewaymessagebusstreaminputdatasource.go index 4f16a09b403b..20263bdfe43a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_gatewaymessagebusstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_gatewaymessagebusstreaminputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusStreamInputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusStreamInputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_input.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_input.go index 450ad8eb7389..d3ef608cb9d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_input.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_input.go @@ -18,10 +18,13 @@ type Input struct { var _ json.Unmarshaler = &Input{} func (s *Input) UnmarshalJSON(bytes []byte) error { - type alias Input - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Input: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Input) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalInputPropertiesImplementation(v) + impl, err := UnmarshalInputPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Input': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_inputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_inputproperties.go index cbc3c04c4cf5..cd430f61bb91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_inputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_inputproperties.go @@ -10,18 +10,76 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InputProperties interface { + InputProperties() BaseInputPropertiesImpl } -// RawInputPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InputProperties = BaseInputPropertiesImpl{} + +type BaseInputPropertiesImpl struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s BaseInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s +} + +var _ InputProperties = RawInputPropertiesImpl{} + +// RawInputPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInputPropertiesImpl struct { - Type string - Values map[string]interface{} + inputProperties BaseInputPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s.inputProperties +} + +var _ json.Unmarshaler = &BaseInputPropertiesImpl{} + +func (s *BaseInputPropertiesImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Compression = decoded.Compression + s.Diagnostics = decoded.Diagnostics + s.Etag = decoded.Etag + s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseInputPropertiesImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["serialization"]; ok { + impl, err := UnmarshalSerializationImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Serialization' for 'BaseInputPropertiesImpl': %+v", err) + } + s.Serialization = impl + } + + return nil } -func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { +func UnmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { if input == nil { return nil, nil } @@ -31,9 +89,9 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return nil, fmt.Errorf("unmarshaling InputProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Reference") { @@ -52,10 +110,15 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return out, nil } - out := RawInputPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseInputPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInputPropertiesImpl: %+v", err) } - return out, nil + + return RawInputPropertiesImpl{ + inputProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_iothubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_iothubstreaminputdatasource.go index 392aaf849dd1..7c8198d81aa0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_iothubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_iothubstreaminputdatasource.go @@ -14,6 +14,14 @@ type IoTHubStreamInputDataSource struct { Properties *IoTHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s IoTHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = IoTHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s IoTHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Devices/IotHubs" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_jsonserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_jsonserialization.go index a6e3035718c0..fa85d38c3907 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_jsonserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_jsonserialization.go @@ -14,6 +14,14 @@ type JsonSerialization struct { Properties *JsonSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s JsonSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = JsonSerialization{} @@ -27,9 +35,10 @@ func (s JsonSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonSerialization: %+v", err) } + decoded["type"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_parquetserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_parquetserialization.go index 35fb8ddf4d58..376752302cf2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_parquetserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_parquetserialization.go @@ -14,6 +14,14 @@ type ParquetSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s ParquetSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = ParquetSerialization{} @@ -27,9 +35,10 @@ func (s ParquetSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ParquetSerialization: %+v", err) } + decoded["type"] = "Parquet" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputdatasource.go index 8db1d6370412..b360b2bbf4de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReferenceInputDataSource interface { + ReferenceInputDataSource() BaseReferenceInputDataSourceImpl } -// RawReferenceInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReferenceInputDataSource = BaseReferenceInputDataSourceImpl{} + +type BaseReferenceInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s +} + +var _ ReferenceInputDataSource = RawReferenceInputDataSourceImpl{} + +// RawReferenceInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReferenceInputDataSourceImpl struct { - Type string - Values map[string]interface{} + referenceInputDataSource BaseReferenceInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s.referenceInputDataSource } -func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { +func UnmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return nil, fmt.Errorf("unmarshaling ReferenceInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Sql/Server/Database") { @@ -60,10 +77,15 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return out, nil } - out := RawReferenceInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseReferenceInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReferenceInputDataSourceImpl: %+v", err) } - return out, nil + + return RawReferenceInputDataSourceImpl{ + referenceInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputproperties.go index d7e8ae7b225c..279488f0008c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_referenceinputproperties.go @@ -14,11 +14,24 @@ type ReferenceInputProperties struct { Datasource ReferenceInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s ReferenceInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + } } var _ json.Marshaler = ReferenceInputProperties{} @@ -32,9 +45,10 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ReferenceInputProperties: %+v", err) } + decoded["type"] = "Reference" encoded, err = json.Marshal(decoded) @@ -48,16 +62,22 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ReferenceInputProperties{} func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { - type alias ReferenceInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ReferenceInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +85,7 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalReferenceInputDataSourceImplementation(v) + impl, err := UnmarshalReferenceInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'ReferenceInputProperties': %+v", err) } @@ -73,11 +93,12 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'ReferenceInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_serialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_serialization.go index f7ae12685513..3a4a08ec82c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_serialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_serialization.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Serialization interface { + Serialization() BaseSerializationImpl } -// RawSerializationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Serialization = BaseSerializationImpl{} + +type BaseSerializationImpl struct { + Type EventSerializationType `json:"type"` +} + +func (s BaseSerializationImpl) Serialization() BaseSerializationImpl { + return s +} + +var _ Serialization = RawSerializationImpl{} + +// RawSerializationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSerializationImpl struct { - Type string - Values map[string]interface{} + serialization BaseSerializationImpl + Type string + Values map[string]interface{} +} + +func (s RawSerializationImpl) Serialization() BaseSerializationImpl { + return s.serialization } -func unmarshalSerializationImplementation(input []byte) (Serialization, error) { +func UnmarshalSerializationImplementation(input []byte) (Serialization, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return nil, fmt.Errorf("unmarshaling Serialization into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Avro") { @@ -68,10 +85,15 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return out, nil } - out := RawSerializationImpl{ - Type: value, - Values: temp, + var parent BaseSerializationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSerializationImpl: %+v", err) } - return out, nil + + return RawSerializationImpl{ + serialization: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputdatasource.go index f57f014f1247..68c64b94b98c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type StreamInputDataSource interface { + StreamInputDataSource() BaseStreamInputDataSourceImpl } -// RawStreamInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ StreamInputDataSource = BaseStreamInputDataSourceImpl{} + +type BaseStreamInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s +} + +var _ StreamInputDataSource = RawStreamInputDataSourceImpl{} + +// RawStreamInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawStreamInputDataSourceImpl struct { - Type string - Values map[string]interface{} + streamInputDataSource BaseStreamInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s.streamInputDataSource } -func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { +func UnmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return nil, fmt.Errorf("unmarshaling StreamInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Storage/Blob") { @@ -76,10 +93,15 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return out, nil } - out := RawStreamInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseStreamInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseStreamInputDataSourceImpl: %+v", err) } - return out, nil + + return RawStreamInputDataSourceImpl{ + streamInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputproperties.go index cd1a278a50c7..4d0921f45cf5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/model_streaminputproperties.go @@ -14,11 +14,24 @@ type StreamInputProperties struct { Datasource StreamInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s StreamInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + } } var _ json.Marshaler = StreamInputProperties{} @@ -32,9 +45,10 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StreamInputProperties: %+v", err) } + decoded["type"] = "Stream" encoded, err = json.Marshal(decoded) @@ -48,16 +62,22 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &StreamInputProperties{} func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { - type alias StreamInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into StreamInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +85,7 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalStreamInputDataSourceImplementation(v) + impl, err := UnmarshalStreamInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'StreamInputProperties': %+v", err) } @@ -73,11 +93,12 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'StreamInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/version.go index 7553750ba9f5..e75bd8c72a30 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/inputs/version.go @@ -1,12 +1,10 @@ package inputs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/inputs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/inputs/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/README.md index e82d7839b47d..9a6687b62ee5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints` Documentation -The `privateendpoints` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `privateendpoints` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointName") payload := privateendpoints.PrivateEndpoint{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -57,7 +57,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "privateEndpointValue") +id := privateendpoints.NewPrivateEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName", "privateEndpointName") read, err := client.Get(ctx, id) if err != nil { @@ -73,7 +73,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := privateendpoints.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue") +id := privateendpoints.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterName") // alternatively `client.ListByCluster(ctx, id)` can be used to do batched pagination items, err := client.ListByClusterComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/client.go index 149437b13342..d03b3dc1800b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/client.go @@ -15,7 +15,7 @@ type PrivateEndpointsClient struct { } func NewPrivateEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateEndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateendpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateendpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateEndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_cluster.go index b638921110a7..3ba2357f9467 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_cluster.go @@ -42,7 +42,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_privateendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_privateendpoint.go index 05c08eb64dbb..e52c9fda3c08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_privateendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/id_privateendpoint.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointID(input string) (*PrivateEndpointId, error) { } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointIDInsensitively(input string) (*PrivateEndpointId, erro } id := PrivateEndpointId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticPrivateEndpoints", "privateEndpoints", "privateEndpoints"), - resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointValue"), + resourceids.UserSpecifiedSegment("privateEndpointName", "privateEndpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go index 0e1edc5918bd..8fd87fbbfc8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_createorupdate.go @@ -40,6 +40,7 @@ func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c PrivateEndpointsClient) CreateOrUpdate(ctx context.Context, id PrivateEn var model PrivateEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_get.go index 491939808ffe..31c16059894f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/method_get.go @@ -45,7 +45,6 @@ func (c PrivateEndpointsClient) Get(ctx context.Context, id PrivateEndpointId) ( var model PrivateEndpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/version.go index 86fff8201db2..f18781f5ee00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/privateendpoints/version.go @@ -1,12 +1,10 @@ package privateendpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateendpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateendpoints/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md index ba812db6b5c5..21bbc039456c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs` Documentation -The `streamingjobs` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `streamingjobs` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StreamingJob{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrReplaceThenPoll(ctx, id, payload, streamingjobs.Default ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") read, err := client.Get(ctx, id, streamingjobs.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.ScaleStreamingJobParameters{ // ... @@ -121,7 +121,7 @@ if err := client.ScaleThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StartStreamingJobParameters{ // ... @@ -138,7 +138,7 @@ if err := client.StartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -150,7 +150,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StreamingJob{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/client.go index 2e04ee218cc5..1dc6a0feb182 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/client.go @@ -15,7 +15,7 @@ type StreamingJobsClient struct { } func NewStreamingJobsClientWithBaseURI(sdkApi sdkEnv.Api) (*StreamingJobsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "streamingjobs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "streamingjobs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StreamingJobsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/id_streamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/id_streamingjob.go index 8bea001a487c..dbf8cb09b9c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/id_streamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/id_streamingjob.go @@ -42,7 +42,7 @@ func ParseStreamingJobID(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStreamingJobIDInsensitively(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StreamingJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go index f332e84e344b..127b33a2879f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_createorreplace.go @@ -43,6 +43,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go index dde10e46823f..f8ecfcfacf9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c StreamingJobsClient) Get(ctx context.Context, id StreamingJobId, options var model StreamingJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go index eb50ec400db0..a62fb38713d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go index c3baa38df09a..9c902872a6d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go index ce4cea0f55b1..72dc1482bff8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c StreamingJobsClient) Update(ctx context.Context, id StreamingJobId, inpu var model StreamingJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_aggregatefunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_aggregatefunctionproperties.go index 0c646de6aa7e..b1ec5ac89252 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_aggregatefunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_aggregatefunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = AggregateFunctionProperties{} type AggregateFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s AggregateFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = AggregateFunctionProperties{} @@ -28,9 +38,10 @@ func (s AggregateFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AggregateFunctionProperties: %+v", err) } + decoded["type"] = "Aggregate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_avroserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_avroserialization.go index 2ee800b1446b..e7180c3a0e86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_avroserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_avroserialization.go @@ -14,6 +14,14 @@ type AvroSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s AvroSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = AvroSerialization{} @@ -27,9 +35,10 @@ func (s AvroSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AvroSerialization: %+v", err) } + decoded["type"] = "Avro" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuredatalakestoreoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuredatalakestoreoutputdatasource.go index b4972c83a448..7dfd77186f93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuredatalakestoreoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuredatalakestoreoutputdatasource.go @@ -14,6 +14,14 @@ type AzureDataLakeStoreOutputDataSource struct { Properties *AzureDataLakeStoreOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureDataLakeStoreOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureDataLakeStoreOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureDataLakeStoreOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataLakeStoreOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.DataLake/Accounts" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azurefunctionoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azurefunctionoutputdatasource.go index 659bcd759a45..d8840e20cb3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azurefunctionoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azurefunctionoutputdatasource.go @@ -14,6 +14,14 @@ type AzureFunctionOutputDataSource struct { Properties *AzureFunctionOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureFunctionOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureFunctionOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureFunctionOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFunctionOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.AzureFunction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuremachinelearningwebservicefunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuremachinelearningwebservicefunctionbinding.go index 0da4fea551ec..388051836b16 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuremachinelearningwebservicefunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuremachinelearningwebservicefunctionbinding.go @@ -14,6 +14,14 @@ type AzureMachineLearningWebServiceFunctionBinding struct { Properties *AzureMachineLearningWebServiceFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s AzureMachineLearningWebServiceFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureMachineLearningWebServiceFunctionBinding{} @@ -27,9 +35,10 @@ func (s AzureMachineLearningWebServiceFunctionBinding) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureMachineLearningWebServiceFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.MachineLearning/WebService" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqldatabaseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqldatabaseoutputdatasource.go index 586193d027a1..59882ee39ff4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqldatabaseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqldatabaseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlDatabaseOutputDataSource struct { Properties *AzureSqlDatabaseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlDatabaseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlDatabaseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlDatabaseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlDatabaseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqlreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqlreferenceinputdatasource.go index e0ced0b72072..db2b8bdd6760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqlreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresqlreferenceinputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlReferenceInputDataSource struct { Properties *AzureSqlReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresynapseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresynapseoutputdatasource.go index 903fb2032157..f620ebf4386b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresynapseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuresynapseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSynapseOutputDataSource struct { Properties *AzureSynapseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSynapseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSynapseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSynapseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSynapseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/DataWarehouse" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuretableoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuretableoutputdatasource.go index 6fbde873ddcc..ab7d9c21afc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuretableoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_azuretableoutputdatasource.go @@ -14,6 +14,14 @@ type AzureTableOutputDataSource struct { Properties *AzureTableOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureTableOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureTableOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureTableOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureTableOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Table" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_bloboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_bloboutputdatasource.go index 97864687f916..f9426c0f7598 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_bloboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_bloboutputdatasource.go @@ -14,6 +14,14 @@ type BlobOutputDataSource struct { Properties *BlobOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s BlobOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobOutputDataSource{} @@ -27,9 +35,10 @@ func (s BlobOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobreferenceinputdatasource.go index 24afd52e61fa..3315df3ab083 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobreferenceinputdatasource.go @@ -14,6 +14,14 @@ type BlobReferenceInputDataSource struct { Properties *BlobDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s BlobReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobstreaminputdatasource.go index 38e280e54b6e..8b3cc61c5a31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_blobstreaminputdatasource.go @@ -14,6 +14,14 @@ type BlobStreamInputDataSource struct { Properties *BlobStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s BlobStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_csvserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_csvserialization.go index ca3eacfc0714..285542b7c8ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_csvserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_csvserialization.go @@ -14,6 +14,14 @@ type CsvSerialization struct { Properties *CsvSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CsvSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CsvSerialization{} @@ -27,9 +35,10 @@ func (s CsvSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CsvSerialization: %+v", err) } + decoded["type"] = "Csv" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_documentdboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_documentdboutputdatasource.go index 15079a002be4..750b5dc29bb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_documentdboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_documentdboutputdatasource.go @@ -14,6 +14,14 @@ type DocumentDbOutputDataSource struct { Properties *DocumentDbOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s DocumentDbOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = DocumentDbOutputDataSource{} @@ -27,9 +35,10 @@ func (s DocumentDbOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DocumentDbOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/DocumentDB" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhuboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhuboutputdatasource.go index 291857248825..cd4d99fc22dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhuboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhuboutputdatasource.go @@ -14,6 +14,14 @@ type EventHubOutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubOutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubstreaminputdatasource.go index cacc6f7ee788..16d6ab545346 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubstreaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubStreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2outputdatasource.go index eb9c2affe6ea..3c05a2519914 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2outputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2OutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2OutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2OutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2OutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2OutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2streaminputdatasource.go index 9236cbf7ed4f..e5231c5e0430 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_eventhubv2streaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2StreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2StreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2StreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2StreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2StreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_filereferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_filereferenceinputdatasource.go index 1d09bf0cc6f0..e43a91cc2469 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_filereferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_filereferenceinputdatasource.go @@ -14,6 +14,14 @@ type FileReferenceInputDataSource struct { Properties *FileReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s FileReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = FileReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s FileReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileReferenceInputDataSource: %+v", err) } + decoded["type"] = "File" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_function.go index c7a271194d06..faf68036c79c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_function.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_function.go @@ -18,10 +18,13 @@ type Function struct { var _ json.Unmarshaler = &Function{} func (s *Function) UnmarshalJSON(bytes []byte) error { - type alias Function - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Function: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Function) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalFunctionPropertiesImplementation(v) + impl, err := UnmarshalFunctionPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Function': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionbinding.go index e34e1d5d0321..dca1c74b7d65 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionbinding.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionBinding interface { + FunctionBinding() BaseFunctionBindingImpl } -// RawFunctionBindingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionBinding = BaseFunctionBindingImpl{} + +type BaseFunctionBindingImpl struct { + Type string `json:"type"` +} + +func (s BaseFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s +} + +var _ FunctionBinding = RawFunctionBindingImpl{} + +// RawFunctionBindingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionBindingImpl struct { - Type string - Values map[string]interface{} + functionBinding BaseFunctionBindingImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s.functionBinding } -func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { +func UnmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return nil, fmt.Errorf("unmarshaling FunctionBinding into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.MachineLearning/WebService") { @@ -52,10 +69,15 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return out, nil } - out := RawFunctionBindingImpl{ - Type: value, - Values: temp, + var parent BaseFunctionBindingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionBindingImpl: %+v", err) } - return out, nil + + return RawFunctionBindingImpl{ + functionBinding: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionconfiguration.go index 5216fe6262ab..534ab4c11c5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionconfiguration.go @@ -17,10 +17,12 @@ type FunctionConfiguration struct { var _ json.Unmarshaler = &FunctionConfiguration{} func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { - type alias FunctionConfiguration - var decoded alias + var decoded struct { + Inputs *[]FunctionInput `json:"inputs,omitempty"` + Output *FunctionOutput `json:"output,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FunctionConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Inputs = decoded.Inputs @@ -32,11 +34,12 @@ func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["binding"]; ok { - impl, err := unmarshalFunctionBindingImplementation(v) + impl, err := UnmarshalFunctionBindingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Binding' for 'FunctionConfiguration': %+v", err) } s.Binding = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionproperties.go index 797d9ff51204..8221d09fe83c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_functionproperties.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionProperties interface { + FunctionProperties() BaseFunctionPropertiesImpl } -// RawFunctionPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionProperties = BaseFunctionPropertiesImpl{} + +type BaseFunctionPropertiesImpl struct { + Etag *string `json:"etag,omitempty"` + Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s BaseFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s +} + +var _ FunctionProperties = RawFunctionPropertiesImpl{} + +// RawFunctionPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionPropertiesImpl struct { - Type string - Values map[string]interface{} + functionProperties BaseFunctionPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s.functionProperties } -func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { +func UnmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return nil, fmt.Errorf("unmarshaling FunctionProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Aggregate") { @@ -52,10 +71,15 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return out, nil } - out := RawFunctionPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseFunctionPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionPropertiesImpl: %+v", err) } - return out, nil + + return RawFunctionPropertiesImpl{ + functionProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusoutputdatasource.go index 9f157cca9317..77f838075a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusoutputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusOutputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusOutputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusOutputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go index 5f9bcf69fcae..a30b85e03247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusStreamInputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusStreamInputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_input.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_input.go index a68319e701f1..5ecdf1e98879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_input.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_input.go @@ -18,10 +18,13 @@ type Input struct { var _ json.Unmarshaler = &Input{} func (s *Input) UnmarshalJSON(bytes []byte) error { - type alias Input - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Input: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Input) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalInputPropertiesImplementation(v) + impl, err := UnmarshalInputPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Input': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_inputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_inputproperties.go index 20140f3aa714..3e6ca8376615 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_inputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_inputproperties.go @@ -10,18 +10,76 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InputProperties interface { + InputProperties() BaseInputPropertiesImpl } -// RawInputPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InputProperties = BaseInputPropertiesImpl{} + +type BaseInputPropertiesImpl struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s BaseInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s +} + +var _ InputProperties = RawInputPropertiesImpl{} + +// RawInputPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInputPropertiesImpl struct { - Type string - Values map[string]interface{} + inputProperties BaseInputPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s.inputProperties +} + +var _ json.Unmarshaler = &BaseInputPropertiesImpl{} + +func (s *BaseInputPropertiesImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Compression = decoded.Compression + s.Diagnostics = decoded.Diagnostics + s.Etag = decoded.Etag + s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseInputPropertiesImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["serialization"]; ok { + impl, err := UnmarshalSerializationImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Serialization' for 'BaseInputPropertiesImpl': %+v", err) + } + s.Serialization = impl + } + + return nil } -func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { +func UnmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { if input == nil { return nil, nil } @@ -31,9 +89,9 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return nil, fmt.Errorf("unmarshaling InputProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Reference") { @@ -52,10 +110,15 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return out, nil } - out := RawInputPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseInputPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInputPropertiesImpl: %+v", err) } - return out, nil + + return RawInputPropertiesImpl{ + inputProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_iothubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_iothubstreaminputdatasource.go index dd9c76103f20..fee7c13deddf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_iothubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_iothubstreaminputdatasource.go @@ -14,6 +14,14 @@ type IoTHubStreamInputDataSource struct { Properties *IoTHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s IoTHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = IoTHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s IoTHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Devices/IotHubs" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_javascriptfunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_javascriptfunctionbinding.go index 72a1c06fd0a0..14c2ef6aa387 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_javascriptfunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_javascriptfunctionbinding.go @@ -14,6 +14,14 @@ type JavaScriptFunctionBinding struct { Properties *JavaScriptFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s JavaScriptFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = JavaScriptFunctionBinding{} @@ -27,9 +35,10 @@ func (s JavaScriptFunctionBinding) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JavaScriptFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.StreamAnalytics/JavascriptUdf" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_jsonserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_jsonserialization.go index e1e25c3058e8..74e086f11f98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_jsonserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_jsonserialization.go @@ -14,6 +14,14 @@ type JsonSerialization struct { Properties *JsonSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s JsonSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = JsonSerialization{} @@ -27,9 +35,10 @@ func (s JsonSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonSerialization: %+v", err) } + decoded["type"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputdatasource.go index 854d1d7e9b72..aa3975596085 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OutputDataSource interface { + OutputDataSource() BaseOutputDataSourceImpl } -// RawOutputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OutputDataSource = BaseOutputDataSourceImpl{} + +type BaseOutputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s +} + +var _ OutputDataSource = RawOutputDataSourceImpl{} + +// RawOutputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOutputDataSourceImpl struct { - Type string - Values map[string]interface{} + outputDataSource BaseOutputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s.outputDataSource } -func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { +func UnmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return nil, fmt.Errorf("unmarshaling OutputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.DataLake/Accounts") { @@ -140,10 +157,15 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return out, nil } - out := RawOutputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseOutputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOutputDataSourceImpl: %+v", err) } - return out, nil + + return RawOutputDataSourceImpl{ + outputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputproperties.go index 800588a04c3c..c9f0262fe915 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_outputproperties.go @@ -20,10 +20,14 @@ type OutputProperties struct { var _ json.Unmarshaler = &OutputProperties{} func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { - type alias OutputProperties - var decoded alias + var decoded struct { + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + SizeWindow *int64 `json:"sizeWindow,omitempty"` + TimeWindow *string `json:"timeWindow,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into OutputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Diagnostics = decoded.Diagnostics @@ -37,7 +41,7 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalOutputDataSourceImplementation(v) + impl, err := UnmarshalOutputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'OutputProperties': %+v", err) } @@ -45,11 +49,12 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'OutputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_parquetserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_parquetserialization.go index 2e44cd8b9095..188fa4a10650 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_parquetserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_parquetserialization.go @@ -14,6 +14,14 @@ type ParquetSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s ParquetSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = ParquetSerialization{} @@ -27,9 +35,10 @@ func (s ParquetSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ParquetSerialization: %+v", err) } + decoded["type"] = "Parquet" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_powerbioutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_powerbioutputdatasource.go index 2a64ef14547a..613553a4de5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_powerbioutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_powerbioutputdatasource.go @@ -14,6 +14,14 @@ type PowerBIOutputDataSource struct { Properties *PowerBIOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s PowerBIOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = PowerBIOutputDataSource{} @@ -27,9 +35,10 @@ func (s PowerBIOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PowerBIOutputDataSource: %+v", err) } + decoded["type"] = "PowerBI" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputdatasource.go index 56c7d1cfd633..8b26e6958559 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReferenceInputDataSource interface { + ReferenceInputDataSource() BaseReferenceInputDataSourceImpl } -// RawReferenceInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReferenceInputDataSource = BaseReferenceInputDataSourceImpl{} + +type BaseReferenceInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s +} + +var _ ReferenceInputDataSource = RawReferenceInputDataSourceImpl{} + +// RawReferenceInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReferenceInputDataSourceImpl struct { - Type string - Values map[string]interface{} + referenceInputDataSource BaseReferenceInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s.referenceInputDataSource } -func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { +func UnmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return nil, fmt.Errorf("unmarshaling ReferenceInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Sql/Server/Database") { @@ -60,10 +77,15 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return out, nil } - out := RawReferenceInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseReferenceInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReferenceInputDataSourceImpl: %+v", err) } - return out, nil + + return RawReferenceInputDataSourceImpl{ + referenceInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputproperties.go index 97fac7b527cc..ae0c1d23db96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_referenceinputproperties.go @@ -14,11 +14,24 @@ type ReferenceInputProperties struct { Datasource ReferenceInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s ReferenceInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + } } var _ json.Marshaler = ReferenceInputProperties{} @@ -32,9 +45,10 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ReferenceInputProperties: %+v", err) } + decoded["type"] = "Reference" encoded, err = json.Marshal(decoded) @@ -48,16 +62,22 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ReferenceInputProperties{} func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { - type alias ReferenceInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ReferenceInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +85,7 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalReferenceInputDataSourceImplementation(v) + impl, err := UnmarshalReferenceInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'ReferenceInputProperties': %+v", err) } @@ -73,11 +93,12 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'ReferenceInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_scalarfunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_scalarfunctionproperties.go index 5804ccf9bcda..7ab85680dc63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_scalarfunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_scalarfunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = ScalarFunctionProperties{} type ScalarFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s ScalarFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = ScalarFunctionProperties{} @@ -28,9 +38,10 @@ func (s ScalarFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScalarFunctionProperties: %+v", err) } + decoded["type"] = "Scalar" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_serialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_serialization.go index 19476ba2e7a6..40a17603724e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_serialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_serialization.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Serialization interface { + Serialization() BaseSerializationImpl } -// RawSerializationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Serialization = BaseSerializationImpl{} + +type BaseSerializationImpl struct { + Type EventSerializationType `json:"type"` +} + +func (s BaseSerializationImpl) Serialization() BaseSerializationImpl { + return s +} + +var _ Serialization = RawSerializationImpl{} + +// RawSerializationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSerializationImpl struct { - Type string - Values map[string]interface{} + serialization BaseSerializationImpl + Type string + Values map[string]interface{} +} + +func (s RawSerializationImpl) Serialization() BaseSerializationImpl { + return s.serialization } -func unmarshalSerializationImplementation(input []byte) (Serialization, error) { +func UnmarshalSerializationImplementation(input []byte) (Serialization, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return nil, fmt.Errorf("unmarshaling Serialization into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Avro") { @@ -68,10 +85,15 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return out, nil } - out := RawSerializationImpl{ - Type: value, - Values: temp, + var parent BaseSerializationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSerializationImpl: %+v", err) } - return out, nil + + return RawSerializationImpl{ + serialization: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebusqueueoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebusqueueoutputdatasource.go index 790e58f461bf..016710ab2d9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebusqueueoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebusqueueoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusQueueOutputDataSource struct { Properties *ServiceBusQueueOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusQueueOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusQueueOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusQueueOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusQueueOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Queue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebustopicoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebustopicoutputdatasource.go index 57f1938b5ee1..41e64a1c5a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebustopicoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_servicebustopicoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusTopicOutputDataSource struct { Properties *ServiceBusTopicOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusTopicOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusTopicOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusTopicOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusTopicOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Topic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputdatasource.go index 412a7fa9166e..5bac5f0889d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type StreamInputDataSource interface { + StreamInputDataSource() BaseStreamInputDataSourceImpl } -// RawStreamInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ StreamInputDataSource = BaseStreamInputDataSourceImpl{} + +type BaseStreamInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s +} + +var _ StreamInputDataSource = RawStreamInputDataSourceImpl{} + +// RawStreamInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawStreamInputDataSourceImpl struct { - Type string - Values map[string]interface{} + streamInputDataSource BaseStreamInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s.streamInputDataSource } -func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { +func UnmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return nil, fmt.Errorf("unmarshaling StreamInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Storage/Blob") { @@ -76,10 +93,15 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return out, nil } - out := RawStreamInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseStreamInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseStreamInputDataSourceImpl: %+v", err) } - return out, nil + + return RawStreamInputDataSourceImpl{ + streamInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputproperties.go index 5b50b35b40ba..639da8ea6e75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streaminputproperties.go @@ -14,11 +14,24 @@ type StreamInputProperties struct { Datasource StreamInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` +} + +func (s StreamInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + } } var _ json.Marshaler = StreamInputProperties{} @@ -32,9 +45,10 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StreamInputProperties: %+v", err) } + decoded["type"] = "Stream" encoded, err = json.Marshal(decoded) @@ -48,16 +62,22 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &StreamInputProperties{} func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { - type alias StreamInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into StreamInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -65,7 +85,7 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalStreamInputDataSourceImplementation(v) + impl, err := UnmarshalStreamInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'StreamInputProperties': %+v", err) } @@ -73,11 +93,12 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'StreamInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/version.go index 2fcd3509c281..c7cefa53e3d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/streamingjobs/version.go @@ -1,12 +1,10 @@ package streamingjobs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/streamingjobs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/streamingjobs/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/README.md index 9b58d4bb98e8..3f108b392de9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations` Documentation -The `transformations` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2020-03-01`). +The `transformations` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2020-03-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue") +id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "transformationName") payload := transformations.Transformation{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue") +id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "transformationName") read, err := client.Get(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "transformationValue") +id := transformations.NewTransformationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "transformationName") payload := transformations.Transformation{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/client.go index 6808261e8bd7..ae072e48b579 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/client.go @@ -15,7 +15,7 @@ type TransformationsClient struct { } func NewTransformationsClientWithBaseURI(sdkApi sdkEnv.Api) (*TransformationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "transformations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "transformations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TransformationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/id_transformation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/id_transformation.go index e8e3f89f4a0a..02c1c8e756a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/id_transformation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/id_transformation.go @@ -44,7 +44,7 @@ func ParseTransformationID(input string) (*TransformationId, error) { } id := TransformationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTransformationIDInsensitively(input string) (*TransformationId, error) } id := TransformationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TransformationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), resourceids.StaticSegment("staticTransformations", "transformations", "transformations"), - resourceids.UserSpecifiedSegment("transformationName", "transformationValue"), + resourceids.UserSpecifiedSegment("transformationName", "transformationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go index 5cc1cd2494bf..2fce97a2b0af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_createorreplace.go @@ -40,6 +40,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c TransformationsClient) CreateOrReplace(ctx context.Context, id Transform var model Transformation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_get.go index 1fe3f2dc8c4c..94e0ed171486 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_get.go @@ -45,7 +45,6 @@ func (c TransformationsClient) Get(ctx context.Context, id TransformationId) (re var model Transformation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go index 274e46212d4d..a8a7f02c752a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c TransformationsClient) Update(ctx context.Context, id TransformationId, var model Transformation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/version.go index fc341f6862f1..cb17ffd16fc5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2020-03-01/transformations/version.go @@ -1,12 +1,10 @@ package transformations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-03-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/transformations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/transformations/2020-03-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/README.md index 884128cf55ae..a76215791eae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs` Documentation -The `outputs` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2021-10-01-preview`). +The `outputs` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2021-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "outputValue") +id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "outputName") payload := outputs.Output{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "outputValue") +id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "outputName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "outputValue") +id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "outputName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := outputs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := outputs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.ListByStreamingJob(ctx, id, outputs.DefaultListByStreamingJobOperationOptions())` can be used to do batched pagination items, err := client.ListByStreamingJobComplete(ctx, id, outputs.DefaultListByStreamingJobOperationOptions()) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "outputValue") +id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "outputName") payload := outputs.Output{ // ... @@ -111,7 +111,7 @@ if err := client.TestThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue", "outputValue") +id := outputs.NewOutputID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName", "outputName") payload := outputs.Output{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/client.go index a14d848cb27d..21e2ca99199d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/client.go @@ -15,7 +15,7 @@ type OutputsClient struct { } func NewOutputsClientWithBaseURI(sdkApi sdkEnv.Api) (*OutputsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "outputs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "outputs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating OutputsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_output.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_output.go index c3e4d5e08aa3..08b89c66985d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_output.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_output.go @@ -44,7 +44,7 @@ func ParseOutputID(input string) (*OutputId, error) { } id := OutputId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseOutputIDInsensitively(input string) (*OutputId, error) { } id := OutputId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id OutputId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), resourceids.StaticSegment("staticOutputs", "outputs", "outputs"), - resourceids.UserSpecifiedSegment("outputName", "outputValue"), + resourceids.UserSpecifiedSegment("outputName", "outputName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_streamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_streamingjob.go index 75e26f2788b2..d26b55fa98e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_streamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/id_streamingjob.go @@ -42,7 +42,7 @@ func ParseStreamingJobID(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStreamingJobIDInsensitively(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StreamingJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go index 8160d215384e..ec6c9a7438eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_createorreplace.go @@ -40,6 +40,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c OutputsClient) CreateOrReplace(ctx context.Context, id OutputId, input O var model Output result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_get.go index 64025aebeeac..8374e2fbfb61 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_get.go @@ -45,7 +45,6 @@ func (c OutputsClient) Get(ctx context.Context, id OutputId) (result GetOperatio var model Output result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go index f404f99b2d9f..0f112a3ba355 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_listbystreamingjob.go @@ -39,6 +39,7 @@ func (o ListByStreamingJobOperationOptions) ToHeaders() *client.Headers { func (o ListByStreamingJobOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go index ab568fb27d83..10b0e211b03a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c OutputsClient) Update(ctx context.Context, id OutputId, input Output, op var model Output result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_avroserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_avroserialization.go index 8f3a707a598f..b1a977f07e7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_avroserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_avroserialization.go @@ -14,6 +14,14 @@ type AvroSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s AvroSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = AvroSerialization{} @@ -27,9 +35,10 @@ func (s AvroSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AvroSerialization: %+v", err) } + decoded["type"] = "Avro" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredataexploreroutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredataexploreroutputdatasource.go index d6186f743654..ca26586d09f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredataexploreroutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredataexploreroutputdatasource.go @@ -14,6 +14,14 @@ type AzureDataExplorerOutputDataSource struct { Properties *AzureDataExplorerOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureDataExplorerOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureDataExplorerOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureDataExplorerOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataExplorerOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Kusto/clusters/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredatalakestoreoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredatalakestoreoutputdatasource.go index 58cad18e4d18..d9559889e4c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredatalakestoreoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuredatalakestoreoutputdatasource.go @@ -14,6 +14,14 @@ type AzureDataLakeStoreOutputDataSource struct { Properties *AzureDataLakeStoreOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureDataLakeStoreOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureDataLakeStoreOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureDataLakeStoreOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataLakeStoreOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.DataLake/Accounts" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azurefunctionoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azurefunctionoutputdatasource.go index c1092f203073..76f06e3fbf5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azurefunctionoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azurefunctionoutputdatasource.go @@ -14,6 +14,14 @@ type AzureFunctionOutputDataSource struct { Properties *AzureFunctionOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureFunctionOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureFunctionOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureFunctionOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFunctionOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.AzureFunction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresqldatabaseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresqldatabaseoutputdatasource.go index 4918aa547ee1..1bef09ae929a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresqldatabaseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresqldatabaseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlDatabaseOutputDataSource struct { Properties *AzureSqlDatabaseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlDatabaseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlDatabaseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlDatabaseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlDatabaseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresynapseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresynapseoutputdatasource.go index 857db7d04816..18cc9cebcf13 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresynapseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuresynapseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSynapseOutputDataSource struct { Properties *AzureSynapseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSynapseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSynapseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSynapseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSynapseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/DataWarehouse" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuretableoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuretableoutputdatasource.go index 865e2512bb6b..e17cbd32f638 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuretableoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_azuretableoutputdatasource.go @@ -14,6 +14,14 @@ type AzureTableOutputDataSource struct { Properties *AzureTableOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureTableOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureTableOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureTableOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureTableOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Table" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_bloboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_bloboutputdatasource.go index 73ede46ee3ee..32618ad4bda9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_bloboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_bloboutputdatasource.go @@ -14,6 +14,14 @@ type BlobOutputDataSource struct { Properties *BlobOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s BlobOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobOutputDataSource{} @@ -27,9 +35,10 @@ func (s BlobOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_csvserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_csvserialization.go index 8bd09587b21a..fe53c348d552 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_csvserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_csvserialization.go @@ -14,6 +14,14 @@ type CsvSerialization struct { Properties *CsvSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CsvSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CsvSerialization{} @@ -27,9 +35,10 @@ func (s CsvSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CsvSerialization: %+v", err) } + decoded["type"] = "Csv" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_customclrserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_customclrserialization.go index 99094f5ff002..84c232bf63b1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_customclrserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_customclrserialization.go @@ -14,6 +14,14 @@ type CustomClrSerialization struct { Properties *CustomClrSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CustomClrSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CustomClrSerialization{} @@ -27,9 +35,10 @@ func (s CustomClrSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CustomClrSerialization: %+v", err) } + decoded["type"] = "CustomClr" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_deltaserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_deltaserialization.go index b28b6022b2af..04e17309662b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_deltaserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_deltaserialization.go @@ -14,6 +14,14 @@ type DeltaSerialization struct { Properties *DeltaSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s DeltaSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = DeltaSerialization{} @@ -27,9 +35,10 @@ func (s DeltaSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DeltaSerialization: %+v", err) } + decoded["type"] = "Delta" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_documentdboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_documentdboutputdatasource.go index bb4868131b10..9ea2d03756c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_documentdboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_documentdboutputdatasource.go @@ -14,6 +14,14 @@ type DocumentDbOutputDataSource struct { Properties *DocumentDbOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s DocumentDbOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = DocumentDbOutputDataSource{} @@ -27,9 +35,10 @@ func (s DocumentDbOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DocumentDbOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/DocumentDB" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhuboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhuboutputdatasource.go index 08bce058c236..7f1025789583 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhuboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhuboutputdatasource.go @@ -14,6 +14,14 @@ type EventHubOutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubOutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhubv2outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhubv2outputdatasource.go index 4f2a3a8e7fca..0077789a5177 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhubv2outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_eventhubv2outputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2OutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2OutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2OutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2OutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2OutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_gatewaymessagebusoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_gatewaymessagebusoutputdatasource.go index 25ab36657286..3806b51c8e81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_gatewaymessagebusoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_gatewaymessagebusoutputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusOutputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusOutputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusOutputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_jsonserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_jsonserialization.go index 6c7efa499b37..acbd2d0a8dc1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_jsonserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_jsonserialization.go @@ -14,6 +14,14 @@ type JsonSerialization struct { Properties *JsonSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s JsonSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = JsonSerialization{} @@ -27,9 +35,10 @@ func (s JsonSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonSerialization: %+v", err) } + decoded["type"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputdatasource.go index 07f934765ec2..5e484ddea05f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OutputDataSource interface { + OutputDataSource() BaseOutputDataSourceImpl } -// RawOutputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OutputDataSource = BaseOutputDataSourceImpl{} + +type BaseOutputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s +} + +var _ OutputDataSource = RawOutputDataSourceImpl{} + +// RawOutputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOutputDataSourceImpl struct { - Type string - Values map[string]interface{} + outputDataSource BaseOutputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s.outputDataSource } -func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { +func UnmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return nil, fmt.Errorf("unmarshaling OutputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Kusto/clusters/databases") { @@ -164,10 +181,15 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return out, nil } - out := RawOutputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseOutputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOutputDataSourceImpl: %+v", err) } - return out, nil + + return RawOutputDataSourceImpl{ + outputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputproperties.go index b61db1605b39..f97c508bf138 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_outputproperties.go @@ -22,10 +22,16 @@ type OutputProperties struct { var _ json.Unmarshaler = &OutputProperties{} func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { - type alias OutputProperties - var decoded alias + var decoded struct { + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + LastOutputEventTimestamps *[]LastOutputEventTimestamp `json:"lastOutputEventTimestamps,omitempty"` + SizeWindow *int64 `json:"sizeWindow,omitempty"` + TimeWindow *string `json:"timeWindow,omitempty"` + WatermarkSettings *OutputWatermarkProperties `json:"watermarkSettings,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into OutputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Diagnostics = decoded.Diagnostics @@ -41,7 +47,7 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalOutputDataSourceImplementation(v) + impl, err := UnmarshalOutputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'OutputProperties': %+v", err) } @@ -49,11 +55,12 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'OutputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_parquetserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_parquetserialization.go index 00891b61aa70..fa8e76537bf4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_parquetserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_parquetserialization.go @@ -14,6 +14,14 @@ type ParquetSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s ParquetSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = ParquetSerialization{} @@ -27,9 +35,10 @@ func (s ParquetSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ParquetSerialization: %+v", err) } + decoded["type"] = "Parquet" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_postgresqloutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_postgresqloutputdatasource.go index 476e5ed56a91..c8b50a4339da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_postgresqloutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_postgresqloutputdatasource.go @@ -14,6 +14,14 @@ type PostgreSQLOutputDataSource struct { Properties *PostgreSQLDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s PostgreSQLOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = PostgreSQLOutputDataSource{} @@ -27,9 +35,10 @@ func (s PostgreSQLOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PostgreSQLOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.DBForPostgreSQL/servers/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_powerbioutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_powerbioutputdatasource.go index adcbb6fe8a06..df433accb2a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_powerbioutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_powerbioutputdatasource.go @@ -14,6 +14,14 @@ type PowerBIOutputDataSource struct { Properties *PowerBIOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s PowerBIOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = PowerBIOutputDataSource{} @@ -27,9 +35,10 @@ func (s PowerBIOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PowerBIOutputDataSource: %+v", err) } + decoded["type"] = "PowerBI" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_rawoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_rawoutputdatasource.go index dd59de6210cd..af42563ce030 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_rawoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_rawoutputdatasource.go @@ -14,6 +14,14 @@ type RawOutputDatasource struct { Properties *RawOutputDatasourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s RawOutputDatasource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = RawOutputDatasource{} @@ -27,9 +35,10 @@ func (s RawOutputDatasource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RawOutputDatasource: %+v", err) } + decoded["type"] = "Raw" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_serialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_serialization.go index dd7efbb86a37..72524eda8706 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_serialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_serialization.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Serialization interface { + Serialization() BaseSerializationImpl } -// RawSerializationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Serialization = BaseSerializationImpl{} + +type BaseSerializationImpl struct { + Type EventSerializationType `json:"type"` +} + +func (s BaseSerializationImpl) Serialization() BaseSerializationImpl { + return s +} + +var _ Serialization = RawSerializationImpl{} + +// RawSerializationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSerializationImpl struct { - Type string - Values map[string]interface{} + serialization BaseSerializationImpl + Type string + Values map[string]interface{} +} + +func (s RawSerializationImpl) Serialization() BaseSerializationImpl { + return s.serialization } -func unmarshalSerializationImplementation(input []byte) (Serialization, error) { +func UnmarshalSerializationImplementation(input []byte) (Serialization, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return nil, fmt.Errorf("unmarshaling Serialization into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Avro") { @@ -84,10 +101,15 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return out, nil } - out := RawSerializationImpl{ - Type: value, - Values: temp, + var parent BaseSerializationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSerializationImpl: %+v", err) } - return out, nil + + return RawSerializationImpl{ + serialization: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebusqueueoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebusqueueoutputdatasource.go index ce896a400231..8572808e2e5f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebusqueueoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebusqueueoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusQueueOutputDataSource struct { Properties *ServiceBusQueueOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusQueueOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusQueueOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusQueueOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusQueueOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Queue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebustopicoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebustopicoutputdatasource.go index 6d62ab02c182..c1a1cc1e1e1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebustopicoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/model_servicebustopicoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusTopicOutputDataSource struct { Properties *ServiceBusTopicOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusTopicOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusTopicOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusTopicOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusTopicOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Topic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/version.go index ea964723b8cd..4a11c030659d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/outputs/version.go @@ -1,12 +1,10 @@ package outputs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/outputs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/outputs/2021-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md index 704553497c42..264106ba56c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs` Documentation -The `streamingjobs` SDK allows for interaction with the Azure Resource Manager Service `streamanalytics` (API Version `2021-10-01-preview`). +The `streamingjobs` SDK allows for interaction with Azure Resource Manager `streamanalytics` (API Version `2021-10-01-preview`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StreamingJob{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrReplaceThenPoll(ctx, id, payload, streamingjobs.Default ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") read, err := client.Get(ctx, id, streamingjobs.DefaultGetOperationOptions()) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.ScaleStreamingJobParameters{ // ... @@ -121,7 +121,7 @@ if err := client.ScaleThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") // alternatively `client.SkuList(ctx, id)` can be used to do batched pagination items, err := client.SkuListComplete(ctx, id) @@ -138,7 +138,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StartStreamingJobParameters{ // ... @@ -155,7 +155,7 @@ if err := client.StartThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") if err := client.StopThenPoll(ctx, id); err != nil { // handle the error @@ -167,7 +167,7 @@ if err := client.StopThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "streamingJobValue") +id := streamingjobs.NewStreamingJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "jobName") payload := streamingjobs.StreamingJob{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/client.go index 2e04ee218cc5..1dc6a0feb182 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/client.go @@ -15,7 +15,7 @@ type StreamingJobsClient struct { } func NewStreamingJobsClientWithBaseURI(sdkApi sdkEnv.Api) (*StreamingJobsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "streamingjobs", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "streamingjobs", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StreamingJobsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/id_streamingjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/id_streamingjob.go index 8bea001a487c..dbf8cb09b9c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/id_streamingjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/id_streamingjob.go @@ -42,7 +42,7 @@ func ParseStreamingJobID(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStreamingJobIDInsensitively(input string) (*StreamingJobId, error) { } id := StreamingJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StreamingJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftStreamAnalytics", "Microsoft.StreamAnalytics", "Microsoft.StreamAnalytics"), resourceids.StaticSegment("staticStreamingJobs", "streamingJobs", "streamingJobs"), - resourceids.UserSpecifiedSegment("streamingJobName", "streamingJobValue"), + resourceids.UserSpecifiedSegment("streamingJobName", "jobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go index f332e84e344b..127b33a2879f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_createorreplace.go @@ -43,6 +43,7 @@ func (o CreateOrReplaceOperationOptions) ToHeaders() *client.Headers { func (o CreateOrReplaceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go index dde10e46823f..f8ecfcfacf9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_get.go @@ -34,6 +34,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c StreamingJobsClient) Get(ctx context.Context, id StreamingJobId, options var model StreamingJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go index eb50ec400db0..a62fb38713d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go index c3baa38df09a..9c902872a6d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go index ce4cea0f55b1..72dc1482bff8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/method_update.go @@ -36,6 +36,7 @@ func (o UpdateOperationOptions) ToHeaders() *client.Headers { func (o UpdateOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -78,7 +79,6 @@ func (c StreamingJobsClient) Update(ctx context.Context, id StreamingJobId, inpu var model StreamingJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_aggregatefunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_aggregatefunctionproperties.go index 0c646de6aa7e..b1ec5ac89252 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_aggregatefunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_aggregatefunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = AggregateFunctionProperties{} type AggregateFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s AggregateFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = AggregateFunctionProperties{} @@ -28,9 +38,10 @@ func (s AggregateFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AggregateFunctionProperties: %+v", err) } + decoded["type"] = "Aggregate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_avroserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_avroserialization.go index 2ee800b1446b..e7180c3a0e86 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_avroserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_avroserialization.go @@ -14,6 +14,14 @@ type AvroSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s AvroSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = AvroSerialization{} @@ -27,9 +35,10 @@ func (s AvroSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AvroSerialization: %+v", err) } + decoded["type"] = "Avro" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredataexploreroutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredataexploreroutputdatasource.go index 616c546f1eb0..f2e96b253acf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredataexploreroutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredataexploreroutputdatasource.go @@ -14,6 +14,14 @@ type AzureDataExplorerOutputDataSource struct { Properties *AzureDataExplorerOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureDataExplorerOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureDataExplorerOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureDataExplorerOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataExplorerOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Kusto/clusters/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredatalakestoreoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredatalakestoreoutputdatasource.go index b4972c83a448..7dfd77186f93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredatalakestoreoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuredatalakestoreoutputdatasource.go @@ -14,6 +14,14 @@ type AzureDataLakeStoreOutputDataSource struct { Properties *AzureDataLakeStoreOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureDataLakeStoreOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureDataLakeStoreOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureDataLakeStoreOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureDataLakeStoreOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.DataLake/Accounts" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azurefunctionoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azurefunctionoutputdatasource.go index 659bcd759a45..d8840e20cb3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azurefunctionoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azurefunctionoutputdatasource.go @@ -14,6 +14,14 @@ type AzureFunctionOutputDataSource struct { Properties *AzureFunctionOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureFunctionOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureFunctionOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureFunctionOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureFunctionOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.AzureFunction" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningservicefunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningservicefunctionbinding.go index 20c14be3296e..4d6bbf6d6bab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningservicefunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningservicefunctionbinding.go @@ -14,6 +14,14 @@ type AzureMachineLearningServiceFunctionBinding struct { Properties *AzureMachineLearningServiceFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s AzureMachineLearningServiceFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureMachineLearningServiceFunctionBinding{} @@ -27,9 +35,10 @@ func (s AzureMachineLearningServiceFunctionBinding) MarshalJSON() ([]byte, error } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureMachineLearningServiceFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.MachineLearningServices" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningstudiofunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningstudiofunctionbinding.go index 96f7218eb5a5..333340482f56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningstudiofunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuremachinelearningstudiofunctionbinding.go @@ -14,6 +14,14 @@ type AzureMachineLearningStudioFunctionBinding struct { Properties *AzureMachineLearningStudioFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s AzureMachineLearningStudioFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureMachineLearningStudioFunctionBinding{} @@ -27,9 +35,10 @@ func (s AzureMachineLearningStudioFunctionBinding) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureMachineLearningStudioFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.MachineLearning/WebService" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqldatabaseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqldatabaseoutputdatasource.go index 586193d027a1..59882ee39ff4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqldatabaseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqldatabaseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlDatabaseOutputDataSource struct { Properties *AzureSqlDatabaseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlDatabaseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlDatabaseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlDatabaseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlDatabaseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqlreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqlreferenceinputdatasource.go index e0ced0b72072..db2b8bdd6760 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqlreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresqlreferenceinputdatasource.go @@ -14,6 +14,14 @@ type AzureSqlReferenceInputDataSource struct { Properties *AzureSqlReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s AzureSqlReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSqlReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSqlReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSqlReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/Database" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresynapseoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresynapseoutputdatasource.go index 903fb2032157..f620ebf4386b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresynapseoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuresynapseoutputdatasource.go @@ -14,6 +14,14 @@ type AzureSynapseOutputDataSource struct { Properties *AzureSynapseDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureSynapseOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureSynapseOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureSynapseOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureSynapseOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Sql/Server/DataWarehouse" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuretableoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuretableoutputdatasource.go index 6fbde873ddcc..ab7d9c21afc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuretableoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_azuretableoutputdatasource.go @@ -14,6 +14,14 @@ type AzureTableOutputDataSource struct { Properties *AzureTableOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s AzureTableOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = AzureTableOutputDataSource{} @@ -27,9 +35,10 @@ func (s AzureTableOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling AzureTableOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Table" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_bloboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_bloboutputdatasource.go index 97864687f916..f9426c0f7598 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_bloboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_bloboutputdatasource.go @@ -14,6 +14,14 @@ type BlobOutputDataSource struct { Properties *BlobOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s BlobOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobOutputDataSource{} @@ -27,9 +35,10 @@ func (s BlobOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobreferenceinputdatasource.go index 3398a3d79add..fdbc664d00da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobreferenceinputdatasource.go @@ -14,6 +14,14 @@ type BlobReferenceInputDataSource struct { Properties *BlobReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s BlobReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobReferenceInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobstreaminputdatasource.go index 38e280e54b6e..8b3cc61c5a31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_blobstreaminputdatasource.go @@ -14,6 +14,14 @@ type BlobStreamInputDataSource struct { Properties *BlobStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s BlobStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = BlobStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s BlobStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling BlobStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/Blob" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csharpfunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csharpfunctionbinding.go index 3eec60380d41..f98582898c91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csharpfunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csharpfunctionbinding.go @@ -14,6 +14,14 @@ type CSharpFunctionBinding struct { Properties *CSharpFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s CSharpFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = CSharpFunctionBinding{} @@ -27,9 +35,10 @@ func (s CSharpFunctionBinding) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CSharpFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.StreamAnalytics/CLRUdf" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csvserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csvserialization.go index ca3eacfc0714..285542b7c8ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csvserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_csvserialization.go @@ -14,6 +14,14 @@ type CsvSerialization struct { Properties *CsvSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CsvSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CsvSerialization{} @@ -27,9 +35,10 @@ func (s CsvSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CsvSerialization: %+v", err) } + decoded["type"] = "Csv" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_customclrserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_customclrserialization.go index 75a5f6c1659b..24ccae241675 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_customclrserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_customclrserialization.go @@ -14,6 +14,14 @@ type CustomClrSerialization struct { Properties *CustomClrSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s CustomClrSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = CustomClrSerialization{} @@ -27,9 +35,10 @@ func (s CustomClrSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CustomClrSerialization: %+v", err) } + decoded["type"] = "CustomClr" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_deltaserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_deltaserialization.go index ce3d60583738..e4d02967c634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_deltaserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_deltaserialization.go @@ -14,6 +14,14 @@ type DeltaSerialization struct { Properties *DeltaSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s DeltaSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = DeltaSerialization{} @@ -27,9 +35,10 @@ func (s DeltaSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DeltaSerialization: %+v", err) } + decoded["type"] = "Delta" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_documentdboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_documentdboutputdatasource.go index 15079a002be4..750b5dc29bb8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_documentdboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_documentdboutputdatasource.go @@ -14,6 +14,14 @@ type DocumentDbOutputDataSource struct { Properties *DocumentDbOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s DocumentDbOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = DocumentDbOutputDataSource{} @@ -27,9 +35,10 @@ func (s DocumentDbOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DocumentDbOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Storage/DocumentDB" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventgridstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventgridstreaminputdatasource.go index 03e527105447..57a8295771c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventgridstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventgridstreaminputdatasource.go @@ -14,6 +14,14 @@ type EventGridStreamInputDataSource struct { Properties *EventGridStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventGridStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventGridStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventGridStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventGridStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventGrid/EventSubscriptions" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhuboutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhuboutputdatasource.go index 291857248825..cd4d99fc22dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhuboutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhuboutputdatasource.go @@ -14,6 +14,14 @@ type EventHubOutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubOutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubstreaminputdatasource.go index cacc6f7ee788..16d6ab545346 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubstreaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubStreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2outputdatasource.go index eb9c2affe6ea..3c05a2519914 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2outputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2OutputDataSource struct { Properties *EventHubOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2OutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2OutputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2OutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2OutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2streaminputdatasource.go index 9236cbf7ed4f..e5231c5e0430 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_eventhubv2streaminputdatasource.go @@ -14,6 +14,14 @@ type EventHubV2StreamInputDataSource struct { Properties *EventHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s EventHubV2StreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubV2StreamInputDataSource{} @@ -27,9 +35,10 @@ func (s EventHubV2StreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubV2StreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.EventHub/EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_filereferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_filereferenceinputdatasource.go index 1d09bf0cc6f0..e43a91cc2469 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_filereferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_filereferenceinputdatasource.go @@ -14,6 +14,14 @@ type FileReferenceInputDataSource struct { Properties *FileReferenceInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s FileReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = FileReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s FileReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling FileReferenceInputDataSource: %+v", err) } + decoded["type"] = "File" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_function.go index c7a271194d06..faf68036c79c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_function.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_function.go @@ -18,10 +18,13 @@ type Function struct { var _ json.Unmarshaler = &Function{} func (s *Function) UnmarshalJSON(bytes []byte) error { - type alias Function - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Function: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Function) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalFunctionPropertiesImplementation(v) + impl, err := UnmarshalFunctionPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Function': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionbinding.go index acae995c54d8..a739a9974338 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionbinding.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionBinding interface { + FunctionBinding() BaseFunctionBindingImpl } -// RawFunctionBindingImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionBinding = BaseFunctionBindingImpl{} + +type BaseFunctionBindingImpl struct { + Type string `json:"type"` +} + +func (s BaseFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s +} + +var _ FunctionBinding = RawFunctionBindingImpl{} + +// RawFunctionBindingImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionBindingImpl struct { - Type string - Values map[string]interface{} + functionBinding BaseFunctionBindingImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionBindingImpl) FunctionBinding() BaseFunctionBindingImpl { + return s.functionBinding } -func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { +func UnmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return nil, fmt.Errorf("unmarshaling FunctionBinding into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.MachineLearningServices") { @@ -68,10 +85,15 @@ func unmarshalFunctionBindingImplementation(input []byte) (FunctionBinding, erro return out, nil } - out := RawFunctionBindingImpl{ - Type: value, - Values: temp, + var parent BaseFunctionBindingImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionBindingImpl: %+v", err) } - return out, nil + + return RawFunctionBindingImpl{ + functionBinding: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionconfiguration.go index 5216fe6262ab..534ab4c11c5d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionconfiguration.go @@ -17,10 +17,12 @@ type FunctionConfiguration struct { var _ json.Unmarshaler = &FunctionConfiguration{} func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { - type alias FunctionConfiguration - var decoded alias + var decoded struct { + Inputs *[]FunctionInput `json:"inputs,omitempty"` + Output *FunctionOutput `json:"output,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into FunctionConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Inputs = decoded.Inputs @@ -32,11 +34,12 @@ func (s *FunctionConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["binding"]; ok { - impl, err := unmarshalFunctionBindingImplementation(v) + impl, err := UnmarshalFunctionBindingImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Binding' for 'FunctionConfiguration': %+v", err) } s.Binding = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionproperties.go index 797d9ff51204..8221d09fe83c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_functionproperties.go @@ -10,18 +10,37 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FunctionProperties interface { + FunctionProperties() BaseFunctionPropertiesImpl } -// RawFunctionPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FunctionProperties = BaseFunctionPropertiesImpl{} + +type BaseFunctionPropertiesImpl struct { + Etag *string `json:"etag,omitempty"` + Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s BaseFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s +} + +var _ FunctionProperties = RawFunctionPropertiesImpl{} + +// RawFunctionPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFunctionPropertiesImpl struct { - Type string - Values map[string]interface{} + functionProperties BaseFunctionPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawFunctionPropertiesImpl) FunctionProperties() BaseFunctionPropertiesImpl { + return s.functionProperties } -func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { +func UnmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties, error) { if input == nil { return nil, nil } @@ -31,9 +50,9 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return nil, fmt.Errorf("unmarshaling FunctionProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Aggregate") { @@ -52,10 +71,15 @@ func unmarshalFunctionPropertiesImplementation(input []byte) (FunctionProperties return out, nil } - out := RawFunctionPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseFunctionPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFunctionPropertiesImpl: %+v", err) } - return out, nil + + return RawFunctionPropertiesImpl{ + functionProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusoutputdatasource.go index 9f157cca9317..77f838075a49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusoutputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusOutputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusOutputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusOutputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go index 5f9bcf69fcae..a30b85e03247 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_gatewaymessagebusstreaminputdatasource.go @@ -14,6 +14,14 @@ type GatewayMessageBusStreamInputDataSource struct { Properties *GatewayMessageBusSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s GatewayMessageBusStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = GatewayMessageBusStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s GatewayMessageBusStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling GatewayMessageBusStreamInputDataSource: %+v", err) } + decoded["type"] = "GatewayMessageBus" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_input.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_input.go index a68319e701f1..5ecdf1e98879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_input.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_input.go @@ -18,10 +18,13 @@ type Input struct { var _ json.Unmarshaler = &Input{} func (s *Input) UnmarshalJSON(bytes []byte) error { - type alias Input - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into Input: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -34,11 +37,12 @@ func (s *Input) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalInputPropertiesImplementation(v) + impl, err := UnmarshalInputPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'Input': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_inputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_inputproperties.go index 20140f3aa714..c410f1e6244f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_inputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_inputproperties.go @@ -10,18 +10,79 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InputProperties interface { + InputProperties() BaseInputPropertiesImpl } -// RawInputPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InputProperties = BaseInputPropertiesImpl{} + +type BaseInputPropertiesImpl struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Serialization Serialization `json:"serialization"` + Type string `json:"type"` + WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` +} + +func (s BaseInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s +} + +var _ InputProperties = RawInputPropertiesImpl{} + +// RawInputPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInputPropertiesImpl struct { - Type string - Values map[string]interface{} + inputProperties BaseInputPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawInputPropertiesImpl) InputProperties() BaseInputPropertiesImpl { + return s.inputProperties +} + +var _ json.Unmarshaler = &BaseInputPropertiesImpl{} + +func (s *BaseInputPropertiesImpl) UnmarshalJSON(bytes []byte) error { + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` + } + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + + s.Compression = decoded.Compression + s.Diagnostics = decoded.Diagnostics + s.Etag = decoded.Etag + s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type + s.WatermarkSettings = decoded.WatermarkSettings + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling BaseInputPropertiesImpl into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["serialization"]; ok { + impl, err := UnmarshalSerializationImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'Serialization' for 'BaseInputPropertiesImpl': %+v", err) + } + s.Serialization = impl + } + + return nil } -func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { +func UnmarshalInputPropertiesImplementation(input []byte) (InputProperties, error) { if input == nil { return nil, nil } @@ -31,9 +92,9 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return nil, fmt.Errorf("unmarshaling InputProperties into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Reference") { @@ -52,10 +113,15 @@ func unmarshalInputPropertiesImplementation(input []byte) (InputProperties, erro return out, nil } - out := RawInputPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseInputPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInputPropertiesImpl: %+v", err) } - return out, nil + + return RawInputPropertiesImpl{ + inputProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_iothubstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_iothubstreaminputdatasource.go index dd9c76103f20..fee7c13deddf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_iothubstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_iothubstreaminputdatasource.go @@ -14,6 +14,14 @@ type IoTHubStreamInputDataSource struct { Properties *IoTHubStreamInputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s IoTHubStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = IoTHubStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s IoTHubStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubStreamInputDataSource: %+v", err) } + decoded["type"] = "Microsoft.Devices/IotHubs" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_javascriptfunctionbinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_javascriptfunctionbinding.go index 72a1c06fd0a0..14c2ef6aa387 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_javascriptfunctionbinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_javascriptfunctionbinding.go @@ -14,6 +14,14 @@ type JavaScriptFunctionBinding struct { Properties *JavaScriptFunctionBindingProperties `json:"properties,omitempty"` // Fields inherited from FunctionBinding + + Type string `json:"type"` +} + +func (s JavaScriptFunctionBinding) FunctionBinding() BaseFunctionBindingImpl { + return BaseFunctionBindingImpl{ + Type: s.Type, + } } var _ json.Marshaler = JavaScriptFunctionBinding{} @@ -27,9 +35,10 @@ func (s JavaScriptFunctionBinding) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JavaScriptFunctionBinding: %+v", err) } + decoded["type"] = "Microsoft.StreamAnalytics/JavascriptUdf" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_jsonserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_jsonserialization.go index e1e25c3058e8..74e086f11f98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_jsonserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_jsonserialization.go @@ -14,6 +14,14 @@ type JsonSerialization struct { Properties *JsonSerializationProperties `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s JsonSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = JsonSerialization{} @@ -27,9 +35,10 @@ func (s JsonSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling JsonSerialization: %+v", err) } + decoded["type"] = "Json" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputdatasource.go index c9123b7ea1c7..0e388170c8cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OutputDataSource interface { + OutputDataSource() BaseOutputDataSourceImpl } -// RawOutputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OutputDataSource = BaseOutputDataSourceImpl{} + +type BaseOutputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s +} + +var _ OutputDataSource = RawOutputDataSourceImpl{} + +// RawOutputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOutputDataSourceImpl struct { - Type string - Values map[string]interface{} + outputDataSource BaseOutputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawOutputDataSourceImpl) OutputDataSource() BaseOutputDataSourceImpl { + return s.outputDataSource } -func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { +func UnmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return nil, fmt.Errorf("unmarshaling OutputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Kusto/clusters/databases") { @@ -164,10 +181,15 @@ func unmarshalOutputDataSourceImplementation(input []byte) (OutputDataSource, er return out, nil } - out := RawOutputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseOutputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOutputDataSourceImpl: %+v", err) } - return out, nil + + return RawOutputDataSourceImpl{ + outputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputproperties.go index 8bb9c913faef..6a6677dc43e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_outputproperties.go @@ -22,10 +22,16 @@ type OutputProperties struct { var _ json.Unmarshaler = &OutputProperties{} func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { - type alias OutputProperties - var decoded alias + var decoded struct { + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + LastOutputEventTimestamps *[]LastOutputEventTimestamp `json:"lastOutputEventTimestamps,omitempty"` + SizeWindow *int64 `json:"sizeWindow,omitempty"` + TimeWindow *string `json:"timeWindow,omitempty"` + WatermarkSettings *OutputWatermarkProperties `json:"watermarkSettings,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into OutputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Diagnostics = decoded.Diagnostics @@ -41,7 +47,7 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalOutputDataSourceImplementation(v) + impl, err := UnmarshalOutputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'OutputProperties': %+v", err) } @@ -49,11 +55,12 @@ func (s *OutputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'OutputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_parquetserialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_parquetserialization.go index 2e44cd8b9095..188fa4a10650 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_parquetserialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_parquetserialization.go @@ -14,6 +14,14 @@ type ParquetSerialization struct { Properties *interface{} `json:"properties,omitempty"` // Fields inherited from Serialization + + Type EventSerializationType `json:"type"` +} + +func (s ParquetSerialization) Serialization() BaseSerializationImpl { + return BaseSerializationImpl{ + Type: s.Type, + } } var _ json.Marshaler = ParquetSerialization{} @@ -27,9 +35,10 @@ func (s ParquetSerialization) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ParquetSerialization: %+v", err) } + decoded["type"] = "Parquet" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_postgresqloutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_postgresqloutputdatasource.go index 89ad0177e33d..ad78c46d36bd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_postgresqloutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_postgresqloutputdatasource.go @@ -14,6 +14,14 @@ type PostgreSQLOutputDataSource struct { Properties *PostgreSQLDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s PostgreSQLOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = PostgreSQLOutputDataSource{} @@ -27,9 +35,10 @@ func (s PostgreSQLOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PostgreSQLOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.DBForPostgreSQL/servers/databases" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_powerbioutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_powerbioutputdatasource.go index 2a64ef14547a..613553a4de5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_powerbioutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_powerbioutputdatasource.go @@ -14,6 +14,14 @@ type PowerBIOutputDataSource struct { Properties *PowerBIOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s PowerBIOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = PowerBIOutputDataSource{} @@ -27,9 +35,10 @@ func (s PowerBIOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PowerBIOutputDataSource: %+v", err) } + decoded["type"] = "PowerBI" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawoutputdatasource.go index 968e57d81cc5..d5b732209322 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawoutputdatasource.go @@ -14,6 +14,14 @@ type RawOutputDatasource struct { Properties *RawOutputDatasourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s RawOutputDatasource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = RawOutputDatasource{} @@ -27,9 +35,10 @@ func (s RawOutputDatasource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RawOutputDatasource: %+v", err) } + decoded["type"] = "Raw" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawreferenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawreferenceinputdatasource.go index 734f2b5c47c9..a837e7fc028a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawreferenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawreferenceinputdatasource.go @@ -14,6 +14,14 @@ type RawReferenceInputDataSource struct { Properties *RawInputDatasourceProperties `json:"properties,omitempty"` // Fields inherited from ReferenceInputDataSource + + Type string `json:"type"` +} + +func (s RawReferenceInputDataSource) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return BaseReferenceInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = RawReferenceInputDataSource{} @@ -27,9 +35,10 @@ func (s RawReferenceInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RawReferenceInputDataSource: %+v", err) } + decoded["type"] = "Raw" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawstreaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawstreaminputdatasource.go index 91aa55a3a0b6..e26990e048f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawstreaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_rawstreaminputdatasource.go @@ -14,6 +14,14 @@ type RawStreamInputDataSource struct { Properties *RawInputDatasourceProperties `json:"properties,omitempty"` // Fields inherited from StreamInputDataSource + + Type string `json:"type"` +} + +func (s RawStreamInputDataSource) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return BaseStreamInputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = RawStreamInputDataSource{} @@ -27,9 +35,10 @@ func (s RawStreamInputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling RawStreamInputDataSource: %+v", err) } + decoded["type"] = "Raw" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputdatasource.go index 5f55cc7f000f..fadfc03f1322 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ReferenceInputDataSource interface { + ReferenceInputDataSource() BaseReferenceInputDataSourceImpl } -// RawReferenceInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ReferenceInputDataSource = BaseReferenceInputDataSourceImpl{} + +type BaseReferenceInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s +} + +var _ ReferenceInputDataSource = RawReferenceInputDataSourceImpl{} + +// RawReferenceInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawReferenceInputDataSourceImpl struct { - Type string - Values map[string]interface{} + referenceInputDataSource BaseReferenceInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawReferenceInputDataSourceImpl) ReferenceInputDataSource() BaseReferenceInputDataSourceImpl { + return s.referenceInputDataSource } -func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { +func UnmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return nil, fmt.Errorf("unmarshaling ReferenceInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Sql/Server/Database") { @@ -68,10 +85,15 @@ func unmarshalReferenceInputDataSourceImplementation(input []byte) (ReferenceInp return out, nil } - out := RawReferenceInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseReferenceInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseReferenceInputDataSourceImpl: %+v", err) } - return out, nil + + return RawReferenceInputDataSourceImpl{ + referenceInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputproperties.go index cf2f24a3aefc..c017855ab1f1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_referenceinputproperties.go @@ -14,14 +14,28 @@ type ReferenceInputProperties struct { Datasource ReferenceInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` } +func (s ReferenceInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + WatermarkSettings: s.WatermarkSettings, + } +} + var _ json.Marshaler = ReferenceInputProperties{} func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ReferenceInputProperties: %+v", err) } + decoded["type"] = "Reference" encoded, err = json.Marshal(decoded) @@ -49,16 +64,23 @@ func (s ReferenceInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ReferenceInputProperties{} func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { - type alias ReferenceInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ReferenceInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type s.WatermarkSettings = decoded.WatermarkSettings var temp map[string]json.RawMessage @@ -67,7 +89,7 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalReferenceInputDataSourceImplementation(v) + impl, err := UnmarshalReferenceInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'ReferenceInputProperties': %+v", err) } @@ -75,11 +97,12 @@ func (s *ReferenceInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'ReferenceInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_scalarfunctionproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_scalarfunctionproperties.go index 5804ccf9bcda..7ab85680dc63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_scalarfunctionproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_scalarfunctionproperties.go @@ -13,8 +13,18 @@ var _ FunctionProperties = ScalarFunctionProperties{} type ScalarFunctionProperties struct { // Fields inherited from FunctionProperties + Etag *string `json:"etag,omitempty"` Properties *FunctionConfiguration `json:"properties,omitempty"` + Type string `json:"type"` +} + +func (s ScalarFunctionProperties) FunctionProperties() BaseFunctionPropertiesImpl { + return BaseFunctionPropertiesImpl{ + Etag: s.Etag, + Properties: s.Properties, + Type: s.Type, + } } var _ json.Marshaler = ScalarFunctionProperties{} @@ -28,9 +38,10 @@ func (s ScalarFunctionProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ScalarFunctionProperties: %+v", err) } + decoded["type"] = "Scalar" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_serialization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_serialization.go index c83d8c218c97..e7c2407cce9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_serialization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_serialization.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type Serialization interface { + Serialization() BaseSerializationImpl } -// RawSerializationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ Serialization = BaseSerializationImpl{} + +type BaseSerializationImpl struct { + Type EventSerializationType `json:"type"` +} + +func (s BaseSerializationImpl) Serialization() BaseSerializationImpl { + return s +} + +var _ Serialization = RawSerializationImpl{} + +// RawSerializationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSerializationImpl struct { - Type string - Values map[string]interface{} + serialization BaseSerializationImpl + Type string + Values map[string]interface{} +} + +func (s RawSerializationImpl) Serialization() BaseSerializationImpl { + return s.serialization } -func unmarshalSerializationImplementation(input []byte) (Serialization, error) { +func UnmarshalSerializationImplementation(input []byte) (Serialization, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return nil, fmt.Errorf("unmarshaling Serialization into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Avro") { @@ -84,10 +101,15 @@ func unmarshalSerializationImplementation(input []byte) (Serialization, error) { return out, nil } - out := RawSerializationImpl{ - Type: value, - Values: temp, + var parent BaseSerializationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSerializationImpl: %+v", err) } - return out, nil + + return RawSerializationImpl{ + serialization: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebusqueueoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebusqueueoutputdatasource.go index 790e58f461bf..016710ab2d9f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebusqueueoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebusqueueoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusQueueOutputDataSource struct { Properties *ServiceBusQueueOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusQueueOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusQueueOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusQueueOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusQueueOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Queue" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebustopicoutputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebustopicoutputdatasource.go index 57f1938b5ee1..41e64a1c5a47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebustopicoutputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_servicebustopicoutputdatasource.go @@ -14,6 +14,14 @@ type ServiceBusTopicOutputDataSource struct { Properties *ServiceBusTopicOutputDataSourceProperties `json:"properties,omitempty"` // Fields inherited from OutputDataSource + + Type string `json:"type"` +} + +func (s ServiceBusTopicOutputDataSource) OutputDataSource() BaseOutputDataSourceImpl { + return BaseOutputDataSourceImpl{ + Type: s.Type, + } } var _ json.Marshaler = ServiceBusTopicOutputDataSource{} @@ -27,9 +35,10 @@ func (s ServiceBusTopicOutputDataSource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceBusTopicOutputDataSource: %+v", err) } + decoded["type"] = "Microsoft.ServiceBus/Topic" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputdatasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputdatasource.go index 64c686c2badd..38c3174618a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputdatasource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputdatasource.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type StreamInputDataSource interface { + StreamInputDataSource() BaseStreamInputDataSourceImpl } -// RawStreamInputDataSourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ StreamInputDataSource = BaseStreamInputDataSourceImpl{} + +type BaseStreamInputDataSourceImpl struct { + Type string `json:"type"` +} + +func (s BaseStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s +} + +var _ StreamInputDataSource = RawStreamInputDataSourceImpl{} + +// RawStreamInputDataSourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawStreamInputDataSourceImpl struct { - Type string - Values map[string]interface{} + streamInputDataSource BaseStreamInputDataSourceImpl + Type string + Values map[string]interface{} +} + +func (s RawStreamInputDataSourceImpl) StreamInputDataSource() BaseStreamInputDataSourceImpl { + return s.streamInputDataSource } -func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { +func UnmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputDataSource, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return nil, fmt.Errorf("unmarshaling StreamInputDataSource into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.Storage/Blob") { @@ -92,10 +109,15 @@ func unmarshalStreamInputDataSourceImplementation(input []byte) (StreamInputData return out, nil } - out := RawStreamInputDataSourceImpl{ - Type: value, - Values: temp, + var parent BaseStreamInputDataSourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseStreamInputDataSourceImpl: %+v", err) } - return out, nil + + return RawStreamInputDataSourceImpl{ + streamInputDataSource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputproperties.go index f59fa0ddb252..f7b517ab1f94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/model_streaminputproperties.go @@ -14,14 +14,28 @@ type StreamInputProperties struct { Datasource StreamInputDataSource `json:"datasource"` // Fields inherited from InputProperties + Compression *Compression `json:"compression,omitempty"` Diagnostics *Diagnostics `json:"diagnostics,omitempty"` Etag *string `json:"etag,omitempty"` PartitionKey *string `json:"partitionKey,omitempty"` Serialization Serialization `json:"serialization"` + Type string `json:"type"` WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` } +func (s StreamInputProperties) InputProperties() BaseInputPropertiesImpl { + return BaseInputPropertiesImpl{ + Compression: s.Compression, + Diagnostics: s.Diagnostics, + Etag: s.Etag, + PartitionKey: s.PartitionKey, + Serialization: s.Serialization, + Type: s.Type, + WatermarkSettings: s.WatermarkSettings, + } +} + var _ json.Marshaler = StreamInputProperties{} func (s StreamInputProperties) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling StreamInputProperties: %+v", err) } + decoded["type"] = "Stream" encoded, err = json.Marshal(decoded) @@ -49,16 +64,23 @@ func (s StreamInputProperties) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &StreamInputProperties{} func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { - type alias StreamInputProperties - var decoded alias + var decoded struct { + Compression *Compression `json:"compression,omitempty"` + Diagnostics *Diagnostics `json:"diagnostics,omitempty"` + Etag *string `json:"etag,omitempty"` + PartitionKey *string `json:"partitionKey,omitempty"` + Type string `json:"type"` + WatermarkSettings *InputWatermarkProperties `json:"watermarkSettings,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into StreamInputProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Compression = decoded.Compression s.Diagnostics = decoded.Diagnostics s.Etag = decoded.Etag s.PartitionKey = decoded.PartitionKey + s.Type = decoded.Type s.WatermarkSettings = decoded.WatermarkSettings var temp map[string]json.RawMessage @@ -67,7 +89,7 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["datasource"]; ok { - impl, err := unmarshalStreamInputDataSourceImplementation(v) + impl, err := UnmarshalStreamInputDataSourceImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Datasource' for 'StreamInputProperties': %+v", err) } @@ -75,11 +97,12 @@ func (s *StreamInputProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["serialization"]; ok { - impl, err := unmarshalSerializationImplementation(v) + impl, err := UnmarshalSerializationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Serialization' for 'StreamInputProperties': %+v", err) } s.Serialization = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/version.go index 113aae30cabd..5b17829f4d2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/streamanalytics/2021-10-01-preview/streamingjobs/version.go @@ -1,12 +1,10 @@ package streamingjobs -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01-preview" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/streamingjobs/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/streamingjobs/2021-10-01-preview" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/README.md index 843827a5495b..51d3b7b44e6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions` Documentation -The `subscriptions` SDK allows for interaction with the Azure Resource Manager Service `subscription` (API Version `2021-10-01`). +The `subscriptions` SDK allows for interaction with Azure Resource Manager `subscription` (API Version `2021-10-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := subscriptions.NewAliasID("aliasValue") +id := subscriptions.NewAliasID("aliasName") payload := subscriptions.PutAliasRequest{ // ... @@ -42,7 +42,7 @@ if err := client.AliasCreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := subscriptions.NewAliasID("aliasValue") +id := subscriptions.NewAliasID("aliasName") read, err := client.AliasDelete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewAliasID("aliasValue") +id := subscriptions.NewAliasID("aliasName") read, err := client.AliasGet(ctx, id) if err != nil { @@ -91,7 +91,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := subscriptions.NewBillingAccountID("billingAccountIdValue") +id := subscriptions.NewBillingAccountID("billingAccountId") read, err := client.BillingAccountGetPolicy(ctx, id) if err != nil { @@ -172,7 +172,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := subscriptions.NewSubscriptionOperationID("operationIdValue") +id := subscriptions.NewSubscriptionOperationID("operationId") read, err := client.SubscriptionOperationGet(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/constants.go index 974b7d49a4a2..0c5c11f7472d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/constants.go @@ -1,6 +1,8 @@ package subscriptions -import "strings" +import ( + "strings" +) // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_alias.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_alias.go index b2248a11085f..9cf0c78fd5c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_alias.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_alias.go @@ -38,7 +38,7 @@ func ParseAliasID(input string) (*AliasId, error) { } id := AliasId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseAliasIDInsensitively(input string) (*AliasId, error) { } id := AliasId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id AliasId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSubscription", "Microsoft.Subscription", "Microsoft.Subscription"), resourceids.StaticSegment("staticAliases", "aliases", "aliases"), - resourceids.UserSpecifiedSegment("aliasName", "aliasValue"), + resourceids.UserSpecifiedSegment("aliasName", "aliasName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_billingaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_billingaccount.go index 607ef194fffd..7018e322b376 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_billingaccount.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_billingaccount.go @@ -38,7 +38,7 @@ func ParseBillingAccountID(input string) (*BillingAccountId, error) { } id := BillingAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error) } id := BillingAccountId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id BillingAccountId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftBilling", "Microsoft.Billing", "Microsoft.Billing"), resourceids.StaticSegment("staticBillingAccounts", "billingAccounts", "billingAccounts"), - resourceids.UserSpecifiedSegment("billingAccountId", "billingAccountIdValue"), + resourceids.UserSpecifiedSegment("billingAccountId", "billingAccountId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_providersubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_providersubscription.go index a1c001a1a316..5acaa2c874b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_providersubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_providersubscription.go @@ -38,7 +38,7 @@ func ParseProviderSubscriptionID(input string) (*ProviderSubscriptionId, error) } id := ProviderSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseProviderSubscriptionIDInsensitively(input string) (*ProviderSubscripti } id := ProviderSubscriptionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_subscriptionoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_subscriptionoperation.go index b9ff6aa718f5..9c5a59680e9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_subscriptionoperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/id_subscriptionoperation.go @@ -38,7 +38,7 @@ func ParseSubscriptionOperationID(input string) (*SubscriptionOperationId, error } id := SubscriptionOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseSubscriptionOperationIDInsensitively(input string) (*SubscriptionOpera } id := SubscriptionOperationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id SubscriptionOperationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSubscription", "Microsoft.Subscription", "Microsoft.Subscription"), resourceids.StaticSegment("staticSubscriptionOperations", "subscriptionOperations", "subscriptionOperations"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/version.go index 8ade52d831dc..82cf8e0dd899 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/subscription/2021-10-01/subscriptions/version.go @@ -1,12 +1,10 @@ package subscriptions -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2021-10-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/subscriptions/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/subscriptions/2021-10-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md index 29412f673215..722c37d0ab7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets` Documentation -The `availabilitysets` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `availabilitysets` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetResourceName") payload := availabilitysets.AvailabilitySet{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetResourceName") if err := client.DeleteThenPoll(ctx, id, availabilitysets.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, availabilitysets.DefaultDeleteOperation ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetResourceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetValue") +id := availabilitysets.NewAvailabilitySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "availabilitySetResourceName") payload := availabilitysets.AvailabilitySetTagsUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/client.go index 54ef249b4a80..8bc85925a496 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/client.go @@ -15,7 +15,7 @@ type AvailabilitySetsClient struct { } func NewAvailabilitySetsClientWithBaseURI(sdkApi sdkEnv.Api) (*AvailabilitySetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "availabilitysets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "availabilitysets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AvailabilitySetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/id_availabilityset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/id_availabilityset.go index 234e7b69b022..f775bce5ea9c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/id_availabilityset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/id_availabilityset.go @@ -42,7 +42,7 @@ func ParseAvailabilitySetID(input string) (*AvailabilitySetId, error) { } id := AvailabilitySetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseAvailabilitySetIDInsensitively(input string) (*AvailabilitySetId, erro } id := AvailabilitySetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id AvailabilitySetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticAvailabilitySets", "availabilitySets", "availabilitySets"), - resourceids.UserSpecifiedSegment("availabilitySetName", "availabilitySetValue"), + resourceids.UserSpecifiedSegment("availabilitySetName", "availabilitySetResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go index 1152b836a8f6..999b35533538 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_get.go index b64927d0b03e..3e6d190e6003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/method_get.go @@ -45,7 +45,6 @@ func (c AvailabilitySetsClient) Get(ctx context.Context, id AvailabilitySetId) ( var model AvailabilitySet result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/version.go index b5ddd1201cca..28b4e87c65cf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/availabilitysets/version.go @@ -1,12 +1,10 @@ package availabilitysets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/availabilitysets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/availabilitysets/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md index e773def393d1..4c9869cdd2e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds` Documentation -The `clouds` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `clouds` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudValue") +id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudResourceName") payload := clouds.Cloud{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudValue") +id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudResourceName") if err := client.DeleteThenPoll(ctx, id, clouds.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, clouds.DefaultDeleteOperationOptions()) ```go ctx := context.TODO() -id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudValue") +id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudResourceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudValue") +id := clouds.NewCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudResourceName") payload := clouds.CloudTagsUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/client.go index 9720d3715983..b75679206d05 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/client.go @@ -15,7 +15,7 @@ type CloudsClient struct { } func NewCloudsClientWithBaseURI(sdkApi sdkEnv.Api) (*CloudsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clouds", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clouds", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CloudsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/id_cloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/id_cloud.go index 1547a210605e..abfdcf934092 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/id_cloud.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/id_cloud.go @@ -42,7 +42,7 @@ func ParseCloudID(input string) (*CloudId, error) { } id := CloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCloudIDInsensitively(input string) (*CloudId, error) { } id := CloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CloudId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticClouds", "clouds", "clouds"), - resourceids.UserSpecifiedSegment("cloudName", "cloudValue"), + resourceids.UserSpecifiedSegment("cloudName", "cloudResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go index 9d69f8fae92d..7aa5083b8f82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_get.go index d0b156616abd..3e2a13ee4b71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/method_get.go @@ -45,7 +45,6 @@ func (c CloudsClient) Get(ctx context.Context, id CloudId) (result GetOperationR var model Cloud result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/version.go index 1935d3db1000..11c357762dd6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/clouds/version.go @@ -1,12 +1,10 @@ package clouds -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clouds/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clouds/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md index 7ed86a9f49bc..b42f959dc239 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents` Documentation -The `guestagents` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `guestagents` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go index 8b3899fa940f..8bafe6eb1b97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/client.go @@ -15,7 +15,7 @@ type GuestAgentsClient struct { } func NewGuestAgentsClientWithBaseURI(sdkApi sdkEnv.Api) (*GuestAgentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "guestagents", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "guestagents", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GuestAgentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go index cd77b3a95bb6..5947acaf004f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/method_get.go @@ -47,7 +47,6 @@ func (c GuestAgentsClient) Get(ctx context.Context, id commonids.ScopeId) (resul var model GuestAgent result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go index 7019786d6d99..08482d3bc813 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/guestagents/version.go @@ -1,12 +1,10 @@ package guestagents -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/guestagents/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/guestagents/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md index 3588d88600dd..b00dfcb6ecab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems` Documentation -The `inventoryitems` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `inventoryitems` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue", "inventoryItemValue") +id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName", "inventoryItemResourceName") payload := inventoryitems.InventoryItem{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue", "inventoryItemValue") +id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName", "inventoryItemResourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue", "inventoryItemValue") +id := inventoryitems.NewInventoryItemID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName", "inventoryItemResourceName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := inventoryitems.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") +id := inventoryitems.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName") // alternatively `client.ListByVMmServer(ctx, id)` can be used to do batched pagination items, err := client.ListByVMmServerComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/client.go index fbe00f649ccb..d0909622b9ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/client.go @@ -15,7 +15,7 @@ type InventoryItemsClient struct { } func NewInventoryItemsClientWithBaseURI(sdkApi sdkEnv.Api) (*InventoryItemsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "inventoryitems", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "inventoryitems", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating InventoryItemsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_inventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_inventoryitem.go index 6619efc6e3fe..39a388561f45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_inventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_inventoryitem.go @@ -44,7 +44,7 @@ func ParseInventoryItemID(input string) (*InventoryItemId, error) { } id := InventoryItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInventoryItemIDInsensitively(input string) (*InventoryItemId, error) { } id := InventoryItemId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InventoryItemId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticVmmServers", "vmmServers", "vmmServers"), - resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerValue"), + resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerName"), resourceids.StaticSegment("staticInventoryItems", "inventoryItems", "inventoryItems"), - resourceids.UserSpecifiedSegment("inventoryItemName", "inventoryItemValue"), + resourceids.UserSpecifiedSegment("inventoryItemName", "inventoryItemResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_vmmserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_vmmserver.go index 154cf1910d95..80214c1ad80e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_vmmserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/id_vmmserver.go @@ -42,7 +42,7 @@ func ParseVMmServerID(input string) (*VMmServerId, error) { } id := VMmServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVMmServerIDInsensitively(input string) (*VMmServerId, error) { } id := VMmServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VMmServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticVmmServers", "vmmServers", "vmmServers"), - resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerValue"), + resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_create.go index 4cec8e383259..988b00584565 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_create.go @@ -50,7 +50,6 @@ func (c InventoryItemsClient) Create(ctx context.Context, id InventoryItemId, in var model InventoryItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_get.go index 4df52d77cdc4..c143a4f83eab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/method_get.go @@ -45,7 +45,6 @@ func (c InventoryItemsClient) Get(ctx context.Context, id InventoryItemId) (resu var model InventoryItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go index b8d67d2a4b2d..e8ff0ca938f5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_cloudinventoryitem.go @@ -13,12 +13,24 @@ var _ InventoryItemProperties = CloudInventoryItem{} type CloudInventoryItem struct { // Fields inherited from InventoryItemProperties + InventoryItemName *string `json:"inventoryItemName,omitempty"` + InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Uuid *string `json:"uuid,omitempty"` } +func (s CloudInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return BaseInventoryItemPropertiesImpl{ + InventoryItemName: s.InventoryItemName, + InventoryType: s.InventoryType, + ManagedResourceId: s.ManagedResourceId, + ProvisioningState: s.ProvisioningState, + Uuid: s.Uuid, + } +} + var _ json.Marshaler = CloudInventoryItem{} func (s CloudInventoryItem) MarshalJSON() ([]byte, error) { @@ -30,9 +42,10 @@ func (s CloudInventoryItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CloudInventoryItem: %+v", err) } + decoded["inventoryType"] = "Cloud" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitem.go index 92f80c1062df..f2acf4096a40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitem.go @@ -22,10 +22,15 @@ type InventoryItem struct { var _ json.Unmarshaler = &InventoryItem{} func (s *InventoryItem) UnmarshalJSON(bytes []byte) error { - type alias InventoryItem - var decoded alias + var decoded struct { + Id *string `json:"id,omitempty"` + Kind *string `json:"kind,omitempty"` + Name *string `json:"name,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Type *string `json:"type,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into InventoryItem: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Id = decoded.Id @@ -40,11 +45,12 @@ func (s *InventoryItem) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["properties"]; ok { - impl, err := unmarshalInventoryItemPropertiesImplementation(v) + impl, err := UnmarshalInventoryItemPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Properties' for 'InventoryItem': %+v", err) } s.Properties = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitemproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitemproperties.go index 897fb127207a..885aa9d95181 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitemproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_inventoryitemproperties.go @@ -10,18 +10,39 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InventoryItemProperties interface { + InventoryItemProperties() BaseInventoryItemPropertiesImpl } -// RawInventoryItemPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InventoryItemProperties = BaseInventoryItemPropertiesImpl{} + +type BaseInventoryItemPropertiesImpl struct { + InventoryItemName *string `json:"inventoryItemName,omitempty"` + InventoryType InventoryType `json:"inventoryType"` + ManagedResourceId *string `json:"managedResourceId,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + Uuid *string `json:"uuid,omitempty"` +} + +func (s BaseInventoryItemPropertiesImpl) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return s +} + +var _ InventoryItemProperties = RawInventoryItemPropertiesImpl{} + +// RawInventoryItemPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInventoryItemPropertiesImpl struct { - Type string - Values map[string]interface{} + inventoryItemProperties BaseInventoryItemPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawInventoryItemPropertiesImpl) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return s.inventoryItemProperties } -func unmarshalInventoryItemPropertiesImplementation(input []byte) (InventoryItemProperties, error) { +func UnmarshalInventoryItemPropertiesImplementation(input []byte) (InventoryItemProperties, error) { if input == nil { return nil, nil } @@ -31,9 +52,9 @@ func unmarshalInventoryItemPropertiesImplementation(input []byte) (InventoryItem return nil, fmt.Errorf("unmarshaling InventoryItemProperties into map[string]interface: %+v", err) } - value, ok := temp["inventoryType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["inventoryType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Cloud") { @@ -68,10 +89,15 @@ func unmarshalInventoryItemPropertiesImplementation(input []byte) (InventoryItem return out, nil } - out := RawInventoryItemPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseInventoryItemPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInventoryItemPropertiesImpl: %+v", err) } - return out, nil + + return RawInventoryItemPropertiesImpl{ + inventoryItemProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go index 8feb3388a141..66a9d54de1e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachineinventoryitem.go @@ -21,12 +21,24 @@ type VirtualMachineInventoryItem struct { PowerState *string `json:"powerState,omitempty"` // Fields inherited from InventoryItemProperties + InventoryItemName *string `json:"inventoryItemName,omitempty"` + InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Uuid *string `json:"uuid,omitempty"` } +func (s VirtualMachineInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return BaseInventoryItemPropertiesImpl{ + InventoryItemName: s.InventoryItemName, + InventoryType: s.InventoryType, + ManagedResourceId: s.ManagedResourceId, + ProvisioningState: s.ProvisioningState, + Uuid: s.Uuid, + } +} + var _ json.Marshaler = VirtualMachineInventoryItem{} func (s VirtualMachineInventoryItem) MarshalJSON() ([]byte, error) { @@ -38,9 +50,10 @@ func (s VirtualMachineInventoryItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VirtualMachineInventoryItem: %+v", err) } + decoded["inventoryType"] = "VirtualMachine" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go index d039273b7497..f6adc162e463 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualmachinetemplateinventoryitem.go @@ -17,12 +17,24 @@ type VirtualMachineTemplateInventoryItem struct { OsType *OsType `json:"osType,omitempty"` // Fields inherited from InventoryItemProperties + InventoryItemName *string `json:"inventoryItemName,omitempty"` + InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Uuid *string `json:"uuid,omitempty"` } +func (s VirtualMachineTemplateInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return BaseInventoryItemPropertiesImpl{ + InventoryItemName: s.InventoryItemName, + InventoryType: s.InventoryType, + ManagedResourceId: s.ManagedResourceId, + ProvisioningState: s.ProvisioningState, + Uuid: s.Uuid, + } +} + var _ json.Marshaler = VirtualMachineTemplateInventoryItem{} func (s VirtualMachineTemplateInventoryItem) MarshalJSON() ([]byte, error) { @@ -34,9 +46,10 @@ func (s VirtualMachineTemplateInventoryItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VirtualMachineTemplateInventoryItem: %+v", err) } + decoded["inventoryType"] = "VirtualMachineTemplate" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go index 23e698f13a8a..17c2229d32b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/model_virtualnetworkinventoryitem.go @@ -13,12 +13,24 @@ var _ InventoryItemProperties = VirtualNetworkInventoryItem{} type VirtualNetworkInventoryItem struct { // Fields inherited from InventoryItemProperties + InventoryItemName *string `json:"inventoryItemName,omitempty"` + InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Uuid *string `json:"uuid,omitempty"` } +func (s VirtualNetworkInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl { + return BaseInventoryItemPropertiesImpl{ + InventoryItemName: s.InventoryItemName, + InventoryType: s.InventoryType, + ManagedResourceId: s.ManagedResourceId, + ProvisioningState: s.ProvisioningState, + Uuid: s.Uuid, + } +} + var _ json.Marshaler = VirtualNetworkInventoryItem{} func (s VirtualNetworkInventoryItem) MarshalJSON() ([]byte, error) { @@ -30,9 +42,10 @@ func (s VirtualNetworkInventoryItem) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling VirtualNetworkInventoryItem: %+v", err) } + decoded["inventoryType"] = "VirtualNetwork" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/version.go index 9aa6fde2110d..ec59321ee89a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/inventoryitems/version.go @@ -1,12 +1,10 @@ package inventoryitems -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/inventoryitems/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/inventoryitems/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md index 3f27f82a2ab9..b9c505f59213 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances` Documentation -The `virtualmachineinstances` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `virtualmachineinstances` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/client.go index e40ddc4adf55..18d28a8f0090 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/client.go @@ -15,7 +15,7 @@ type VirtualMachineInstancesClient struct { } func NewVirtualMachineInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachineinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachineinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go index ca2a8334505d..e5dab7b55180 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_delete.go @@ -38,6 +38,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_get.go index 7a724ebe139e..589384c0dd01 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/method_get.go @@ -47,7 +47,6 @@ func (c VirtualMachineInstancesClient) Get(ctx context.Context, id commonids.Sco var model VirtualMachineInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/version.go index ff7feb152741..8fb479a6e2de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachineinstances/version.go @@ -1,12 +1,10 @@ package virtualmachineinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachineinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachineinstances/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md index f2ef7dcbf0f4..8b201c861fe6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates` Documentation -The `virtualmachinetemplates` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `virtualmachinetemplates` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateValue") +id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateName") payload := virtualmachinetemplates.VirtualMachineTemplate{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateValue") +id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateName") if err := client.DeleteThenPoll(ctx, id, virtualmachinetemplates.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualmachinetemplates.DefaultDeleteOp ```go ctx := context.TODO() -id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateValue") +id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateValue") +id := virtualmachinetemplates.NewVirtualMachineTemplateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineTemplateName") payload := virtualmachinetemplates.VirtualMachineTemplateTagsUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/client.go index 12c5314c789e..fc11bf98a1a6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/client.go @@ -15,7 +15,7 @@ type VirtualMachineTemplatesClient struct { } func NewVirtualMachineTemplatesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineTemplatesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualmachinetemplates", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualmachinetemplates", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualMachineTemplatesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/id_virtualmachinetemplate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/id_virtualmachinetemplate.go index 96686b256001..88b70a9c24e5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/id_virtualmachinetemplate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/id_virtualmachinetemplate.go @@ -42,7 +42,7 @@ func ParseVirtualMachineTemplateID(input string) (*VirtualMachineTemplateId, err } id := VirtualMachineTemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualMachineTemplateIDInsensitively(input string) (*VirtualMachineTe } id := VirtualMachineTemplateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualMachineTemplateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticVirtualMachineTemplates", "virtualMachineTemplates", "virtualMachineTemplates"), - resourceids.UserSpecifiedSegment("virtualMachineTemplateName", "virtualMachineTemplateValue"), + resourceids.UserSpecifiedSegment("virtualMachineTemplateName", "virtualMachineTemplateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go index 6073a8906f83..fad5c872392a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_get.go index 9792aa1db2bc..379f0f21ea4c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/method_get.go @@ -45,7 +45,6 @@ func (c VirtualMachineTemplatesClient) Get(ctx context.Context, id VirtualMachin var model VirtualMachineTemplate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/version.go index 719a261728d0..7e0c8a82b870 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualmachinetemplates/version.go @@ -1,12 +1,10 @@ package virtualmachinetemplates -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualmachinetemplates/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualmachinetemplates/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md index 5894f24d79f5..c5c76941ef6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks` Documentation -The `virtualnetworks` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `virtualnetworks` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := virtualnetworks.VirtualNetwork{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") if err := client.DeleteThenPoll(ctx, id, virtualnetworks.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, virtualnetworks.DefaultDeleteOperationO ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkValue") +id := virtualnetworks.NewVirtualNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualNetworkName") payload := virtualnetworks.VirtualNetworkTagsUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/client.go index 15c346279f67..9acbb6c10272 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/client.go @@ -15,7 +15,7 @@ type VirtualNetworksClient struct { } func NewVirtualNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualNetworksClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "virtualnetworks", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "virtualnetworks", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VirtualNetworksClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/id_virtualnetwork.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/id_virtualnetwork.go index 53a98d78d1aa..636c43b63d97 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/id_virtualnetwork.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/id_virtualnetwork.go @@ -42,7 +42,7 @@ func ParseVirtualNetworkID(input string) (*VirtualNetworkId, error) { } id := VirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVirtualNetworkIDInsensitively(input string) (*VirtualNetworkId, error) } id := VirtualNetworkId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VirtualNetworkId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticVirtualNetworks", "virtualNetworks", "virtualNetworks"), - resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkValue"), + resourceids.UserSpecifiedSegment("virtualNetworkName", "virtualNetworkName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go index fc9f19e84de0..386eba98bea8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_get.go index a27c17c16048..273f0922d917 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/method_get.go @@ -45,7 +45,6 @@ func (c VirtualNetworksClient) Get(ctx context.Context, id VirtualNetworkId) (re var model VirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/version.go index da76573b44dd..6f05936e91bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/virtualnetworks/version.go @@ -1,12 +1,10 @@ package virtualnetworks -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/virtualnetworks/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/virtualnetworks/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md index 9f5219f9a46a..aa97a3885714 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas` Documentation -The `vminstancehybrididentitymetadatas` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `vminstancehybrididentitymetadatas` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go index 630e0e876248..540c9c37362e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/client.go @@ -15,7 +15,7 @@ type VMInstanceHybridIdentityMetadatasClient struct { } func NewVMInstanceHybridIdentityMetadatasClientWithBaseURI(sdkApi sdkEnv.Api) (*VMInstanceHybridIdentityMetadatasClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vminstancehybrididentitymetadatas", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vminstancehybrididentitymetadatas", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VMInstanceHybridIdentityMetadatasClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go index 03a7dc100c83..e04df297f6fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/method_get.go @@ -47,7 +47,6 @@ func (c VMInstanceHybridIdentityMetadatasClient) Get(ctx context.Context, id com var model VMInstanceHybridIdentityMetadata result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go index 912648454394..d97ddd0341f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vminstancehybrididentitymetadatas/version.go @@ -1,12 +1,10 @@ package vminstancehybrididentitymetadatas -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vminstancehybrididentitymetadatas/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vminstancehybrididentitymetadatas/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md index 3e61fe49d3f6..265822b7c56c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers` Documentation -The `vmmservers` SDK allows for interaction with the Azure Resource Manager Service `systemcentervirtualmachinemanager` (API Version `2023-10-07`). +The `vmmservers` SDK allows for interaction with Azure Resource Manager `systemcentervirtualmachinemanager` (API Version `2023-10-07`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") +id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName") payload := vmmservers.VMmServer{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") +id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName") if err := client.DeleteThenPoll(ctx, id, vmmservers.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id, vmmservers.DefaultDeleteOperationOption ```go ctx := context.TODO() -id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") +id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerValue") +id := vmmservers.NewVMmServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "vmmServerName") payload := vmmservers.VMmServerTagsUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/client.go index ff1fc1061d59..e15231a5d8fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/client.go @@ -15,7 +15,7 @@ type VMmServersClient struct { } func NewVMmServersClientWithBaseURI(sdkApi sdkEnv.Api) (*VMmServersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "vmmservers", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "vmmservers", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating VMmServersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/id_vmmserver.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/id_vmmserver.go index db7494a57f07..da7fb575260a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/id_vmmserver.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/id_vmmserver.go @@ -42,7 +42,7 @@ func ParseVMmServerID(input string) (*VMmServerId, error) { } id := VMmServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseVMmServerIDInsensitively(input string) (*VMmServerId, error) { } id := VMmServerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id VMmServerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftScVmm", "Microsoft.ScVmm", "Microsoft.ScVmm"), resourceids.StaticSegment("staticVmmServers", "vmmServers", "vmmServers"), - resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerValue"), + resourceids.UserSpecifiedSegment("vmmServerName", "vmmServerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go index a07f7d70d6ae..63fd1d56572b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_delete.go @@ -36,6 +36,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go index e777876dede4..7a413c435e4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/method_get.go @@ -45,7 +45,6 @@ func (c VMmServersClient) Get(ctx context.Context, id VMmServerId) (result GetOp var model VMmServer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/version.go index 42b3cbefc9f9..31271ac13fc3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/systemcentervirtualmachinemanager/2023-10-07/vmmservers/version.go @@ -1,12 +1,10 @@ package vmmservers -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-10-07" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/vmmservers/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/vmmservers/2023-10-07" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/README.md index 9e8ce863a03a..d6149d585634 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies` Documentation -The `accesspolicies` SDK allows for interaction with the Azure Resource Manager Service `timeseriesinsights` (API Version `2020-05-15`). +The `accesspolicies` SDK allows for interaction with Azure Resource Manager `timeseriesinsights` (API Version `2020-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "accessPolicyValue") +id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "accessPolicyName") payload := accesspolicies.AccessPolicyCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "accessPolicyValue") +id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "accessPolicyName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "accessPolicyValue") +id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "accessPolicyName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accesspolicies.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := accesspolicies.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.ListByEnvironment(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "accessPolicyValue") +id := accesspolicies.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "accessPolicyName") payload := accesspolicies.AccessPolicyUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/client.go index a5663c54233d..e1258ae4cfdb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/client.go @@ -15,7 +15,7 @@ type AccessPoliciesClient struct { } func NewAccessPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessPoliciesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "accesspolicies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "accesspolicies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AccessPoliciesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_accesspolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_accesspolicy.go index 7f883c561a3b..84d53ad78346 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_accesspolicy.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_accesspolicy.go @@ -44,7 +44,7 @@ func ParseAccessPolicyID(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error) { } id := AccessPolicyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AccessPolicyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), resourceids.StaticSegment("staticAccessPolicies", "accessPolicies", "accessPolicies"), - resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyValue"), + resourceids.UserSpecifiedSegment("accessPolicyName", "accessPolicyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_environment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_environment.go index 7debdb4751b3..b1b7f3de923b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_environment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/id_environment.go @@ -42,7 +42,7 @@ func ParseEnvironmentID(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_createorupdate.go index efa160c16c3f..084619a58f62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_createorupdate.go @@ -50,7 +50,6 @@ func (c AccessPoliciesClient) CreateOrUpdate(ctx context.Context, id AccessPolic var model AccessPolicyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_get.go index d5bc91b5ea8c..3a06d2c0853d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_get.go @@ -45,7 +45,6 @@ func (c AccessPoliciesClient) Get(ctx context.Context, id AccessPolicyId) (resul var model AccessPolicyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_listbyenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_listbyenvironment.go index a80bb9554208..915d0a04a564 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_listbyenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_listbyenvironment.go @@ -46,7 +46,6 @@ func (c AccessPoliciesClient) ListByEnvironment(ctx context.Context, id Environm var model AccessPolicyListResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_update.go index 9c0b8a7b990d..1013cae0cb62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/method_update.go @@ -49,7 +49,6 @@ func (c AccessPoliciesClient) Update(ctx context.Context, id AccessPolicyId, inp var model AccessPolicyResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/version.go index 136289d1362f..182d1a8ca065 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/accesspolicies/version.go @@ -1,12 +1,10 @@ package accesspolicies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/accesspolicies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/accesspolicies/2020-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/README.md index 871fa2d28a8b..e5d8e25b9674 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments` Documentation -The `environments` SDK allows for interaction with the Azure Resource Manager Service `timeseriesinsights` (API Version `2020-05-15`). +The `environments` SDK allows for interaction with Azure Resource Manager `timeseriesinsights` (API Version `2020-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := environments.EnvironmentCreateOrUpdateParameters{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.Delete(ctx, id) if err != nil { @@ -58,7 +58,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.Get(ctx, id, environments.DefaultGetOperationOptions()) if err != nil { @@ -106,7 +106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := environments.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") payload := environments.EnvironmentUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/client.go index 89a5b84aa90d..eafef1a1e950 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/client.go @@ -15,7 +15,7 @@ type EnvironmentsClient struct { } func NewEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*EnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "environments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "environments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EnvironmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/id_environment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/id_environment.go index 52dec1c2c16b..26fc01bb8f04 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/id_environment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/id_environment.go @@ -42,7 +42,7 @@ func ParseEnvironmentID(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_createorupdate.go index e30c88139034..8e1d45faca8c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_createorupdate.go @@ -18,7 +18,7 @@ type CreateOrUpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *EnvironmentResource + Model EnvironmentResource } // CreateOrUpdate ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go index 152a64399408..e81beb2df656 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_get.go @@ -16,7 +16,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *EnvironmentResource + Model EnvironmentResource } type GetOperationOptions struct { @@ -35,6 +35,7 @@ func (o GetOperationOptions) ToHeaders() *client.Headers { func (o GetOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -77,11 +78,11 @@ func (c EnvironmentsClient) Get(ctx context.Context, id EnvironmentId, options G if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalEnvironmentResourceImplementation(respObj) + model, err := UnmarshalEnvironmentResourceImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbyresourcegroup.go index f391ef03d2f3..2e211c5b85dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c EnvironmentsClient) ListByResourceGroup(ctx context.Context, id commonid var model EnvironmentListResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbysubscription.go index e0b920990639..2fb9091ad18a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c EnvironmentsClient) ListBySubscription(ctx context.Context, id commonids var model EnvironmentListResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_update.go index 4bba6d416c0c..870cff980e06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/method_update.go @@ -18,7 +18,7 @@ type UpdateOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData - Model *EnvironmentResource + Model EnvironmentResource } // Update ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentcreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentcreateorupdateparameters.go index cd3944bf5094..d87d81f8767a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentcreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentcreateorupdateparameters.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EnvironmentCreateOrUpdateParameters interface { + EnvironmentCreateOrUpdateParameters() BaseEnvironmentCreateOrUpdateParametersImpl } -// RawEnvironmentCreateOrUpdateParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EnvironmentCreateOrUpdateParameters = BaseEnvironmentCreateOrUpdateParametersImpl{} + +type BaseEnvironmentCreateOrUpdateParametersImpl struct { + Kind EnvironmentKind `json:"kind"` + Location string `json:"location"` + Sku Sku `json:"sku"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s BaseEnvironmentCreateOrUpdateParametersImpl) EnvironmentCreateOrUpdateParameters() BaseEnvironmentCreateOrUpdateParametersImpl { + return s +} + +var _ EnvironmentCreateOrUpdateParameters = RawEnvironmentCreateOrUpdateParametersImpl{} + +// RawEnvironmentCreateOrUpdateParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEnvironmentCreateOrUpdateParametersImpl struct { - Type string - Values map[string]interface{} + environmentCreateOrUpdateParameters BaseEnvironmentCreateOrUpdateParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawEnvironmentCreateOrUpdateParametersImpl) EnvironmentCreateOrUpdateParameters() BaseEnvironmentCreateOrUpdateParametersImpl { + return s.environmentCreateOrUpdateParameters } -func unmarshalEnvironmentCreateOrUpdateParametersImplementation(input []byte) (EnvironmentCreateOrUpdateParameters, error) { +func UnmarshalEnvironmentCreateOrUpdateParametersImplementation(input []byte) (EnvironmentCreateOrUpdateParameters, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalEnvironmentCreateOrUpdateParametersImplementation(input []byte) (E return nil, fmt.Errorf("unmarshaling EnvironmentCreateOrUpdateParameters into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Gen1") { @@ -52,10 +72,15 @@ func unmarshalEnvironmentCreateOrUpdateParametersImplementation(input []byte) (E return out, nil } - out := RawEnvironmentCreateOrUpdateParametersImpl{ - Type: value, - Values: temp, + var parent BaseEnvironmentCreateOrUpdateParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEnvironmentCreateOrUpdateParametersImpl: %+v", err) } - return out, nil + + return RawEnvironmentCreateOrUpdateParametersImpl{ + environmentCreateOrUpdateParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentlistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentlistresponse.go index a6af0c398db5..76466cff8dd3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentlistresponse.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentlistresponse.go @@ -29,7 +29,7 @@ func (s *EnvironmentListResponse) UnmarshalJSON(bytes []byte) error { output := make([]EnvironmentResource, 0) for i, val := range listTemp { - impl, err := unmarshalEnvironmentResourceImplementation(val) + impl, err := UnmarshalEnvironmentResourceImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'EnvironmentListResponse': %+v", i, err) } @@ -37,5 +37,6 @@ func (s *EnvironmentListResponse) UnmarshalJSON(bytes []byte) error { } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentresource.go index 0dcbd2472292..85a7c78ba3bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentresource.go @@ -10,18 +10,41 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EnvironmentResource interface { + EnvironmentResource() BaseEnvironmentResourceImpl } -// RawEnvironmentResourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EnvironmentResource = BaseEnvironmentResourceImpl{} + +type BaseEnvironmentResourceImpl struct { + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Sku Sku `json:"sku"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseEnvironmentResourceImpl) EnvironmentResource() BaseEnvironmentResourceImpl { + return s +} + +var _ EnvironmentResource = RawEnvironmentResourceImpl{} + +// RawEnvironmentResourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEnvironmentResourceImpl struct { - Type string - Values map[string]interface{} + environmentResource BaseEnvironmentResourceImpl + Type string + Values map[string]interface{} +} + +func (s RawEnvironmentResourceImpl) EnvironmentResource() BaseEnvironmentResourceImpl { + return s.environmentResource } -func unmarshalEnvironmentResourceImplementation(input []byte) (EnvironmentResource, error) { +func UnmarshalEnvironmentResourceImplementation(input []byte) (EnvironmentResource, error) { if input == nil { return nil, nil } @@ -31,9 +54,9 @@ func unmarshalEnvironmentResourceImplementation(input []byte) (EnvironmentResour return nil, fmt.Errorf("unmarshaling EnvironmentResource into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Gen1") { @@ -52,10 +75,15 @@ func unmarshalEnvironmentResourceImplementation(input []byte) (EnvironmentResour return out, nil } - out := RawEnvironmentResourceImpl{ - Type: value, - Values: temp, + var parent BaseEnvironmentResourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEnvironmentResourceImpl: %+v", err) } - return out, nil + + return RawEnvironmentResourceImpl{ + environmentResource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentupdateparameters.go index 7acd0488a03f..5e0b06a0d2a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_environmentupdateparameters.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EnvironmentUpdateParameters interface { + EnvironmentUpdateParameters() BaseEnvironmentUpdateParametersImpl } -// RawEnvironmentUpdateParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EnvironmentUpdateParameters = BaseEnvironmentUpdateParametersImpl{} + +type BaseEnvironmentUpdateParametersImpl struct { + Kind EnvironmentKind `json:"kind"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s BaseEnvironmentUpdateParametersImpl) EnvironmentUpdateParameters() BaseEnvironmentUpdateParametersImpl { + return s +} + +var _ EnvironmentUpdateParameters = RawEnvironmentUpdateParametersImpl{} + +// RawEnvironmentUpdateParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEnvironmentUpdateParametersImpl struct { - Type string - Values map[string]interface{} + environmentUpdateParameters BaseEnvironmentUpdateParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawEnvironmentUpdateParametersImpl) EnvironmentUpdateParameters() BaseEnvironmentUpdateParametersImpl { + return s.environmentUpdateParameters } -func unmarshalEnvironmentUpdateParametersImplementation(input []byte) (EnvironmentUpdateParameters, error) { +func UnmarshalEnvironmentUpdateParametersImplementation(input []byte) (EnvironmentUpdateParameters, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalEnvironmentUpdateParametersImplementation(input []byte) (Environme return nil, fmt.Errorf("unmarshaling EnvironmentUpdateParameters into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Gen1") { @@ -52,10 +70,15 @@ func unmarshalEnvironmentUpdateParametersImplementation(input []byte) (Environme return out, nil } - out := RawEnvironmentUpdateParametersImpl{ - Type: value, - Values: temp, + var parent BaseEnvironmentUpdateParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEnvironmentUpdateParametersImpl: %+v", err) } - return out, nil + + return RawEnvironmentUpdateParametersImpl{ + environmentUpdateParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentcreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentcreateorupdateparameters.go index e58a944e77c5..da6de08e0d02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentcreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentcreateorupdateparameters.go @@ -14,11 +14,22 @@ type Gen1EnvironmentCreateOrUpdateParameters struct { Properties Gen1EnvironmentCreationProperties `json:"properties"` // Fields inherited from EnvironmentCreateOrUpdateParameters + + Kind EnvironmentKind `json:"kind"` Location string `json:"location"` Sku Sku `json:"sku"` Tags *map[string]string `json:"tags,omitempty"` } +func (s Gen1EnvironmentCreateOrUpdateParameters) EnvironmentCreateOrUpdateParameters() BaseEnvironmentCreateOrUpdateParametersImpl { + return BaseEnvironmentCreateOrUpdateParametersImpl{ + Kind: s.Kind, + Location: s.Location, + Sku: s.Sku, + Tags: s.Tags, + } +} + var _ json.Marshaler = Gen1EnvironmentCreateOrUpdateParameters{} func (s Gen1EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s Gen1EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen1EnvironmentCreateOrUpdateParameters: %+v", err) } + decoded["kind"] = "Gen1" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentresource.go index 854a7a3af0b4..e9d0fc7377f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentresource.go @@ -14,7 +14,9 @@ type Gen1EnvironmentResource struct { Properties Gen1EnvironmentResourceProperties `json:"properties"` // Fields inherited from EnvironmentResource + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` Sku Sku `json:"sku"` @@ -22,6 +24,18 @@ type Gen1EnvironmentResource struct { Type *string `json:"type,omitempty"` } +func (s Gen1EnvironmentResource) EnvironmentResource() BaseEnvironmentResourceImpl { + return BaseEnvironmentResourceImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Sku: s.Sku, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = Gen1EnvironmentResource{} func (s Gen1EnvironmentResource) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s Gen1EnvironmentResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen1EnvironmentResource: %+v", err) } + decoded["kind"] = "Gen1" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentupdateparameters.go index 76f5bf484914..a01a3b24452d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen1environmentupdateparameters.go @@ -15,9 +15,18 @@ type Gen1EnvironmentUpdateParameters struct { Sku *Sku `json:"sku,omitempty"` // Fields inherited from EnvironmentUpdateParameters + + Kind EnvironmentKind `json:"kind"` Tags *map[string]string `json:"tags,omitempty"` } +func (s Gen1EnvironmentUpdateParameters) EnvironmentUpdateParameters() BaseEnvironmentUpdateParametersImpl { + return BaseEnvironmentUpdateParametersImpl{ + Kind: s.Kind, + Tags: s.Tags, + } +} + var _ json.Marshaler = Gen1EnvironmentUpdateParameters{} func (s Gen1EnvironmentUpdateParameters) MarshalJSON() ([]byte, error) { @@ -29,9 +38,10 @@ func (s Gen1EnvironmentUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen1EnvironmentUpdateParameters: %+v", err) } + decoded["kind"] = "Gen1" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentcreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentcreateorupdateparameters.go index 8c5c45370d0d..726e21f672a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentcreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentcreateorupdateparameters.go @@ -14,11 +14,22 @@ type Gen2EnvironmentCreateOrUpdateParameters struct { Properties Gen2EnvironmentCreationProperties `json:"properties"` // Fields inherited from EnvironmentCreateOrUpdateParameters + + Kind EnvironmentKind `json:"kind"` Location string `json:"location"` Sku Sku `json:"sku"` Tags *map[string]string `json:"tags,omitempty"` } +func (s Gen2EnvironmentCreateOrUpdateParameters) EnvironmentCreateOrUpdateParameters() BaseEnvironmentCreateOrUpdateParametersImpl { + return BaseEnvironmentCreateOrUpdateParametersImpl{ + Kind: s.Kind, + Location: s.Location, + Sku: s.Sku, + Tags: s.Tags, + } +} + var _ json.Marshaler = Gen2EnvironmentCreateOrUpdateParameters{} func (s Gen2EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s Gen2EnvironmentCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen2EnvironmentCreateOrUpdateParameters: %+v", err) } + decoded["kind"] = "Gen2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentresource.go index 2602c514c10a..34683a718f6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentresource.go @@ -14,7 +14,9 @@ type Gen2EnvironmentResource struct { Properties Gen2EnvironmentResourceProperties `json:"properties"` // Fields inherited from EnvironmentResource + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` Sku Sku `json:"sku"` @@ -22,6 +24,18 @@ type Gen2EnvironmentResource struct { Type *string `json:"type,omitempty"` } +func (s Gen2EnvironmentResource) EnvironmentResource() BaseEnvironmentResourceImpl { + return BaseEnvironmentResourceImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Sku: s.Sku, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = Gen2EnvironmentResource{} func (s Gen2EnvironmentResource) MarshalJSON() ([]byte, error) { @@ -33,9 +47,10 @@ func (s Gen2EnvironmentResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen2EnvironmentResource: %+v", err) } + decoded["kind"] = "Gen2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentupdateparameters.go index ff65fad0dc14..0b80537c97cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/model_gen2environmentupdateparameters.go @@ -14,9 +14,18 @@ type Gen2EnvironmentUpdateParameters struct { Properties *Gen2EnvironmentMutableProperties `json:"properties,omitempty"` // Fields inherited from EnvironmentUpdateParameters + + Kind EnvironmentKind `json:"kind"` Tags *map[string]string `json:"tags,omitempty"` } +func (s Gen2EnvironmentUpdateParameters) EnvironmentUpdateParameters() BaseEnvironmentUpdateParametersImpl { + return BaseEnvironmentUpdateParametersImpl{ + Kind: s.Kind, + Tags: s.Tags, + } +} + var _ json.Marshaler = Gen2EnvironmentUpdateParameters{} func (s Gen2EnvironmentUpdateParameters) MarshalJSON() ([]byte, error) { @@ -28,9 +37,10 @@ func (s Gen2EnvironmentUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling Gen2EnvironmentUpdateParameters: %+v", err) } + decoded["kind"] = "Gen2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/version.go index ee4e0a90f3fe..425c3f2df3ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/environments/version.go @@ -1,12 +1,10 @@ package environments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/environments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/environments/2020-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/README.md index 17e4d1d6e115..ede123bac076 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources` Documentation -The `eventsources` SDK allows for interaction with the Azure Resource Manager Service `timeseriesinsights` (API Version `2020-05-15`). +The `eventsources` SDK allows for interaction with Azure Resource Manager `timeseriesinsights` (API Version `2020-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "eventSourceValue") +id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "eventSourceName") payload := eventsources.EventSourceCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "eventSourceValue") +id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "eventSourceName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "eventSourceValue") +id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "eventSourceName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsources.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := eventsources.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.ListByEnvironment(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "eventSourceValue") +id := eventsources.NewEventSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "eventSourceName") payload := eventsources.EventSourceUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/client.go index 9115a1afa1f4..a2ea8ad18876 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/client.go @@ -15,7 +15,7 @@ type EventSourcesClient struct { } func NewEventSourcesClientWithBaseURI(sdkApi sdkEnv.Api) (*EventSourcesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "eventsources", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "eventsources", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EventSourcesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_environment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_environment.go index 88d44a680033..f2c85e56481f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_environment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_environment.go @@ -42,7 +42,7 @@ func ParseEnvironmentID(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_eventsource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_eventsource.go index 0830986ee30a..f2972f787957 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_eventsource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/id_eventsource.go @@ -44,7 +44,7 @@ func ParseEventSourceID(input string) (*EventSourceId, error) { } id := EventSourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseEventSourceIDInsensitively(input string) (*EventSourceId, error) { } id := EventSourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id EventSourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), resourceids.StaticSegment("staticEventSources", "eventSources", "eventSources"), - resourceids.UserSpecifiedSegment("eventSourceName", "eventSourceValue"), + resourceids.UserSpecifiedSegment("eventSourceName", "eventSourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_createorupdate.go index 52708c62e146..fcf42b48c787 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_createorupdate.go @@ -15,7 +15,7 @@ import ( type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *EventSourceResource + Model EventSourceResource } // CreateOrUpdate ... @@ -53,11 +53,11 @@ func (c EventSourcesClient) CreateOrUpdate(ctx context.Context, id EventSourceId if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalEventSourceResourceImplementation(respObj) + model, err := UnmarshalEventSourceResourceImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_get.go index 6e12958d3da8..e29a3b2cc901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_get.go @@ -15,7 +15,7 @@ import ( type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *EventSourceResource + Model EventSourceResource } // Get ... @@ -48,11 +48,11 @@ func (c EventSourcesClient) Get(ctx context.Context, id EventSourceId) (result G if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalEventSourceResourceImplementation(respObj) + model, err := UnmarshalEventSourceResourceImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_listbyenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_listbyenvironment.go index a71132e6a374..aef50f6c23aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_listbyenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_listbyenvironment.go @@ -46,7 +46,6 @@ func (c EventSourcesClient) ListByEnvironment(ctx context.Context, id Environmen var model EventSourceListResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_update.go index 00742a8b9347..df06d0c805b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/method_update.go @@ -15,7 +15,7 @@ import ( type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *EventSourceResource + Model EventSourceResource } // Update ... @@ -52,11 +52,11 @@ func (c EventSourcesClient) Update(ctx context.Context, id EventSourceId, input if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalEventSourceResourceImplementation(respObj) + model, err := UnmarshalEventSourceResourceImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourcecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourcecreateorupdateparameters.go index be176eb17dc5..660f242a8916 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourcecreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourcecreateorupdateparameters.go @@ -14,11 +14,22 @@ type EventHubEventSourceCreateOrUpdateParameters struct { Properties EventHubEventSourceCreationProperties `json:"properties"` // Fields inherited from EventSourceCreateOrUpdateParameters + + Kind EventSourceKind `json:"kind"` LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"` Location string `json:"location"` Tags *map[string]string `json:"tags,omitempty"` } +func (s EventHubEventSourceCreateOrUpdateParameters) EventSourceCreateOrUpdateParameters() BaseEventSourceCreateOrUpdateParametersImpl { + return BaseEventSourceCreateOrUpdateParametersImpl{ + Kind: s.Kind, + LocalTimestamp: s.LocalTimestamp, + Location: s.Location, + Tags: s.Tags, + } +} + var _ json.Marshaler = EventHubEventSourceCreateOrUpdateParameters{} func (s EventHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s EventHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, erro } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubEventSourceCreateOrUpdateParameters: %+v", err) } + decoded["kind"] = "Microsoft.EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceresource.go index 33a1c112f1c5..045f0392a2ea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceresource.go @@ -14,13 +14,26 @@ type EventHubEventSourceResource struct { Properties EventHubEventSourceCommonProperties `json:"properties"` // Fields inherited from EventSourceResource + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } +func (s EventHubEventSourceResource) EventSourceResource() BaseEventSourceResourceImpl { + return BaseEventSourceResourceImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = EventHubEventSourceResource{} func (s EventHubEventSourceResource) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s EventHubEventSourceResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubEventSourceResource: %+v", err) } + decoded["kind"] = "Microsoft.EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceupdateparameters.go index bfbb5cc98b6f..79425a3afc23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventhubeventsourceupdateparameters.go @@ -14,9 +14,18 @@ type EventHubEventSourceUpdateParameters struct { Properties *EventHubEventSourceMutableProperties `json:"properties,omitempty"` // Fields inherited from EventSourceUpdateParameters + + Kind EventSourceKind `json:"kind"` Tags *map[string]string `json:"tags,omitempty"` } +func (s EventHubEventSourceUpdateParameters) EventSourceUpdateParameters() BaseEventSourceUpdateParametersImpl { + return BaseEventSourceUpdateParametersImpl{ + Kind: s.Kind, + Tags: s.Tags, + } +} + var _ json.Marshaler = EventHubEventSourceUpdateParameters{} func (s EventHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error) { @@ -28,9 +37,10 @@ func (s EventHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubEventSourceUpdateParameters: %+v", err) } + decoded["kind"] = "Microsoft.EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcecreateorupdateparameters.go index f49c6c716489..df6cc89a1a81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcecreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcecreateorupdateparameters.go @@ -10,18 +10,38 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventSourceCreateOrUpdateParameters interface { + EventSourceCreateOrUpdateParameters() BaseEventSourceCreateOrUpdateParametersImpl } -// RawEventSourceCreateOrUpdateParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventSourceCreateOrUpdateParameters = BaseEventSourceCreateOrUpdateParametersImpl{} + +type BaseEventSourceCreateOrUpdateParametersImpl struct { + Kind EventSourceKind `json:"kind"` + LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"` + Location string `json:"location"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s BaseEventSourceCreateOrUpdateParametersImpl) EventSourceCreateOrUpdateParameters() BaseEventSourceCreateOrUpdateParametersImpl { + return s +} + +var _ EventSourceCreateOrUpdateParameters = RawEventSourceCreateOrUpdateParametersImpl{} + +// RawEventSourceCreateOrUpdateParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventSourceCreateOrUpdateParametersImpl struct { - Type string - Values map[string]interface{} + eventSourceCreateOrUpdateParameters BaseEventSourceCreateOrUpdateParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawEventSourceCreateOrUpdateParametersImpl) EventSourceCreateOrUpdateParameters() BaseEventSourceCreateOrUpdateParametersImpl { + return s.eventSourceCreateOrUpdateParameters } -func unmarshalEventSourceCreateOrUpdateParametersImplementation(input []byte) (EventSourceCreateOrUpdateParameters, error) { +func UnmarshalEventSourceCreateOrUpdateParametersImplementation(input []byte) (EventSourceCreateOrUpdateParameters, error) { if input == nil { return nil, nil } @@ -31,9 +51,9 @@ func unmarshalEventSourceCreateOrUpdateParametersImplementation(input []byte) (E return nil, fmt.Errorf("unmarshaling EventSourceCreateOrUpdateParameters into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.EventHub") { @@ -52,10 +72,15 @@ func unmarshalEventSourceCreateOrUpdateParametersImplementation(input []byte) (E return out, nil } - out := RawEventSourceCreateOrUpdateParametersImpl{ - Type: value, - Values: temp, + var parent BaseEventSourceCreateOrUpdateParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventSourceCreateOrUpdateParametersImpl: %+v", err) } - return out, nil + + return RawEventSourceCreateOrUpdateParametersImpl{ + eventSourceCreateOrUpdateParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcelistresponse.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcelistresponse.go index 88d1a7266819..fc0a6e83d6fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcelistresponse.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourcelistresponse.go @@ -29,7 +29,7 @@ func (s *EventSourceListResponse) UnmarshalJSON(bytes []byte) error { output := make([]EventSourceResource, 0) for i, val := range listTemp { - impl, err := unmarshalEventSourceResourceImplementation(val) + impl, err := UnmarshalEventSourceResourceImplementation(val) if err != nil { return fmt.Errorf("unmarshaling index %d field 'Value' for 'EventSourceListResponse': %+v", i, err) } @@ -37,5 +37,6 @@ func (s *EventSourceListResponse) UnmarshalJSON(bytes []byte) error { } s.Value = &output } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceresource.go index fb8ace14b524..857f49aa4e5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceresource.go @@ -10,18 +10,40 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventSourceResource interface { + EventSourceResource() BaseEventSourceResourceImpl } -// RawEventSourceResourceImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventSourceResource = BaseEventSourceResourceImpl{} + +type BaseEventSourceResourceImpl struct { + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} + +func (s BaseEventSourceResourceImpl) EventSourceResource() BaseEventSourceResourceImpl { + return s +} + +var _ EventSourceResource = RawEventSourceResourceImpl{} + +// RawEventSourceResourceImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventSourceResourceImpl struct { - Type string - Values map[string]interface{} + eventSourceResource BaseEventSourceResourceImpl + Type string + Values map[string]interface{} +} + +func (s RawEventSourceResourceImpl) EventSourceResource() BaseEventSourceResourceImpl { + return s.eventSourceResource } -func unmarshalEventSourceResourceImplementation(input []byte) (EventSourceResource, error) { +func UnmarshalEventSourceResourceImplementation(input []byte) (EventSourceResource, error) { if input == nil { return nil, nil } @@ -31,9 +53,9 @@ func unmarshalEventSourceResourceImplementation(input []byte) (EventSourceResour return nil, fmt.Errorf("unmarshaling EventSourceResource into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.EventHub") { @@ -52,10 +74,15 @@ func unmarshalEventSourceResourceImplementation(input []byte) (EventSourceResour return out, nil } - out := RawEventSourceResourceImpl{ - Type: value, - Values: temp, + var parent BaseEventSourceResourceImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventSourceResourceImpl: %+v", err) } - return out, nil + + return RawEventSourceResourceImpl{ + eventSourceResource: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceupdateparameters.go index 269cdb0d05a3..26e2aa948140 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_eventsourceupdateparameters.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventSourceUpdateParameters interface { + EventSourceUpdateParameters() BaseEventSourceUpdateParametersImpl } -// RawEventSourceUpdateParametersImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventSourceUpdateParameters = BaseEventSourceUpdateParametersImpl{} + +type BaseEventSourceUpdateParametersImpl struct { + Kind EventSourceKind `json:"kind"` + Tags *map[string]string `json:"tags,omitempty"` +} + +func (s BaseEventSourceUpdateParametersImpl) EventSourceUpdateParameters() BaseEventSourceUpdateParametersImpl { + return s +} + +var _ EventSourceUpdateParameters = RawEventSourceUpdateParametersImpl{} + +// RawEventSourceUpdateParametersImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventSourceUpdateParametersImpl struct { - Type string - Values map[string]interface{} + eventSourceUpdateParameters BaseEventSourceUpdateParametersImpl + Type string + Values map[string]interface{} +} + +func (s RawEventSourceUpdateParametersImpl) EventSourceUpdateParameters() BaseEventSourceUpdateParametersImpl { + return s.eventSourceUpdateParameters } -func unmarshalEventSourceUpdateParametersImplementation(input []byte) (EventSourceUpdateParameters, error) { +func UnmarshalEventSourceUpdateParametersImplementation(input []byte) (EventSourceUpdateParameters, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalEventSourceUpdateParametersImplementation(input []byte) (EventSour return nil, fmt.Errorf("unmarshaling EventSourceUpdateParameters into map[string]interface: %+v", err) } - value, ok := temp["kind"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["kind"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Microsoft.EventHub") { @@ -52,10 +70,15 @@ func unmarshalEventSourceUpdateParametersImplementation(input []byte) (EventSour return out, nil } - out := RawEventSourceUpdateParametersImpl{ - Type: value, - Values: temp, + var parent BaseEventSourceUpdateParametersImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventSourceUpdateParametersImpl: %+v", err) } - return out, nil + + return RawEventSourceUpdateParametersImpl{ + eventSourceUpdateParameters: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourcecreateorupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourcecreateorupdateparameters.go index 6f19ccdc1b9c..a123ff7a68e2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourcecreateorupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourcecreateorupdateparameters.go @@ -14,11 +14,22 @@ type IoTHubEventSourceCreateOrUpdateParameters struct { Properties IoTHubEventSourceCreationProperties `json:"properties"` // Fields inherited from EventSourceCreateOrUpdateParameters + + Kind EventSourceKind `json:"kind"` LocalTimestamp *LocalTimestamp `json:"localTimestamp,omitempty"` Location string `json:"location"` Tags *map[string]string `json:"tags,omitempty"` } +func (s IoTHubEventSourceCreateOrUpdateParameters) EventSourceCreateOrUpdateParameters() BaseEventSourceCreateOrUpdateParametersImpl { + return BaseEventSourceCreateOrUpdateParametersImpl{ + Kind: s.Kind, + LocalTimestamp: s.LocalTimestamp, + Location: s.Location, + Tags: s.Tags, + } +} + var _ json.Marshaler = IoTHubEventSourceCreateOrUpdateParameters{} func (s IoTHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { @@ -30,9 +41,10 @@ func (s IoTHubEventSourceCreateOrUpdateParameters) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubEventSourceCreateOrUpdateParameters: %+v", err) } + decoded["kind"] = "Microsoft.IoTHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceresource.go index 150c997f656d..d34e73db68be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceresource.go @@ -14,13 +14,26 @@ type IoTHubEventSourceResource struct { Properties IoTHubEventSourceCommonProperties `json:"properties"` // Fields inherited from EventSourceResource + Id *string `json:"id,omitempty"` + Kind Kind `json:"kind"` Location string `json:"location"` Name *string `json:"name,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` } +func (s IoTHubEventSourceResource) EventSourceResource() BaseEventSourceResourceImpl { + return BaseEventSourceResourceImpl{ + Id: s.Id, + Kind: s.Kind, + Location: s.Location, + Name: s.Name, + Tags: s.Tags, + Type: s.Type, + } +} + var _ json.Marshaler = IoTHubEventSourceResource{} func (s IoTHubEventSourceResource) MarshalJSON() ([]byte, error) { @@ -32,9 +45,10 @@ func (s IoTHubEventSourceResource) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubEventSourceResource: %+v", err) } + decoded["kind"] = "Microsoft.IoTHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceupdateparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceupdateparameters.go index 7230dabda4ac..849888e1f875 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceupdateparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/model_iothubeventsourceupdateparameters.go @@ -14,9 +14,18 @@ type IoTHubEventSourceUpdateParameters struct { Properties *IoTHubEventSourceMutableProperties `json:"properties,omitempty"` // Fields inherited from EventSourceUpdateParameters + + Kind EventSourceKind `json:"kind"` Tags *map[string]string `json:"tags,omitempty"` } +func (s IoTHubEventSourceUpdateParameters) EventSourceUpdateParameters() BaseEventSourceUpdateParametersImpl { + return BaseEventSourceUpdateParametersImpl{ + Kind: s.Kind, + Tags: s.Tags, + } +} + var _ json.Marshaler = IoTHubEventSourceUpdateParameters{} func (s IoTHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error) { @@ -28,9 +37,10 @@ func (s IoTHubEventSourceUpdateParameters) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling IoTHubEventSourceUpdateParameters: %+v", err) } + decoded["kind"] = "Microsoft.IoTHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/version.go index 988bf83f53bb..f02a47288298 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/eventsources/version.go @@ -1,12 +1,10 @@ package eventsources -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/eventsources/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/eventsources/2020-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/README.md index 6ddf0d093765..4a73841c3e0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets` Documentation -The `referencedatasets` SDK allows for interaction with the Azure Resource Manager Service `timeseriesinsights` (API Version `2020-05-15`). +The `referencedatasets` SDK allows for interaction with Azure Resource Manager `timeseriesinsights` (API Version `2020-05-15`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "referenceDataSetValue") +id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "referenceDataSetName") payload := referencedatasets.ReferenceDataSetCreateOrUpdateParameters{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "referenceDataSetValue") +id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "referenceDataSetName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "referenceDataSetValue") +id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "referenceDataSetName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := referencedatasets.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue") +id := referencedatasets.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName") read, err := client.ListByEnvironment(ctx, id) if err != nil { @@ -93,7 +93,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentValue", "referenceDataSetValue") +id := referencedatasets.NewReferenceDataSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "environmentName", "referenceDataSetName") payload := referencedatasets.ReferenceDataSetUpdateParameters{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/client.go index 2220494882db..e04cddd94142 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/client.go @@ -15,7 +15,7 @@ type ReferenceDataSetsClient struct { } func NewReferenceDataSetsClientWithBaseURI(sdkApi sdkEnv.Api) (*ReferenceDataSetsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "referencedatasets", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "referencedatasets", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ReferenceDataSetsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_environment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_environment.go index f1ed09611041..088929e27d38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_environment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_environment.go @@ -42,7 +42,7 @@ func ParseEnvironmentID(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error) { } id := EnvironmentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id EnvironmentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_referencedataset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_referencedataset.go index 8d7ecdfb80d0..11026a7c9814 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_referencedataset.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/id_referencedataset.go @@ -44,7 +44,7 @@ func ParseReferenceDataSetID(input string) (*ReferenceDataSetId, error) { } id := ReferenceDataSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseReferenceDataSetIDInsensitively(input string) (*ReferenceDataSetId, er } id := ReferenceDataSetId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ReferenceDataSetId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftTimeSeriesInsights", "Microsoft.TimeSeriesInsights", "Microsoft.TimeSeriesInsights"), resourceids.StaticSegment("staticEnvironments", "environments", "environments"), - resourceids.UserSpecifiedSegment("environmentName", "environmentValue"), + resourceids.UserSpecifiedSegment("environmentName", "environmentName"), resourceids.StaticSegment("staticReferenceDataSets", "referenceDataSets", "referenceDataSets"), - resourceids.UserSpecifiedSegment("referenceDataSetName", "referenceDataSetValue"), + resourceids.UserSpecifiedSegment("referenceDataSetName", "referenceDataSetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_createorupdate.go index 09825f9dcb82..fd6a974ef050 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ReferenceDataSetsClient) CreateOrUpdate(ctx context.Context, id Referenc var model ReferenceDataSetResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_get.go index fc1275b639b2..2ac2f9f1102a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_get.go @@ -45,7 +45,6 @@ func (c ReferenceDataSetsClient) Get(ctx context.Context, id ReferenceDataSetId) var model ReferenceDataSetResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_listbyenvironment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_listbyenvironment.go index 0cc639c99c05..031c9f3b211f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_listbyenvironment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_listbyenvironment.go @@ -46,7 +46,6 @@ func (c ReferenceDataSetsClient) ListByEnvironment(ctx context.Context, id Envir var model ReferenceDataSetListResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_update.go index ad5ec8588adc..2da3963ce43e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/method_update.go @@ -49,7 +49,6 @@ func (c ReferenceDataSetsClient) Update(ctx context.Context, id ReferenceDataSet var model ReferenceDataSetResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/version.go index f27d87a17e34..e56e69cb6be1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/timeseriesinsights/2020-05-15/referencedatasets/version.go @@ -1,12 +1,10 @@ package referencedatasets -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2020-05-15" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/referencedatasets/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/referencedatasets/2020-05-15" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/README.md index 2b4e12058113..dac602d57cf7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints` Documentation -The `endpoints` SDK allows for interaction with the Azure Resource Manager Service `trafficmanager` (API Version `2022-04-01`). +The `endpoints` SDK allows for interaction with Azure Resource Manager `trafficmanager` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue", "AzureEndpoints", "endpointValue") +id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "AzureEndpoints", "endpointName") payload := endpoints.Endpoint{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue", "AzureEndpoints", "endpointValue") +id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "AzureEndpoints", "endpointName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue", "AzureEndpoints", "endpointValue") +id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "AzureEndpoints", "endpointName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue", "AzureEndpoints", "endpointValue") +id := endpoints.NewEndpointTypeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "AzureEndpoints", "endpointName") payload := endpoints.Endpoint{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/client.go index 5f6c4ea9eceb..754a364cd33a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/client.go @@ -15,7 +15,7 @@ type EndpointsClient struct { } func NewEndpointsClientWithBaseURI(sdkApi sdkEnv.Api) (*EndpointsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "endpoints", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "endpoints", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating EndpointsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/id_endpointtype.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/id_endpointtype.go index 41fe48c6336d..fcd00b443eeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/id_endpointtype.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/id_endpointtype.go @@ -46,7 +46,7 @@ func ParseEndpointTypeID(input string) (*EndpointTypeId, error) { } id := EndpointTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseEndpointTypeIDInsensitively(input string) (*EndpointTypeId, error) { } id := EndpointTypeId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -135,9 +135,9 @@ func (id EndpointTypeId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticTrafficManagerProfiles", "trafficManagerProfiles", "trafficManagerProfiles"), - resourceids.UserSpecifiedSegment("trafficManagerProfileName", "trafficManagerProfileValue"), + resourceids.UserSpecifiedSegment("trafficManagerProfileName", "profileName"), resourceids.ConstantSegment("endpointType", PossibleValuesForEndpointType(), "AzureEndpoints"), - resourceids.UserSpecifiedSegment("endpointName", "endpointValue"), + resourceids.UserSpecifiedSegment("endpointName", "endpointName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_createorupdate.go index d62f7e2858a1..5db4941ad29d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_createorupdate.go @@ -50,7 +50,6 @@ func (c EndpointsClient) CreateOrUpdate(ctx context.Context, id EndpointTypeId, var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_delete.go index 763d128fca2a..81722ed4647b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_delete.go @@ -46,7 +46,6 @@ func (c EndpointsClient) Delete(ctx context.Context, id EndpointTypeId) (result var model DeleteOperationResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_get.go index 4bf03a6c1c02..6c1bad85940d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_get.go @@ -45,7 +45,6 @@ func (c EndpointsClient) Get(ctx context.Context, id EndpointTypeId) (result Get var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_update.go index fa19d815ad6d..f7f3bdfc0144 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/method_update.go @@ -49,7 +49,6 @@ func (c EndpointsClient) Update(ctx context.Context, id EndpointTypeId, input En var model Endpoint result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/version.go index d7f6d1db3545..d6c5d484fd1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/endpoints/version.go @@ -1,12 +1,10 @@ package endpoints -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/endpoints/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/endpoints/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/README.md index 50903ee98003..153743c8a079 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies` Documentation -The `geographichierarchies` SDK allows for interaction with the Azure Resource Manager Service `trafficmanager` (API Version `2022-04-01`). +The `geographichierarchies` SDK allows for interaction with Azure Resource Manager `trafficmanager` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/client.go index f2da2c827380..aba82e56b5a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/client.go @@ -15,7 +15,7 @@ type GeographicHierarchiesClient struct { } func NewGeographicHierarchiesClientWithBaseURI(sdkApi sdkEnv.Api) (*GeographicHierarchiesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "geographichierarchies", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "geographichierarchies", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating GeographicHierarchiesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/method_getdefault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/method_getdefault.go index 3e00109c9cef..b1360a23e035 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/method_getdefault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/method_getdefault.go @@ -45,7 +45,6 @@ func (c GeographicHierarchiesClient) GetDefault(ctx context.Context) (result Get var model TrafficManagerGeographicHierarchy result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/version.go index 44d8950b7ce0..2298b53f0c2b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/geographichierarchies/version.go @@ -1,12 +1,10 @@ package geographichierarchies -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/geographichierarchies/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/geographichierarchies/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/README.md index 87bb17478482..b2ebfafa9f22 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles` Documentation -The `profiles` SDK allows for interaction with the Azure Resource Manager Service `trafficmanager` (API Version `2022-04-01`). +The `profiles` SDK allows for interaction with Azure Resource Manager `trafficmanager` (API Version `2022-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -66,7 +66,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue") +id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName") payload := profiles.Profile{ // ... @@ -87,7 +87,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue") +id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName") read, err := client.Delete(ctx, id) if err != nil { @@ -103,7 +103,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue") +id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName") read, err := client.Get(ctx, id) if err != nil { @@ -151,7 +151,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trafficManagerProfileValue") +id := profiles.NewTrafficManagerProfileID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName") payload := profiles.Profile{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/client.go index 720482266180..16eaef711947 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/client.go @@ -15,7 +15,7 @@ type ProfilesClient struct { } func NewProfilesClientWithBaseURI(sdkApi sdkEnv.Api) (*ProfilesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "profiles", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "profiles", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProfilesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/id_trafficmanagerprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/id_trafficmanagerprofile.go index d8ac0c80fc63..78e9f9c802eb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/id_trafficmanagerprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/id_trafficmanagerprofile.go @@ -42,7 +42,7 @@ func ParseTrafficManagerProfileID(input string) (*TrafficManagerProfileId, error } id := TrafficManagerProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseTrafficManagerProfileIDInsensitively(input string) (*TrafficManagerPro } id := TrafficManagerProfileId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id TrafficManagerProfileId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftNetwork", "Microsoft.Network", "Microsoft.Network"), resourceids.StaticSegment("staticTrafficManagerProfiles", "trafficManagerProfiles", "trafficManagerProfiles"), - resourceids.UserSpecifiedSegment("trafficManagerProfileName", "trafficManagerProfileValue"), + resourceids.UserSpecifiedSegment("trafficManagerProfileName", "profileName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagernameavailabilityv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagernameavailabilityv2.go index f87e57f40501..d39f25c4db18 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagernameavailabilityv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagernameavailabilityv2.go @@ -51,7 +51,6 @@ func (c ProfilesClient) CheckTrafficManagerNameAvailabilityV2(ctx context.Contex var model TrafficManagerNameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagerrelativednsnameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagerrelativednsnameavailability.go index e1e2d6d85aca..965a70540667 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagerrelativednsnameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_checktrafficmanagerrelativednsnameavailability.go @@ -49,7 +49,6 @@ func (c ProfilesClient) CheckTrafficManagerRelativeDnsNameAvailability(ctx conte var model TrafficManagerNameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_createorupdate.go index d41788ffb387..07577b9f325b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ProfilesClient) CreateOrUpdate(ctx context.Context, id TrafficManagerPro var model Profile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_delete.go index 8c126789eb00..a5170cef6300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_delete.go @@ -46,7 +46,6 @@ func (c ProfilesClient) Delete(ctx context.Context, id TrafficManagerProfileId) var model DeleteOperationResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_get.go index 1bb0ddf0d3ef..84fa23ddb7a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_get.go @@ -45,7 +45,6 @@ func (c ProfilesClient) Get(ctx context.Context, id TrafficManagerProfileId) (re var model Profile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbyresourcegroup.go index 039431f60000..eaff3fb761bc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbyresourcegroup.go @@ -47,7 +47,6 @@ func (c ProfilesClient) ListByResourceGroup(ctx context.Context, id commonids.Re var model ProfileListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbysubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbysubscription.go index 110f5d5e4f78..5e725899a613 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbysubscription.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_listbysubscription.go @@ -47,7 +47,6 @@ func (c ProfilesClient) ListBySubscription(ctx context.Context, id commonids.Sub var model ProfileListResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_update.go index 91e72c943338..38fc16bc3349 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/method_update.go @@ -49,7 +49,6 @@ func (c ProfilesClient) Update(ctx context.Context, id TrafficManagerProfileId, var model Profile result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/version.go index e4b4487d8221..bffbcd56baac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2022-04-01/profiles/version.go @@ -1,12 +1,10 @@ package profiles -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/profiles/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/profiles/2022-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md index c94c92c44496..998d4f2672cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations` Documentation -The `authorizations` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). +The `authorizations` SDK allows for interaction with Azure Resource Manager `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "authorizationValue") +id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "authorizationName") payload := authorizations.ExpressRouteAuthorization{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "authorizationValue") +id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "authorizationName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "authorizationValue") +id := authorizations.NewAuthorizationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "authorizationName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := authorizations.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := authorizations.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go index 3b013986c6d5..8f5ed4980c35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go @@ -15,7 +15,7 @@ type AuthorizationsClient struct { } func NewAuthorizationsClientWithBaseURI(sdkApi sdkEnv.Api) (*AuthorizationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "authorizations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "authorizations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AuthorizationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go index 75ef4f231db0..0da136bf6af0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go @@ -44,7 +44,7 @@ func ParseAuthorizationID(input string) (*AuthorizationId, error) { } id := AuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthorizationIDInsensitively(input string) (*AuthorizationId, error) { } id := AuthorizationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthorizationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), resourceids.StaticSegment("staticAuthorizations", "authorizations", "authorizations"), - resourceids.UserSpecifiedSegment("authorizationName", "authorizationValue"), + resourceids.UserSpecifiedSegment("authorizationName", "authorizationName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go index a3c777162b92..497fe017a309 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go @@ -42,7 +42,7 @@ func ParsePrivateCloudID(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateCloudIDInsensitively(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateCloudId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get.go index e87d153ae048..4bc9d8ca2407 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get.go @@ -45,7 +45,6 @@ func (c AuthorizationsClient) Get(ctx context.Context, id AuthorizationId) (resu var model ExpressRouteAuthorization result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go index f7b5290c4a9e..3ac2b58b9e82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go @@ -1,12 +1,10 @@ package authorizations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/authorizations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/authorizations/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md index dc321bc37ae4..2c5b07d3f133 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). +The `clusters` SDK allows for interaction with Azure Resource Manager `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName") payload := clusters.Cluster{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := clusters.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := clusters.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue") +id := clusters.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName") payload := clusters.ClusterUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go index e4ab7fd89ad8..4ead092b486d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go @@ -15,7 +15,7 @@ type ClustersClient struct { } func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "clusters", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "clusters", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ClustersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go index e6090e86f8c7..268b37f40a3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go @@ -44,7 +44,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go index 3d7e9c19d027..7422bcacbce5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go @@ -42,7 +42,7 @@ func ParsePrivateCloudID(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateCloudIDInsensitively(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateCloudId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get.go index 73c53aa936be..8265f74e8631 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get.go @@ -45,7 +45,6 @@ func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperat var model Cluster result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go index eb7c3e76e0a5..cb2b4f72a2d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go @@ -1,12 +1,10 @@ package clusters -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/clusters/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md index ababa55e7eeb..da17cb782b31 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores` Documentation -The `datastores` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). +The `datastores` SDK allows for interaction with Azure Resource Manager `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue", "dataStoreValue") +id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName", "datastoreName") payload := datastores.Datastore{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue", "dataStoreValue") +id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName", "datastoreName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue", "dataStoreValue") +id := datastores.NewDataStoreID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName", "datastoreName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := datastores.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "clusterValue") +id := datastores.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName", "clusterName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go index 02d0d9669e0e..bbd55bf513d5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go @@ -15,7 +15,7 @@ type DataStoresClient struct { } func NewDataStoresClientWithBaseURI(sdkApi sdkEnv.Api) (*DataStoresClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "datastores", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "datastores", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating DataStoresClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go index 147c507bd147..62947cd38055 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go @@ -44,7 +44,7 @@ func ParseClusterID(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseClusterIDInsensitively(input string) (*ClusterId, error) { } id := ClusterId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ClusterId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go index c4986961643e..29b8352d4297 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go @@ -46,7 +46,7 @@ func ParseDataStoreID(input string) (*DataStoreId, error) { } id := DataStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDataStoreIDInsensitively(input string) (*DataStoreId, error) { } id := DataStoreId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DataStoreId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), resourceids.StaticSegment("staticClusters", "clusters", "clusters"), - resourceids.UserSpecifiedSegment("clusterName", "clusterValue"), + resourceids.UserSpecifiedSegment("clusterName", "clusterName"), resourceids.StaticSegment("staticDataStores", "dataStores", "dataStores"), - resourceids.UserSpecifiedSegment("dataStoreName", "dataStoreValue"), + resourceids.UserSpecifiedSegment("dataStoreName", "datastoreName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get.go index 299db22f7750..dec57f085e73 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get.go @@ -45,7 +45,6 @@ func (c DataStoresClient) Get(ctx context.Context, id DataStoreId) (result GetOp var model Datastore result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go index 0c329ca8cc51..fd6a64f95683 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go @@ -1,12 +1,10 @@ package datastores -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/datastores/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/datastores/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md index 3e4879d4dba5..40f33da28bcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds` Documentation -The `privateclouds` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). +The `privateclouds` SDK allows for interaction with Azure Resource Manager `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") payload := privateclouds.PrivateCloud{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") read, err := client.Get(ctx, id) if err != nil { @@ -87,7 +87,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") read, err := client.ListAdminCredentials(ctx, id) if err != nil { @@ -120,7 +120,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") if err := client.RotateNsxtPasswordThenPoll(ctx, id); err != nil { // handle the error @@ -132,7 +132,7 @@ if err := client.RotateNsxtPasswordThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") if err := client.RotateVcenterPasswordThenPoll(ctx, id); err != nil { // handle the error @@ -144,7 +144,7 @@ if err := client.RotateVcenterPasswordThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudName") payload := privateclouds.PrivateCloudUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go index bb7f3721d686..2b558abf0f02 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go @@ -15,7 +15,7 @@ type PrivateCloudsClient struct { } func NewPrivateCloudsClientWithBaseURI(sdkApi sdkEnv.Api) (*PrivateCloudsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "privateclouds", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "privateclouds", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating PrivateCloudsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go index d9efed3220dc..ad07d69414f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go @@ -42,7 +42,7 @@ func ParsePrivateCloudID(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParsePrivateCloudIDInsensitively(input string) (*PrivateCloudId, error) { } id := PrivateCloudId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id PrivateCloudId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftAVS", "Microsoft.AVS", "Microsoft.AVS"), resourceids.StaticSegment("staticPrivateClouds", "privateClouds", "privateClouds"), - resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudValue"), + resourceids.UserSpecifiedSegment("privateCloudName", "privateCloudName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get.go index 7bfc93ae86b3..32e6f21c1200 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get.go @@ -45,7 +45,6 @@ func (c PrivateCloudsClient) Get(ctx context.Context, id PrivateCloudId) (result var model PrivateCloud result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials.go index 7c7a8adb9805..64073981caa7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials.go @@ -46,7 +46,6 @@ func (c PrivateCloudsClient) ListAdminCredentials(ctx context.Context, id Privat var model AdminCredentials result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go index f84909010307..ce49c5dbd17f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go @@ -1,12 +1,10 @@ package privateclouds -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2022-05-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/privateclouds/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/privateclouds/2022-05-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md index a292423d584d..6962f26f32b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways` Documentation -The `communicationsgateways` SDK allows for interaction with the Azure Resource Manager Service `voiceservices` (API Version `2023-04-03`). +The `communicationsgateways` SDK allows for interaction with Azure Resource Manager `voiceservices` (API Version `2023-04-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue") +id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName") payload := communicationsgateways.CommunicationsGateway{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue") +id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue") +id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue") +id := communicationsgateways.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName") payload := communicationsgateways.CommunicationsGatewayUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/client.go index 2d5c84ae73d8..f1353ea73499 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/client.go @@ -15,7 +15,7 @@ type CommunicationsGatewaysClient struct { } func NewCommunicationsGatewaysClientWithBaseURI(sdkApi sdkEnv.Api) (*CommunicationsGatewaysClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "communicationsgateways", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "communicationsgateways", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating CommunicationsGatewaysClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/id_communicationsgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/id_communicationsgateway.go index 3979f1c21223..fcc1a1e4e91e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/id_communicationsgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/id_communicationsgateway.go @@ -42,7 +42,7 @@ func ParseCommunicationsGatewayID(input string) (*CommunicationsGatewayId, error } id := CommunicationsGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCommunicationsGatewayIDInsensitively(input string) (*CommunicationsGat } id := CommunicationsGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CommunicationsGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftVoiceServices", "Microsoft.VoiceServices", "Microsoft.VoiceServices"), resourceids.StaticSegment("staticCommunicationsGateways", "communicationsGateways", "communicationsGateways"), - resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayValue"), + resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_get.go index 40640115d271..ddaf36b0df56 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_get.go @@ -45,7 +45,6 @@ func (c CommunicationsGatewaysClient) Get(ctx context.Context, id Communications var model CommunicationsGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_update.go index 06c8072fcdad..353287d9cb27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/method_update.go @@ -49,7 +49,6 @@ func (c CommunicationsGatewaysClient) Update(ctx context.Context, id Communicati var model CommunicationsGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/version.go index 5c1daef11a40..1579b2d0f81b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/communicationsgateways/version.go @@ -1,12 +1,10 @@ package communicationsgateways -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/communicationsgateways/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/communicationsgateways/2023-04-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/README.md index 0ba277a99b25..519cd28d008b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines` Documentation -The `testlines` SDK allows for interaction with the Azure Resource Manager Service `voiceservices` (API Version `2023-04-03`). +The `testlines` SDK allows for interaction with Azure Resource Manager `voiceservices` (API Version `2023-04-03`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue", "testLineValue") +id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName", "testLineName") payload := testlines.TestLine{ // ... @@ -41,7 +41,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue", "testLineValue") +id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName", "testLineName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue", "testLineValue") +id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName", "testLineName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := testlines.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue") +id := testlines.NewCommunicationsGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName") // alternatively `client.ListByCommunicationsGateway(ctx, id)` can be used to do batched pagination items, err := client.ListByCommunicationsGatewayComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayValue", "testLineValue") +id := testlines.NewTestLineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "communicationsGatewayName", "testLineName") payload := testlines.TestLineUpdate{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/client.go index 5fa3aafb49aa..21f12c985c45 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/client.go @@ -15,7 +15,7 @@ type TestLinesClient struct { } func NewTestLinesClientWithBaseURI(sdkApi sdkEnv.Api) (*TestLinesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "testlines", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "testlines", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating TestLinesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_communicationsgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_communicationsgateway.go index 731d1804df61..cc51964137e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_communicationsgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_communicationsgateway.go @@ -42,7 +42,7 @@ func ParseCommunicationsGatewayID(input string) (*CommunicationsGatewayId, error } id := CommunicationsGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseCommunicationsGatewayIDInsensitively(input string) (*CommunicationsGat } id := CommunicationsGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id CommunicationsGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftVoiceServices", "Microsoft.VoiceServices", "Microsoft.VoiceServices"), resourceids.StaticSegment("staticCommunicationsGateways", "communicationsGateways", "communicationsGateways"), - resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayValue"), + resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_testline.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_testline.go index 50e8a440a59a..98001649da40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_testline.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/id_testline.go @@ -44,7 +44,7 @@ func ParseTestLineID(input string) (*TestLineId, error) { } id := TestLineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTestLineIDInsensitively(input string) (*TestLineId, error) { } id := TestLineId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TestLineId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftVoiceServices", "Microsoft.VoiceServices", "Microsoft.VoiceServices"), resourceids.StaticSegment("staticCommunicationsGateways", "communicationsGateways", "communicationsGateways"), - resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayValue"), + resourceids.UserSpecifiedSegment("communicationsGatewayName", "communicationsGatewayName"), resourceids.StaticSegment("staticTestLines", "testLines", "testLines"), - resourceids.UserSpecifiedSegment("testLineName", "testLineValue"), + resourceids.UserSpecifiedSegment("testLineName", "testLineName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_get.go index 9309c1737019..ba21bff3b308 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_get.go @@ -45,7 +45,6 @@ func (c TestLinesClient) Get(ctx context.Context, id TestLineId) (result GetOper var model TestLine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_update.go index 564e548f96c0..1c88d489bf8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/method_update.go @@ -49,7 +49,6 @@ func (c TestLinesClient) Update(ctx context.Context, id TestLineId, input TestLi var model TestLine result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/version.go index 788f4e121431..48c69cb76063 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-04-03/testlines/version.go @@ -1,12 +1,10 @@ package testlines -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-03" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/testlines/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/testlines/2023-04-03" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/README.md index e1d2c54076c6..53d4e4c95008 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections` Documentation -The `connections` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2016-06-01`). +The `connections` SDK allows for interaction with Azure Resource Manager `web` (API Version `2016-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") payload := connections.ConfirmConsentCodeDefinition{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") payload := connections.ApiConnectionDefinition{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") read, err := client.Delete(ctx, id) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") read, err := client.Get(ctx, id) if err != nil { @@ -115,7 +115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") payload := connections.ListConsentLinksDefinition{ // ... @@ -136,7 +136,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionValue") +id := connections.NewConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "connectionName") payload := connections.ApiConnectionDefinition{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/client.go index bbee9fcb3337..87b37dfaf098 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/client.go @@ -15,7 +15,7 @@ type ConnectionsClient struct { } func NewConnectionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ConnectionsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "connections", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "connections", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ConnectionsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/id_connection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/id_connection.go index a51bfbeb75f8..1cb8078377c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/id_connection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/id_connection.go @@ -42,7 +42,7 @@ func ParseConnectionID(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseConnectionIDInsensitively(input string) (*ConnectionId, error) { } id := ConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id ConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticConnections", "connections", "connections"), - resourceids.UserSpecifiedSegment("connectionName", "connectionValue"), + resourceids.UserSpecifiedSegment("connectionName", "connectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_confirmconsentcode.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_confirmconsentcode.go index 3e27876a6aa5..dc6f2b8faaa6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_confirmconsentcode.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_confirmconsentcode.go @@ -50,7 +50,6 @@ func (c ConnectionsClient) ConfirmConsentCode(ctx context.Context, id Connection var model ConfirmConsentCodeDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_createorupdate.go index 7f5c404205a6..5e2eba3772cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_createorupdate.go @@ -50,7 +50,6 @@ func (c ConnectionsClient) CreateOrUpdate(ctx context.Context, id ConnectionId, var model ApiConnectionDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_get.go index eb729e85f902..c8792449c03a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_get.go @@ -45,7 +45,6 @@ func (c ConnectionsClient) Get(ctx context.Context, id ConnectionId) (result Get var model ApiConnectionDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_list.go index 97c5f6b54cbe..9ffc5523cacc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_list.go @@ -36,6 +36,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -79,7 +80,6 @@ func (c ConnectionsClient) List(ctx context.Context, id commonids.ResourceGroupI var model ApiConnectionDefinitionCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_listconsentlinks.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_listconsentlinks.go index e9ca4dd4e9b7..e0f746d1d11b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_listconsentlinks.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_listconsentlinks.go @@ -50,7 +50,6 @@ func (c ConnectionsClient) ListConsentLinks(ctx context.Context, id ConnectionId var model ConsentLinkCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_update.go index 52ebb84983ba..491cf7851278 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/method_update.go @@ -49,7 +49,6 @@ func (c ConnectionsClient) Update(ctx context.Context, id ConnectionId, input Ap var model ApiConnectionDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/version.go index dc9f5850fc34..653db53e8559 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections/version.go @@ -1,12 +1,10 @@ package connections -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2016-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/connections/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/connections/2016-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/README.md index d28522cdc96e..21799363741d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis` Documentation -The `managedapis` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2016-06-01`). +The `managedapis` SDK allows for interaction with Azure Resource Manager `web` (API Version `2016-06-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := managedapis.NewManagedApiID("12345678-1234-9876-4563-123456789012", "locationValue", "managedApiValue") +id := managedapis.NewManagedApiID("12345678-1234-9876-4563-123456789012", "location", "apiName") read, err := client.Get(ctx, id) if err != nil { @@ -40,7 +40,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := managedapis.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := managedapis.NewLocationID("12345678-1234-9876-4563-123456789012", "location") read, err := client.List(ctx, id) if err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/client.go index 2270d1b613c0..7a27abbc8946 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/client.go @@ -15,7 +15,7 @@ type ManagedAPIsClient struct { } func NewManagedAPIsClientWithBaseURI(sdkApi sdkEnv.Api) (*ManagedAPIsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "managedapis", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "managedapis", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ManagedAPIsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_location.go index 0377645861f5..e2b4e5f0f69d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_managedapi.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_managedapi.go index d5acc99f4f89..57881f147c98 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_managedapi.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/id_managedapi.go @@ -42,7 +42,7 @@ func ParseManagedApiID(input string) (*ManagedApiId, error) { } id := ManagedApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseManagedApiIDInsensitively(input string) (*ManagedApiId, error) { } id := ManagedApiId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -113,9 +113,9 @@ func (id ManagedApiId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), resourceids.StaticSegment("staticManagedApis", "managedApis", "managedApis"), - resourceids.UserSpecifiedSegment("managedApiName", "managedApiValue"), + resourceids.UserSpecifiedSegment("managedApiName", "apiName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_get.go index 41230da50fd5..654a0c4c3574 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_get.go @@ -45,7 +45,6 @@ func (c ManagedAPIsClient) Get(ctx context.Context, id ManagedApiId) (result Get var model ManagedApiDefinition result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_list.go index 2d52b820093e..07d6555e8123 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/method_list.go @@ -46,7 +46,6 @@ func (c ManagedAPIsClient) List(ctx context.Context, id LocationId) (result List var model ManagedApiDefinitionCollection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/version.go index ef8a838ad439..3be5c19f5de9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/managedapis/version.go @@ -1,12 +1,10 @@ package managedapis -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2016-06-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/managedapis/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/managedapis/2016-06-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md index cbd1d06c3952..81387f91d775 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments` Documentation -The `appserviceenvironments` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-01-01`). +The `appserviceenvironments` SDK allows for interaction with Azure Resource Manager `web` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") payload := appserviceenvironments.RemotePrivateEndpointConnectionARMResource{ // ... @@ -42,7 +42,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.VirtualNetworkProfile{ // ... @@ -64,7 +64,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.AppServiceEnvironmentResource{ // ... @@ -81,7 +81,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -98,7 +98,7 @@ if err := client.CreateOrUpdateMultiRolePoolThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -115,7 +115,7 @@ if err := client.CreateOrUpdateWorkerPoolThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOperationOptions()); err != nil { // handle the error @@ -127,7 +127,7 @@ if err := client.DeleteThenPoll(ctx, id, appserviceenvironments.DefaultDeleteOpe ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.DeleteAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -143,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -155,7 +155,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.Get(ctx, id) if err != nil { @@ -171,7 +171,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.GetAseCustomDnsSuffixConfiguration(ctx, id) if err != nil { @@ -187,7 +187,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.GetAseV3NetworkingConfiguration(ctx, id) if err != nil { @@ -203,7 +203,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "diagnosticValue") +id := appserviceenvironments.NewHostingEnvironmentDiagnosticID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "diagnosticsName") read, err := client.GetDiagnosticsItem(ctx, id) if err != nil { @@ -219,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.GetInboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetInboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -236,7 +236,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.GetMultiRolePool(ctx, id) if err != nil { @@ -252,7 +252,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.GetOutboundNetworkDependenciesEndpoints(ctx, id)` can be used to do batched pagination items, err := client.GetOutboundNetworkDependenciesEndpointsComplete(ctx, id) @@ -269,7 +269,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "privateEndpointConnectionValue") +id := appserviceenvironments.NewHostingEnvironmentPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") read, err := client.GetPrivateEndpointConnection(ctx, id) if err != nil { @@ -285,7 +285,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -302,7 +302,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -318,7 +318,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.GetVipInfo(ctx, id) if err != nil { @@ -334,7 +334,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") read, err := client.GetWorkerPool(ctx, id) if err != nil { @@ -367,7 +367,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListAppServicePlans(ctx, id)` can be used to do batched pagination items, err := client.ListAppServicePlansComplete(ctx, id) @@ -401,7 +401,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListCapacities(ctx, id)` can be used to do batched pagination items, err := client.ListCapacitiesComplete(ctx, id) @@ -418,7 +418,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.ListDiagnostics(ctx, id) if err != nil { @@ -434,7 +434,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListMultiRoleMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleMetricDefinitionsComplete(ctx, id) @@ -451,7 +451,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewDefaultInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "instanceValue") +id := appserviceenvironments.NewDefaultInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instance") // alternatively `client.ListMultiRolePoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolInstanceMetricDefinitionsComplete(ctx, id) @@ -468,7 +468,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListMultiRolePoolSkus(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolSkusComplete(ctx, id) @@ -485,7 +485,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListMultiRolePools(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRolePoolsComplete(ctx, id) @@ -502,7 +502,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListMultiRoleUsages(ctx, id)` can be used to do batched pagination items, err := client.ListMultiRoleUsagesComplete(ctx, id) @@ -519,7 +519,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.ListOperations(ctx, id) if err != nil { @@ -535,7 +535,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListUsages(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceenvironments.DefaultListUsagesOperationOptions()) @@ -552,7 +552,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListWebApps(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceenvironments.DefaultListWebAppsOperationOptions()) @@ -569,7 +569,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") // alternatively `client.ListWebWorkerMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListWebWorkerMetricDefinitionsComplete(ctx, id) @@ -586,7 +586,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") // alternatively `client.ListWebWorkerUsages(ctx, id)` can be used to do batched pagination items, err := client.ListWebWorkerUsagesComplete(ctx, id) @@ -603,7 +603,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue", "instanceValue") +id := appserviceenvironments.NewWorkerPoolInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName", "instance") // alternatively `client.ListWorkerPoolInstanceMetricDefinitions(ctx, id)` can be used to do batched pagination items, err := client.ListWorkerPoolInstanceMetricDefinitionsComplete(ctx, id) @@ -620,7 +620,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") // alternatively `client.ListWorkerPoolSkus(ctx, id)` can be used to do batched pagination items, err := client.ListWorkerPoolSkusComplete(ctx, id) @@ -637,7 +637,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.ListWorkerPools(ctx, id)` can be used to do batched pagination items, err := client.ListWorkerPoolsComplete(ctx, id) @@ -654,7 +654,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.Reboot(ctx, id) if err != nil { @@ -670,7 +670,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.Resume(ctx, id)` can be used to do batched pagination items, err := client.ResumeComplete(ctx, id) @@ -687,7 +687,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") // alternatively `client.Suspend(ctx, id)` can be used to do batched pagination items, err := client.SuspendComplete(ctx, id) @@ -704,7 +704,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") read, err := client.TestUpgradeAvailableNotification(ctx, id) if err != nil { @@ -720,7 +720,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.AppServiceEnvironmentPatchResource{ // ... @@ -741,7 +741,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.CustomDnsSuffixConfiguration{ // ... @@ -762,7 +762,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.AseV3NetworkingConfiguration{ // ... @@ -783,7 +783,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -804,7 +804,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue", "workerPoolValue") +id := appserviceenvironments.NewWorkerPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerPoolName") payload := appserviceenvironments.WorkerPoolResource{ // ... @@ -825,7 +825,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentValue") +id := commonids.NewAppServiceEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostingEnvironmentName") if err := client.UpgradeThenPoll(ctx, id); err != nil { // handle the error diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go index b9c0ff155f69..706ca7d556dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/client.go @@ -15,7 +15,7 @@ type AppServiceEnvironmentsClient struct { } func NewAppServiceEnvironmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*AppServiceEnvironmentsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appserviceenvironments", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "appserviceenvironments", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AppServiceEnvironmentsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go index 5636848009c0..c2d2d2a46590 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_defaultinstance.go @@ -44,7 +44,7 @@ func ParseDefaultInstanceID(input string) (*DefaultInstanceId, error) { } id := DefaultInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDefaultInstanceIDInsensitively(input string) (*DefaultInstanceId, erro } id := DefaultInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id DefaultInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "name"), resourceids.StaticSegment("staticMultiRolePools", "multiRolePools", "multiRolePools"), resourceids.StaticSegment("staticDefault", "default", "default"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), + resourceids.UserSpecifiedSegment("instanceName", "instance"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go index feeb735318a4..f30c0af2108d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentdiagnostic.go @@ -44,7 +44,7 @@ func ParseHostingEnvironmentDiagnosticID(input string) (*HostingEnvironmentDiagn } id := HostingEnvironmentDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHostingEnvironmentDiagnosticIDInsensitively(input string) (*HostingEnv } id := HostingEnvironmentDiagnosticId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HostingEnvironmentDiagnosticId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "name"), resourceids.StaticSegment("staticDiagnostics", "diagnostics", "diagnostics"), - resourceids.UserSpecifiedSegment("diagnosticName", "diagnosticValue"), + resourceids.UserSpecifiedSegment("diagnosticName", "diagnosticsName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go index bbba42867e3e..9e9e3ca4d879 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_hostingenvironmentprivateendpointconnection.go @@ -44,7 +44,7 @@ func ParseHostingEnvironmentPrivateEndpointConnectionID(input string) (*HostingE } id := HostingEnvironmentPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHostingEnvironmentPrivateEndpointConnectionIDInsensitively(input strin } id := HostingEnvironmentPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HostingEnvironmentPrivateEndpointConnectionId) Segments() []resourceids resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "name"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go index 463fca27669b..e477a8499c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpool.go @@ -44,7 +44,7 @@ func ParseWorkerPoolID(input string) (*WorkerPoolId, error) { } id := WorkerPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkerPoolIDInsensitively(input string) (*WorkerPoolId, error) { } id := WorkerPoolId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkerPoolId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "name"), resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), - resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), + resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go index 0bf747795a24..be628dbc4e4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/id_workerpoolinstance.go @@ -46,7 +46,7 @@ func ParseWorkerPoolInstanceID(input string) (*WorkerPoolInstanceId, error) { } id := WorkerPoolInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWorkerPoolInstanceIDInsensitively(input string) (*WorkerPoolInstanceId } id := WorkerPoolInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id WorkerPoolInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticHostingEnvironments", "hostingEnvironments", "hostingEnvironments"), - resourceids.UserSpecifiedSegment("hostingEnvironmentName", "hostingEnvironmentValue"), + resourceids.UserSpecifiedSegment("hostingEnvironmentName", "name"), resourceids.StaticSegment("staticWorkerPools", "workerPools", "workerPools"), - resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolValue"), + resourceids.UserSpecifiedSegment("workerPoolName", "workerPoolName"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceName", "instanceValue"), + resourceids.UserSpecifiedSegment("instanceName", "instance"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go index 55cf71e51088..f8fb37d265be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_delete.go @@ -37,6 +37,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go index 911c456e29b1..c5871258555c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_deleteasecustomdnssuffixconfiguration.go @@ -48,7 +48,6 @@ func (c AppServiceEnvironmentsClient) DeleteAseCustomDnsSuffixConfiguration(ctx var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go index 2e5e2bb0d143..19b2bdb044f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_get.go @@ -46,7 +46,6 @@ func (c AppServiceEnvironmentsClient) Get(ctx context.Context, id commonids.AppS var model AppServiceEnvironmentResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go index 9be53936c71f..01f38db8a6e9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasecustomdnssuffixconfiguration.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) GetAseCustomDnsSuffixConfiguration(ctx con var model CustomDnsSuffixConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go index 1ca5a50286f5..3815d5e3c5e6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getasev3networkingconfiguration.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) GetAseV3NetworkingConfiguration(ctx contex var model AseV3NetworkingConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go index b6d0e47a783a..681cc63213cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getdiagnosticsitem.go @@ -45,7 +45,6 @@ func (c AppServiceEnvironmentsClient) GetDiagnosticsItem(ctx context.Context, id var model HostingEnvironmentDiagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go index 8823968375db..7cbd25047b91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getmultirolepool.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) GetMultiRolePool(ctx context.Context, id c var model WorkerPoolResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go index 6bf182be11ea..714c1276f693 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivateendpointconnection.go @@ -45,7 +45,6 @@ func (c AppServiceEnvironmentsClient) GetPrivateEndpointConnection(ctx context.C var model RemotePrivateEndpointConnectionARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go index e0c2f0c43655..ecd193a39011 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getprivatelinkresources.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) GetPrivateLinkResources(ctx context.Contex var model PrivateLinkResourcesWrapper result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go index a0f52038b9cc..ef0c4a7c9704 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getvipinfo.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) GetVipInfo(ctx context.Context, id commoni var model AddressResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go index bd617d301a82..f18c4334f8a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_getworkerpool.go @@ -45,7 +45,6 @@ func (c AppServiceEnvironmentsClient) GetWorkerPool(ctx context.Context, id Work var model WorkerPoolResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go index 050adc5112e7..0b07c6c4a90b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listdiagnostics.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) ListDiagnostics(ctx context.Context, id co var model []HostingEnvironmentDiagnostics result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go index 49fef987d758..cc96adc214ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listoperations.go @@ -47,7 +47,6 @@ func (c AppServiceEnvironmentsClient) ListOperations(ctx context.Context, id com var model []Operation result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go index c12dab87aa47..2fdba17a92e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listusages.go @@ -40,6 +40,7 @@ func (o ListUsagesOperationOptions) ToHeaders() *client.Headers { func (o ListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go index 6adb4062cbe2..2c63e81b80bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_listwebapps.go @@ -40,6 +40,7 @@ func (o ListWebAppsOperationOptions) ToHeaders() *client.Headers { func (o ListWebAppsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go index c3afa9e6f0da..eeba2343384d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_update.go @@ -52,7 +52,6 @@ func (c AppServiceEnvironmentsClient) Update(ctx context.Context, id commonids.A var model AppServiceEnvironmentResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go index 376d25fe92b9..84b44271ed71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasecustomdnssuffixconfiguration.go @@ -51,7 +51,6 @@ func (c AppServiceEnvironmentsClient) UpdateAseCustomDnsSuffixConfiguration(ctx var model CustomDnsSuffixConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go index 0661a11d23dc..d215f8021fa4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateasenetworkingconfiguration.go @@ -51,7 +51,6 @@ func (c AppServiceEnvironmentsClient) UpdateAseNetworkingConfiguration(ctx conte var model AseV3NetworkingConfiguration result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go index d71d810e1d48..22ee8b009918 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updatemultirolepool.go @@ -52,7 +52,6 @@ func (c AppServiceEnvironmentsClient) UpdateMultiRolePool(ctx context.Context, i var model WorkerPoolResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go index 85733a6f536d..42b61ccc4f76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/method_updateworkerpool.go @@ -50,7 +50,6 @@ func (c AppServiceEnvironmentsClient) UpdateWorkerPool(ctx context.Context, id W var model WorkerPoolResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go index be106e9b08a3..60d6292638d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/appserviceenvironments/version.go @@ -1,12 +1,10 @@ package appserviceenvironments -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/appserviceenvironments/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/appserviceenvironments/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md index 24eec0471d07..dd0e21594165 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders` Documentation -The `resourceproviders` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-01-01`). +The `resourceproviders` SDK allows for interaction with Azure Resource Manager `web` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -62,7 +62,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSourceControlID("sourceControlValue") +id := resourceproviders.NewSourceControlID("sourceControlType") read, err := client.GetSourceControl(ctx, id) if err != nil { @@ -94,7 +94,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := resourceproviders.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.GetUsagesInLocationlist(ctx, id)` can be used to do batched pagination items, err := client.GetUsagesInLocationlistComplete(ctx, id) @@ -292,7 +292,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := resourceproviders.NewSourceControlID("sourceControlValue") +id := resourceproviders.NewSourceControlID("sourceControlType") payload := resourceproviders.SourceControl{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go index 0f91da37d8c2..f5374bb3bc36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/client.go @@ -15,7 +15,7 @@ type ResourceProvidersClient struct { } func NewResourceProvidersClientWithBaseURI(sdkApi sdkEnv.Api) (*ResourceProvidersClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "resourceproviders", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "resourceproviders", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ResourceProvidersClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go index c73af0cec4a7..fa3481d95ca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_providerlocation.go @@ -40,7 +40,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go index f59308a6f739..1d19e0304d3c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/id_sourcecontrol.go @@ -38,7 +38,7 @@ func ParseSourceControlID(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -55,7 +55,7 @@ func ParseSourceControlIDInsensitively(input string) (*SourceControlId, error) { } id := SourceControlId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -99,7 +99,7 @@ func (id SourceControlId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSourceControls", "sourceControls", "sourceControls"), - resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlValue"), + resourceids.UserSpecifiedSegment("sourceControlName", "sourceControlType"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go index 1b0dd0b6a4f8..8d708561b66e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_checknameavailability.go @@ -51,7 +51,6 @@ func (c ResourceProvidersClient) CheckNameAvailability(ctx context.Context, id c var model ResourceNameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go index 558a74efdd07..e0529900390a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getpublishinguser.go @@ -45,7 +45,6 @@ func (c ResourceProvidersClient) GetPublishingUser(ctx context.Context) (result var model User result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go index 2035eb827a68..2684d63d83ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsourcecontrol.go @@ -45,7 +45,6 @@ func (c ResourceProvidersClient) GetSourceControl(ctx context.Context, id Source var model SourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go index 54881368bcb6..3564d1ecad91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_getsubscriptiondeploymentlocations.go @@ -47,7 +47,6 @@ func (c ResourceProvidersClient) GetSubscriptionDeploymentLocations(ctx context. var model DeploymentLocations result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go index 684c35df7f19..97f4b003c15f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listbillingmeters.go @@ -41,6 +41,7 @@ func (o ListBillingMetersOperationOptions) ToHeaders() *client.Headers { func (o ListBillingMetersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go index 62c87e04bf1c..f3f451bdaf06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listcustomhostnamesites.go @@ -40,6 +40,7 @@ func (o ListCustomHostNameSitesOperationOptions) ToHeaders() *client.Headers { func (o ListCustomHostNameSitesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go index ee39002c7a89..e1022e689b7d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listgeoregions.go @@ -43,6 +43,7 @@ func (o ListGeoRegionsOperationOptions) ToHeaders() *client.Headers { func (o ListGeoRegionsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go index 494e7016169d..cffe2769c1b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_listskus.go @@ -47,7 +47,6 @@ func (c ResourceProvidersClient) ListSkus(ctx context.Context, id commonids.Subs var model SkuInfos result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go index 58d177a7f005..e994b006317a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatepublishinguser.go @@ -49,7 +49,6 @@ func (c ResourceProvidersClient) UpdatePublishingUser(ctx context.Context, input var model User result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go index fba654896981..1d9f45f198ef 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_updatesourcecontrol.go @@ -49,7 +49,6 @@ func (c ResourceProvidersClient) UpdateSourceControl(ctx context.Context, id Sou var model SourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go index 055e2a0b5905..4db5e1bb83c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_validate.go @@ -51,7 +51,6 @@ func (c ResourceProvidersClient) Validate(ctx context.Context, id commonids.Reso var model ValidateResponse result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go index f2d833391604..733f7cd2e65a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/method_verifyhostingenvironmentvnet.go @@ -51,7 +51,6 @@ func (c ResourceProvidersClient) VerifyHostingEnvironmentVnet(ctx context.Contex var model VnetValidationFailureDetails result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go index 0659fd65e56a..4efd01f775a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/resourceproviders/version.go @@ -1,12 +1,10 @@ package resourceproviders -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/resourceproviders/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/resourceproviders/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/README.md index 5b573d21e919..b6236a15dc3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites` Documentation -The `staticsites` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-01-01`). +The `staticsites` SDK allows for interaction with Azure Resource Manager `web` (API Version `2023-01-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue") +id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") payload := staticsites.RemotePrivateEndpointConnectionARMResource{ // ... @@ -42,7 +42,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSiteBasicAuthPropertiesARMResource{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue") +id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "databaseConnectionName") payload := staticsites.DatabaseConnection{ // ... @@ -84,7 +84,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue") +id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "databaseConnectionName") payload := staticsites.DatabaseConnection{ // ... @@ -105,7 +105,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSiteARMResource{ // ... @@ -122,7 +122,7 @@ if err := client.CreateOrUpdateStaticSiteThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StringDictionary{ // ... @@ -143,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") payload := staticsites.StringDictionary{ // ... @@ -164,7 +164,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") payload := staticsites.StringDictionary{ // ... @@ -185,7 +185,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue") +id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainName") payload := staticsites.StaticSiteCustomDomainRequestPropertiesARMResource{ // ... @@ -202,7 +202,7 @@ if err := client.CreateOrUpdateStaticSiteCustomDomainThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StringDictionary{ // ... @@ -223,7 +223,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSiteUserInvitationRequestResource{ // ... @@ -244,7 +244,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSiteZipDeploymentARMResource{ // ... @@ -261,7 +261,7 @@ if err := client.CreateZipDeploymentForStaticSiteThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") payload := staticsites.StaticSiteZipDeploymentARMResource{ // ... @@ -278,7 +278,7 @@ if err := client.CreateZipDeploymentForStaticSiteBuildThenPoll(ctx, id, payload) ```go ctx := context.TODO() -id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue") +id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "databaseConnectionName") read, err := client.DeleteBuildDatabaseConnection(ctx, id) if err != nil { @@ -294,7 +294,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue") +id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "databaseConnectionName") read, err := client.DeleteDatabaseConnection(ctx, id) if err != nil { @@ -310,7 +310,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue") +id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -322,7 +322,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.DeleteStaticSiteThenPoll(ctx, id); err != nil { // handle the error @@ -334,7 +334,7 @@ if err := client.DeleteStaticSiteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") if err := client.DeleteStaticSiteBuildThenPoll(ctx, id); err != nil { // handle the error @@ -346,7 +346,7 @@ if err := client.DeleteStaticSiteBuildThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue") +id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainName") if err := client.DeleteStaticSiteCustomDomainThenPoll(ctx, id); err != nil { // handle the error @@ -358,7 +358,7 @@ if err := client.DeleteStaticSiteCustomDomainThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue", "userValue") +id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "authprovider", "userid") read, err := client.DeleteStaticSiteUser(ctx, id) if err != nil { @@ -374,7 +374,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") if err := client.DetachStaticSiteThenPoll(ctx, id); err != nil { // handle the error @@ -386,7 +386,7 @@ if err := client.DetachStaticSiteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue") +id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionAppName") read, err := client.DetachUserProvidedFunctionAppFromStaticSite(ctx, id) if err != nil { @@ -402,7 +402,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue") +id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "functionAppName") read, err := client.DetachUserProvidedFunctionAppFromStaticSiteBuild(ctx, id) if err != nil { @@ -418,7 +418,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.GetBasicAuth(ctx, id) if err != nil { @@ -434,7 +434,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue") +id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "databaseConnectionName") read, err := client.GetBuildDatabaseConnection(ctx, id) if err != nil { @@ -450,7 +450,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue") +id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "databaseConnectionName") read, err := client.GetBuildDatabaseConnectionWithDetails(ctx, id) if err != nil { @@ -466,7 +466,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") // alternatively `client.GetBuildDatabaseConnections(ctx, id)` can be used to do batched pagination items, err := client.GetBuildDatabaseConnectionsComplete(ctx, id) @@ -483,7 +483,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") // alternatively `client.GetBuildDatabaseConnectionsWithDetails(ctx, id)` can be used to do batched pagination items, err := client.GetBuildDatabaseConnectionsWithDetailsComplete(ctx, id) @@ -500,7 +500,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue") +id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "databaseConnectionName") read, err := client.GetDatabaseConnection(ctx, id) if err != nil { @@ -516,7 +516,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue") +id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "databaseConnectionName") read, err := client.GetDatabaseConnectionWithDetails(ctx, id) if err != nil { @@ -532,7 +532,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetDatabaseConnections(ctx, id)` can be used to do batched pagination items, err := client.GetDatabaseConnectionsComplete(ctx, id) @@ -549,7 +549,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetDatabaseConnectionsWithDetails(ctx, id)` can be used to do batched pagination items, err := client.GetDatabaseConnectionsWithDetailsComplete(ctx, id) @@ -566,7 +566,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue") +id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedBackendName") read, err := client.GetLinkedBackend(ctx, id) if err != nil { @@ -582,7 +582,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue") +id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "linkedBackendName") read, err := client.GetLinkedBackendForBuild(ctx, id) if err != nil { @@ -598,7 +598,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetLinkedBackends(ctx, id)` can be used to do batched pagination items, err := client.GetLinkedBackendsComplete(ctx, id) @@ -615,7 +615,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") // alternatively `client.GetLinkedBackendsForBuild(ctx, id)` can be used to do batched pagination items, err := client.GetLinkedBackendsForBuildComplete(ctx, id) @@ -632,7 +632,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "privateEndpointConnectionValue") +id := staticsites.NewStaticSitePrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") read, err := client.GetPrivateEndpointConnection(ctx, id) if err != nil { @@ -648,7 +648,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -665,7 +665,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -681,7 +681,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.GetStaticSite(ctx, id) if err != nil { @@ -697,7 +697,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") read, err := client.GetStaticSiteBuild(ctx, id) if err != nil { @@ -713,7 +713,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetStaticSiteBuilds(ctx, id)` can be used to do batched pagination items, err := client.GetStaticSiteBuildsComplete(ctx, id) @@ -730,7 +730,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue") +id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainName") read, err := client.GetStaticSiteCustomDomain(ctx, id) if err != nil { @@ -763,7 +763,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue") +id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionAppName") read, err := client.GetUserProvidedFunctionAppForStaticSite(ctx, id) if err != nil { @@ -779,7 +779,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue") +id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "functionAppName") read, err := client.GetUserProvidedFunctionAppForStaticSiteBuild(ctx, id) if err != nil { @@ -795,7 +795,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.GetUserProvidedFunctionAppsForStaticSite(ctx, id)` can be used to do batched pagination items, err := client.GetUserProvidedFunctionAppsForStaticSiteComplete(ctx, id) @@ -812,7 +812,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") // alternatively `client.GetUserProvidedFunctionAppsForStaticSiteBuild(ctx, id)` can be used to do batched pagination items, err := client.GetUserProvidedFunctionAppsForStaticSiteBuildComplete(ctx, id) @@ -829,7 +829,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue") +id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedBackendName") payload := staticsites.StaticSiteLinkedBackendARMResource{ // ... @@ -846,7 +846,7 @@ if err := client.LinkBackendThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue") +id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "linkedBackendName") payload := staticsites.StaticSiteLinkedBackendARMResource{ // ... @@ -880,7 +880,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.ListBasicAuth(ctx, id)` can be used to do batched pagination items, err := client.ListBasicAuthComplete(ctx, id) @@ -897,7 +897,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.ListStaticSiteAppSettings(ctx, id) if err != nil { @@ -913,7 +913,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") read, err := client.ListStaticSiteBuildAppSettings(ctx, id) if err != nil { @@ -929,7 +929,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") read, err := client.ListStaticSiteBuildFunctionAppSettings(ctx, id) if err != nil { @@ -945,7 +945,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue") +id := staticsites.NewBuildID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName") // alternatively `client.ListStaticSiteBuildFunctions(ctx, id)` can be used to do batched pagination items, err := client.ListStaticSiteBuildFunctionsComplete(ctx, id) @@ -962,7 +962,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.ListStaticSiteConfiguredRoles(ctx, id) if err != nil { @@ -978,7 +978,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.ListStaticSiteCustomDomains(ctx, id)` can be used to do batched pagination items, err := client.ListStaticSiteCustomDomainsComplete(ctx, id) @@ -995,7 +995,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.ListStaticSiteFunctionAppSettings(ctx, id) if err != nil { @@ -1011,7 +1011,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") // alternatively `client.ListStaticSiteFunctions(ctx, id)` can be used to do batched pagination items, err := client.ListStaticSiteFunctionsComplete(ctx, id) @@ -1028,7 +1028,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") read, err := client.ListStaticSiteSecrets(ctx, id) if err != nil { @@ -1044,7 +1044,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewAuthProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue") +id := staticsites.NewAuthProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "authprovider") // alternatively `client.ListStaticSiteUsers(ctx, id)` can be used to do batched pagination items, err := client.ListStaticSiteUsersComplete(ctx, id) @@ -1061,7 +1061,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := staticsites.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := staticsites.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "location") payload := staticsites.StaticSitesWorkflowPreviewRequest{ // ... @@ -1082,7 +1082,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "userProvidedFunctionAppValue") +id := staticsites.NewUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionAppName") payload := staticsites.StaticSiteUserProvidedFunctionAppARMResource{ // ... @@ -1099,7 +1099,7 @@ if err := client.RegisterUserProvidedFunctionAppWithStaticSiteThenPoll(ctx, id, ```go ctx := context.TODO() -id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "userProvidedFunctionAppValue") +id := staticsites.NewBuildUserProvidedFunctionAppID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "functionAppName") payload := staticsites.StaticSiteUserProvidedFunctionAppARMResource{ // ... @@ -1116,7 +1116,7 @@ if err := client.RegisterUserProvidedFunctionAppWithStaticSiteBuildThenPoll(ctx, ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSiteResetPropertiesARMResource{ // ... @@ -1137,7 +1137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue") +id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedBackendName") read, err := client.UnlinkBackend(ctx, id, staticsites.DefaultUnlinkBackendOperationOptions()) if err != nil { @@ -1153,7 +1153,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue") +id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "linkedBackendName") read, err := client.UnlinkBackendFromBuild(ctx, id, staticsites.DefaultUnlinkBackendFromBuildOperationOptions()) if err != nil { @@ -1169,7 +1169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "databaseConnectionValue") +id := staticsites.NewBuildDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "databaseConnectionName") payload := staticsites.DatabaseConnectionPatchRequest{ // ... @@ -1190,7 +1190,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "databaseConnectionValue") +id := staticsites.NewDatabaseConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "databaseConnectionName") payload := staticsites.DatabaseConnectionPatchRequest{ // ... @@ -1211,7 +1211,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue") +id := staticsites.NewStaticSiteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name") payload := staticsites.StaticSitePatchResource{ // ... @@ -1232,7 +1232,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "authProviderValue", "userValue") +id := staticsites.NewUserID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "authprovider", "userid") payload := staticsites.StaticSiteUserARMResource{ // ... @@ -1253,7 +1253,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "linkedBackendValue") +id := staticsites.NewLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "linkedBackendName") payload := staticsites.StaticSiteLinkedBackendARMResource{ // ... @@ -1270,7 +1270,7 @@ if err := client.ValidateBackendThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "buildValue", "linkedBackendValue") +id := staticsites.NewBuildLinkedBackendID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "environmentName", "linkedBackendName") payload := staticsites.StaticSiteLinkedBackendARMResource{ // ... @@ -1287,7 +1287,7 @@ if err := client.ValidateBackendForBuildThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "staticSiteValue", "customDomainValue") +id := staticsites.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainName") payload := staticsites.StaticSiteCustomDomainRequestPropertiesARMResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/client.go index d725455a2d77..1843789810a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/client.go @@ -15,7 +15,7 @@ type StaticSitesClient struct { } func NewStaticSitesClientWithBaseURI(sdkApi sdkEnv.Api) (*StaticSitesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "staticsites", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "staticsites", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating StaticSitesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_authprovider.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_authprovider.go index 750184e2aa72..19115aee935a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_authprovider.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_authprovider.go @@ -44,7 +44,7 @@ func ParseAuthProviderID(input string) (*AuthProviderId, error) { } id := AuthProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAuthProviderIDInsensitively(input string) (*AuthProviderId, error) { } id := AuthProviderId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id AuthProviderId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticAuthProviders", "authProviders", "authProviders"), - resourceids.UserSpecifiedSegment("authProviderName", "authProviderValue"), + resourceids.UserSpecifiedSegment("authProviderName", "authprovider"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_build.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_build.go index 1e21fb5cf2b0..112edc411dff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_build.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_build.go @@ -44,7 +44,7 @@ func ParseBuildID(input string) (*BuildId, error) { } id := BuildId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBuildIDInsensitively(input string) (*BuildId, error) { } id := BuildId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BuildId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "environmentName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builddatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builddatabaseconnection.go index 0ed1b728e32d..c3e3d62bd530 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builddatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builddatabaseconnection.go @@ -46,7 +46,7 @@ func ParseBuildDatabaseConnectionID(input string) (*BuildDatabaseConnectionId, e } id := BuildDatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBuildDatabaseConnectionIDInsensitively(input string) (*BuildDatabaseCo } id := BuildDatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BuildDatabaseConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "environmentName"), resourceids.StaticSegment("staticDatabaseConnections", "databaseConnections", "databaseConnections"), - resourceids.UserSpecifiedSegment("databaseConnectionName", "databaseConnectionValue"), + resourceids.UserSpecifiedSegment("databaseConnectionName", "databaseConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_buildlinkedbackend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_buildlinkedbackend.go index d6cf5a079766..448f74335ef6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_buildlinkedbackend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_buildlinkedbackend.go @@ -46,7 +46,7 @@ func ParseBuildLinkedBackendID(input string) (*BuildLinkedBackendId, error) { } id := BuildLinkedBackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBuildLinkedBackendIDInsensitively(input string) (*BuildLinkedBackendId } id := BuildLinkedBackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BuildLinkedBackendId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "environmentName"), resourceids.StaticSegment("staticLinkedBackends", "linkedBackends", "linkedBackends"), - resourceids.UserSpecifiedSegment("linkedBackendName", "linkedBackendValue"), + resourceids.UserSpecifiedSegment("linkedBackendName", "linkedBackendName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builduserprovidedfunctionapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builduserprovidedfunctionapp.go index 3b8c90ea51f2..7b84e9b7fb6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builduserprovidedfunctionapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_builduserprovidedfunctionapp.go @@ -46,7 +46,7 @@ func ParseBuildUserProvidedFunctionAppID(input string) (*BuildUserProvidedFuncti } id := BuildUserProvidedFunctionAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseBuildUserProvidedFunctionAppIDInsensitively(input string) (*BuildUserP } id := BuildUserProvidedFunctionAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id BuildUserProvidedFunctionAppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticBuilds", "builds", "builds"), - resourceids.UserSpecifiedSegment("buildName", "buildValue"), + resourceids.UserSpecifiedSegment("buildName", "environmentName"), resourceids.StaticSegment("staticUserProvidedFunctionApps", "userProvidedFunctionApps", "userProvidedFunctionApps"), - resourceids.UserSpecifiedSegment("userProvidedFunctionAppName", "userProvidedFunctionAppValue"), + resourceids.UserSpecifiedSegment("userProvidedFunctionAppName", "functionAppName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_customdomain.go index 8b71f5f6a297..7e2c137ab155 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_customdomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_customdomain.go @@ -44,7 +44,7 @@ func ParseCustomDomainID(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCustomDomainIDInsensitively(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CustomDomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticCustomDomains", "customDomains", "customDomains"), - resourceids.UserSpecifiedSegment("customDomainName", "customDomainValue"), + resourceids.UserSpecifiedSegment("customDomainName", "domainName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_databaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_databaseconnection.go index 9369f53f8e57..c8977fff4ca6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_databaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_databaseconnection.go @@ -44,7 +44,7 @@ func ParseDatabaseConnectionID(input string) (*DatabaseConnectionId, error) { } id := DatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseConnectionIDInsensitively(input string) (*DatabaseConnectionId } id := DatabaseConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticDatabaseConnections", "databaseConnections", "databaseConnections"), - resourceids.UserSpecifiedSegment("databaseConnectionName", "databaseConnectionValue"), + resourceids.UserSpecifiedSegment("databaseConnectionName", "databaseConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_linkedbackend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_linkedbackend.go index 718f2b0e7f17..affdec42c25b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_linkedbackend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_linkedbackend.go @@ -44,7 +44,7 @@ func ParseLinkedBackendID(input string) (*LinkedBackendId, error) { } id := LinkedBackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseLinkedBackendIDInsensitively(input string) (*LinkedBackendId, error) { } id := LinkedBackendId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id LinkedBackendId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticLinkedBackends", "linkedBackends", "linkedBackends"), - resourceids.UserSpecifiedSegment("linkedBackendName", "linkedBackendValue"), + resourceids.UserSpecifiedSegment("linkedBackendName", "linkedBackendName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_providerlocation.go index ee9a3aa05497..ba0444d08c24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_providerlocation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_providerlocation.go @@ -40,7 +40,7 @@ func ParseProviderLocationID(input string) (*ProviderLocationId, error) { } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, er } id := ProviderLocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id ProviderLocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsite.go index 1c7bb88ff3c8..91e479c7d400 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsite.go @@ -42,7 +42,7 @@ func ParseStaticSiteID(input string) (*StaticSiteId, error) { } id := StaticSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseStaticSiteIDInsensitively(input string) (*StaticSiteId, error) { } id := StaticSiteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id StaticSiteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsiteprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsiteprivateendpointconnection.go index 34f63677af6b..e08cf42aa3cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsiteprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_staticsiteprivateendpointconnection.go @@ -44,7 +44,7 @@ func ParseStaticSitePrivateEndpointConnectionID(input string) (*StaticSitePrivat } id := StaticSitePrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseStaticSitePrivateEndpointConnectionIDInsensitively(input string) (*Sta } id := StaticSitePrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id StaticSitePrivateEndpointConnectionId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_user.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_user.go index a53ca4c5a296..9f4e54d10759 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_user.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_user.go @@ -46,7 +46,7 @@ func ParseUserID(input string) (*UserId, error) { } id := UserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseUserIDInsensitively(input string) (*UserId, error) { } id := UserId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id UserId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticAuthProviders", "authProviders", "authProviders"), - resourceids.UserSpecifiedSegment("authProviderName", "authProviderValue"), + resourceids.UserSpecifiedSegment("authProviderName", "authprovider"), resourceids.StaticSegment("staticUsers", "users", "users"), - resourceids.UserSpecifiedSegment("userName", "userValue"), + resourceids.UserSpecifiedSegment("userName", "userid"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_userprovidedfunctionapp.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_userprovidedfunctionapp.go index fb801e139a97..44e055957336 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_userprovidedfunctionapp.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/id_userprovidedfunctionapp.go @@ -44,7 +44,7 @@ func ParseUserProvidedFunctionAppID(input string) (*UserProvidedFunctionAppId, e } id := UserProvidedFunctionAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseUserProvidedFunctionAppIDInsensitively(input string) (*UserProvidedFun } id := UserProvidedFunctionAppId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id UserProvidedFunctionAppId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticStaticSites", "staticSites", "staticSites"), - resourceids.UserSpecifiedSegment("staticSiteName", "staticSiteValue"), + resourceids.UserSpecifiedSegment("staticSiteName", "name"), resourceids.StaticSegment("staticUserProvidedFunctionApps", "userProvidedFunctionApps", "userProvidedFunctionApps"), - resourceids.UserSpecifiedSegment("userProvidedFunctionAppName", "userProvidedFunctionAppValue"), + resourceids.UserSpecifiedSegment("userProvidedFunctionAppName", "functionAppName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebasicauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebasicauth.go index 34051d7923f9..e320de5ee8d1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebasicauth.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebasicauth.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateOrUpdateBasicAuth(ctx context.Context, id Stati var model StaticSiteBasicAuthPropertiesARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebuilddatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebuilddatabaseconnection.go index 9fa486417cb6..577ea3e3a338 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebuilddatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatebuilddatabaseconnection.go @@ -49,7 +49,6 @@ func (c StaticSitesClient) CreateOrUpdateBuildDatabaseConnection(ctx context.Con var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatedatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatedatabaseconnection.go index 718dd346c56a..4e9d93d0c600 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatedatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatedatabaseconnection.go @@ -49,7 +49,6 @@ func (c StaticSitesClient) CreateOrUpdateDatabaseConnection(ctx context.Context, var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsiteappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsiteappsettings.go index 19e3b9c2d9d6..7664955e4a5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsiteappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsiteappsettings.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateOrUpdateStaticSiteAppSettings(ctx context.Conte var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildappsettings.go index bcded5df29e4..ea9eccbeb1d7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildappsettings.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateOrUpdateStaticSiteBuildAppSettings(ctx context. var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildfunctionappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildfunctionappsettings.go index 4a99a9e6b1da..6ccea1d9510d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildfunctionappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitebuildfunctionappsettings.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateOrUpdateStaticSiteBuildFunctionAppSettings(ctx var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitefunctionappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitefunctionappsettings.go index b4181e79c23c..8bc2ba7c3e00 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitefunctionappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createorupdatestaticsitefunctionappsettings.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateOrUpdateStaticSiteFunctionAppSettings(ctx conte var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createuserrolesinvitationlink.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createuserrolesinvitationlink.go index 2c3ce3709a23..62bf2337ccae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createuserrolesinvitationlink.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_createuserrolesinvitationlink.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) CreateUserRolesInvitationLink(ctx context.Context, id var model StaticSiteUserInvitationResponseResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbasicauth.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbasicauth.go index 93aca3f09be0..860b9bdbfd25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbasicauth.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbasicauth.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) GetBasicAuth(ctx context.Context, id StaticSiteId) (r var model StaticSiteBasicAuthPropertiesARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnection.go index 64d51db24b6f..6d90dfd9ae39 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnection.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetBuildDatabaseConnection(ctx context.Context, id Bu var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionwithdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionwithdetails.go index 39323af4c15a..c035b26d7291 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionwithdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getbuilddatabaseconnectionwithdetails.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) GetBuildDatabaseConnectionWithDetails(ctx context.Con var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnection.go index 118dabea2507..ad1f59b58d4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnection.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetDatabaseConnection(ctx context.Context, id Databas var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionwithdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionwithdetails.go index 7ff319615bd5..349897ee72d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionwithdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getdatabaseconnectionwithdetails.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) GetDatabaseConnectionWithDetails(ctx context.Context, var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackend.go index b572c2a28567..553c375e975b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackend.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetLinkedBackend(ctx context.Context, id LinkedBacken var model StaticSiteLinkedBackendARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendforbuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendforbuild.go index 9bc02ed8de7f..5761fa2c83be 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendforbuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getlinkedbackendforbuild.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetLinkedBackendForBuild(ctx context.Context, id Buil var model StaticSiteLinkedBackendARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnection.go index 7342343fa2a3..0d198e2c4280 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivateendpointconnection.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetPrivateEndpointConnection(ctx context.Context, id var model RemotePrivateEndpointConnectionARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivatelinkresources.go index d95909433957..0234f35567ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getprivatelinkresources.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) GetPrivateLinkResources(ctx context.Context, id Stati var model PrivateLinkResourcesWrapper result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsite.go index 6096f2cb35e8..f1a5134adf82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsite.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetStaticSite(ctx context.Context, id StaticSiteId) ( var model StaticSiteARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuild.go index 0794f8c9a408..980e9844cd4a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitebuild.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetStaticSiteBuild(ctx context.Context, id BuildId) ( var model StaticSiteBuildARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitecustomdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitecustomdomain.go index 482be40cd047..4f067b9c8621 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitecustomdomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getstaticsitecustomdomain.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetStaticSiteCustomDomain(ctx context.Context, id Cus var model StaticSiteCustomDomainOverviewARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsite.go index 8b09371d9c2c..0407b757d730 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsite.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppForStaticSite(ctx context.C var model StaticSiteUserProvidedFunctionAppARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsitebuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsitebuild.go index 9419b0ecc937..6c737d6cde7e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsitebuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_getuserprovidedfunctionappforstaticsitebuild.go @@ -45,7 +45,6 @@ func (c StaticSitesClient) GetUserProvidedFunctionAppForStaticSiteBuild(ctx cont var model StaticSiteUserProvidedFunctionAppARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteappsettings.go index 5ecb3eee84b1..af3f94e29fc6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteappsettings.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteAppSettings(ctx context.Context, id Sta var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildappsettings.go index deb7ce043eca..b23b85384c4b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildappsettings.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteBuildAppSettings(ctx context.Context, i var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctionappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctionappsettings.go index 14b452b8d2ad..220b09e2518e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctionappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitebuildfunctionappsettings.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteBuildFunctionAppSettings(ctx context.Co var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteconfiguredroles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteconfiguredroles.go index 1a015925a7f8..ad252bdfded4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteconfiguredroles.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsiteconfiguredroles.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteConfiguredRoles(ctx context.Context, id var model StringList result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctionappsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctionappsettings.go index 32f56586d7e8..9c4a10a187f8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctionappsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitefunctionappsettings.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteFunctionAppSettings(ctx context.Context var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitesecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitesecrets.go index cc35a7c06546..f9ed51921064 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitesecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_liststaticsitesecrets.go @@ -46,7 +46,6 @@ func (c StaticSitesClient) ListStaticSiteSecrets(ctx context.Context, id StaticS var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_previewworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_previewworkflow.go index f867a88a25e0..2a34e3a3c412 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_previewworkflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_previewworkflow.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) PreviewWorkflow(ctx context.Context, id ProviderLocat var model StaticSitesWorkflowPreview result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go index 5cfabf447f94..c210993e9452 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsite.go @@ -37,6 +37,7 @@ func (o RegisterUserProvidedFunctionAppWithStaticSiteOperationOptions) ToHeaders func (o RegisterUserProvidedFunctionAppWithStaticSiteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go index 32f030cb1b33..2d4f13d5c797 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_registeruserprovidedfunctionappwithstaticsitebuild.go @@ -37,6 +37,7 @@ func (o RegisterUserProvidedFunctionAppWithStaticSiteBuildOperationOptions) ToHe func (o RegisterUserProvidedFunctionAppWithStaticSiteBuildOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go index 897c1be79258..27575e98684e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackend.go @@ -33,6 +33,7 @@ func (o UnlinkBackendOperationOptions) ToHeaders() *client.Headers { func (o UnlinkBackendOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go index 7e356363af48..f6055b15e306 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_unlinkbackendfrombuild.go @@ -33,6 +33,7 @@ func (o UnlinkBackendFromBuildOperationOptions) ToHeaders() *client.Headers { func (o UnlinkBackendFromBuildOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatebuilddatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatebuilddatabaseconnection.go index c9611ae5cb38..2c78c742cf3d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatebuilddatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatebuilddatabaseconnection.go @@ -49,7 +49,6 @@ func (c StaticSitesClient) UpdateBuildDatabaseConnection(ctx context.Context, id var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatedatabaseconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatedatabaseconnection.go index 6e37673f34d2..c2bab9a13a3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatedatabaseconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatedatabaseconnection.go @@ -49,7 +49,6 @@ func (c StaticSitesClient) UpdateDatabaseConnection(ctx context.Context, id Data var model DatabaseConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsite.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsite.go index 2db8a28235ae..c1706e09ddb1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsite.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsite.go @@ -50,7 +50,6 @@ func (c StaticSitesClient) UpdateStaticSite(ctx context.Context, id StaticSiteId var model StaticSiteARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsiteuser.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsiteuser.go index ddcb14fbcc65..7741cafbf212 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsiteuser.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/method_updatestaticsiteuser.go @@ -49,7 +49,6 @@ func (c StaticSitesClient) UpdateStaticSiteUser(ctx context.Context, id UserId, var model StaticSiteUserARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/version.go index dbb89d0c49bd..c1516aa9aa6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-01-01/staticsites/version.go @@ -1,12 +1,10 @@ package staticsites -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-01-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/staticsites/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/staticsites/2023-01-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/README.md index 1ca5f17dbf3c..d60dfef49b24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans` Documentation -The `appserviceplans` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-12-01`). +The `appserviceplans` SDK allows for interaction with Azure Resource Manager `web` (API Version `2023-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") payload := appserviceplans.AppServicePlan{ // ... @@ -42,7 +42,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "routeName") payload := appserviceplans.VnetRoute{ // ... @@ -63,7 +63,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.Delete(ctx, id) if err != nil { @@ -79,7 +79,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") read, err := client.DeleteHybridConnection(ctx, id) if err != nil { @@ -95,7 +95,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "routeName") read, err := client.DeleteVnetRoute(ctx, id) if err != nil { @@ -111,7 +111,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.Get(ctx, id) if err != nil { @@ -127,7 +127,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") read, err := client.GetHybridConnection(ctx, id) if err != nil { @@ -143,7 +143,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.GetHybridConnectionPlanLimit(ctx, id) if err != nil { @@ -159,7 +159,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "routeName") read, err := client.GetRouteForVnet(ctx, id) if err != nil { @@ -175,7 +175,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.GetServerFarmSkus(ctx, id) if err != nil { @@ -191,7 +191,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue") +id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") read, err := client.GetVnetFromServerFarm(ctx, id) if err != nil { @@ -207,7 +207,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "gatewayValue") +id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "gatewayName") read, err := client.GetVnetGateway(ctx, id) if err != nil { @@ -257,7 +257,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.ListCapabilities(ctx, id) if err != nil { @@ -273,7 +273,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") read, err := client.ListHybridConnectionKeys(ctx, id) if err != nil { @@ -289,7 +289,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") // alternatively `client.ListHybridConnections(ctx, id)` can be used to do batched pagination items, err := client.ListHybridConnectionsComplete(ctx, id) @@ -306,7 +306,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue") +id := appserviceplans.NewServerFarmVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") read, err := client.ListRoutesForVnet(ctx, id) if err != nil { @@ -322,7 +322,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") // alternatively `client.ListUsages(ctx, id, appserviceplans.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, appserviceplans.DefaultListUsagesOperationOptions()) @@ -339,7 +339,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.ListVnets(ctx, id) if err != nil { @@ -355,7 +355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") // alternatively `client.ListWebApps(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions())` can be used to do batched pagination items, err := client.ListWebAppsComplete(ctx, id, appserviceplans.DefaultListWebAppsOperationOptions()) @@ -372,7 +372,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "hybridConnectionNamespaceValue", "relayValue") +id := appserviceplans.NewHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") // alternatively `client.ListWebAppsByHybridConnection(ctx, id)` can be used to do batched pagination items, err := client.ListWebAppsByHybridConnectionComplete(ctx, id) @@ -389,7 +389,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := appserviceplans.NewWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "workerValue") +id := appserviceplans.NewWorkerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workerName") read, err := client.RebootWorker(ctx, id) if err != nil { @@ -405,7 +405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") read, err := client.RestartWebApps(ctx, id, appserviceplans.DefaultRestartWebAppsOperationOptions()) if err != nil { @@ -421,7 +421,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue") +id := commonids.NewAppServicePlanID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmName") payload := appserviceplans.AppServicePlanPatchResource{ // ... @@ -442,7 +442,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "gatewayValue") +id := appserviceplans.NewVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "gatewayName") payload := appserviceplans.VnetGateway{ // ... @@ -463,7 +463,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "serverFarmValue", "virtualNetworkConnectionValue", "routeValue") +id := appserviceplans.NewRouteID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "routeName") payload := appserviceplans.VnetRoute{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/client.go index 8fe56fbaa276..9afc7d23899e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/client.go @@ -15,7 +15,7 @@ type AppServicePlansClient struct { } func NewAppServicePlansClientWithBaseURI(sdkApi sdkEnv.Api) (*AppServicePlansClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "appserviceplans", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "appserviceplans", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating AppServicePlansClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_hybridconnectionnamespacerelay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_hybridconnectionnamespacerelay.go index 2b32c834b817..a674a4cebd6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_hybridconnectionnamespacerelay.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_hybridconnectionnamespacerelay.go @@ -46,7 +46,7 @@ func ParseHybridConnectionNamespaceRelayID(input string) (*HybridConnectionNames } id := HybridConnectionNamespaceRelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseHybridConnectionNamespaceRelayIDInsensitively(input string) (*HybridCo } id := HybridConnectionNamespaceRelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id HybridConnectionNamespaceRelayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticServerFarms", "serverFarms", "serverFarms"), - resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.UserSpecifiedSegment("serverFarmName", "name"), resourceids.StaticSegment("staticHybridConnectionNamespaces", "hybridConnectionNamespaces", "hybridConnectionNamespaces"), - resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "hybridConnectionNamespaceValue"), + resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "namespaceName"), resourceids.StaticSegment("staticRelays", "relays", "relays"), - resourceids.UserSpecifiedSegment("relayName", "relayValue"), + resourceids.UserSpecifiedSegment("relayName", "relayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_route.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_route.go index ad716f025464..7b34860722d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_route.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_route.go @@ -46,7 +46,7 @@ func ParseRouteID(input string) (*RouteId, error) { } id := RouteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRouteIDInsensitively(input string) (*RouteId, error) { } id := RouteId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RouteId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticServerFarms", "serverFarms", "serverFarms"), - resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.UserSpecifiedSegment("serverFarmName", "name"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), resourceids.StaticSegment("staticRoutes", "routes", "routes"), - resourceids.UserSpecifiedSegment("routeName", "routeValue"), + resourceids.UserSpecifiedSegment("routeName", "routeName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go index 17ab90193a3b..c2948bed06a0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_serverfarmvirtualnetworkconnection.go @@ -44,7 +44,7 @@ func ParseServerFarmVirtualNetworkConnectionID(input string) (*ServerFarmVirtual } id := ServerFarmVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseServerFarmVirtualNetworkConnectionIDInsensitively(input string) (*Serv } id := ServerFarmVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ServerFarmVirtualNetworkConnectionId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticServerFarms", "serverFarms", "serverFarms"), - resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.UserSpecifiedSegment("serverFarmName", "name"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_virtualnetworkconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_virtualnetworkconnectiongateway.go index fd8f8a5724dd..aee31447cb09 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_virtualnetworkconnectiongateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_virtualnetworkconnectiongateway.go @@ -46,7 +46,7 @@ func ParseVirtualNetworkConnectionGatewayID(input string) (*VirtualNetworkConnec } id := VirtualNetworkConnectionGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseVirtualNetworkConnectionGatewayIDInsensitively(input string) (*Virtual } id := VirtualNetworkConnectionGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id VirtualNetworkConnectionGatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticServerFarms", "serverFarms", "serverFarms"), - resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.UserSpecifiedSegment("serverFarmName", "name"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_worker.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_worker.go index 284032cb1f8a..f6e647697b7b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_worker.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/id_worker.go @@ -44,7 +44,7 @@ func ParseWorkerID(input string) (*WorkerId, error) { } id := WorkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkerIDInsensitively(input string) (*WorkerId, error) { } id := WorkerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticServerFarms", "serverFarms", "serverFarms"), - resourceids.UserSpecifiedSegment("serverFarmName", "serverFarmValue"), + resourceids.UserSpecifiedSegment("serverFarmName", "name"), resourceids.StaticSegment("staticWorkers", "workers", "workers"), - resourceids.UserSpecifiedSegment("workerName", "workerValue"), + resourceids.UserSpecifiedSegment("workerName", "workerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_createorupdatevnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_createorupdatevnetroute.go index c61bc8980f72..a25c348ca802 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_createorupdatevnetroute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_createorupdatevnetroute.go @@ -49,7 +49,6 @@ func (c AppServicePlansClient) CreateOrUpdateVnetRoute(ctx context.Context, id R var model VnetRoute result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_get.go index a4d52b636e69..e8c9fc7e49c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_get.go @@ -46,7 +46,6 @@ func (c AppServicePlansClient) Get(ctx context.Context, id commonids.AppServiceP var model AppServicePlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnection.go index 61c582b536db..76d08712a13b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnection.go @@ -45,7 +45,6 @@ func (c AppServicePlansClient) GetHybridConnection(ctx context.Context, id Hybri var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnectionplanlimit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnectionplanlimit.go index b6099bdcb7f7..5fdd323b80c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnectionplanlimit.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_gethybridconnectionplanlimit.go @@ -47,7 +47,6 @@ func (c AppServicePlansClient) GetHybridConnectionPlanLimit(ctx context.Context, var model HybridConnectionLimits result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getrouteforvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getrouteforvnet.go index 338777c766db..43c608e9890e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getrouteforvnet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getrouteforvnet.go @@ -45,7 +45,6 @@ func (c AppServicePlansClient) GetRouteForVnet(ctx context.Context, id RouteId) var model []VnetRoute result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getserverfarmskus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getserverfarmskus.go index 227a69198ded..bbd1499852a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getserverfarmskus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getserverfarmskus.go @@ -47,7 +47,6 @@ func (c AppServicePlansClient) GetServerFarmSkus(ctx context.Context, id commoni var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetfromserverfarm.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetfromserverfarm.go index 3190297402bb..650f8a3926f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetfromserverfarm.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetfromserverfarm.go @@ -45,7 +45,6 @@ func (c AppServicePlansClient) GetVnetFromServerFarm(ctx context.Context, id Ser var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetgateway.go index ce36c7362286..f18924542853 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_getvnetgateway.go @@ -45,7 +45,6 @@ func (c AppServicePlansClient) GetVnetGateway(ctx context.Context, id VirtualNet var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_list.go index 6825b73b994c..6487ac4dcb4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_list.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_list.go @@ -40,6 +40,7 @@ func (o ListOperationOptions) ToHeaders() *client.Headers { func (o ListOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listcapabilities.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listcapabilities.go index 5720548c003f..2c65ef4aae91 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listcapabilities.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listcapabilities.go @@ -47,7 +47,6 @@ func (c AppServicePlansClient) ListCapabilities(ctx context.Context, id commonid var model []Capability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnectionkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnectionkeys.go index 874cdd76c267..78f4e16f7b63 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnectionkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listhybridconnectionkeys.go @@ -46,7 +46,6 @@ func (c AppServicePlansClient) ListHybridConnectionKeys(ctx context.Context, id var model HybridConnectionKey result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listroutesforvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listroutesforvnet.go index 84c82c62f545..cea1ee3b5949 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listroutesforvnet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listroutesforvnet.go @@ -46,7 +46,6 @@ func (c AppServicePlansClient) ListRoutesForVnet(ctx context.Context, id ServerF var model []VnetRoute result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go index ba526d56a559..11927a255183 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listusages.go @@ -40,6 +40,7 @@ func (o ListUsagesOperationOptions) ToHeaders() *client.Headers { func (o ListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listvnets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listvnets.go index 39863133e910..1779fca10337 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listvnets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listvnets.go @@ -47,7 +47,6 @@ func (c AppServicePlansClient) ListVnets(ctx context.Context, id commonids.AppSe var model []VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go index facb051bd728..112b9dd14f80 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_listwebapps.go @@ -41,6 +41,7 @@ func (o ListWebAppsOperationOptions) ToHeaders() *client.Headers { func (o ListWebAppsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go index 0eb829e73f31..e6b604d940c8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_restartwebapps.go @@ -34,6 +34,7 @@ func (o RestartWebAppsOperationOptions) ToHeaders() *client.Headers { func (o RestartWebAppsOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_update.go index 8c369f53a748..cc2bebbb8cca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_update.go @@ -51,7 +51,6 @@ func (c AppServicePlansClient) Update(ctx context.Context, id commonids.AppServi var model AppServicePlan result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetgateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetgateway.go index a0861673f2a2..084885def91c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetgateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetgateway.go @@ -49,7 +49,6 @@ func (c AppServicePlansClient) UpdateVnetGateway(ctx context.Context, id Virtual var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetroute.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetroute.go index 38d2438c46c6..0d8db289b93f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetroute.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/method_updatevnetroute.go @@ -49,7 +49,6 @@ func (c AppServicePlansClient) UpdateVnetRoute(ctx context.Context, id RouteId, var model VnetRoute result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/version.go index c624303ad0bc..cffd97d317df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/appserviceplans/version.go @@ -1,12 +1,10 @@ package appserviceplans -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/appserviceplans/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/appserviceplans/2023-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/README.md index b166355d1ddc..ec2d04a69f0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps` Documentation -The `webapps` SDK allows for interaction with the Azure Resource Manager Service `web` (API Version `2023-12-01`). +The `webapps` SDK allows for interaction with Azure Resource Manager `web` (API Version `2023-12-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "premierAddOnName") payload := webapps.PremierAddOn{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "premierAddOnName") payload := webapps.PremierAddOn{ // ... @@ -67,7 +67,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.AnalyzeCustomHostname(ctx, id, webapps.DefaultAnalyzeCustomHostnameOperationOptions()) if err != nil { @@ -83,7 +83,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.AnalyzeCustomHostnameSlot(ctx, id, webapps.DefaultAnalyzeCustomHostnameSlotOperationOptions()) if err != nil { @@ -99,7 +99,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmSlotEntity{ // ... @@ -120,7 +120,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmSlotEntity{ // ... @@ -141,7 +141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") payload := webapps.RemotePrivateEndpointConnectionARMResource{ // ... @@ -158,7 +158,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "privateEndpointConnectionName") payload := webapps.RemotePrivateEndpointConnectionARMResource{ // ... @@ -175,7 +175,7 @@ if err := client.ApproveOrRejectPrivateEndpointConnectionSlotThenPoll(ctx, id, p ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.BackupRequest{ // ... @@ -196,7 +196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.BackupRequest{ // ... @@ -217,7 +217,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "id") payload := webapps.Deployment{ // ... @@ -238,7 +238,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "id") payload := webapps.Deployment{ // ... @@ -259,7 +259,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName") payload := webapps.FunctionEnvelope{ // ... @@ -276,7 +276,7 @@ if err := client.CreateFunctionThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName") payload := webapps.FunctionEnvelope{ // ... @@ -293,7 +293,7 @@ if err := client.CreateInstanceFunctionSlotThenPoll(ctx, id, payload); err != ni ```go ctx := context.TODO() -id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId") payload := webapps.MSDeploy{ // ... @@ -310,7 +310,7 @@ if err := client.CreateInstanceMSDeployOperationThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId") payload := webapps.MSDeploy{ // ... @@ -327,7 +327,7 @@ if err := client.CreateInstanceMSDeployOperationSlotThenPoll(ctx, id, payload); ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.MSDeploy{ // ... @@ -344,7 +344,7 @@ if err := client.CreateMSDeployOperationThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.MSDeploy{ // ... @@ -361,7 +361,7 @@ if err := client.CreateMSDeployOperationSlotThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.CreateOneDeployOperation(ctx, id) if err != nil { @@ -377,7 +377,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.Site{ // ... @@ -394,7 +394,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteConfigResource{ // ... @@ -415,7 +415,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteConfigResource{ // ... @@ -436,7 +436,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainOwnershipIdentifierName") payload := webapps.Identifier{ // ... @@ -457,7 +457,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "domainOwnershipIdentifierName") payload := webapps.Identifier{ // ... @@ -478,7 +478,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue", "keyValue") +id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName", "keyName") payload := webapps.KeyInfo{ // ... @@ -499,7 +499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue", "keyValue") +id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName", "keyName") payload := webapps.KeyInfo{ // ... @@ -520,7 +520,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "hostName") payload := webapps.HostNameBinding{ // ... @@ -541,7 +541,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "hostName") payload := webapps.HostNameBinding{ // ... @@ -562,7 +562,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "defaultValue", "keyValue") +id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "keyType", "keyName") payload := webapps.KeyInfo{ // ... @@ -583,7 +583,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "defaultValue", "keyValue") +id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "keyType", "keyName") payload := webapps.KeyInfo{ // ... @@ -604,7 +604,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") payload := webapps.HybridConnection{ // ... @@ -625,7 +625,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "namespaceName", "relayName") payload := webapps.HybridConnection{ // ... @@ -646,7 +646,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "publicCertificateName") payload := webapps.PublicCertificate{ // ... @@ -667,7 +667,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "publicCertificateName") payload := webapps.PublicCertificate{ // ... @@ -688,7 +688,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "entityName") payload := webapps.RelayServiceConnectionEntity{ // ... @@ -709,7 +709,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "entityName") payload := webapps.RelayServiceConnectionEntity{ // ... @@ -730,7 +730,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "sitecontainerValue") +id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "containerName") payload := webapps.SiteContainer{ // ... @@ -751,7 +751,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "sitecontainerValue") +id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "containerName") payload := webapps.SiteContainer{ // ... @@ -772,7 +772,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.Site{ // ... @@ -789,7 +789,7 @@ if err := client.CreateOrUpdateSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteSourceControl{ // ... @@ -806,7 +806,7 @@ if err := client.CreateOrUpdateSourceControlThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteSourceControl{ // ... @@ -823,7 +823,7 @@ if err := client.CreateOrUpdateSourceControlSlotThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SwiftVirtualNetwork{ // ... @@ -844,7 +844,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SwiftVirtualNetwork{ // ... @@ -865,7 +865,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") payload := webapps.VnetInfoResource{ // ... @@ -886,7 +886,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "gatewayName") payload := webapps.VnetGateway{ // ... @@ -907,7 +907,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName", "gatewayName") payload := webapps.VnetGateway{ // ... @@ -928,7 +928,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName") payload := webapps.VnetInfoResource{ // ... @@ -949,7 +949,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.Delete(ctx, id, webapps.DefaultDeleteOperationOptions()) if err != nil { @@ -965,7 +965,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "backupId") read, err := client.DeleteBackup(ctx, id) if err != nil { @@ -981,7 +981,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.DeleteBackupConfiguration(ctx, id) if err != nil { @@ -997,7 +997,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.DeleteBackupConfigurationSlot(ctx, id) if err != nil { @@ -1013,7 +1013,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "backupId") read, err := client.DeleteBackupSlot(ctx, id) if err != nil { @@ -1029,7 +1029,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.DeleteContinuousWebJob(ctx, id) if err != nil { @@ -1045,7 +1045,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.DeleteContinuousWebJobSlot(ctx, id) if err != nil { @@ -1061,7 +1061,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "id") read, err := client.DeleteDeployment(ctx, id) if err != nil { @@ -1077,7 +1077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "id") read, err := client.DeleteDeploymentSlot(ctx, id) if err != nil { @@ -1093,7 +1093,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainOwnershipIdentifierName") read, err := client.DeleteDomainOwnershipIdentifier(ctx, id) if err != nil { @@ -1109,7 +1109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "domainOwnershipIdentifierName") read, err := client.DeleteDomainOwnershipIdentifierSlot(ctx, id) if err != nil { @@ -1125,7 +1125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName") read, err := client.DeleteFunction(ctx, id) if err != nil { @@ -1141,7 +1141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue", "keyValue") +id := webapps.NewKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName", "keyName") read, err := client.DeleteFunctionSecret(ctx, id) if err != nil { @@ -1157,7 +1157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue", "keyValue") +id := webapps.NewFunctionKeyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName", "keyName") read, err := client.DeleteFunctionSecretSlot(ctx, id) if err != nil { @@ -1173,7 +1173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "hostName") read, err := client.DeleteHostNameBinding(ctx, id) if err != nil { @@ -1189,7 +1189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "hostName") read, err := client.DeleteHostNameBindingSlot(ctx, id) if err != nil { @@ -1205,7 +1205,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "defaultValue", "keyValue") +id := webapps.NewDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "keyType", "keyName") read, err := client.DeleteHostSecret(ctx, id) if err != nil { @@ -1221,7 +1221,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "defaultValue", "keyValue") +id := webapps.NewHostDefaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "keyType", "keyName") read, err := client.DeleteHostSecretSlot(ctx, id) if err != nil { @@ -1237,7 +1237,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") read, err := client.DeleteHybridConnection(ctx, id) if err != nil { @@ -1253,7 +1253,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "namespaceName", "relayName") read, err := client.DeleteHybridConnectionSlot(ctx, id) if err != nil { @@ -1269,7 +1269,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName") read, err := client.DeleteInstanceFunctionSlot(ctx, id) if err != nil { @@ -1285,7 +1285,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId") read, err := client.DeleteInstanceProcess(ctx, id) if err != nil { @@ -1301,7 +1301,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId") read, err := client.DeleteInstanceProcessSlot(ctx, id) if err != nil { @@ -1317,7 +1317,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "premierAddOnName") read, err := client.DeletePremierAddOn(ctx, id) if err != nil { @@ -1333,7 +1333,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "premierAddOnName") read, err := client.DeletePremierAddOnSlot(ctx, id) if err != nil { @@ -1349,7 +1349,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { // handle the error @@ -1361,7 +1361,7 @@ if err := client.DeletePrivateEndpointConnectionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "privateEndpointConnectionName") if err := client.DeletePrivateEndpointConnectionSlotThenPoll(ctx, id); err != nil { // handle the error @@ -1373,7 +1373,7 @@ if err := client.DeletePrivateEndpointConnectionSlotThenPoll(ctx, id); err != ni ```go ctx := context.TODO() -id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId") read, err := client.DeleteProcess(ctx, id) if err != nil { @@ -1389,7 +1389,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId") read, err := client.DeleteProcessSlot(ctx, id) if err != nil { @@ -1405,7 +1405,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "publicCertificateName") read, err := client.DeletePublicCertificate(ctx, id) if err != nil { @@ -1421,7 +1421,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "publicCertificateName") read, err := client.DeletePublicCertificateSlot(ctx, id) if err != nil { @@ -1437,7 +1437,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "entityName") read, err := client.DeleteRelayServiceConnection(ctx, id) if err != nil { @@ -1453,7 +1453,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "entityName") read, err := client.DeleteRelayServiceConnectionSlot(ctx, id) if err != nil { @@ -1469,7 +1469,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "sitecontainerValue") +id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "containerName") read, err := client.DeleteSiteContainer(ctx, id) if err != nil { @@ -1485,7 +1485,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "sitecontainerValue") +id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "containerName") read, err := client.DeleteSiteContainerSlot(ctx, id) if err != nil { @@ -1501,7 +1501,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "siteExtensionId") read, err := client.DeleteSiteExtension(ctx, id) if err != nil { @@ -1517,7 +1517,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "siteExtensionId") read, err := client.DeleteSiteExtensionSlot(ctx, id) if err != nil { @@ -1533,7 +1533,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.DeleteSlot(ctx, id, webapps.DefaultDeleteSlotOperationOptions()) if err != nil { @@ -1549,7 +1549,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.DeleteSourceControl(ctx, id, webapps.DefaultDeleteSourceControlOperationOptions()) if err != nil { @@ -1565,7 +1565,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.DeleteSourceControlSlot(ctx, id, webapps.DefaultDeleteSourceControlSlotOperationOptions()) if err != nil { @@ -1581,7 +1581,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.DeleteSwiftVirtualNetwork(ctx, id) if err != nil { @@ -1597,7 +1597,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.DeleteSwiftVirtualNetworkSlot(ctx, id) if err != nil { @@ -1613,7 +1613,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.DeleteTriggeredWebJob(ctx, id) if err != nil { @@ -1629,7 +1629,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.DeleteTriggeredWebJobSlot(ctx, id) if err != nil { @@ -1645,7 +1645,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") read, err := client.DeleteVnetConnection(ctx, id) if err != nil { @@ -1661,7 +1661,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName") read, err := client.DeleteVnetConnectionSlot(ctx, id) if err != nil { @@ -1677,7 +1677,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.WorkflowArtifacts{ // ... @@ -1698,7 +1698,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.WorkflowArtifacts{ // ... @@ -1719,7 +1719,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.RestoreRequest{ // ... @@ -1740,7 +1740,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.RestoreRequest{ // ... @@ -1761,7 +1761,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GenerateNewSitePublishingPassword(ctx, id) if err != nil { @@ -1777,7 +1777,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GenerateNewSitePublishingPasswordSlot(ctx, id) if err != nil { @@ -1793,7 +1793,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.Get(ctx, id) if err != nil { @@ -1809,7 +1809,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "appSettingKeyValue") +id := webapps.NewAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "appSettingKey") read, err := client.GetAppSettingKeyVaultReference(ctx, id) if err != nil { @@ -1825,7 +1825,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewConfigReferenceAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "appSettingKeyValue") +id := webapps.NewConfigReferenceAppSettingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "appSettingKey") read, err := client.GetAppSettingKeyVaultReferenceSlot(ctx, id) if err != nil { @@ -1841,7 +1841,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.GetAppSettingsKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetAppSettingsKeyVaultReferencesComplete(ctx, id) @@ -1858,7 +1858,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.GetAppSettingsKeyVaultReferencesSlot(ctx, id)` can be used to do batched pagination items, err := client.GetAppSettingsKeyVaultReferencesSlotComplete(ctx, id) @@ -1875,7 +1875,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetAuthSettings(ctx, id) if err != nil { @@ -1891,7 +1891,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetAuthSettingsSlot(ctx, id) if err != nil { @@ -1907,7 +1907,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetAuthSettingsV2(ctx, id) if err != nil { @@ -1923,7 +1923,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetAuthSettingsV2Slot(ctx, id) if err != nil { @@ -1939,7 +1939,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetAuthSettingsV2WithoutSecrets(ctx, id) if err != nil { @@ -1955,7 +1955,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetAuthSettingsV2WithoutSecretsSlot(ctx, id) if err != nil { @@ -1971,7 +1971,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetBackupConfiguration(ctx, id) if err != nil { @@ -1987,7 +1987,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetBackupConfigurationSlot(ctx, id) if err != nil { @@ -2003,7 +2003,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "backupId") read, err := client.GetBackupStatus(ctx, id) if err != nil { @@ -2019,7 +2019,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "backupId") read, err := client.GetBackupStatusSlot(ctx, id) if err != nil { @@ -2035,7 +2035,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetConfiguration(ctx, id) if err != nil { @@ -2051,7 +2051,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetConfigurationSlot(ctx, id) if err != nil { @@ -2067,7 +2067,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "snapshotIdValue") +id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "snapshotId") read, err := client.GetConfigurationSnapshot(ctx, id) if err != nil { @@ -2083,7 +2083,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "snapshotIdValue") +id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "snapshotId") read, err := client.GetConfigurationSnapshotSlot(ctx, id) if err != nil { @@ -2099,7 +2099,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetContainerLogsZip(ctx, id) if err != nil { @@ -2115,7 +2115,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetContainerLogsZipSlot(ctx, id) if err != nil { @@ -2131,7 +2131,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.GetContinuousWebJob(ctx, id) if err != nil { @@ -2147,7 +2147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.GetContinuousWebJobSlot(ctx, id) if err != nil { @@ -2163,7 +2163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "id") read, err := client.GetDeployment(ctx, id) if err != nil { @@ -2179,7 +2179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "id") read, err := client.GetDeploymentSlot(ctx, id) if err != nil { @@ -2195,7 +2195,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetDiagnosticLogsConfiguration(ctx, id) if err != nil { @@ -2211,7 +2211,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetDiagnosticLogsConfigurationSlot(ctx, id) if err != nil { @@ -2227,7 +2227,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainOwnershipIdentifierName") read, err := client.GetDomainOwnershipIdentifier(ctx, id) if err != nil { @@ -2243,7 +2243,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "domainOwnershipIdentifierName") read, err := client.GetDomainOwnershipIdentifierSlot(ctx, id) if err != nil { @@ -2259,7 +2259,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetFtpAllowed(ctx, id) if err != nil { @@ -2275,7 +2275,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetFtpAllowedSlot(ctx, id) if err != nil { @@ -2291,7 +2291,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName") read, err := client.GetFunction(ctx, id) if err != nil { @@ -2307,7 +2307,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetFunctionsAdminToken(ctx, id) if err != nil { @@ -2323,7 +2323,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetFunctionsAdminTokenSlot(ctx, id) if err != nil { @@ -2339,7 +2339,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hostNameBindingValue") +id := webapps.NewHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "hostName") read, err := client.GetHostNameBinding(ctx, id) if err != nil { @@ -2355,7 +2355,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hostNameBindingValue") +id := webapps.NewSlotHostNameBindingID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "hostName") read, err := client.GetHostNameBindingSlot(ctx, id) if err != nil { @@ -2371,7 +2371,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") read, err := client.GetHybridConnection(ctx, id) if err != nil { @@ -2387,7 +2387,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "namespaceName", "relayName") read, err := client.GetHybridConnectionSlot(ctx, id) if err != nil { @@ -2403,7 +2403,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName") read, err := client.GetInstanceFunctionSlot(ctx, id) if err != nil { @@ -2419,7 +2419,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId") read, err := client.GetInstanceInfo(ctx, id) if err != nil { @@ -2435,7 +2435,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId") read, err := client.GetInstanceInfoSlot(ctx, id) if err != nil { @@ -2451,7 +2451,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId") read, err := client.GetInstanceMSDeployLog(ctx, id) if err != nil { @@ -2467,7 +2467,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId") read, err := client.GetInstanceMSDeployLogSlot(ctx, id) if err != nil { @@ -2483,7 +2483,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId") read, err := client.GetInstanceMsDeployStatus(ctx, id) if err != nil { @@ -2499,7 +2499,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId") read, err := client.GetInstanceMsDeployStatusSlot(ctx, id) if err != nil { @@ -2515,7 +2515,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId") read, err := client.GetInstanceProcess(ctx, id) if err != nil { @@ -2531,7 +2531,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId") read, err := client.GetInstanceProcessDump(ctx, id) if err != nil { @@ -2547,7 +2547,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId") read, err := client.GetInstanceProcessDumpSlot(ctx, id) if err != nil { @@ -2563,7 +2563,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue", "moduleValue") +id := webapps.NewInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId", "baseAddress") read, err := client.GetInstanceProcessModule(ctx, id) if err != nil { @@ -2579,7 +2579,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue", "moduleValue") +id := webapps.NewSlotInstanceProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId", "baseAddress") read, err := client.GetInstanceProcessModuleSlot(ctx, id) if err != nil { @@ -2595,7 +2595,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId") read, err := client.GetInstanceProcessSlot(ctx, id) if err != nil { @@ -2611,7 +2611,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "workflowValue") +id := webapps.NewSlotWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "workflowName") read, err := client.GetInstanceWorkflowSlot(ctx, id) if err != nil { @@ -2627,7 +2627,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetMSDeployLog(ctx, id) if err != nil { @@ -2643,7 +2643,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetMSDeployLogSlot(ctx, id) if err != nil { @@ -2659,7 +2659,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetMSDeployStatus(ctx, id) if err != nil { @@ -2675,7 +2675,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetMSDeployStatusSlot(ctx, id) if err != nil { @@ -2691,7 +2691,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetMigrateMySqlStatus(ctx, id) if err != nil { @@ -2707,7 +2707,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetMigrateMySqlStatusSlot(ctx, id) if err != nil { @@ -2723,7 +2723,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "operationIdValue") +id := webapps.NewNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "operationId") read, err := client.GetNetworkTraces(ctx, id) if err != nil { @@ -2739,7 +2739,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "operationIdValue") +id := webapps.NewSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "operationId") read, err := client.GetNetworkTracesSlot(ctx, id) if err != nil { @@ -2755,7 +2755,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSiteSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "operationIdValue") +id := webapps.NewSiteSlotNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "operationId") read, err := client.GetNetworkTracesSlotV2(ctx, id) if err != nil { @@ -2771,7 +2771,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSiteNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "operationIdValue") +id := webapps.NewSiteNetworkTraceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "operationId") read, err := client.GetNetworkTracesV2(ctx, id) if err != nil { @@ -2787,7 +2787,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetOneDeployStatus(ctx, id) if err != nil { @@ -2803,7 +2803,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "premierAddOnName") read, err := client.GetPremierAddOn(ctx, id) if err != nil { @@ -2819,7 +2819,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "premierAddOnName") read, err := client.GetPremierAddOnSlot(ctx, id) if err != nil { @@ -2835,7 +2835,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetPrivateAccess(ctx, id) if err != nil { @@ -2851,7 +2851,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetPrivateAccessSlot(ctx, id) if err != nil { @@ -2867,7 +2867,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "privateEndpointConnectionValue") +id := webapps.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "privateEndpointConnectionName") read, err := client.GetPrivateEndpointConnection(ctx, id) if err != nil { @@ -2883,7 +2883,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.GetPrivateEndpointConnectionList(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListComplete(ctx, id) @@ -2900,7 +2900,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.GetPrivateEndpointConnectionListSlot(ctx, id)` can be used to do batched pagination items, err := client.GetPrivateEndpointConnectionListSlotComplete(ctx, id) @@ -2917,7 +2917,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "privateEndpointConnectionValue") +id := webapps.NewSlotPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "privateEndpointConnectionName") read, err := client.GetPrivateEndpointConnectionSlot(ctx, id) if err != nil { @@ -2933,7 +2933,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetPrivateLinkResources(ctx, id) if err != nil { @@ -2949,7 +2949,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetPrivateLinkResourcesSlot(ctx, id) if err != nil { @@ -2965,7 +2965,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId") read, err := client.GetProcess(ctx, id) if err != nil { @@ -2981,7 +2981,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId") read, err := client.GetProcessDump(ctx, id) if err != nil { @@ -2997,7 +2997,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId") read, err := client.GetProcessDumpSlot(ctx, id) if err != nil { @@ -3013,7 +3013,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue", "moduleValue") +id := webapps.NewModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId", "baseAddress") read, err := client.GetProcessModule(ctx, id) if err != nil { @@ -3029,7 +3029,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue", "moduleValue") +id := webapps.NewProcessModuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId", "baseAddress") read, err := client.GetProcessModuleSlot(ctx, id) if err != nil { @@ -3045,7 +3045,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId") read, err := client.GetProcessSlot(ctx, id) if err != nil { @@ -3061,7 +3061,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "publicCertificateValue") +id := webapps.NewPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "publicCertificateName") read, err := client.GetPublicCertificate(ctx, id) if err != nil { @@ -3077,7 +3077,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "publicCertificateValue") +id := webapps.NewSlotPublicCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "publicCertificateName") read, err := client.GetPublicCertificateSlot(ctx, id) if err != nil { @@ -3093,7 +3093,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "entityName") read, err := client.GetRelayServiceConnection(ctx, id) if err != nil { @@ -3109,7 +3109,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "entityName") read, err := client.GetRelayServiceConnectionSlot(ctx, id) if err != nil { @@ -3125,7 +3125,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetScmAllowed(ctx, id) if err != nil { @@ -3141,7 +3141,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetScmAllowedSlot(ctx, id) if err != nil { @@ -3157,7 +3157,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "connectionStringKeyValue") +id := webapps.NewConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "connectionStringKey") read, err := client.GetSiteConnectionStringKeyVaultReference(ctx, id) if err != nil { @@ -3173,7 +3173,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewConfigReferenceConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "connectionStringKeyValue") +id := webapps.NewConfigReferenceConnectionStringID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "connectionStringKey") read, err := client.GetSiteConnectionStringKeyVaultReferenceSlot(ctx, id) if err != nil { @@ -3189,7 +3189,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.GetSiteConnectionStringKeyVaultReferences(ctx, id)` can be used to do batched pagination items, err := client.GetSiteConnectionStringKeyVaultReferencesComplete(ctx, id) @@ -3206,7 +3206,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.GetSiteConnectionStringKeyVaultReferencesSlot(ctx, id)` can be used to do batched pagination items, err := client.GetSiteConnectionStringKeyVaultReferencesSlotComplete(ctx, id) @@ -3223,7 +3223,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "sitecontainerValue") +id := webapps.NewSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "containerName") read, err := client.GetSiteContainer(ctx, id) if err != nil { @@ -3239,7 +3239,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "sitecontainerValue") +id := webapps.NewSlotSitecontainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "containerName") read, err := client.GetSiteContainerSlot(ctx, id) if err != nil { @@ -3255,7 +3255,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "siteExtensionId") read, err := client.GetSiteExtension(ctx, id) if err != nil { @@ -3271,7 +3271,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "siteExtensionId") read, err := client.GetSiteExtensionSlot(ctx, id) if err != nil { @@ -3287,7 +3287,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetSitePhpErrorLogFlag(ctx, id) if err != nil { @@ -3303,7 +3303,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetSitePhpErrorLogFlagSlot(ctx, id) if err != nil { @@ -3319,7 +3319,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetSlot(ctx, id) if err != nil { @@ -3335,7 +3335,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetSourceControl(ctx, id) if err != nil { @@ -3351,7 +3351,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetSourceControlSlot(ctx, id) if err != nil { @@ -3367,7 +3367,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetSwiftVirtualNetworkConnection(ctx, id) if err != nil { @@ -3383,7 +3383,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetSwiftVirtualNetworkConnectionSlot(ctx, id) if err != nil { @@ -3399,7 +3399,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.GetTriggeredWebJob(ctx, id) if err != nil { @@ -3415,7 +3415,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue", "historyValue") +id := webapps.NewHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName", "id") read, err := client.GetTriggeredWebJobHistory(ctx, id) if err != nil { @@ -3431,7 +3431,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewTriggeredWebJobHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue", "historyValue") +id := webapps.NewTriggeredWebJobHistoryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName", "id") read, err := client.GetTriggeredWebJobHistorySlot(ctx, id) if err != nil { @@ -3447,7 +3447,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.GetTriggeredWebJobSlot(ctx, id) if err != nil { @@ -3463,7 +3463,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") read, err := client.GetVnetConnection(ctx, id) if err != nil { @@ -3479,7 +3479,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "gatewayName") read, err := client.GetVnetConnectionGateway(ctx, id) if err != nil { @@ -3495,7 +3495,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName", "gatewayName") read, err := client.GetVnetConnectionGatewaySlot(ctx, id) if err != nil { @@ -3511,7 +3511,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName") read, err := client.GetVnetConnectionSlot(ctx, id) if err != nil { @@ -3527,7 +3527,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "webJobValue") +id := webapps.NewWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.GetWebJob(ctx, id) if err != nil { @@ -3543,7 +3543,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "webJobValue") +id := webapps.NewSlotWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.GetWebJobSlot(ctx, id) if err != nil { @@ -3559,7 +3559,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.GetWebSiteContainerLogs(ctx, id) if err != nil { @@ -3575,7 +3575,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.GetWebSiteContainerLogsSlot(ctx, id) if err != nil { @@ -3591,7 +3591,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "workflowValue") +id := webapps.NewWorkflowID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "workflowName") read, err := client.GetWorkflow(ctx, id) if err != nil { @@ -3607,7 +3607,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "siteExtensionIdValue") +id := webapps.NewSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "siteExtensionId") if err := client.InstallSiteExtensionThenPoll(ctx, id); err != nil { // handle the error @@ -3619,7 +3619,7 @@ if err := client.InstallSiteExtensionThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "siteExtensionIdValue") +id := webapps.NewSlotSiteExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "siteExtensionId") if err := client.InstallSiteExtensionSlotThenPoll(ctx, id); err != nil { // handle the error @@ -3631,7 +3631,7 @@ if err := client.InstallSiteExtensionSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.IsCloneable(ctx, id) if err != nil { @@ -3647,7 +3647,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.IsCloneableSlot(ctx, id) if err != nil { @@ -3680,7 +3680,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListApplicationSettings(ctx, id) if err != nil { @@ -3696,7 +3696,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListApplicationSettingsSlot(ctx, id) if err != nil { @@ -3712,7 +3712,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListAzureStorageAccounts(ctx, id) if err != nil { @@ -3728,7 +3728,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListAzureStorageAccountsSlot(ctx, id) if err != nil { @@ -3744,7 +3744,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "backupId") payload := webapps.BackupRequest{ // ... @@ -3765,7 +3765,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "backupId") payload := webapps.BackupRequest{ // ... @@ -3786,7 +3786,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListBackups(ctx, id)` can be used to do batched pagination items, err := client.ListBackupsComplete(ctx, id) @@ -3803,7 +3803,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListBackupsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListBackupsSlotComplete(ctx, id) @@ -3820,7 +3820,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListBasicPublishingCredentialsPolicies(ctx, id)` can be used to do batched pagination items, err := client.ListBasicPublishingCredentialsPoliciesComplete(ctx, id) @@ -3837,7 +3837,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListBasicPublishingCredentialsPoliciesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListBasicPublishingCredentialsPoliciesSlotComplete(ctx, id) @@ -3871,7 +3871,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListConfigurationSnapshotInfo(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationSnapshotInfoComplete(ctx, id) @@ -3888,7 +3888,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListConfigurationSnapshotInfoSlot(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationSnapshotInfoSlotComplete(ctx, id) @@ -3905,7 +3905,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListConfigurations(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationsComplete(ctx, id) @@ -3922,7 +3922,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListConfigurationsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListConfigurationsSlotComplete(ctx, id) @@ -3939,7 +3939,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListConnectionStrings(ctx, id) if err != nil { @@ -3955,7 +3955,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListConnectionStringsSlot(ctx, id) if err != nil { @@ -3971,7 +3971,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListContinuousWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListContinuousWebJobsComplete(ctx, id) @@ -3988,7 +3988,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListContinuousWebJobsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListContinuousWebJobsSlotComplete(ctx, id) @@ -4005,7 +4005,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "deploymentValue") +id := webapps.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "id") read, err := client.ListDeploymentLog(ctx, id) if err != nil { @@ -4021,7 +4021,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "deploymentValue") +id := webapps.NewSlotDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "id") read, err := client.ListDeploymentLogSlot(ctx, id) if err != nil { @@ -4037,7 +4037,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListDeployments(ctx, id)` can be used to do batched pagination items, err := client.ListDeploymentsComplete(ctx, id) @@ -4054,7 +4054,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListDeploymentsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListDeploymentsSlotComplete(ctx, id) @@ -4071,7 +4071,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListDomainOwnershipIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListDomainOwnershipIdentifiersComplete(ctx, id) @@ -4088,7 +4088,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListDomainOwnershipIdentifiersSlot(ctx, id)` can be used to do batched pagination items, err := client.ListDomainOwnershipIdentifiersSlotComplete(ctx, id) @@ -4105,7 +4105,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName") read, err := client.ListFunctionKeys(ctx, id) if err != nil { @@ -4121,7 +4121,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName") read, err := client.ListFunctionKeysSlot(ctx, id) if err != nil { @@ -4137,7 +4137,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "functionValue") +id := webapps.NewFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "functionName") read, err := client.ListFunctionSecrets(ctx, id) if err != nil { @@ -4153,7 +4153,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "functionValue") +id := webapps.NewSlotFunctionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "functionName") read, err := client.ListFunctionSecretsSlot(ctx, id) if err != nil { @@ -4169,7 +4169,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListFunctions(ctx, id)` can be used to do batched pagination items, err := client.ListFunctionsComplete(ctx, id) @@ -4186,7 +4186,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListHostKeys(ctx, id) if err != nil { @@ -4202,7 +4202,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListHostKeysSlot(ctx, id) if err != nil { @@ -4218,7 +4218,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListHostNameBindings(ctx, id)` can be used to do batched pagination items, err := client.ListHostNameBindingsComplete(ctx, id) @@ -4235,7 +4235,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListHostNameBindingsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListHostNameBindingsSlotComplete(ctx, id) @@ -4252,7 +4252,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListHybridConnections(ctx, id) if err != nil { @@ -4268,7 +4268,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListHybridConnectionsSlot(ctx, id) if err != nil { @@ -4284,7 +4284,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListInstanceFunctionsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceFunctionsSlotComplete(ctx, id) @@ -4301,7 +4301,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListInstanceIdentifiers(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceIdentifiersComplete(ctx, id) @@ -4318,7 +4318,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListInstanceIdentifiersSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceIdentifiersSlotComplete(ctx, id) @@ -4335,7 +4335,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId") // alternatively `client.ListInstanceProcessModules(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessModulesComplete(ctx, id) @@ -4352,7 +4352,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId") // alternatively `client.ListInstanceProcessModulesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessModulesSlotComplete(ctx, id) @@ -4369,7 +4369,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue", "processIdValue") +id := webapps.NewInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId", "processId") // alternatively `client.ListInstanceProcessThreads(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessThreadsComplete(ctx, id) @@ -4386,7 +4386,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue", "processIdValue") +id := webapps.NewSlotInstanceProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId", "processId") // alternatively `client.ListInstanceProcessThreadsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessThreadsSlotComplete(ctx, id) @@ -4403,7 +4403,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "instanceIdValue") +id := webapps.NewInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "instanceId") // alternatively `client.ListInstanceProcesses(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessesComplete(ctx, id) @@ -4420,7 +4420,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "instanceIdValue") +id := webapps.NewSlotInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "instanceId") // alternatively `client.ListInstanceProcessesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceProcessesSlotComplete(ctx, id) @@ -4437,7 +4437,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListInstanceWorkflowsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListInstanceWorkflowsSlotComplete(ctx, id) @@ -4454,7 +4454,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListMetadata(ctx, id) if err != nil { @@ -4470,7 +4470,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListMetadataSlot(ctx, id) if err != nil { @@ -4486,7 +4486,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "networkFeatureValue") +id := webapps.NewNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "view") read, err := client.ListNetworkFeatures(ctx, id) if err != nil { @@ -4502,7 +4502,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "networkFeatureValue") +id := webapps.NewSlotNetworkFeatureID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "view") read, err := client.ListNetworkFeaturesSlot(ctx, id) if err != nil { @@ -4518,7 +4518,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListPerfMonCounters(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions())` can be used to do batched pagination items, err := client.ListPerfMonCountersComplete(ctx, id, webapps.DefaultListPerfMonCountersOperationOptions()) @@ -4535,7 +4535,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListPerfMonCountersSlot(ctx, id, webapps.DefaultListPerfMonCountersSlotOperationOptions())` can be used to do batched pagination items, err := client.ListPerfMonCountersSlotComplete(ctx, id, webapps.DefaultListPerfMonCountersSlotOperationOptions()) @@ -4552,7 +4552,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListPremierAddOns(ctx, id) if err != nil { @@ -4568,7 +4568,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListPremierAddOnsSlot(ctx, id) if err != nil { @@ -4584,7 +4584,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId") // alternatively `client.ListProcessModules(ctx, id)` can be used to do batched pagination items, err := client.ListProcessModulesComplete(ctx, id) @@ -4601,7 +4601,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId") // alternatively `client.ListProcessModulesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListProcessModulesSlotComplete(ctx, id) @@ -4618,7 +4618,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "processIdValue") +id := webapps.NewProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "processId") // alternatively `client.ListProcessThreads(ctx, id)` can be used to do batched pagination items, err := client.ListProcessThreadsComplete(ctx, id) @@ -4635,7 +4635,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "processIdValue") +id := webapps.NewSlotProcessID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "processId") // alternatively `client.ListProcessThreadsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListProcessThreadsSlotComplete(ctx, id) @@ -4652,7 +4652,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListProcesses(ctx, id)` can be used to do batched pagination items, err := client.ListProcessesComplete(ctx, id) @@ -4669,7 +4669,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListProcessesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListProcessesSlotComplete(ctx, id) @@ -4686,7 +4686,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListProductionSiteDeploymentStatuses(ctx, id)` can be used to do batched pagination items, err := client.ListProductionSiteDeploymentStatusesComplete(ctx, id) @@ -4703,7 +4703,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListPublicCertificates(ctx, id)` can be used to do batched pagination items, err := client.ListPublicCertificatesComplete(ctx, id) @@ -4720,7 +4720,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListPublicCertificatesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListPublicCertificatesSlotComplete(ctx, id) @@ -4737,7 +4737,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") if err := client.ListPublishingCredentialsThenPoll(ctx, id); err != nil { // handle the error @@ -4749,7 +4749,7 @@ if err := client.ListPublishingCredentialsThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") if err := client.ListPublishingCredentialsSlotThenPoll(ctx, id); err != nil { // handle the error @@ -4761,7 +4761,7 @@ if err := client.ListPublishingCredentialsSlotThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmPublishingProfileOptions{ // ... @@ -4782,7 +4782,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmPublishingProfileOptions{ // ... @@ -4803,7 +4803,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListRelayServiceConnections(ctx, id) if err != nil { @@ -4819,7 +4819,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListRelayServiceConnectionsSlot(ctx, id) if err != nil { @@ -4835,7 +4835,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSiteBackups(ctx, id)` can be used to do batched pagination items, err := client.ListSiteBackupsComplete(ctx, id) @@ -4852,7 +4852,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSiteBackupsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListSiteBackupsSlotComplete(ctx, id) @@ -4869,7 +4869,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSiteContainers(ctx, id)` can be used to do batched pagination items, err := client.ListSiteContainersComplete(ctx, id) @@ -4886,7 +4886,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSiteContainersSlot(ctx, id)` can be used to do batched pagination items, err := client.ListSiteContainersSlotComplete(ctx, id) @@ -4903,7 +4903,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSiteExtensions(ctx, id)` can be used to do batched pagination items, err := client.ListSiteExtensionsComplete(ctx, id) @@ -4920,7 +4920,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSiteExtensionsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListSiteExtensionsSlotComplete(ctx, id) @@ -4937,7 +4937,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListSitePushSettings(ctx, id) if err != nil { @@ -4953,7 +4953,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListSitePushSettingsSlot(ctx, id) if err != nil { @@ -4969,7 +4969,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListSlotConfigurationNames(ctx, id) if err != nil { @@ -4985,7 +4985,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmSlotEntity{ // ... @@ -5007,7 +5007,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmSlotEntity{ // ... @@ -5029,7 +5029,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSlotSiteDeploymentStatusesSlot(ctx, id)` can be used to do batched pagination items, err := client.ListSlotSiteDeploymentStatusesSlotComplete(ctx, id) @@ -5046,7 +5046,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSlots(ctx, id)` can be used to do batched pagination items, err := client.ListSlotsComplete(ctx, id) @@ -5063,7 +5063,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSnapshots(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsComplete(ctx, id) @@ -5080,7 +5080,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListSnapshotsFromDRSecondary(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsFromDRSecondaryComplete(ctx, id) @@ -5097,7 +5097,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSnapshotsFromDRSecondarySlot(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsFromDRSecondarySlotComplete(ctx, id) @@ -5114,7 +5114,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListSnapshotsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListSnapshotsSlotComplete(ctx, id) @@ -5131,7 +5131,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListSyncFunctionTriggers(ctx, id) if err != nil { @@ -5147,7 +5147,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListSyncFunctionTriggersSlot(ctx, id) if err != nil { @@ -5163,7 +5163,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListSyncStatus(ctx, id) if err != nil { @@ -5179,7 +5179,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListSyncStatusSlot(ctx, id) if err != nil { @@ -5195,7 +5195,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") // alternatively `client.ListTriggeredWebJobHistory(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobHistoryComplete(ctx, id) @@ -5212,7 +5212,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") // alternatively `client.ListTriggeredWebJobHistorySlot(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobHistorySlotComplete(ctx, id) @@ -5229,7 +5229,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListTriggeredWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobsComplete(ctx, id) @@ -5246,7 +5246,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListTriggeredWebJobsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListTriggeredWebJobsSlotComplete(ctx, id) @@ -5263,7 +5263,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListUsages(ctx, id, webapps.DefaultListUsagesOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesComplete(ctx, id, webapps.DefaultListUsagesOperationOptions()) @@ -5280,7 +5280,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListUsagesSlot(ctx, id, webapps.DefaultListUsagesSlotOperationOptions())` can be used to do batched pagination items, err := client.ListUsagesSlotComplete(ctx, id, webapps.DefaultListUsagesSlotOperationOptions()) @@ -5297,7 +5297,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListVnetConnections(ctx, id) if err != nil { @@ -5313,7 +5313,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListVnetConnectionsSlot(ctx, id) if err != nil { @@ -5329,7 +5329,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListWebJobs(ctx, id)` can be used to do batched pagination items, err := client.ListWebJobsComplete(ctx, id) @@ -5346,7 +5346,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") // alternatively `client.ListWebJobsSlot(ctx, id)` can be used to do batched pagination items, err := client.ListWebJobsSlotComplete(ctx, id) @@ -5363,7 +5363,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") // alternatively `client.ListWorkflows(ctx, id)` can be used to do batched pagination items, err := client.ListWorkflowsComplete(ctx, id) @@ -5380,7 +5380,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ListWorkflowsConnections(ctx, id) if err != nil { @@ -5396,7 +5396,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ListWorkflowsConnectionsSlot(ctx, id) if err != nil { @@ -5412,7 +5412,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.MigrateMySqlRequest{ // ... @@ -5429,7 +5429,7 @@ if err := client.MigrateMySqlThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.StorageMigrationOptions{ // ... @@ -5446,7 +5446,7 @@ if err := client.MigrateStorageThenPoll(ctx, id, payload, webapps.DefaultMigrate ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.PrivateAccess{ // ... @@ -5467,7 +5467,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.PrivateAccess{ // ... @@ -5488,7 +5488,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "snapshotIdValue") +id := webapps.NewSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "snapshotId") read, err := client.RecoverSiteConfigurationSnapshot(ctx, id) if err != nil { @@ -5504,7 +5504,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "snapshotIdValue") +id := webapps.NewWebSnapshotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "snapshotId") read, err := client.RecoverSiteConfigurationSnapshotSlot(ctx, id) if err != nil { @@ -5520,7 +5520,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.ResetProductionSlotConfig(ctx, id) if err != nil { @@ -5536,7 +5536,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.ResetSlotConfigurationSlot(ctx, id) if err != nil { @@ -5552,7 +5552,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.Restart(ctx, id, webapps.DefaultRestartOperationOptions()) if err != nil { @@ -5568,7 +5568,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.RestartSlot(ctx, id, webapps.DefaultRestartSlotOperationOptions()) if err != nil { @@ -5584,7 +5584,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "backupIdValue") +id := webapps.NewBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "backupId") payload := webapps.RestoreRequest{ // ... @@ -5601,7 +5601,7 @@ if err := client.RestoreThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.RestoreRequest{ // ... @@ -5618,7 +5618,7 @@ if err := client.RestoreFromBackupBlobThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.RestoreRequest{ // ... @@ -5635,7 +5635,7 @@ if err := client.RestoreFromBackupBlobSlotThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.DeletedAppRestoreRequest{ // ... @@ -5652,7 +5652,7 @@ if err := client.RestoreFromDeletedAppThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.DeletedAppRestoreRequest{ // ... @@ -5669,7 +5669,7 @@ if err := client.RestoreFromDeletedAppSlotThenPoll(ctx, id, payload); err != nil ```go ctx := context.TODO() -id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "backupIdValue") +id := webapps.NewSlotBackupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "backupId") payload := webapps.RestoreRequest{ // ... @@ -5686,7 +5686,7 @@ if err := client.RestoreSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SnapshotRestoreRequest{ // ... @@ -5703,7 +5703,7 @@ if err := client.RestoreSnapshotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SnapshotRestoreRequest{ // ... @@ -5720,7 +5720,7 @@ if err := client.RestoreSnapshotSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "triggeredWebJobValue") +id := webapps.NewTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.RunTriggeredWebJob(ctx, id) if err != nil { @@ -5736,7 +5736,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "triggeredWebJobValue") +id := webapps.NewSlotTriggeredWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.RunTriggeredWebJobSlot(ctx, id) if err != nil { @@ -5752,7 +5752,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.Start(ctx, id) if err != nil { @@ -5768,7 +5768,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.StartContinuousWebJob(ctx, id) if err != nil { @@ -5784,7 +5784,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.StartContinuousWebJobSlot(ctx, id) if err != nil { @@ -5800,7 +5800,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") if err := client.StartNetworkTraceThenPoll(ctx, id, webapps.DefaultStartNetworkTraceOperationOptions()); err != nil { // handle the error @@ -5812,7 +5812,7 @@ if err := client.StartNetworkTraceThenPoll(ctx, id, webapps.DefaultStartNetworkT ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") if err := client.StartNetworkTraceSlotThenPoll(ctx, id, webapps.DefaultStartNetworkTraceSlotOperationOptions()); err != nil { // handle the error @@ -5824,7 +5824,7 @@ if err := client.StartNetworkTraceSlotThenPoll(ctx, id, webapps.DefaultStartNetw ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.StartSlot(ctx, id) if err != nil { @@ -5840,7 +5840,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.StartWebSiteNetworkTrace(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOptions()) if err != nil { @@ -5856,7 +5856,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") if err := client.StartWebSiteNetworkTraceOperationThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationOperationOptions()); err != nil { // handle the error @@ -5868,7 +5868,7 @@ if err := client.StartWebSiteNetworkTraceOperationThenPoll(ctx, id, webapps.Defa ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") if err := client.StartWebSiteNetworkTraceOperationSlotThenPoll(ctx, id, webapps.DefaultStartWebSiteNetworkTraceOperationSlotOperationOptions()); err != nil { // handle the error @@ -5880,7 +5880,7 @@ if err := client.StartWebSiteNetworkTraceOperationSlotThenPoll(ctx, id, webapps. ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.StartWebSiteNetworkTraceSlot(ctx, id, webapps.DefaultStartWebSiteNetworkTraceSlotOperationOptions()) if err != nil { @@ -5896,7 +5896,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.Stop(ctx, id) if err != nil { @@ -5912,7 +5912,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "continuousWebJobValue") +id := webapps.NewContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "webJobName") read, err := client.StopContinuousWebJob(ctx, id) if err != nil { @@ -5928,7 +5928,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "continuousWebJobValue") +id := webapps.NewSlotContinuousWebJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "webJobName") read, err := client.StopContinuousWebJobSlot(ctx, id) if err != nil { @@ -5944,7 +5944,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.StopNetworkTrace(ctx, id) if err != nil { @@ -5960,7 +5960,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.StopNetworkTraceSlot(ctx, id) if err != nil { @@ -5976,7 +5976,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.StopSlot(ctx, id) if err != nil { @@ -5992,7 +5992,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.StopWebSiteNetworkTrace(ctx, id) if err != nil { @@ -6008,7 +6008,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.StopWebSiteNetworkTraceSlot(ctx, id) if err != nil { @@ -6024,7 +6024,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmSlotEntity{ // ... @@ -6041,7 +6041,7 @@ if err := client.SwapSlotSlotThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmSlotEntity{ // ... @@ -6058,7 +6058,7 @@ if err := client.SwapSlotWithProductionThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.SyncFunctionTriggers(ctx, id) if err != nil { @@ -6074,7 +6074,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.SyncFunctionTriggersSlot(ctx, id) if err != nil { @@ -6090,7 +6090,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.SyncFunctions(ctx, id) if err != nil { @@ -6106,7 +6106,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.SyncFunctionsSlot(ctx, id) if err != nil { @@ -6122,7 +6122,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") read, err := client.SyncRepository(ctx, id) if err != nil { @@ -6138,7 +6138,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") read, err := client.SyncRepositorySlot(ctx, id) if err != nil { @@ -6154,7 +6154,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SitePatchResource{ // ... @@ -6175,7 +6175,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.StringDictionary{ // ... @@ -6196,7 +6196,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.StringDictionary{ // ... @@ -6217,7 +6217,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteAuthSettings{ // ... @@ -6238,7 +6238,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteAuthSettings{ // ... @@ -6259,7 +6259,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteAuthSettingsV2{ // ... @@ -6280,7 +6280,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteAuthSettingsV2{ // ... @@ -6301,7 +6301,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.AzureStoragePropertyDictionaryResource{ // ... @@ -6322,7 +6322,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.AzureStoragePropertyDictionaryResource{ // ... @@ -6343,7 +6343,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.BackupRequest{ // ... @@ -6364,7 +6364,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.BackupRequest{ // ... @@ -6385,7 +6385,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteConfigResource{ // ... @@ -6406,7 +6406,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteConfigResource{ // ... @@ -6427,7 +6427,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.ConnectionStringDictionary{ // ... @@ -6448,7 +6448,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.ConnectionStringDictionary{ // ... @@ -6469,7 +6469,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteLogsConfig{ // ... @@ -6490,7 +6490,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteLogsConfig{ // ... @@ -6511,7 +6511,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "domainOwnershipIdentifierValue") +id := webapps.NewDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "domainOwnershipIdentifierName") payload := webapps.Identifier{ // ... @@ -6532,7 +6532,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "domainOwnershipIdentifierValue") +id := webapps.NewSlotDomainOwnershipIdentifierID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "domainOwnershipIdentifierName") payload := webapps.Identifier{ // ... @@ -6553,7 +6553,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6574,7 +6574,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6595,7 +6595,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "namespaceName", "relayName") payload := webapps.HybridConnection{ // ... @@ -6616,7 +6616,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionNamespaceValue", "relayValue") +id := webapps.NewSlotHybridConnectionNamespaceRelayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "namespaceName", "relayName") payload := webapps.HybridConnection{ // ... @@ -6637,7 +6637,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.StringDictionary{ // ... @@ -6658,7 +6658,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.StringDictionary{ // ... @@ -6679,7 +6679,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "premierAddonValue") +id := webapps.NewPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "premierAddOnName") payload := webapps.PremierAddOnPatchResource{ // ... @@ -6700,7 +6700,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "premierAddonValue") +id := webapps.NewSlotPremierAddonID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "premierAddOnName") payload := webapps.PremierAddOnPatchResource{ // ... @@ -6721,7 +6721,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "hybridConnectionValue") +id := webapps.NewHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "entityName") payload := webapps.RelayServiceConnectionEntity{ // ... @@ -6742,7 +6742,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "hybridConnectionValue") +id := webapps.NewSlotHybridConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "entityName") payload := webapps.RelayServiceConnectionEntity{ // ... @@ -6763,7 +6763,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6784,7 +6784,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.CsmPublishingCredentialsPoliciesEntity{ // ... @@ -6805,7 +6805,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.PushSettings{ // ... @@ -6826,7 +6826,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.PushSettings{ // ... @@ -6847,7 +6847,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SitePatchResource{ // ... @@ -6868,7 +6868,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SlotConfigNamesResource{ // ... @@ -6889,7 +6889,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SiteSourceControl{ // ... @@ -6910,7 +6910,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SiteSourceControl{ // ... @@ -6931,7 +6931,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue") +id := commonids.NewAppServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName") payload := webapps.SwiftVirtualNetwork{ // ... @@ -6952,7 +6952,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue") +id := webapps.NewSlotID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteName", "slot") payload := webapps.SwiftVirtualNetwork{ // ... @@ -6973,7 +6973,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue") +id := webapps.NewVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName") payload := webapps.VnetInfoResource{ // ... @@ -6994,7 +6994,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "vnetName", "gatewayName") payload := webapps.VnetGateway{ // ... @@ -7015,7 +7015,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue", "gatewayValue") +id := webapps.NewSlotVirtualNetworkConnectionGatewayID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName", "gatewayName") payload := webapps.VnetGateway{ // ... @@ -7036,7 +7036,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "siteValue", "slotValue", "virtualNetworkConnectionValue") +id := webapps.NewSlotVirtualNetworkConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "name", "slot", "vnetName") payload := webapps.VnetInfoResource{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/client.go index 5b73caa6cf95..cfd22cd9b25f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/client.go @@ -15,7 +15,7 @@ type WebAppsClient struct { } func NewWebAppsClientWithBaseURI(sdkApi sdkEnv.Api) (*WebAppsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webapps", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webapps", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebAppsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_appsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_appsetting.go index f79067efc7a9..59084b46370b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_appsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_appsetting.go @@ -44,7 +44,7 @@ func ParseAppSettingID(input string) (*AppSettingId, error) { } id := AppSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseAppSettingIDInsensitively(input string) (*AppSettingId, error) { } id := AppSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id AppSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), resourceids.StaticSegment("staticAppSettings", "appSettings", "appSettings"), - resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKeyValue"), + resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKey"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_backup.go index c93bb6ba405a..3ef9859edca7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_backup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_backup.go @@ -44,7 +44,7 @@ func ParseBackupID(input string) (*BackupId, error) { } id := BackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseBackupIDInsensitively(input string) (*BackupId, error) { } id := BackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id BackupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticBackups", "backups", "backups"), - resourceids.UserSpecifiedSegment("backupId", "backupIdValue"), + resourceids.UserSpecifiedSegment("backupId", "backupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceappsetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceappsetting.go index 68ac42d6ea72..532f4c47969e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceappsetting.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceappsetting.go @@ -46,7 +46,7 @@ func ParseConfigReferenceAppSettingID(input string) (*ConfigReferenceAppSettingI } id := ConfigReferenceAppSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseConfigReferenceAppSettingIDInsensitively(input string) (*ConfigReferen } id := ConfigReferenceAppSettingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,13 +127,13 @@ func (id ConfigReferenceAppSettingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), resourceids.StaticSegment("staticAppSettings", "appSettings", "appSettings"), - resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKeyValue"), + resourceids.UserSpecifiedSegment("appSettingKey", "appSettingKey"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceconnectionstring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceconnectionstring.go index 73f0b28fde95..8d47f02f5a1e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceconnectionstring.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_configreferenceconnectionstring.go @@ -46,7 +46,7 @@ func ParseConfigReferenceConnectionStringID(input string) (*ConfigReferenceConne } id := ConfigReferenceConnectionStringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseConfigReferenceConnectionStringIDInsensitively(input string) (*ConfigR } id := ConfigReferenceConnectionStringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,13 +127,13 @@ func (id ConfigReferenceConnectionStringId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), resourceids.StaticSegment("staticConnectionStrings", "connectionStrings", "connectionStrings"), - resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKeyValue"), + resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKey"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_connectionstring.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_connectionstring.go index 9e8a7bdf65af..15ab1745be8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_connectionstring.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_connectionstring.go @@ -44,7 +44,7 @@ func ParseConnectionStringID(input string) (*ConnectionStringId, error) { } id := ConnectionStringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseConnectionStringIDInsensitively(input string) (*ConnectionStringId, er } id := ConnectionStringId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id ConnectionStringId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticConfigReferences", "configReferences", "configReferences"), resourceids.StaticSegment("staticConnectionStrings", "connectionStrings", "connectionStrings"), - resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKeyValue"), + resourceids.UserSpecifiedSegment("connectionStringKey", "connectionStringKey"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_continuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_continuouswebjob.go index bd0646999443..a9bf0269a2fb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_continuouswebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_continuouswebjob.go @@ -44,7 +44,7 @@ func ParseContinuousWebJobID(input string) (*ContinuousWebJobId, error) { } id := ContinuousWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseContinuousWebJobIDInsensitively(input string) (*ContinuousWebJobId, er } id := ContinuousWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ContinuousWebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticContinuousWebJobs", "continuousWebJobs", "continuousWebJobs"), - resourceids.UserSpecifiedSegment("continuousWebJobName", "continuousWebJobValue"), + resourceids.UserSpecifiedSegment("continuousWebJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_default.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_default.go index c191cc073476..254bc8a89a03 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_default.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_default.go @@ -46,7 +46,7 @@ func ParseDefaultID(input string) (*DefaultId, error) { } id := DefaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseDefaultIDInsensitively(input string) (*DefaultId, error) { } id := DefaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id DefaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticHost", "host", "host"), resourceids.StaticSegment("staticDefault", "default", "default"), - resourceids.UserSpecifiedSegment("defaultName", "defaultValue"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("defaultName", "keyType"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_deployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_deployment.go index a9c9751643f2..5f0c95f64d37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_deployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_deployment.go @@ -44,7 +44,7 @@ func ParseDeploymentID(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error) { } id := DeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), - resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + resourceids.UserSpecifiedSegment("deploymentName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_domainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_domainownershipidentifier.go index 45cb4c5271de..3e940af260cc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_domainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_domainownershipidentifier.go @@ -44,7 +44,7 @@ func ParseDomainOwnershipIdentifierID(input string) (*DomainOwnershipIdentifierI } id := DomainOwnershipIdentifierId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDomainOwnershipIdentifierIDInsensitively(input string) (*DomainOwnersh } id := DomainOwnershipIdentifierId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DomainOwnershipIdentifierId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticDomainOwnershipIdentifiers", "domainOwnershipIdentifiers", "domainOwnershipIdentifiers"), - resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierValue"), + resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_function.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_function.go index 4b864194a47f..f13ac6949c47 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_function.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_function.go @@ -44,7 +44,7 @@ func ParseFunctionID(input string) (*FunctionId, error) { } id := FunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseFunctionIDInsensitively(input string) (*FunctionId, error) { } id := FunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id FunctionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticFunctions", "functions", "functions"), - resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.UserSpecifiedSegment("functionName", "functionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_functionkey.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_functionkey.go index 0e8c227341e8..6b146a6c1d69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_functionkey.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_functionkey.go @@ -48,7 +48,7 @@ func ParseFunctionKeyID(input string) (*FunctionKeyId, error) { } id := FunctionKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseFunctionKeyIDInsensitively(input string) (*FunctionKeyId, error) { } id := FunctionKeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id FunctionKeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticFunctions", "functions", "functions"), - resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.UserSpecifiedSegment("functionName", "functionName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_gateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_gateway.go index ca31ece20667..aa57771776cd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_gateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_gateway.go @@ -46,7 +46,7 @@ func ParseGatewayID(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseGatewayIDInsensitively(input string) (*GatewayId, error) { } id := GatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id GatewayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_history.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_history.go index 27f2d61eb6e0..20c6af229583 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_history.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_history.go @@ -46,7 +46,7 @@ func ParseHistoryID(input string) (*HistoryId, error) { } id := HistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseHistoryIDInsensitively(input string) (*HistoryId, error) { } id := HistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id HistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), - resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "webJobName"), resourceids.StaticSegment("staticHistory", "history", "history"), - resourceids.UserSpecifiedSegment("historyName", "historyValue"), + resourceids.UserSpecifiedSegment("historyName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostdefault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostdefault.go index 5278463ffbf5..980fea18eb4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostdefault.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostdefault.go @@ -48,7 +48,7 @@ func ParseHostDefaultID(input string) (*HostDefaultId, error) { } id := HostDefaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseHostDefaultIDInsensitively(input string) (*HostDefaultId, error) { } id := HostDefaultId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id HostDefaultId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticHost", "host", "host"), resourceids.StaticSegment("staticDefault", "default", "default"), - resourceids.UserSpecifiedSegment("defaultName", "defaultValue"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("defaultName", "keyType"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostnamebinding.go index dd781b22a7bf..9959ddc39e8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostnamebinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hostnamebinding.go @@ -44,7 +44,7 @@ func ParseHostNameBindingID(input string) (*HostNameBindingId, error) { } id := HostNameBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHostNameBindingIDInsensitively(input string) (*HostNameBindingId, erro } id := HostNameBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HostNameBindingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticHostNameBindings", "hostNameBindings", "hostNameBindings"), - resourceids.UserSpecifiedSegment("hostNameBindingName", "hostNameBindingValue"), + resourceids.UserSpecifiedSegment("hostNameBindingName", "hostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hybridconnection.go index 01b9c8a85902..02bb4f490032 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_hybridconnection.go @@ -44,7 +44,7 @@ func ParseHybridConnectionID(input string) (*HybridConnectionId, error) { } id := HybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHybridConnectionIDInsensitively(input string) (*HybridConnectionId, er } id := HybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HybridConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticHybridConnection", "hybridConnection", "hybridConnection"), - resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "entityName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instance.go index f32fdae320aa..25203793a81e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instance.go @@ -44,7 +44,7 @@ func ParseInstanceID(input string) (*InstanceId, error) { } id := InstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseInstanceIDInsensitively(input string) (*InstanceId, error) { } id := InstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id InstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocess.go index e5913d50a18d..55adc768077e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocess.go @@ -46,7 +46,7 @@ func ParseInstanceProcessID(input string) (*InstanceProcessId, error) { } id := InstanceProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseInstanceProcessIDInsensitively(input string) (*InstanceProcessId, erro } id := InstanceProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id InstanceProcessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocessmodule.go index d905ee1acd0e..5b146947462e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocessmodule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_instanceprocessmodule.go @@ -48,7 +48,7 @@ func ParseInstanceProcessModuleID(input string) (*InstanceProcessModuleId, error } id := InstanceProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseInstanceProcessModuleIDInsensitively(input string) (*InstanceProcessMo } id := InstanceProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id InstanceProcessModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "baseAddress"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_key.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_key.go index cbdd8974ed7a..c0b37b035060 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_key.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_key.go @@ -46,7 +46,7 @@ func ParseKeyID(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseKeyIDInsensitively(input string) (*KeyId, error) { } id := KeyId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id KeyId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticFunctions", "functions", "functions"), - resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.UserSpecifiedSegment("functionName", "functionName"), resourceids.StaticSegment("staticKeys", "keys", "keys"), - resourceids.UserSpecifiedSegment("keyName", "keyValue"), + resourceids.UserSpecifiedSegment("keyName", "keyName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_module.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_module.go index fa4c8e1c74cf..a4d421216a92 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_module.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_module.go @@ -46,7 +46,7 @@ func ParseModuleID(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseModuleIDInsensitively(input string) (*ModuleId, error) { } id := ModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id ModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "baseAddress"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networkfeature.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networkfeature.go index 392453252e20..fd2923f194e3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networkfeature.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networkfeature.go @@ -44,7 +44,7 @@ func ParseNetworkFeatureID(input string) (*NetworkFeatureId, error) { } id := NetworkFeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkFeatureIDInsensitively(input string) (*NetworkFeatureId, error) } id := NetworkFeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkFeatureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticNetworkFeatures", "networkFeatures", "networkFeatures"), - resourceids.UserSpecifiedSegment("networkFeatureName", "networkFeatureValue"), + resourceids.UserSpecifiedSegment("networkFeatureName", "view"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networktrace.go index 28b0b24703c8..1e29b968bba4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_networktrace.go @@ -44,7 +44,7 @@ func ParseNetworkTraceID(input string) (*NetworkTraceId, error) { } id := NetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseNetworkTraceIDInsensitively(input string) (*NetworkTraceId, error) { } id := NetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id NetworkTraceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticNetworkTrace", "networkTrace", "networkTrace"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_premieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_premieraddon.go index dfee9125f057..f926683223ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_premieraddon.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_premieraddon.go @@ -44,7 +44,7 @@ func ParsePremierAddonID(input string) (*PremierAddonId, error) { } id := PremierAddonId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePremierAddonIDInsensitively(input string) (*PremierAddonId, error) { } id := PremierAddonId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PremierAddonId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticPremierAddons", "premierAddons", "premierAddons"), - resourceids.UserSpecifiedSegment("premierAddonName", "premierAddonValue"), + resourceids.UserSpecifiedSegment("premierAddonName", "premierAddOnName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_privateendpointconnection.go index 30ff5bd51118..1504e2b33743 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_process.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_process.go index f50f0ce9a31d..1c2d61493cbc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_process.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_process.go @@ -44,7 +44,7 @@ func ParseProcessID(input string) (*ProcessId, error) { } id := ProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProcessIDInsensitively(input string) (*ProcessId, error) { } id := ProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProcessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_processmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_processmodule.go index d82b0bb7c2ad..87b5d659016c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_processmodule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_processmodule.go @@ -48,7 +48,7 @@ func ParseProcessModuleID(input string) (*ProcessModuleId, error) { } id := ProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseProcessModuleIDInsensitively(input string) (*ProcessModuleId, error) { } id := ProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id ProcessModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "baseAddress"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_publiccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_publiccertificate.go index 73c217f6800c..5addcaf8c221 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_publiccertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_publiccertificate.go @@ -44,7 +44,7 @@ func ParsePublicCertificateID(input string) (*PublicCertificateId, error) { } id := PublicCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePublicCertificateIDInsensitively(input string) (*PublicCertificateId, } id := PublicCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PublicCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticPublicCertificates", "publicCertificates", "publicCertificates"), - resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateValue"), + resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_relay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_relay.go index 52a8e92c8f59..9396eaf87dbe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_relay.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_relay.go @@ -46,7 +46,7 @@ func ParseRelayID(input string) (*RelayId, error) { } id := RelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseRelayIDInsensitively(input string) (*RelayId, error) { } id := RelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id RelayId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticHybridConnectionNamespaces", "hybridConnectionNamespaces", "hybridConnectionNamespaces"), - resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "hybridConnectionNamespaceValue"), + resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "namespaceName"), resourceids.StaticSegment("staticRelays", "relays", "relays"), - resourceids.UserSpecifiedSegment("relayName", "relayValue"), + resourceids.UserSpecifiedSegment("relayName", "relayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitecontainer.go index 27ca4fa3c102..a4f4bbfb4ceb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitecontainer.go @@ -44,7 +44,7 @@ func ParseSitecontainerID(input string) (*SitecontainerId, error) { } id := SitecontainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSitecontainerIDInsensitively(input string) (*SitecontainerId, error) { } id := SitecontainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SitecontainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSitecontainers", "sitecontainers", "sitecontainers"), - resourceids.UserSpecifiedSegment("sitecontainerName", "sitecontainerValue"), + resourceids.UserSpecifiedSegment("sitecontainerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteextension.go index 769e3f2466ea..17385289ef2a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteextension.go @@ -44,7 +44,7 @@ func ParseSiteExtensionID(input string) (*SiteExtensionId, error) { } id := SiteExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSiteExtensionIDInsensitively(input string) (*SiteExtensionId, error) { } id := SiteExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SiteExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSiteExtensions", "siteExtensions", "siteExtensions"), - resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionIdValue"), + resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitenetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitenetworktrace.go index 69b7e658c0cc..b281890243a9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitenetworktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_sitenetworktrace.go @@ -44,7 +44,7 @@ func ParseSiteNetworkTraceID(input string) (*SiteNetworkTraceId, error) { } id := SiteNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSiteNetworkTraceIDInsensitively(input string) (*SiteNetworkTraceId, er } id := SiteNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SiteNetworkTraceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticNetworkTraces", "networkTraces", "networkTraces"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteslotnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteslotnetworktrace.go index 0ce160718418..e5bee7517a28 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteslotnetworktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_siteslotnetworktrace.go @@ -46,7 +46,7 @@ func ParseSiteSlotNetworkTraceID(input string) (*SiteSlotNetworkTraceId, error) } id := SiteSlotNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSiteSlotNetworkTraceIDInsensitively(input string) (*SiteSlotNetworkTra } id := SiteSlotNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SiteSlotNetworkTraceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticNetworkTraces", "networkTraces", "networkTraces"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slot.go index 37093c011526..8e908291c1b6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slot.go @@ -44,7 +44,7 @@ func ParseSlotID(input string) (*SlotId, error) { } id := SlotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSlotIDInsensitively(input string) (*SlotId, error) { } id := SlotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SlotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "siteName"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotbackup.go index 7e9224780288..a528a2b155ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotbackup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotbackup.go @@ -46,7 +46,7 @@ func ParseSlotBackupID(input string) (*SlotBackupId, error) { } id := SlotBackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotBackupIDInsensitively(input string) (*SlotBackupId, error) { } id := SlotBackupId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotBackupId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticBackups", "backups", "backups"), - resourceids.UserSpecifiedSegment("backupId", "backupIdValue"), + resourceids.UserSpecifiedSegment("backupId", "backupId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotcontinuouswebjob.go index 4c005d225dd3..949c806fd726 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotcontinuouswebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotcontinuouswebjob.go @@ -46,7 +46,7 @@ func ParseSlotContinuousWebJobID(input string) (*SlotContinuousWebJobId, error) } id := SlotContinuousWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotContinuousWebJobIDInsensitively(input string) (*SlotContinuousWebJ } id := SlotContinuousWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotContinuousWebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticContinuousWebJobs", "continuousWebJobs", "continuousWebJobs"), - resourceids.UserSpecifiedSegment("continuousWebJobName", "continuousWebJobValue"), + resourceids.UserSpecifiedSegment("continuousWebJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdeployment.go index c98c86d914f5..a3dfd649a34f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdeployment.go @@ -46,7 +46,7 @@ func ParseSlotDeploymentID(input string) (*SlotDeploymentId, error) { } id := SlotDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotDeploymentIDInsensitively(input string) (*SlotDeploymentId, error) } id := SlotDeploymentId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotDeploymentId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticDeployments", "deployments", "deployments"), - resourceids.UserSpecifiedSegment("deploymentName", "deploymentValue"), + resourceids.UserSpecifiedSegment("deploymentName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdomainownershipidentifier.go index d8889a92f846..2fc8d9e44ed7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdomainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotdomainownershipidentifier.go @@ -46,7 +46,7 @@ func ParseSlotDomainOwnershipIdentifierID(input string) (*SlotDomainOwnershipIde } id := SlotDomainOwnershipIdentifierId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotDomainOwnershipIdentifierIDInsensitively(input string) (*SlotDomai } id := SlotDomainOwnershipIdentifierId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotDomainOwnershipIdentifierId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticDomainOwnershipIdentifiers", "domainOwnershipIdentifiers", "domainOwnershipIdentifiers"), - resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierValue"), + resourceids.UserSpecifiedSegment("domainOwnershipIdentifierName", "domainOwnershipIdentifierName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotfunction.go index 5578c099117a..117c18780b11 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotfunction.go @@ -46,7 +46,7 @@ func ParseSlotFunctionID(input string) (*SlotFunctionId, error) { } id := SlotFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotFunctionIDInsensitively(input string) (*SlotFunctionId, error) { } id := SlotFunctionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotFunctionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticFunctions", "functions", "functions"), - resourceids.UserSpecifiedSegment("functionName", "functionValue"), + resourceids.UserSpecifiedSegment("functionName", "functionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothostnamebinding.go index 5e5e069e7792..23702df5875b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothostnamebinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothostnamebinding.go @@ -46,7 +46,7 @@ func ParseSlotHostNameBindingID(input string) (*SlotHostNameBindingId, error) { } id := SlotHostNameBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotHostNameBindingIDInsensitively(input string) (*SlotHostNameBinding } id := SlotHostNameBindingId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotHostNameBindingId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticHostNameBindings", "hostNameBindings", "hostNameBindings"), - resourceids.UserSpecifiedSegment("hostNameBindingName", "hostNameBindingValue"), + resourceids.UserSpecifiedSegment("hostNameBindingName", "hostName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnection.go index c59108e4984f..798ce3487e9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnection.go @@ -46,7 +46,7 @@ func ParseSlotHybridConnectionID(input string) (*SlotHybridConnectionId, error) } id := SlotHybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotHybridConnectionIDInsensitively(input string) (*SlotHybridConnecti } id := SlotHybridConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotHybridConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticHybridConnection", "hybridConnection", "hybridConnection"), - resourceids.UserSpecifiedSegment("hybridConnectionName", "hybridConnectionValue"), + resourceids.UserSpecifiedSegment("hybridConnectionName", "entityName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnectionnamespacerelay.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnectionnamespacerelay.go index a990de1a6263..a371c335ce12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnectionnamespacerelay.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slothybridconnectionnamespacerelay.go @@ -48,7 +48,7 @@ func ParseSlotHybridConnectionNamespaceRelayID(input string) (*SlotHybridConnect } id := SlotHybridConnectionNamespaceRelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSlotHybridConnectionNamespaceRelayIDInsensitively(input string) (*Slot } id := SlotHybridConnectionNamespaceRelayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SlotHybridConnectionNamespaceRelayId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticHybridConnectionNamespaces", "hybridConnectionNamespaces", "hybridConnectionNamespaces"), - resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "hybridConnectionNamespaceValue"), + resourceids.UserSpecifiedSegment("hybridConnectionNamespaceName", "namespaceName"), resourceids.StaticSegment("staticRelays", "relays", "relays"), - resourceids.UserSpecifiedSegment("relayName", "relayValue"), + resourceids.UserSpecifiedSegment("relayName", "relayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstance.go index 982475e3199d..d381e0805a51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstance.go @@ -46,7 +46,7 @@ func ParseSlotInstanceID(input string) (*SlotInstanceId, error) { } id := SlotInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotInstanceIDInsensitively(input string) (*SlotInstanceId, error) { } id := SlotInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocess.go index bec31e27accc..c45809261363 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocess.go @@ -48,7 +48,7 @@ func ParseSlotInstanceProcessID(input string) (*SlotInstanceProcessId, error) { } id := SlotInstanceProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSlotInstanceProcessIDInsensitively(input string) (*SlotInstanceProcess } id := SlotInstanceProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SlotInstanceProcessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocessmodule.go index f1d5cdb11e72..a8a8a21466b2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocessmodule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotinstanceprocessmodule.go @@ -50,7 +50,7 @@ func ParseSlotInstanceProcessModuleID(input string) (*SlotInstanceProcessModuleI } id := SlotInstanceProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -67,7 +67,7 @@ func ParseSlotInstanceProcessModuleIDInsensitively(input string) (*SlotInstanceP } id := SlotInstanceProcessModuleId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -139,15 +139,15 @@ func (id SlotInstanceProcessModuleId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticInstances", "instances", "instances"), - resourceids.UserSpecifiedSegment("instanceId", "instanceIdValue"), + resourceids.UserSpecifiedSegment("instanceId", "instanceId"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), resourceids.StaticSegment("staticModules", "modules", "modules"), - resourceids.UserSpecifiedSegment("moduleName", "moduleValue"), + resourceids.UserSpecifiedSegment("moduleName", "baseAddress"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworkfeature.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworkfeature.go index 9a2a2655b20c..4001e74bc534 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworkfeature.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworkfeature.go @@ -46,7 +46,7 @@ func ParseSlotNetworkFeatureID(input string) (*SlotNetworkFeatureId, error) { } id := SlotNetworkFeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotNetworkFeatureIDInsensitively(input string) (*SlotNetworkFeatureId } id := SlotNetworkFeatureId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotNetworkFeatureId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticNetworkFeatures", "networkFeatures", "networkFeatures"), - resourceids.UserSpecifiedSegment("networkFeatureName", "networkFeatureValue"), + resourceids.UserSpecifiedSegment("networkFeatureName", "view"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworktrace.go index f0baafea8779..6bdb88e307e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotnetworktrace.go @@ -46,7 +46,7 @@ func ParseSlotNetworkTraceID(input string) (*SlotNetworkTraceId, error) { } id := SlotNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotNetworkTraceIDInsensitively(input string) (*SlotNetworkTraceId, er } id := SlotNetworkTraceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotNetworkTraceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticNetworkTrace", "networkTrace", "networkTrace"), - resourceids.UserSpecifiedSegment("operationId", "operationIdValue"), + resourceids.UserSpecifiedSegment("operationId", "operationId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpremieraddon.go index 363aac4042db..f5dc8ec000cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpremieraddon.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpremieraddon.go @@ -46,7 +46,7 @@ func ParseSlotPremierAddonID(input string) (*SlotPremierAddonId, error) { } id := SlotPremierAddonId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotPremierAddonIDInsensitively(input string) (*SlotPremierAddonId, er } id := SlotPremierAddonId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotPremierAddonId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticPremierAddons", "premierAddons", "premierAddons"), - resourceids.UserSpecifiedSegment("premierAddonName", "premierAddonValue"), + resourceids.UserSpecifiedSegment("premierAddonName", "premierAddOnName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprivateendpointconnection.go index 06c33c642132..0038074356f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprivateendpointconnection.go @@ -46,7 +46,7 @@ func ParseSlotPrivateEndpointConnectionID(input string) (*SlotPrivateEndpointCon } id := SlotPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotPrivateEndpointConnectionIDInsensitively(input string) (*SlotPriva } id := SlotPrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotPrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprocess.go index 85065bd680fc..731a1ee2e666 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprocess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotprocess.go @@ -46,7 +46,7 @@ func ParseSlotProcessID(input string) (*SlotProcessId, error) { } id := SlotProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotProcessIDInsensitively(input string) (*SlotProcessId, error) { } id := SlotProcessId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotProcessId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticProcesses", "processes", "processes"), - resourceids.UserSpecifiedSegment("processId", "processIdValue"), + resourceids.UserSpecifiedSegment("processId", "processId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpubliccertificate.go index 9cc7df5ef0fd..ae44caa811b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpubliccertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotpubliccertificate.go @@ -46,7 +46,7 @@ func ParseSlotPublicCertificateID(input string) (*SlotPublicCertificateId, error } id := SlotPublicCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotPublicCertificateIDInsensitively(input string) (*SlotPublicCertifi } id := SlotPublicCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotPublicCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticPublicCertificates", "publicCertificates", "publicCertificates"), - resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateValue"), + resourceids.UserSpecifiedSegment("publicCertificateName", "publicCertificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsitecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsitecontainer.go index 8866f09575f1..51389b2253c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsitecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsitecontainer.go @@ -46,7 +46,7 @@ func ParseSlotSitecontainerID(input string) (*SlotSitecontainerId, error) { } id := SlotSitecontainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotSitecontainerIDInsensitively(input string) (*SlotSitecontainerId, } id := SlotSitecontainerId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotSitecontainerId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticSitecontainers", "sitecontainers", "sitecontainers"), - resourceids.UserSpecifiedSegment("sitecontainerName", "sitecontainerValue"), + resourceids.UserSpecifiedSegment("sitecontainerName", "containerName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsiteextension.go index 24d7fa27fec6..7c1f34a4ad96 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsiteextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotsiteextension.go @@ -46,7 +46,7 @@ func ParseSlotSiteExtensionID(input string) (*SlotSiteExtensionId, error) { } id := SlotSiteExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotSiteExtensionIDInsensitively(input string) (*SlotSiteExtensionId, } id := SlotSiteExtensionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotSiteExtensionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticSiteExtensions", "siteExtensions", "siteExtensions"), - resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionIdValue"), + resourceids.UserSpecifiedSegment("siteExtensionId", "siteExtensionId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slottriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slottriggeredwebjob.go index 8fcdb7a36298..f28f3ec88d1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slottriggeredwebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slottriggeredwebjob.go @@ -46,7 +46,7 @@ func ParseSlotTriggeredWebJobID(input string) (*SlotTriggeredWebJobId, error) { } id := SlotTriggeredWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotTriggeredWebJobIDInsensitively(input string) (*SlotTriggeredWebJob } id := SlotTriggeredWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotTriggeredWebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), - resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnection.go index a5612467edd1..fccaab21b92e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnection.go @@ -46,7 +46,7 @@ func ParseSlotVirtualNetworkConnectionID(input string) (*SlotVirtualNetworkConne } id := SlotVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotVirtualNetworkConnectionIDInsensitively(input string) (*SlotVirtua } id := SlotVirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotVirtualNetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnectiongateway.go index c730133f642a..bf748a07cfc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnectiongateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotvirtualnetworkconnectiongateway.go @@ -48,7 +48,7 @@ func ParseSlotVirtualNetworkConnectionGatewayID(input string) (*SlotVirtualNetwo } id := SlotVirtualNetworkConnectionGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseSlotVirtualNetworkConnectionGatewayIDInsensitively(input string) (*Slo } id := SlotVirtualNetworkConnectionGatewayId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id SlotVirtualNetworkConnectionGatewayId) Segments() []resourceids.Segment resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), resourceids.StaticSegment("staticGateways", "gateways", "gateways"), - resourceids.UserSpecifiedSegment("gatewayName", "gatewayValue"), + resourceids.UserSpecifiedSegment("gatewayName", "gatewayName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotwebjob.go index 2d33ce098207..0c98bdee1201 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotwebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotwebjob.go @@ -46,7 +46,7 @@ func ParseSlotWebJobID(input string) (*SlotWebJobId, error) { } id := SlotWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotWebJobIDInsensitively(input string) (*SlotWebJobId, error) { } id := SlotWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotWebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticWebJobs", "webJobs", "webJobs"), - resourceids.UserSpecifiedSegment("webJobName", "webJobValue"), + resourceids.UserSpecifiedSegment("webJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotworkflow.go index cc9df4ec42ef..dd9b29180f71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotworkflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_slotworkflow.go @@ -46,7 +46,7 @@ func ParseSlotWorkflowID(input string) (*SlotWorkflowId, error) { } id := SlotWorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseSlotWorkflowIDInsensitively(input string) (*SlotWorkflowId, error) { } id := SlotWorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,11 +127,11 @@ func (id SlotWorkflowId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_snapshot.go index acd841b4273f..cbfb755361da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_snapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_snapshot.go @@ -44,7 +44,7 @@ func ParseSnapshotID(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSnapshotIDInsensitively(input string) (*SnapshotId, error) { } id := SnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,11 +121,11 @@ func (id SnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticWeb", "web", "web"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotId", "snapshotIdValue"), + resourceids.UserSpecifiedSegment("snapshotId", "snapshotId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjob.go index 7d689de870f5..81955b7012ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjob.go @@ -44,7 +44,7 @@ func ParseTriggeredWebJobID(input string) (*TriggeredWebJobId, error) { } id := TriggeredWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseTriggeredWebJobIDInsensitively(input string) (*TriggeredWebJobId, erro } id := TriggeredWebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id TriggeredWebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), - resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjobhistory.go index cf7cd111d53a..e9fa5c35137e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjobhistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_triggeredwebjobhistory.go @@ -48,7 +48,7 @@ func ParseTriggeredWebJobHistoryID(input string) (*TriggeredWebJobHistoryId, err } id := TriggeredWebJobHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -65,7 +65,7 @@ func ParseTriggeredWebJobHistoryIDInsensitively(input string) (*TriggeredWebJobH } id := TriggeredWebJobHistoryId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -133,13 +133,13 @@ func (id TriggeredWebJobHistoryId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticTriggeredWebJobs", "triggeredWebJobs", "triggeredWebJobs"), - resourceids.UserSpecifiedSegment("triggeredWebJobName", "triggeredWebJobValue"), + resourceids.UserSpecifiedSegment("triggeredWebJobName", "webJobName"), resourceids.StaticSegment("staticHistory", "history", "history"), - resourceids.UserSpecifiedSegment("historyName", "historyValue"), + resourceids.UserSpecifiedSegment("historyName", "id"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_virtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_virtualnetworkconnection.go index 7ac96780e13a..cfa8b7c17da8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_virtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_virtualnetworkconnection.go @@ -44,7 +44,7 @@ func ParseVirtualNetworkConnectionID(input string) (*VirtualNetworkConnectionId, } id := VirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseVirtualNetworkConnectionIDInsensitively(input string) (*VirtualNetwork } id := VirtualNetworkConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id VirtualNetworkConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticVirtualNetworkConnections", "virtualNetworkConnections", "virtualNetworkConnections"), - resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "virtualNetworkConnectionValue"), + resourceids.UserSpecifiedSegment("virtualNetworkConnectionName", "vnetName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_webjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_webjob.go index 1f27a30a1ec8..b7a3e4b53e60 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_webjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_webjob.go @@ -44,7 +44,7 @@ func ParseWebJobID(input string) (*WebJobId, error) { } id := WebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWebJobIDInsensitively(input string) (*WebJobId, error) { } id := WebJobId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WebJobId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticWebJobs", "webJobs", "webJobs"), - resourceids.UserSpecifiedSegment("webJobName", "webJobValue"), + resourceids.UserSpecifiedSegment("webJobName", "webJobName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_websnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_websnapshot.go index 705a6fbcaf97..f6bdfdba30b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_websnapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_websnapshot.go @@ -46,7 +46,7 @@ func ParseWebSnapshotID(input string) (*WebSnapshotId, error) { } id := WebSnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -63,7 +63,7 @@ func ParseWebSnapshotIDInsensitively(input string) (*WebSnapshotId, error) { } id := WebSnapshotId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -127,13 +127,13 @@ func (id WebSnapshotId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticSlots", "slots", "slots"), - resourceids.UserSpecifiedSegment("slotName", "slotValue"), + resourceids.UserSpecifiedSegment("slotName", "slot"), resourceids.StaticSegment("staticConfig", "config", "config"), resourceids.StaticSegment("staticWeb", "web", "web"), resourceids.StaticSegment("staticSnapshots", "snapshots", "snapshots"), - resourceids.UserSpecifiedSegment("snapshotId", "snapshotIdValue"), + resourceids.UserSpecifiedSegment("snapshotId", "snapshotId"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_workflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_workflow.go index 4519773f55fd..61de52f6bbea 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_workflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/id_workflow.go @@ -44,7 +44,7 @@ func ParseWorkflowID(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseWorkflowIDInsensitively(input string) (*WorkflowId, error) { } id := WorkflowId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id WorkflowId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWeb", "Microsoft.Web", "Microsoft.Web"), resourceids.StaticSegment("staticSites", "sites", "sites"), - resourceids.UserSpecifiedSegment("siteName", "siteValue"), + resourceids.UserSpecifiedSegment("siteName", "name"), resourceids.StaticSegment("staticWorkflows", "workflows", "workflows"), - resourceids.UserSpecifiedSegment("workflowName", "workflowValue"), + resourceids.UserSpecifiedSegment("workflowName", "workflowName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddon.go index 7faf7f7e01cc..cfb57af1bf67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddon.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddon.go @@ -49,7 +49,6 @@ func (c WebAppsClient) AddPremierAddOn(ctx context.Context, id PremierAddonId, i var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddonslot.go index 5a4fa5470e0c..aeafde304bb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddonslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_addpremieraddonslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) AddPremierAddOnSlot(ctx context.Context, id SlotPremierAd var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go index b5b486f1e776..11970d2903f6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostname.go @@ -35,6 +35,7 @@ func (o AnalyzeCustomHostnameOperationOptions) ToHeaders() *client.Headers { func (o AnalyzeCustomHostnameOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -75,7 +76,6 @@ func (c WebAppsClient) AnalyzeCustomHostname(ctx context.Context, id commonids.A var model CustomHostnameAnalysisResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go index 4c608ff0d597..b2430c9f9ba6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_analyzecustomhostnameslot.go @@ -34,6 +34,7 @@ func (o AnalyzeCustomHostnameSlotOperationOptions) ToHeaders() *client.Headers { func (o AnalyzeCustomHostnameSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -74,7 +75,6 @@ func (c WebAppsClient) AnalyzeCustomHostnameSlot(ctx context.Context, id SlotId, var model CustomHostnameAnalysisResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backup.go index e8c66757e123..c1c49689e19e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backup.go @@ -51,7 +51,6 @@ func (c WebAppsClient) Backup(ctx context.Context, id commonids.AppServiceId, in var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backupslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backupslot.go index 81ab5d55571c..bb5f136eda50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backupslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_backupslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) BackupSlot(ctx context.Context, id SlotId, input BackupRe var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeployment.go index 2be253afc7e1..942b704fb678 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeployment.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateDeployment(ctx context.Context, id DeploymentId, in var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeploymentslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeploymentslot.go index 6cf4e309a202..69c846f798e7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeploymentslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createdeploymentslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateDeploymentSlot(ctx context.Context, id SlotDeployme var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createonedeployoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createonedeployoperation.go index 38e5c6a38a1e..d313d5b73404 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createonedeployoperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createonedeployoperation.go @@ -47,7 +47,6 @@ func (c WebAppsClient) CreateOneDeployOperation(ctx context.Context, id commonid var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfiguration.go index 0949625e755f..85500fcf7082 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfiguration.go @@ -51,7 +51,6 @@ func (c WebAppsClient) CreateOrUpdateConfiguration(ctx context.Context, id commo var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfigurationslot.go index 6d8c147b26c0..b41a356aa13e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateconfigurationslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateConfigurationSlot(ctx context.Context, id S var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifier.go index 42d7d52d965a..54114dd7cb9b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifier.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateDomainOwnershipIdentifier(ctx context.Conte var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifierslot.go index 1147ef7573e8..001554898acf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifierslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatedomainownershipidentifierslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateDomainOwnershipIdentifierSlot(ctx context.C var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecret.go index 2ed0a2ab5254..924975735606 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecret.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateFunctionSecret(ctx context.Context, id KeyI var model KeyInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecretslot.go index 16ba00bde18b..0540fca8947c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecretslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatefunctionsecretslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateFunctionSecretSlot(ctx context.Context, id var model KeyInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebinding.go index b239472ab879..3a47a4207d0d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebinding.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateHostNameBinding(ctx context.Context, id Hos var model HostNameBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebindingslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebindingslot.go index ad9378dfe37a..f0746cde4e66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebindingslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostnamebindingslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateHostNameBindingSlot(ctx context.Context, id var model HostNameBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecret.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecret.go index 191c579b5d87..1b3b65509c9a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecret.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecret.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateHostSecret(ctx context.Context, id DefaultI var model KeyInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecretslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecretslot.go index f3badff4dfec..f9bbc6bef558 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecretslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehostsecretslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateHostSecretSlot(ctx context.Context, id Host var model KeyInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnection.go index 74629a106ec6..5c7b767edf5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateHybridConnection(ctx context.Context, id Re var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnectionslot.go index c08c5ecf83be..480ee3d15937 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatehybridconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateHybridConnectionSlot(ctx context.Context, i var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificate.go index b25986d572e7..b9aaaedb0d25 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificate.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdatePublicCertificate(ctx context.Context, id P var model PublicCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificateslot.go index ec82a67e3a31..b53ffdea5240 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificateslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatepubliccertificateslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdatePublicCertificateSlot(ctx context.Context, var model PublicCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnection.go index 0e475ea94950..8cd02d31bd7c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateRelayServiceConnection(ctx context.Context, var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnectionslot.go index df30da026a88..ade59122646d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdaterelayserviceconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateRelayServiceConnectionSlot(ctx context.Cont var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainer.go index 5d5cf5440ebb..dfcf5fb0bf7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainer.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateSiteContainer(ctx context.Context, id Sitec var model SiteContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainerslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainerslot.go index 2c906d04f918..d122bbc52dad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainerslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatesitecontainerslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateSiteContainerSlot(ctx context.Context, id S var model SiteContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go index d2c9fca2d787..fcc6949b4316 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheck.go @@ -51,7 +51,6 @@ func (c WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheck(ctx var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go index 7ababeb64deb..d5f3050db94f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdateswiftvirtualnetworkconnectionwithcheckslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) CreateOrUpdateSwiftVirtualNetworkConnectionWithCheckSlot( var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnection.go index c98acf2757f2..2b041462b622 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateVnetConnection(ctx context.Context, id Virt var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongateway.go index f7c2605a07da..0f1c95c3f395 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongateway.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateVnetConnectionGateway(ctx context.Context, var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongatewayslot.go index a4040491cd66..d09166ca8e23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongatewayslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectiongatewayslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateVnetConnectionGatewaySlot(ctx context.Conte var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectionslot.go index 060b5673b5ad..ca68e315257d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_createorupdatevnetconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) CreateOrUpdateVnetConnectionSlot(ctx context.Context, id var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_delete.go index 491e0c6eca14..9849348f6db8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_delete.go @@ -35,6 +35,7 @@ func (o DeleteOperationOptions) ToHeaders() *client.Headers { func (o DeleteOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deleteslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deleteslot.go index c2d4db43a525..67b4c2dcc067 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deleteslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deleteslot.go @@ -34,6 +34,7 @@ func (o DeleteSlotOperationOptions) ToHeaders() *client.Headers { func (o DeleteSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go index 7416e19fd096..dd5b73ad1b43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrol.go @@ -34,6 +34,7 @@ func (o DeleteSourceControlOperationOptions) ToHeaders() *client.Headers { func (o DeleteSourceControlOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go index 571dfbab3abb..45220bcdbd1c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_deletesourcecontrolslot.go @@ -33,6 +33,7 @@ func (o DeleteSourceControlSlotOperationOptions) ToHeaders() *client.Headers { func (o DeleteSourceControlSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackup.go index a1d107c462f9..85b417c4364a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackup.go @@ -51,7 +51,6 @@ func (c WebAppsClient) DiscoverBackup(ctx context.Context, id commonids.AppServi var model RestoreRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackupslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackupslot.go index 15773ae16b5d..bc2c9a593cbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackupslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_discoverbackupslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) DiscoverBackupSlot(ctx context.Context, id SlotId, input var model RestoreRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_get.go index 23962fb39aa5..310664587150 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_get.go @@ -46,7 +46,6 @@ func (c WebAppsClient) Get(ctx context.Context, id commonids.AppServiceId) (resu var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreference.go index 29c9f5b97a8e..f27fab513187 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreference.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreference.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetAppSettingKeyVaultReference(ctx context.Context, id Ap var model ApiKVReference result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreferenceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreferenceslot.go index 4dd14572ebb7..99870c87c7b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreferenceslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getappsettingkeyvaultreferenceslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetAppSettingKeyVaultReferenceSlot(ctx context.Context, i var model ApiKVReference result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettings.go index dab06c298677..5deb735be936 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettings.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetAuthSettings(ctx context.Context, id commonids.AppServ var model SiteAuthSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsslot.go index 1a60695f6286..8e8037249376 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetAuthSettingsSlot(ctx context.Context, id SlotId) (resu var model SiteAuthSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2.go index fb5709f70739..a0504e9fd96e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetAuthSettingsV2(ctx context.Context, id commonids.AppSe var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2slot.go index aa047a0dfd31..1709a5010c12 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2slot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2slot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetAuthSettingsV2Slot(ctx context.Context, id SlotId) (re var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecrets.go index 01bf74554cfb..124903a090dd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecrets.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetAuthSettingsV2WithoutSecrets(ctx context.Context, id c var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecretsslot.go index 77753e1df7af..a969211442f9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecretsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getauthsettingsv2withoutsecretsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetAuthSettingsV2WithoutSecretsSlot(ctx context.Context, var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfiguration.go index 2f529b24e694..89906332ea32 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfiguration.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetBackupConfiguration(ctx context.Context, id commonids. var model BackupRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfigurationslot.go index 865164a69ace..7be87a5817af 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupconfigurationslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetBackupConfigurationSlot(ctx context.Context, id SlotId var model BackupRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatus.go index 24a6bb275d06..ab296926328a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatus.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetBackupStatus(ctx context.Context, id BackupId) (result var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatusslot.go index a56211ca8543..0e862af25fb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatusslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getbackupstatusslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetBackupStatusSlot(ctx context.Context, id SlotBackupId) var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfiguration.go index 7651c296acfc..1d73ea645f6f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfiguration.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetConfiguration(ctx context.Context, id commonids.AppSer var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationslot.go index 9b190aed52bb..89546b08eb1d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetConfigurationSlot(ctx context.Context, id SlotId) (res var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshot.go index 0b163fa0d01f..016b9fcd3bf1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetConfigurationSnapshot(ctx context.Context, id Snapshot var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshotslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshotslot.go index 0923d5bafca2..80d0457f72f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshotslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getconfigurationsnapshotslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetConfigurationSnapshotSlot(ctx context.Context, id WebS var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszip.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszip.go index 2f8ced54505b..b07903561478 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszip.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszip.go @@ -48,7 +48,6 @@ func (c WebAppsClient) GetContainerLogsZip(ctx context.Context, id commonids.App var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszipslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszipslot.go index 7fa0bf627277..080f4f9691c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszipslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontainerlogszipslot.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetContainerLogsZipSlot(ctx context.Context, id SlotId) ( var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjob.go index 9070b5b91907..9f5a071f437d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjob.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetContinuousWebJob(ctx context.Context, id ContinuousWeb var model ContinuousWebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjobslot.go index 647b7a575574..8d4e01c6c043 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjobslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getcontinuouswebjobslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetContinuousWebJobSlot(ctx context.Context, id SlotConti var model ContinuousWebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeployment.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeployment.go index 02efcfee65fb..0355511e44ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeployment.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeployment.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetDeployment(ctx context.Context, id DeploymentId) (resu var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeploymentslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeploymentslot.go index f382ca1b97ad..4ab616abcec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeploymentslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdeploymentslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetDeploymentSlot(ctx context.Context, id SlotDeploymentI var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfiguration.go index 2995cd9178b2..0612d0c160c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfiguration.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetDiagnosticLogsConfiguration(ctx context.Context, id co var model SiteLogsConfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfigurationslot.go index ea9587ae477f..aef303209aca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdiagnosticlogsconfigurationslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetDiagnosticLogsConfigurationSlot(ctx context.Context, i var model SiteLogsConfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifier.go index 6b9014ae5b19..44658be8e1a2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifier.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetDomainOwnershipIdentifier(ctx context.Context, id Doma var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifierslot.go index 5b5d74045324..a2e91d0b8283 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifierslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getdomainownershipidentifierslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetDomainOwnershipIdentifierSlot(ctx context.Context, id var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowed.go index cb3b41f0b65b..3fb4b79a51b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowed.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowed.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetFtpAllowed(ctx context.Context, id commonids.AppServic var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowedslot.go index 67419725f8e2..2b3a8004dfcc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowedslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getftpallowedslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetFtpAllowedSlot(ctx context.Context, id SlotId) (result var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunction.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunction.go index 91ccc8cdb31a..c119bf71fa2f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunction.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunction.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetFunction(ctx context.Context, id FunctionId) (result G var model FunctionEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintoken.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintoken.go index 319970db3c15..cef965d4ee44 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintoken.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintoken.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetFunctionsAdminToken(ctx context.Context, id commonids. var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintokenslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintokenslot.go index 71cbb37de0dd..cf37de92f477 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintokenslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getfunctionsadmintokenslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetFunctionsAdminTokenSlot(ctx context.Context, id SlotId var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebinding.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebinding.go index 1f8ada5414de..023c7f1797c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebinding.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebinding.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetHostNameBinding(ctx context.Context, id HostNameBindin var model HostNameBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebindingslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebindingslot.go index acd9260e3267..d96ab86f748f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebindingslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethostnamebindingslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetHostNameBindingSlot(ctx context.Context, id SlotHostNa var model HostNameBinding result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnection.go index 6824a6a3881a..f018d1b6ec8b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnection.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetHybridConnection(ctx context.Context, id RelayId) (res var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnectionslot.go index a73bc3e506eb..e36e2d5b9840 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gethybridconnectionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetHybridConnectionSlot(ctx context.Context, id SlotHybri var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancefunctionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancefunctionslot.go index ac388ddbe1ef..6e95d906f089 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancefunctionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancefunctionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceFunctionSlot(ctx context.Context, id SlotFunct var model FunctionEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfo.go index ccab5c5b65ba..0d535788c592 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfo.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfo.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceInfo(ctx context.Context, id InstanceId) (resu var model WebSiteInstanceStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfoslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfoslot.go index eca65b26f1d3..7ac3ffaf1c8f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfoslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceinfoslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceInfoSlot(ctx context.Context, id SlotInstanceI var model WebSiteInstanceStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylog.go index 54d4380e6c3d..5f0ecd4b9d36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylog.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceMSDeployLog(ctx context.Context, id InstanceId var model MSDeployLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylogslot.go index 3e41c70cf7ee..4aa95f5cdc1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylogslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploylogslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceMSDeployLogSlot(ctx context.Context, id SlotIn var model MSDeployLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatus.go index 3516dc8c1f02..9b0781e0511f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatus.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceMsDeployStatus(ctx context.Context, id Instanc var model MSDeployStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatusslot.go index 12bfe3d0fcfd..08c034a5c4b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatusslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstancemsdeploystatusslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceMsDeployStatusSlot(ctx context.Context, id Slo var model MSDeployStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocess.go index 7d686bc51f8a..32dd68b49cb4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocess.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceProcess(ctx context.Context, id InstanceProces var model ProcessInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdump.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdump.go index 97c4de7e3d5d..b3c0570e9440 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdump.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdump.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceProcessDump(ctx context.Context, id InstancePr var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdumpslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdumpslot.go index e32d3e6a2a89..f8e66cc080ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdumpslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessdumpslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetInstanceProcessDumpSlot(ctx context.Context, id SlotIn var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmodule.go index b529a1ca7143..f936b7fea0e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmodule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmodule.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceProcessModule(ctx context.Context, id Instance var model ProcessModuleInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmoduleslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmoduleslot.go index 0e1009c3dce3..f68ff9444981 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmoduleslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessmoduleslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceProcessModuleSlot(ctx context.Context, id Slot var model ProcessModuleInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessslot.go index fc66e9a0fac8..a799b1317f0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceprocessslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceProcessSlot(ctx context.Context, id SlotInstan var model ProcessInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceworkflowslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceworkflowslot.go index 3edbdf238488..8ef0c8f31c8d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceworkflowslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getinstanceworkflowslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetInstanceWorkflowSlot(ctx context.Context, id SlotWorkf var model WorkflowEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatus.go index 9186da2ddf17..f05e2dd6aea6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatus.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetMigrateMySqlStatus(ctx context.Context, id commonids.A var model MigrateMySqlStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatusslot.go index 1916a1c2f04e..973c158cbbf3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatusslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmigratemysqlstatusslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetMigrateMySqlStatusSlot(ctx context.Context, id SlotId) var model MigrateMySqlStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylog.go index 1fec3d2b551a..e284c016eead 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylog.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetMSDeployLog(ctx context.Context, id commonids.AppServi var model MSDeployLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylogslot.go index a71482357876..2f843d009461 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylogslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploylogslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetMSDeployLogSlot(ctx context.Context, id SlotId) (resul var model MSDeployLog result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatus.go index 79957b82c587..2b61aa427cde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatus.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetMSDeployStatus(ctx context.Context, id commonids.AppSe var model MSDeployStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatusslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatusslot.go index 33ee57e263f3..d644965e7fa2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatusslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getmsdeploystatusslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetMSDeployStatusSlot(ctx context.Context, id SlotId) (re var model MSDeployStatus result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktraces.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktraces.go index 05a761a58cf8..c7baf1f6f32e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktraces.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktraces.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetNetworkTraces(ctx context.Context, id NetworkTraceId) var model []NetworkTrace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslot.go index fac98d3e21a0..be577fd23820 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetNetworkTracesSlot(ctx context.Context, id SlotNetworkT var model []NetworkTrace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslotv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslotv2.go index f4cfa7b02659..6adf10883324 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslotv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesslotv2.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetNetworkTracesSlotV2(ctx context.Context, id SiteSlotNe var model []NetworkTrace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesv2.go index 075b0ec98e09..a647b7df7d6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getnetworktracesv2.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetNetworkTracesV2(ctx context.Context, id SiteNetworkTra var model []NetworkTrace result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getonedeploystatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getonedeploystatus.go index 0192ff896615..861f9c0d26de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getonedeploystatus.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getonedeploystatus.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetOneDeployStatus(ctx context.Context, id commonids.AppS var model interface{} result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddon.go index 3a5194b7b4b2..cab1e802f61d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddon.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddon.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPremierAddOn(ctx context.Context, id PremierAddonId) ( var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddonslot.go index 56055107545e..b18d56f259bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddonslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpremieraddonslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPremierAddOnSlot(ctx context.Context, id SlotPremierAd var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccess.go index dce43e8e8df2..a475aa2c1072 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccess.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetPrivateAccess(ctx context.Context, id commonids.AppSer var model PrivateAccess result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccessslot.go index bfb25e1f5815..5ca04dcfd350 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccessslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateaccessslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetPrivateAccessSlot(ctx context.Context, id SlotId) (res var model PrivateAccess result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnection.go index 26c7871fbbf4..078deb2c24ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnection.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPrivateEndpointConnection(ctx context.Context, id Priv var model RemotePrivateEndpointConnectionARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionslot.go index 9c25a41677f4..dc1da065c8ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivateendpointconnectionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPrivateEndpointConnectionSlot(ctx context.Context, id var model RemotePrivateEndpointConnectionARMResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresources.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresources.go index 667be0c0c726..7a0922f7157c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresources.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresources.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetPrivateLinkResources(ctx context.Context, id commonids var model PrivateLinkResourcesWrapper result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresourcesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresourcesslot.go index d2b79716d146..3dc2ee16463e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresourcesslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprivatelinkresourcesslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetPrivateLinkResourcesSlot(ctx context.Context, id SlotI var model PrivateLinkResourcesWrapper result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocess.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocess.go index 42442c0b2924..f53ec86fa974 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocess.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocess.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetProcess(ctx context.Context, id ProcessId) (result Get var model ProcessInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdump.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdump.go index e4ed77f79f6c..4aa575213d94 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdump.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdump.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetProcessDump(ctx context.Context, id ProcessId) (result var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdumpslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdumpslot.go index c46e7a62c3d6..b904b54a53d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdumpslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessdumpslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetProcessDumpSlot(ctx context.Context, id SlotProcessId) var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmodule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmodule.go index b69821fe4ba4..84621827e5b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmodule.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmodule.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetProcessModule(ctx context.Context, id ModuleId) (resul var model ProcessModuleInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmoduleslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmoduleslot.go index 6e1e3d05fc7b..eb70f4f60770 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmoduleslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessmoduleslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetProcessModuleSlot(ctx context.Context, id ProcessModul var model ProcessModuleInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessslot.go index 6d688c861194..125ebe5550c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getprocessslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetProcessSlot(ctx context.Context, id SlotProcessId) (re var model ProcessInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificate.go index 294c7a1c1cd7..d2b18926090b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificate.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPublicCertificate(ctx context.Context, id PublicCertif var model PublicCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificateslot.go index 20a409afcce5..81a159edd9f7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificateslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getpubliccertificateslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetPublicCertificateSlot(ctx context.Context, id SlotPubl var model PublicCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnection.go index e709d3033c42..279bcaac0fc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnection.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetRelayServiceConnection(ctx context.Context, id HybridC var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnectionslot.go index 5cf0fc7ce2e1..8260c31d4d5e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getrelayserviceconnectionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetRelayServiceConnectionSlot(ctx context.Context, id Slo var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowed.go index 588b11ec2677..9b0418a2f0fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowed.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowed.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetScmAllowed(ctx context.Context, id commonids.AppServic var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowedslot.go index 3dd063f8aca5..53a7a3a23313 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowedslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getscmallowedslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetScmAllowedSlot(ctx context.Context, id SlotId) (result var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreference.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreference.go index 547724012d7b..aff9e649a279 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreference.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreference.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReference(ctx context.Cont var model ApiKVReference result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go index ae2b9b612589..9cd169fbf002 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteconnectionstringkeyvaultreferenceslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteConnectionStringKeyVaultReferenceSlot(ctx context. var model ApiKVReference result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainer.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainer.go index 9c4d7d78224a..bd1302d106fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainer.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainer.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteContainer(ctx context.Context, id SitecontainerId) var model SiteContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainerslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainerslot.go index dc65c943da91..0f130308780d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainerslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitecontainerslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteContainerSlot(ctx context.Context, id SlotSitecont var model SiteContainer result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextension.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextension.go index e4a475e766de..0a6945f3b7d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextension.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextension.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteExtension(ctx context.Context, id SiteExtensionId) var model SiteExtensionInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextensionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextensionslot.go index 1bae54da3e34..e54acbb50efe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextensionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsiteextensionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSiteExtensionSlot(ctx context.Context, id SlotSiteExte var model SiteExtensionInfo result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflag.go index 7f2d3f3ddd0b..63dbaae3ef50 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflag.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflag.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetSitePhpErrorLogFlag(ctx context.Context, id commonids. var model SitePhpErrorLogFlag result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflagslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflagslot.go index 170b11be7bcd..4476bb154963 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflagslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsitephperrorlogflagslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetSitePhpErrorLogFlagSlot(ctx context.Context, id SlotId var model SitePhpErrorLogFlag result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getslot.go index fd2c98b535c0..96f473322517 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetSlot(ctx context.Context, id SlotId) (result GetSlotOp var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrol.go index 7679f9feaf00..8f1380fc15a8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrol.go @@ -49,7 +49,6 @@ func (c WebAppsClient) GetSourceControl(ctx context.Context, id commonids.AppSer var model SiteSourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrolslot.go index d06bb3ad906f..59f28a81eebd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrolslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getsourcecontrolslot.go @@ -48,7 +48,6 @@ func (c WebAppsClient) GetSourceControlSlot(ctx context.Context, id SlotId) (res var model SiteSourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnection.go index 1914aa45261b..8d24a59f9ff2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnection.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetSwiftVirtualNetworkConnection(ctx context.Context, id var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnectionslot.go index 8f25ed183cf8..c94d33122989 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getswiftvirtualnetworkconnectionslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) GetSwiftVirtualNetworkConnectionSlot(ctx context.Context, var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjob.go index fa85150bc222..f408fb21bb1f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjob.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetTriggeredWebJob(ctx context.Context, id TriggeredWebJo var model TriggeredWebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistory.go index 25d867bd171e..d8dac67561ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistory.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistory.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetTriggeredWebJobHistory(ctx context.Context, id History var model TriggeredJobHistory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistoryslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistoryslot.go index da1075c7ef8c..db0ae2aa46c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistoryslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobhistoryslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetTriggeredWebJobHistorySlot(ctx context.Context, id Tri var model TriggeredJobHistory result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobslot.go index df601d6b8e02..9d5fdbad9761 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_gettriggeredwebjobslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetTriggeredWebJobSlot(ctx context.Context, id SlotTrigge var model TriggeredWebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnection.go index 8cbb17041d90..4568fe01196d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnection.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetVnetConnection(ctx context.Context, id VirtualNetworkC var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongateway.go index d7147b08b2f2..71c79ea8c650 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongateway.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetVnetConnectionGateway(ctx context.Context, id GatewayI var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongatewayslot.go index e3f7ab94a05a..7abcca7f5ab1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongatewayslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectiongatewayslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetVnetConnectionGatewaySlot(ctx context.Context, id Slot var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectionslot.go index 225b53b1c199..d212cb001701 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getvnetconnectionslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetVnetConnectionSlot(ctx context.Context, id SlotVirtual var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjob.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjob.go index 1544e50a1204..283a114229de 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjob.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjob.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetWebJob(ctx context.Context, id WebJobId) (result GetWe var model WebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjobslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjobslot.go index 12438b92757e..e1b57da034ca 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjobslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebjobslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetWebJobSlot(ctx context.Context, id SlotWebJobId) (resu var model WebJob result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogs.go index a78a69fc9bec..b663861a930f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogs.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogs.go @@ -48,7 +48,6 @@ func (c WebAppsClient) GetWebSiteContainerLogs(ctx context.Context, id commonids var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogsslot.go index 6ab570eb78f9..6446530d54ed 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getwebsitecontainerlogsslot.go @@ -47,7 +47,6 @@ func (c WebAppsClient) GetWebSiteContainerLogsSlot(ctx context.Context, id SlotI var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getworkflow.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getworkflow.go index 6bc23af103fb..5588ed7e61d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getworkflow.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_getworkflow.go @@ -45,7 +45,6 @@ func (c WebAppsClient) GetWorkflow(ctx context.Context, id WorkflowId) (result G var model WorkflowEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneable.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneable.go index 1dc89371c3b2..0603d8f018ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneable.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneable.go @@ -47,7 +47,6 @@ func (c WebAppsClient) IsCloneable(ctx context.Context, id commonids.AppServiceI var model SiteCloneability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneableslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneableslot.go index c28faba968a0..e971d3c63e46 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneableslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_iscloneableslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) IsCloneableSlot(ctx context.Context, id SlotId) (result I var model SiteCloneability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettings.go index 2fe6d0b596f7..ce70c9042fab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettings.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListApplicationSettings(ctx context.Context, id commonids var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettingsslot.go index afbe704c2296..7eefeaa0feb3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listapplicationsettingsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListApplicationSettingsSlot(ctx context.Context, id SlotI var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccounts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccounts.go index 022ded5e7f42..bc5130832733 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccounts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccounts.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListAzureStorageAccounts(ctx context.Context, id commonid var model AzureStoragePropertyDictionaryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccountsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccountsslot.go index 1ae48f64d6f0..c5a1cd2c3abe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccountsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listazurestorageaccountsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListAzureStorageAccountsSlot(ctx context.Context, id Slot var model AzureStoragePropertyDictionaryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecrets.go index 3334a5ea20b3..31d9021a61b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecrets.go @@ -50,7 +50,6 @@ func (c WebAppsClient) ListBackupStatusSecrets(ctx context.Context, id BackupId, var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecretsslot.go index 36a85d16ed57..ddc128b594c5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecretsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbackupstatussecretsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) ListBackupStatusSecretsSlot(ctx context.Context, id SlotB var model BackupItem result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go index 3f9b2569d775..0453dace48df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listbyresourcegroup.go @@ -40,6 +40,7 @@ func (o ListByResourceGroupOperationOptions) ToHeaders() *client.Headers { func (o ListByResourceGroupOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstrings.go index dedfccfc4dcc..64554b4fd90b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstrings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstrings.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListConnectionStrings(ctx context.Context, id commonids.A var model ConnectionStringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstringsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstringsslot.go index 3498220d3984..4f5c82268e83 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstringsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listconnectionstringsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListConnectionStringsSlot(ctx context.Context, id SlotId) var model ConnectionStringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlog.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlog.go index 35f887d50edf..c08913fb632c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlog.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlog.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListDeploymentLog(ctx context.Context, id DeploymentId) ( var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlogslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlogslot.go index 570627468c5c..ac50302c6389 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlogslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listdeploymentlogslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListDeploymentLogSlot(ctx context.Context, id SlotDeploym var model Deployment result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeys.go index 7bd6682f1cc0..8408b4dae451 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeys.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListFunctionKeys(ctx context.Context, id FunctionId) (res var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeysslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeysslot.go index 77aae0aaf705..08a6e0172a6b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeysslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionkeysslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListFunctionKeysSlot(ctx context.Context, id SlotFunction var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecrets.go index 3f26b8322dbd..45eb50cf982a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecrets.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListFunctionSecrets(ctx context.Context, id FunctionId) ( var model FunctionSecrets result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecretsslot.go index a8354756f45d..15de188c3d52 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecretsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listfunctionsecretsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListFunctionSecretsSlot(ctx context.Context, id SlotFunct var model FunctionSecrets result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeys.go index 64dcbd8bfb6e..fabdace3a5d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeys.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListHostKeys(ctx context.Context, id commonids.AppService var model HostKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeysslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeysslot.go index af23867eada7..750e7a12832f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeysslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhostkeysslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListHostKeysSlot(ctx context.Context, id SlotId) (result var model HostKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnections.go index 08364fcb2af9..0aea9bb9d04e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnections.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListHybridConnections(ctx context.Context, id commonids.A var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnectionsslot.go index 7508c1275e56..d6ec6a8ec2bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnectionsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listhybridconnectionsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListHybridConnectionsSlot(ctx context.Context, id SlotId) var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadata.go index ecb2e7ae7da6..8998ba62c0d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadata.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListMetadata(ctx context.Context, id commonids.AppService var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadataslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadataslot.go index f392f8f60862..b2dcfca269da 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadataslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listmetadataslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListMetadataSlot(ctx context.Context, id SlotId) (result var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeatures.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeatures.go index 5cd439a53af4..fde1a7c3d738 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeatures.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeatures.go @@ -45,7 +45,6 @@ func (c WebAppsClient) ListNetworkFeatures(ctx context.Context, id NetworkFeatur var model NetworkFeatures result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeaturesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeaturesslot.go index 41badd13da9e..c91b5baede06 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeaturesslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listnetworkfeaturesslot.go @@ -45,7 +45,6 @@ func (c WebAppsClient) ListNetworkFeaturesSlot(ctx context.Context, id SlotNetwo var model NetworkFeatures result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go index 3e795219b6f8..ab98305afda7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncounters.go @@ -40,6 +40,7 @@ func (o ListPerfMonCountersOperationOptions) ToHeaders() *client.Headers { func (o ListPerfMonCountersOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go index 3a2754f799eb..b82ebb85e22f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listperfmoncountersslot.go @@ -39,6 +39,7 @@ func (o ListPerfMonCountersSlotOperationOptions) ToHeaders() *client.Headers { func (o ListPerfMonCountersSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddons.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddons.go index 0215cabcf576..b11bf4233c35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddons.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddons.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListPremierAddOns(ctx context.Context, id commonids.AppSe var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddonsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddonsslot.go index 044b2912f5a0..73dbf683ae90 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddonsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpremieraddonsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListPremierAddOnsSlot(ctx context.Context, id SlotId) (re var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecrets.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecrets.go index 7da7da0b23ca..07b6308ca62d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecrets.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecrets.go @@ -51,7 +51,6 @@ func (c WebAppsClient) ListPublishingProfileXmlWithSecrets(ctx context.Context, var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go index 2a4701423fd9..7f32d2691237 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listpublishingprofilexmlwithsecretsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) ListPublishingProfileXmlWithSecretsSlot(ctx context.Conte var model []byte result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnections.go index d7e18cd89e8c..de929a519e35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnections.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListRelayServiceConnections(ctx context.Context, id commo var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnectionsslot.go index 1f4ad19a8c9c..56b6752c72f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnectionsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listrelayserviceconnectionsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListRelayServiceConnectionsSlot(ctx context.Context, id S var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettings.go index c62e23599bcc..99b7cd099b76 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettings.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListSitePushSettings(ctx context.Context, id commonids.Ap var model PushSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettingsslot.go index c68fba350a39..38b184258081 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsitepushsettingsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListSitePushSettingsSlot(ctx context.Context, id SlotId) var model PushSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listslotconfigurationnames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listslotconfigurationnames.go index 06953e01e3f5..ccfa9dc0e21d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listslotconfigurationnames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listslotconfigurationnames.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListSlotConfigurationNames(ctx context.Context, id common var model SlotConfigNamesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggers.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggers.go index e92a58749919..3ba753d99a51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggers.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggers.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListSyncFunctionTriggers(ctx context.Context, id commonid var model FunctionSecrets result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggersslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggersslot.go index e00d4fd2f399..87112ea8e9a1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggersslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listsyncfunctiontriggersslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListSyncFunctionTriggersSlot(ctx context.Context, id Slot var model FunctionSecrets result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusages.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusages.go index 6a245dab93f2..09825b54c80d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusages.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusages.go @@ -40,6 +40,7 @@ func (o ListUsagesOperationOptions) ToHeaders() *client.Headers { func (o ListUsagesOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go index cbcbac0a262f..0f5459ebad6c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listusagesslot.go @@ -39,6 +39,7 @@ func (o ListUsagesSlotOperationOptions) ToHeaders() *client.Headers { func (o ListUsagesSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnections.go index 72289ddc25f1..9257086d2e27 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnections.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListVnetConnections(ctx context.Context, id commonids.App var model []VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnectionsslot.go index 8018d954faf1..942cd6b0476c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnectionsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listvnetconnectionsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListVnetConnectionsSlot(ctx context.Context, id SlotId) ( var model []VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnections.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnections.go index 05c1769e6c40..4c7d04686acf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnections.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnections.go @@ -47,7 +47,6 @@ func (c WebAppsClient) ListWorkflowsConnections(ctx context.Context, id commonid var model WorkflowEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnectionsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnectionsslot.go index b1319800e9bb..b85e7a72003a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnectionsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_listworkflowsconnectionsslot.go @@ -46,7 +46,6 @@ func (c WebAppsClient) ListWorkflowsConnectionsSlot(ctx context.Context, id Slot var model WorkflowEnvelope result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_migratestorage.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_migratestorage.go index f59a0b4a276e..1fb58c4f7959 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_migratestorage.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_migratestorage.go @@ -38,6 +38,7 @@ func (o MigrateStorageOperationOptions) ToHeaders() *client.Headers { func (o MigrateStorageOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnet.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnet.go index 63ec49104fc1..419ea335744e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnet.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnet.go @@ -51,7 +51,6 @@ func (c WebAppsClient) PutPrivateAccessVnet(ctx context.Context, id commonids.Ap var model PrivateAccess result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnetslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnetslot.go index 465f0eb8449e..a2031d0024bf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnetslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_putprivateaccessvnetslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) PutPrivateAccessVnetSlot(ctx context.Context, id SlotId, var model PrivateAccess result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restart.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restart.go index 4634c74caa79..47d9224417a4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restart.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restart.go @@ -35,6 +35,7 @@ func (o RestartOperationOptions) ToHeaders() *client.Headers { func (o RestartOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restartslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restartslot.go index 28902482a9c7..ca81876358dc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restartslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_restartslot.go @@ -34,6 +34,7 @@ func (o RestartSlotOperationOptions) ToHeaders() *client.Headers { func (o RestartSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go index fa037fe22764..de35cae8c37d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktrace.go @@ -40,6 +40,7 @@ func (o StartNetworkTraceOperationOptions) ToHeaders() *client.Headers { func (o StartNetworkTraceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go index 8390b0d5feb4..f4ecbb2878c1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startnetworktraceslot.go @@ -39,6 +39,7 @@ func (o StartNetworkTraceSlotOperationOptions) ToHeaders() *client.Headers { func (o StartNetworkTraceSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go index 8ca69360afeb..c4aceaac67ab 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktrace.go @@ -37,6 +37,7 @@ func (o StartWebSiteNetworkTraceOperationOptions) ToHeaders() *client.Headers { func (o StartWebSiteNetworkTraceOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -83,7 +84,6 @@ func (c WebAppsClient) StartWebSiteNetworkTrace(ctx context.Context, id commonid var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go index 9fd9a12487fe..c2f83e729643 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperation.go @@ -40,6 +40,7 @@ func (o StartWebSiteNetworkTraceOperationOperationOptions) ToHeaders() *client.H func (o StartWebSiteNetworkTraceOperationOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go index 73249d3a29a8..ceb485a4310b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceoperationslot.go @@ -39,6 +39,7 @@ func (o StartWebSiteNetworkTraceOperationSlotOperationOptions) ToHeaders() *clie func (o StartWebSiteNetworkTraceOperationSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go index 697b0f20648c..488181959e23 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_startwebsitenetworktraceslot.go @@ -36,6 +36,7 @@ func (o StartWebSiteNetworkTraceSlotOperationOptions) ToHeaders() *client.Header func (o StartWebSiteNetworkTraceSlotOperationOptions) ToOData() *odata.Query { out := odata.Query{} + return &out } @@ -82,7 +83,6 @@ func (c WebAppsClient) StartWebSiteNetworkTraceSlot(ctx context.Context, id Slot var model string result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_update.go index ed1ba13fa404..ce51465dd901 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_update.go @@ -51,7 +51,6 @@ func (c WebAppsClient) Update(ctx context.Context, id commonids.AppServiceId, in var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettings.go index f60ab8838c99..a6abe2e7f9fe 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettings.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateApplicationSettings(ctx context.Context, id commoni var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettingsslot.go index b0382487cf89..dabaad9a1bb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateapplicationsettingsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateApplicationSettingsSlot(ctx context.Context, id Slo var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettings.go index ff363074bef2..c4721b446e69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettings.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateAuthSettings(ctx context.Context, id commonids.AppS var model SiteAuthSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsslot.go index 434d233bfd4a..efd12302a3c3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateAuthSettingsSlot(ctx context.Context, id SlotId, in var model SiteAuthSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2.go index d4fce76e8de1..630b45422dbf 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateAuthSettingsV2(ctx context.Context, id commonids.Ap var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2slot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2slot.go index e6ea9a8b1eea..6e054358fe5a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2slot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateauthsettingsv2slot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateAuthSettingsV2Slot(ctx context.Context, id SlotId, var model SiteAuthSettingsV2 result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccounts.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccounts.go index a3ae2d6b3c93..bbda87f586c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccounts.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccounts.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateAzureStorageAccounts(ctx context.Context, id common var model AzureStoragePropertyDictionaryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccountsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccountsslot.go index 16e730b1e994..de67b3d4cffc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccountsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateazurestorageaccountsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateAzureStorageAccountsSlot(ctx context.Context, id Sl var model AzureStoragePropertyDictionaryResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfiguration.go index b8bf6ec24e83..eadd42c46b4f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfiguration.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateBackupConfiguration(ctx context.Context, id commoni var model BackupRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfigurationslot.go index 74c8ef4b5e2f..6cc6c0db6dd9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatebackupconfigurationslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateBackupConfigurationSlot(ctx context.Context, id Slo var model BackupRequest result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfiguration.go index ace56a0e15a4..540effb84939 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfiguration.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateConfiguration(ctx context.Context, id commonids.App var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfigurationslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfigurationslot.go index 6909e91308f8..2b8a3c837d69 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfigurationslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconfigurationslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateConfigurationSlot(ctx context.Context, id SlotId, i var model SiteConfigResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstrings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstrings.go index 7d97ab27e333..e2583e323f7a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstrings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstrings.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateConnectionStrings(ctx context.Context, id commonids var model ConnectionStringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstringsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstringsslot.go index 197d01fa963d..02c8aab1742f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstringsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateconnectionstringsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateConnectionStringsSlot(ctx context.Context, id SlotI var model ConnectionStringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfig.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfig.go index 8885b9ada96a..3fd9dd8089b5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfig.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfig.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateDiagnosticLogsConfig(ctx context.Context, id common var model SiteLogsConfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfigslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfigslot.go index 7e46415c0a9b..76e26082497a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfigslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatediagnosticlogsconfigslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateDiagnosticLogsConfigSlot(ctx context.Context, id Sl var model SiteLogsConfig result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifier.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifier.go index e2f684a8ec69..e9926b92e045 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifier.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifier.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateDomainOwnershipIdentifier(ctx context.Context, id D var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifierslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifierslot.go index 118cec095ff2..8bfd226892c6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifierslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatedomainownershipidentifierslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateDomainOwnershipIdentifierSlot(ctx context.Context, var model Identifier result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowed.go index d8b2976c3096..fb80df44e083 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowed.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowed.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateFtpAllowed(ctx context.Context, id commonids.AppSer var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowedslot.go index 5e3125acabbf..8600093e952a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowedslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateftpallowedslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateFtpAllowedSlot(ctx context.Context, id SlotId, inpu var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnection.go index 3641ff27936a..14d186263b36 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateHybridConnection(ctx context.Context, id RelayId, i var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnectionslot.go index 51cc1d0206dd..8136fefe9af6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatehybridconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateHybridConnectionSlot(ctx context.Context, id SlotHy var model HybridConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadata.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadata.go index e5e463a26566..55294309b86d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadata.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadata.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateMetadata(ctx context.Context, id commonids.AppServi var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadataslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadataslot.go index 7f24c677cda8..99995876e7c0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadataslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatemetadataslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateMetadataSlot(ctx context.Context, id SlotId, input var model StringDictionary result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddon.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddon.go index 283da43f6b99..dcd3c9b2a8bb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddon.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddon.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdatePremierAddOn(ctx context.Context, id PremierAddonId var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddonslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddonslot.go index a37e30d7c27f..e1c27a4d55e4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddonslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatepremieraddonslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdatePremierAddOnSlot(ctx context.Context, id SlotPremie var model PremierAddOn result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnection.go index 3c8dfb4108d4..cd611e9ec202 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateRelayServiceConnection(ctx context.Context, id Hybr var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnectionslot.go index fca0b74fb39a..c24d82100f87 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updaterelayserviceconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateRelayServiceConnectionSlot(ctx context.Context, id var model RelayServiceConnectionEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowed.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowed.go index 0be20463210c..120d36290015 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowed.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowed.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateScmAllowed(ctx context.Context, id commonids.AppSer var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowedslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowedslot.go index f124b6f35265..a3243abfa633 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowedslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatescmallowedslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateScmAllowedSlot(ctx context.Context, id SlotId, inpu var model CsmPublishingCredentialsPoliciesEntity result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettings.go index 20b493aae8cc..668665c05d49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettings.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateSitePushSettings(ctx context.Context, id commonids. var model PushSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettingsslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettingsslot.go index 774c0e26cbdc..09988246b8c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettingsslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesitepushsettingsslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateSitePushSettingsSlot(ctx context.Context, id SlotId var model PushSettings result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslot.go index d7a0e90cd617..82afe00eea38 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateSlot(ctx context.Context, id SlotId, input SitePatc var model Site result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslotconfigurationnames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslotconfigurationnames.go index f4f5b05b9667..8eb1665dd4d8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslotconfigurationnames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateslotconfigurationnames.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateSlotConfigurationNames(ctx context.Context, id comm var model SlotConfigNamesResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrol.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrol.go index 792bf5a462bd..a9b4d29999ba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrol.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrol.go @@ -53,7 +53,6 @@ func (c WebAppsClient) UpdateSourceControl(ctx context.Context, id commonids.App var model SiteSourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrolslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrolslot.go index 5d25563b5d00..27063f728153 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrolslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatesourcecontrolslot.go @@ -52,7 +52,6 @@ func (c WebAppsClient) UpdateSourceControlSlot(ctx context.Context, id SlotId, i var model SiteSourceControl result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go index b54e54b619e3..1ed44d1b9453 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheck.go @@ -51,7 +51,6 @@ func (c WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheck(ctx context. var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go index 48bbaa559c81..86d0e38f499d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updateswiftvirtualnetworkconnectionwithcheckslot.go @@ -50,7 +50,6 @@ func (c WebAppsClient) UpdateSwiftVirtualNetworkConnectionWithCheckSlot(ctx cont var model SwiftVirtualNetwork result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnection.go index 987cb8fbff73..d24ddba20353 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnection.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateVnetConnection(ctx context.Context, id VirtualNetwo var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongateway.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongateway.go index dd57888f81e0..710e26ab2d62 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongateway.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongateway.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateVnetConnectionGateway(ctx context.Context, id Gatew var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongatewayslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongatewayslot.go index 1be5209f3641..e292d9dd430e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongatewayslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectiongatewayslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateVnetConnectionGatewaySlot(ctx context.Context, id S var model VnetGateway result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectionslot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectionslot.go index c076ea62f81c..1ce4e92a6406 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectionslot.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/method_updatevnetconnectionslot.go @@ -49,7 +49,6 @@ func (c WebAppsClient) UpdateVnetConnectionSlot(ctx context.Context, id SlotVirt var model VnetInfoResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/version.go index 3cc70e92e92f..488561f392b8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/web/2023-12-01/webapps/version.go @@ -1,12 +1,10 @@ package webapps -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-12-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webapps/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webapps/2023-12-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/README.md index 9b42f9fea68d..3ccb7d18749f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub` Documentation -The `webpubsub` SDK allows for interaction with the Azure Resource Manager Service `webpubsub` (API Version `2023-02-01`). +The `webpubsub` SDK allows for interaction with Azure Resource Manager `webpubsub` (API Version `2023-02-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := webpubsub.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := webpubsub.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := webpubsub.NameAvailabilityParameters{ // ... @@ -46,7 +46,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := webpubsub.WebPubSubResource{ // ... @@ -63,7 +63,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customCertificateValue") +id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") payload := webpubsub.CustomCertificate{ // ... @@ -80,7 +80,7 @@ if err := client.CustomCertificatesCreateOrUpdateThenPoll(ctx, id, payload); err ```go ctx := context.TODO() -id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customCertificateValue") +id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") read, err := client.CustomCertificatesDelete(ctx, id) if err != nil { @@ -96,7 +96,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customCertificateValue") +id := webpubsub.NewCustomCertificateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "certificateName") read, err := client.CustomCertificatesGet(ctx, id) if err != nil { @@ -112,7 +112,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.CustomCertificatesList(ctx, id)` can be used to do batched pagination items, err := client.CustomCertificatesListComplete(ctx, id) @@ -129,7 +129,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customDomainValue") +id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") payload := webpubsub.CustomDomain{ // ... @@ -146,7 +146,7 @@ if err := client.CustomDomainsCreateOrUpdateThenPoll(ctx, id, payload); err != n ```go ctx := context.TODO() -id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customDomainValue") +id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -158,7 +158,7 @@ if err := client.CustomDomainsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "customDomainValue") +id := webpubsub.NewCustomDomainID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "name") read, err := client.CustomDomainsGet(ctx, id) if err != nil { @@ -174,7 +174,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.CustomDomainsList(ctx, id)` can be used to do batched pagination items, err := client.CustomDomainsListComplete(ctx, id) @@ -191,7 +191,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -203,7 +203,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.Get(ctx, id) if err != nil { @@ -219,7 +219,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "hubValue") +id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "hubName") payload := webpubsub.WebPubSubHub{ // ... @@ -236,7 +236,7 @@ if err := client.HubsCreateOrUpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "hubValue") +id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "hubName") if err := client.HubsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -248,7 +248,7 @@ if err := client.HubsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "hubValue") +id := webpubsub.NewHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "hubName") read, err := client.HubsGet(ctx, id) if err != nil { @@ -264,7 +264,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.HubsList(ctx, id)` can be used to do batched pagination items, err := client.HubsListComplete(ctx, id) @@ -315,7 +315,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") read, err := client.ListKeys(ctx, id) if err != nil { @@ -331,7 +331,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.ListSkus(ctx, id)` can be used to do batched pagination items, err := client.ListSkusComplete(ctx, id) @@ -348,7 +348,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "privateEndpointConnectionValue") +id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") if err := client.PrivateEndpointConnectionsDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -360,7 +360,7 @@ if err := client.PrivateEndpointConnectionsDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "privateEndpointConnectionValue") +id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") read, err := client.PrivateEndpointConnectionsGet(ctx, id) if err != nil { @@ -376,7 +376,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.PrivateEndpointConnectionsList(ctx, id)` can be used to do batched pagination items, err := client.PrivateEndpointConnectionsListComplete(ctx, id) @@ -393,7 +393,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "privateEndpointConnectionValue") +id := webpubsub.NewPrivateEndpointConnectionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "privateEndpointConnectionName") payload := webpubsub.PrivateEndpointConnection{ // ... @@ -414,7 +414,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.PrivateLinkResourcesList(ctx, id)` can be used to do batched pagination items, err := client.PrivateLinkResourcesListComplete(ctx, id) @@ -431,7 +431,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := webpubsub.RegenerateKeyParameters{ // ... @@ -448,7 +448,7 @@ if err := client.RegenerateKeyThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") if err := client.RestartThenPoll(ctx, id); err != nil { // handle the error @@ -460,7 +460,7 @@ if err := client.RestartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "sharedPrivateLinkResourceValue") +id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") payload := webpubsub.SharedPrivateLinkResource{ // ... @@ -477,7 +477,7 @@ if err := client.SharedPrivateLinkResourcesCreateOrUpdateThenPoll(ctx, id, paylo ```go ctx := context.TODO() -id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "sharedPrivateLinkResourceValue") +id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") if err := client.SharedPrivateLinkResourcesDeleteThenPoll(ctx, id); err != nil { // handle the error @@ -489,7 +489,7 @@ if err := client.SharedPrivateLinkResourcesDeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue", "sharedPrivateLinkResourceValue") +id := webpubsub.NewSharedPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName", "sharedPrivateLinkResourceName") read, err := client.SharedPrivateLinkResourcesGet(ctx, id) if err != nil { @@ -505,7 +505,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") // alternatively `client.SharedPrivateLinkResourcesList(ctx, id)` can be used to do batched pagination items, err := client.SharedPrivateLinkResourcesListComplete(ctx, id) @@ -522,7 +522,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "webPubSubValue") +id := webpubsub.NewWebPubSubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceName") payload := webpubsub.WebPubSubResource{ // ... @@ -539,7 +539,7 @@ if err := client.UpdateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := webpubsub.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := webpubsub.NewLocationID("12345678-1234-9876-4563-123456789012", "location") // alternatively `client.UsagesList(ctx, id)` can be used to do batched pagination items, err := client.UsagesListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/client.go index aaf69b3d112f..93bd05e2ce53 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/client.go @@ -15,7 +15,7 @@ type WebPubSubClient struct { } func NewWebPubSubClientWithBaseURI(sdkApi sdkEnv.Api) (*WebPubSubClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "webpubsub", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "webpubsub", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating WebPubSubClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customcertificate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customcertificate.go index e24c9265f45a..be2b49a0cbde 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customcertificate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customcertificate.go @@ -44,7 +44,7 @@ func ParseCustomCertificateID(input string) (*CustomCertificateId, error) { } id := CustomCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCustomCertificateIDInsensitively(input string) (*CustomCertificateId, } id := CustomCertificateId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CustomCertificateId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), resourceids.StaticSegment("staticCustomCertificates", "customCertificates", "customCertificates"), - resourceids.UserSpecifiedSegment("customCertificateName", "customCertificateValue"), + resourceids.UserSpecifiedSegment("customCertificateName", "certificateName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customdomain.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customdomain.go index 6cf8f6ed5e1e..93ae8679af0a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customdomain.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_customdomain.go @@ -44,7 +44,7 @@ func ParseCustomDomainID(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCustomDomainIDInsensitively(input string) (*CustomDomainId, error) { } id := CustomDomainId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CustomDomainId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), resourceids.StaticSegment("staticCustomDomains", "customDomains", "customDomains"), - resourceids.UserSpecifiedSegment("customDomainName", "customDomainValue"), + resourceids.UserSpecifiedSegment("customDomainName", "name"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_hub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_hub.go index d6fc6e18139e..6aecee9da87a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_hub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_hub.go @@ -44,7 +44,7 @@ func ParseHubID(input string) (*HubId, error) { } id := HubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseHubIDInsensitively(input string) (*HubId, error) { } id := HubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id HubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), resourceids.StaticSegment("staticHubs", "hubs", "hubs"), - resourceids.UserSpecifiedSegment("hubName", "hubValue"), + resourceids.UserSpecifiedSegment("hubName", "hubName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_location.go index 7486fb2e46c6..15635cec2b5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_privateendpointconnection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_privateendpointconnection.go index 7516b436c7a5..06064a29aada 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_privateendpointconnection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_privateendpointconnection.go @@ -44,7 +44,7 @@ func ParsePrivateEndpointConnectionID(input string) (*PrivateEndpointConnectionI } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParsePrivateEndpointConnectionIDInsensitively(input string) (*PrivateEndpoi } id := PrivateEndpointConnectionId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id PrivateEndpointConnectionId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), resourceids.StaticSegment("staticPrivateEndpointConnections", "privateEndpointConnections", "privateEndpointConnections"), - resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionValue"), + resourceids.UserSpecifiedSegment("privateEndpointConnectionName", "privateEndpointConnectionName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_sharedprivatelinkresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_sharedprivatelinkresource.go index da0a3fe2cfae..db19823b8c15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_sharedprivatelinkresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_sharedprivatelinkresource.go @@ -44,7 +44,7 @@ func ParseSharedPrivateLinkResourceID(input string) (*SharedPrivateLinkResourceI } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseSharedPrivateLinkResourceIDInsensitively(input string) (*SharedPrivate } id := SharedPrivateLinkResourceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id SharedPrivateLinkResourceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), resourceids.StaticSegment("staticSharedPrivateLinkResources", "sharedPrivateLinkResources", "sharedPrivateLinkResources"), - resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceValue"), + resourceids.UserSpecifiedSegment("sharedPrivateLinkResourceName", "sharedPrivateLinkResourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_webpubsub.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_webpubsub.go index 44a3174132ef..99039e4ded5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_webpubsub.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/id_webpubsub.go @@ -42,7 +42,7 @@ func ParseWebPubSubID(input string) (*WebPubSubId, error) { } id := WebPubSubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseWebPubSubIDInsensitively(input string) (*WebPubSubId, error) { } id := WebPubSubId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id WebPubSubId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftSignalRService", "Microsoft.SignalRService", "Microsoft.SignalRService"), resourceids.StaticSegment("staticWebPubSub", "webPubSub", "webPubSub"), - resourceids.UserSpecifiedSegment("webPubSubName", "webPubSubValue"), + resourceids.UserSpecifiedSegment("webPubSubName", "resourceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_checknameavailability.go index 89b7609aa6fe..104479945508 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_checknameavailability.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_checknameavailability.go @@ -50,7 +50,6 @@ func (c WebPubSubClient) CheckNameAvailability(ctx context.Context, id LocationI var model NameAvailability result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificatesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificatesget.go index 6307e5d3f88d..ecf7a6d7473e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificatesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customcertificatesget.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) CustomCertificatesGet(ctx context.Context, id CustomCer var model CustomCertificate result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainsget.go index 4416471ea191..dad7d390e4ac 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_customdomainsget.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) CustomDomainsGet(ctx context.Context, id CustomDomainId var model CustomDomain result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_get.go index 32c938202946..20323337180f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_get.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) Get(ctx context.Context, id WebPubSubId) (result GetOpe var model WebPubSubResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubsget.go index 75afae05de30..bff47ad302fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_hubsget.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) HubsGet(ctx context.Context, id HubId) (result HubsGetO var model WebPubSubHub result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_listkeys.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_listkeys.go index 1f9b5d99b1a4..7382f539ee41 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_listkeys.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_listkeys.go @@ -46,7 +46,6 @@ func (c WebPubSubClient) ListKeys(ctx context.Context, id WebPubSubId) (result L var model WebPubSubKeys result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsget.go index 5ef25c532d7b..8c1a8afaf12e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsget.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) PrivateEndpointConnectionsGet(ctx context.Context, id P var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsupdate.go index e7ec8ee1fff5..4942d664a151 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_privateendpointconnectionsupdate.go @@ -49,7 +49,6 @@ func (c WebPubSubClient) PrivateEndpointConnectionsUpdate(ctx context.Context, i var model PrivateEndpointConnection result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourcesget.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourcesget.go index b48243eb18ff..1b84b697a8ec 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourcesget.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/method_sharedprivatelinkresourcesget.go @@ -45,7 +45,6 @@ func (c WebPubSubClient) SharedPrivateLinkResourcesGet(ctx context.Context, id S var model SharedPrivateLinkResource result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventhubendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventhubendpoint.go index b4b3bfbb0211..fc29b1eb2c40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventhubendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventhubendpoint.go @@ -15,6 +15,14 @@ type EventHubEndpoint struct { FullyQualifiedNamespace string `json:"fullyQualifiedNamespace"` // Fields inherited from EventListenerEndpoint + + Type EventListenerEndpointDiscriminator `json:"type"` +} + +func (s EventHubEndpoint) EventListenerEndpoint() BaseEventListenerEndpointImpl { + return BaseEventListenerEndpointImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventHubEndpoint{} @@ -28,9 +36,10 @@ func (s EventHubEndpoint) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventHubEndpoint: %+v", err) } + decoded["type"] = "EventHub" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistener.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistener.go index 90cf91c8ab51..90a842ec3430 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistener.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistener.go @@ -23,7 +23,7 @@ func (s *EventListener) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["endpoint"]; ok { - impl, err := unmarshalEventListenerEndpointImplementation(v) + impl, err := UnmarshalEventListenerEndpointImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Endpoint' for 'EventListener': %+v", err) } @@ -31,11 +31,12 @@ func (s *EventListener) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["filter"]; ok { - impl, err := unmarshalEventListenerFilterImplementation(v) + impl, err := UnmarshalEventListenerFilterImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Filter' for 'EventListener': %+v", err) } s.Filter = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerendpoint.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerendpoint.go index ce6a41e86885..267548182c37 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerendpoint.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerendpoint.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventListenerEndpoint interface { + EventListenerEndpoint() BaseEventListenerEndpointImpl } -// RawEventListenerEndpointImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventListenerEndpoint = BaseEventListenerEndpointImpl{} + +type BaseEventListenerEndpointImpl struct { + Type EventListenerEndpointDiscriminator `json:"type"` +} + +func (s BaseEventListenerEndpointImpl) EventListenerEndpoint() BaseEventListenerEndpointImpl { + return s +} + +var _ EventListenerEndpoint = RawEventListenerEndpointImpl{} + +// RawEventListenerEndpointImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventListenerEndpointImpl struct { - Type string - Values map[string]interface{} + eventListenerEndpoint BaseEventListenerEndpointImpl + Type string + Values map[string]interface{} +} + +func (s RawEventListenerEndpointImpl) EventListenerEndpoint() BaseEventListenerEndpointImpl { + return s.eventListenerEndpoint } -func unmarshalEventListenerEndpointImplementation(input []byte) (EventListenerEndpoint, error) { +func UnmarshalEventListenerEndpointImplementation(input []byte) (EventListenerEndpoint, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalEventListenerEndpointImplementation(input []byte) (EventListenerEn return nil, fmt.Errorf("unmarshaling EventListenerEndpoint into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "EventHub") { @@ -44,10 +61,15 @@ func unmarshalEventListenerEndpointImplementation(input []byte) (EventListenerEn return out, nil } - out := RawEventListenerEndpointImpl{ - Type: value, - Values: temp, + var parent BaseEventListenerEndpointImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventListenerEndpointImpl: %+v", err) } - return out, nil + + return RawEventListenerEndpointImpl{ + eventListenerEndpoint: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerfilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerfilter.go index 113e67a18be5..068487c14d21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerfilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventlistenerfilter.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type EventListenerFilter interface { + EventListenerFilter() BaseEventListenerFilterImpl } -// RawEventListenerFilterImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ EventListenerFilter = BaseEventListenerFilterImpl{} + +type BaseEventListenerFilterImpl struct { + Type EventListenerFilterDiscriminator `json:"type"` +} + +func (s BaseEventListenerFilterImpl) EventListenerFilter() BaseEventListenerFilterImpl { + return s +} + +var _ EventListenerFilter = RawEventListenerFilterImpl{} + +// RawEventListenerFilterImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawEventListenerFilterImpl struct { - Type string - Values map[string]interface{} + eventListenerFilter BaseEventListenerFilterImpl + Type string + Values map[string]interface{} +} + +func (s RawEventListenerFilterImpl) EventListenerFilter() BaseEventListenerFilterImpl { + return s.eventListenerFilter } -func unmarshalEventListenerFilterImplementation(input []byte) (EventListenerFilter, error) { +func UnmarshalEventListenerFilterImplementation(input []byte) (EventListenerFilter, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalEventListenerFilterImplementation(input []byte) (EventListenerFilt return nil, fmt.Errorf("unmarshaling EventListenerFilter into map[string]interface: %+v", err) } - value, ok := temp["type"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["type"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "EventName") { @@ -44,10 +61,15 @@ func unmarshalEventListenerFilterImplementation(input []byte) (EventListenerFilt return out, nil } - out := RawEventListenerFilterImpl{ - Type: value, - Values: temp, + var parent BaseEventListenerFilterImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseEventListenerFilterImpl: %+v", err) } - return out, nil + + return RawEventListenerFilterImpl{ + eventListenerFilter: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventnamefilter.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventnamefilter.go index 463f1dc90e6a..1aaf0f3a7193 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventnamefilter.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/model_eventnamefilter.go @@ -15,6 +15,14 @@ type EventNameFilter struct { UserEventPattern *string `json:"userEventPattern,omitempty"` // Fields inherited from EventListenerFilter + + Type EventListenerFilterDiscriminator `json:"type"` +} + +func (s EventNameFilter) EventListenerFilter() BaseEventListenerFilterImpl { + return BaseEventListenerFilterImpl{ + Type: s.Type, + } } var _ json.Marshaler = EventNameFilter{} @@ -28,9 +36,10 @@ func (s EventNameFilter) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling EventNameFilter: %+v", err) } + decoded["type"] = "EventName" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/version.go index 1d23e8c8c4ac..1aeee2fa6f4e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/webpubsub/2023-02-01/webpubsub/version.go @@ -1,12 +1,10 @@ package webpubsub -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-02-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/webpubsub/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/webpubsub/2023-02-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/README.md index d9f988b29c47..6ad1ded608d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors` Documentation -The `monitors` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `monitors` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.Monitor{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := monitors.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := monitors.UpdateMonitorRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/client.go index 6a08c03de8b3..da8f22135b82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/client.go @@ -15,7 +15,7 @@ type MonitorsClient struct { } func NewMonitorsClientWithBaseURI(sdkApi sdkEnv.Api) (*MonitorsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "monitors", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "monitors", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating MonitorsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/id_monitor.go index 735e017c9f05..f34a2ddedcba 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_get.go index fc8735c60327..cd1dac01b321 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_get.go @@ -45,7 +45,6 @@ func (c MonitorsClient) Get(ctx context.Context, id MonitorId) (result GetOperat var model Monitor result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_update.go index 024eae08ef5c..b11c0b548ffb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/method_update.go @@ -49,7 +49,6 @@ func (c MonitorsClient) Update(ctx context.Context, id MonitorId, input UpdateMo var model Monitor result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/version.go index 56ae1ca607fc..9191dfdcc703 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/monitors/version.go @@ -1,12 +1,10 @@ package monitors -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/monitors/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/monitors/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/README.md index 727699db3238..51f98968994e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances` Documentation -The `providerinstances` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `providerinstances` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "providerInstanceValue") +id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "providerInstanceName") payload := providerinstances.ProviderInstance{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "providerInstanceValue") +id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "providerInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue", "providerInstanceValue") +id := providerinstances.NewProviderInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName", "providerInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := providerinstances.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := providerinstances.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/client.go index 32b9237eacec..11c3d6d28c29 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/client.go @@ -15,7 +15,7 @@ type ProviderInstancesClient struct { } func NewProviderInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*ProviderInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "providerinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "providerinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating ProviderInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_monitor.go index 4c6d47a605f2..78cff4c1f077 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_providerinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_providerinstance.go index ada4ef1fb20c..0f1f9f9f9580 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_providerinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/id_providerinstance.go @@ -44,7 +44,7 @@ func ParseProviderInstanceID(input string) (*ProviderInstanceId, error) { } id := ProviderInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseProviderInstanceIDInsensitively(input string) (*ProviderInstanceId, er } id := ProviderInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ProviderInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), resourceids.StaticSegment("staticProviderInstances", "providerInstances", "providerInstances"), - resourceids.UserSpecifiedSegment("providerInstanceName", "providerInstanceValue"), + resourceids.UserSpecifiedSegment("providerInstanceName", "providerInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/method_get.go index a64a993f9d29..c51b402d054d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/method_get.go @@ -45,7 +45,6 @@ func (c ProviderInstancesClient) Get(ctx context.Context, id ProviderInstanceId) var model ProviderInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_db2providerinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_db2providerinstanceproperties.go index 0c65ab5d2d45..deefaa0b1f35 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_db2providerinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_db2providerinstanceproperties.go @@ -22,6 +22,14 @@ type DB2ProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s DB2ProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = DB2ProviderInstanceProperties{} @@ -35,9 +43,10 @@ func (s DB2ProviderInstanceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DB2ProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "Db2" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_hanadbproviderinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_hanadbproviderinstanceproperties.go index 0478e8e2904d..edd09b839480 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_hanadbproviderinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_hanadbproviderinstanceproperties.go @@ -24,6 +24,14 @@ type HanaDbProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s HanaDbProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = HanaDbProviderInstanceProperties{} @@ -37,9 +45,10 @@ func (s HanaDbProviderInstanceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling HanaDbProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "SapHana" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_mssqlserverproviderinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_mssqlserverproviderinstanceproperties.go index 3ef49af37ada..fc7f41c57b70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_mssqlserverproviderinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_mssqlserverproviderinstanceproperties.go @@ -21,6 +21,14 @@ type MsSqlServerProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s MsSqlServerProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = MsSqlServerProviderInstanceProperties{} @@ -34,9 +42,10 @@ func (s MsSqlServerProviderInstanceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MsSqlServerProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "MsSqlServer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheushaclusterproviderinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheushaclusterproviderinstanceproperties.go index 1facc5f662a1..780a595bd5ee 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheushaclusterproviderinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheushaclusterproviderinstanceproperties.go @@ -19,6 +19,14 @@ type PrometheusHaClusterProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s PrometheusHaClusterProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = PrometheusHaClusterProviderInstanceProperties{} @@ -32,9 +40,10 @@ func (s PrometheusHaClusterProviderInstanceProperties) MarshalJSON() ([]byte, er } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PrometheusHaClusterProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "PrometheusHaCluster" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheusosproviderinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheusosproviderinstanceproperties.go index 8ee8c0b7ebf9..e48c43db5462 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheusosproviderinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_prometheusosproviderinstanceproperties.go @@ -17,6 +17,14 @@ type PrometheusOSProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s PrometheusOSProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = PrometheusOSProviderInstanceProperties{} @@ -30,9 +38,10 @@ func (s PrometheusOSProviderInstanceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling PrometheusOSProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "PrometheusOS" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerinstanceproperties.go index 6c0320dcd9d3..3fb5ebd38187 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerinstanceproperties.go @@ -17,10 +17,12 @@ type ProviderInstanceProperties struct { var _ json.Unmarshaler = &ProviderInstanceProperties{} func (s *ProviderInstanceProperties) UnmarshalJSON(bytes []byte) error { - type alias ProviderInstanceProperties - var decoded alias + var decoded struct { + Errors *Error `json:"errors,omitempty"` + ProvisioningState *WorkloadMonitorProvisioningState `json:"provisioningState,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ProviderInstanceProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Errors = decoded.Errors @@ -32,11 +34,12 @@ func (s *ProviderInstanceProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["providerSettings"]; ok { - impl, err := unmarshalProviderSpecificPropertiesImplementation(v) + impl, err := UnmarshalProviderSpecificPropertiesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'ProviderSettings' for 'ProviderInstanceProperties': %+v", err) } s.ProviderSettings = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerspecificproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerspecificproperties.go index c436db81dadb..784541c28ccc 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerspecificproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_providerspecificproperties.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ProviderSpecificProperties interface { + ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl } -// RawProviderSpecificPropertiesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ProviderSpecificProperties = BaseProviderSpecificPropertiesImpl{} + +type BaseProviderSpecificPropertiesImpl struct { + ProviderType string `json:"providerType"` +} + +func (s BaseProviderSpecificPropertiesImpl) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return s +} + +var _ ProviderSpecificProperties = RawProviderSpecificPropertiesImpl{} + +// RawProviderSpecificPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawProviderSpecificPropertiesImpl struct { - Type string - Values map[string]interface{} + providerSpecificProperties BaseProviderSpecificPropertiesImpl + Type string + Values map[string]interface{} +} + +func (s RawProviderSpecificPropertiesImpl) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return s.providerSpecificProperties } -func unmarshalProviderSpecificPropertiesImplementation(input []byte) (ProviderSpecificProperties, error) { +func UnmarshalProviderSpecificPropertiesImplementation(input []byte) (ProviderSpecificProperties, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalProviderSpecificPropertiesImplementation(input []byte) (ProviderSp return nil, fmt.Errorf("unmarshaling ProviderSpecificProperties into map[string]interface: %+v", err) } - value, ok := temp["providerType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["providerType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Db2") { @@ -84,10 +101,15 @@ func unmarshalProviderSpecificPropertiesImplementation(input []byte) (ProviderSp return out, nil } - out := RawProviderSpecificPropertiesImpl{ - Type: value, - Values: temp, + var parent BaseProviderSpecificPropertiesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseProviderSpecificPropertiesImpl: %+v", err) } - return out, nil + + return RawProviderSpecificPropertiesImpl{ + providerSpecificProperties: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_sapnetweaverproviderinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_sapnetweaverproviderinstanceproperties.go index bb26cfe13c71..9be5e7a94bb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_sapnetweaverproviderinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/model_sapnetweaverproviderinstanceproperties.go @@ -24,6 +24,14 @@ type SapNetWeaverProviderInstanceProperties struct { SslPreference *SslPreference `json:"sslPreference,omitempty"` // Fields inherited from ProviderSpecificProperties + + ProviderType string `json:"providerType"` +} + +func (s SapNetWeaverProviderInstanceProperties) ProviderSpecificProperties() BaseProviderSpecificPropertiesImpl { + return BaseProviderSpecificPropertiesImpl{ + ProviderType: s.ProviderType, + } } var _ json.Marshaler = SapNetWeaverProviderInstanceProperties{} @@ -37,9 +45,10 @@ func (s SapNetWeaverProviderInstanceProperties) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SapNetWeaverProviderInstanceProperties: %+v", err) } + decoded["providerType"] = "SapNetWeaver" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/version.go index cdfb18cc5894..873ba71c474a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/providerinstances/version.go @@ -1,12 +1,10 @@ package providerinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/providerinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/providerinstances/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/README.md index 617b4c14d943..ea4a3b905d24 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances` Documentation -The `sapapplicationserverinstances` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapapplicationserverinstances` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") payload := sapapplicationserverinstances.SAPApplicationServerInstance{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapapplicationserverinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") if err := client.StartInstanceThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.StartInstanceThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") payload := sapapplicationserverinstances.StopRequest{ // ... @@ -115,7 +115,7 @@ if err := client.StopInstanceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "applicationInstanceValue") +id := sapapplicationserverinstances.NewApplicationInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "applicationInstanceName") payload := sapapplicationserverinstances.UpdateSAPApplicationInstanceRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/client.go index e372453b8bae..db488a14e782 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/client.go @@ -15,7 +15,7 @@ type SAPApplicationServerInstancesClient struct { } func NewSAPApplicationServerInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPApplicationServerInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapapplicationserverinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapapplicationserverinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPApplicationServerInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_applicationinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_applicationinstance.go index 9788dcbeb398..3f2e13be4540 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_applicationinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_applicationinstance.go @@ -44,7 +44,7 @@ func ParseApplicationInstanceID(input string) (*ApplicationInstanceId, error) { } id := ApplicationInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseApplicationInstanceIDInsensitively(input string) (*ApplicationInstance } id := ApplicationInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id ApplicationInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), resourceids.StaticSegment("staticApplicationInstances", "applicationInstances", "applicationInstances"), - resourceids.UserSpecifiedSegment("applicationInstanceName", "applicationInstanceValue"), + resourceids.UserSpecifiedSegment("applicationInstanceName", "applicationInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_sapvirtualinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_sapvirtualinstance.go index 6693e60ca0d5..5c188729bb20 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_sapvirtualinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/id_sapvirtualinstance.go @@ -42,7 +42,7 @@ func ParseSapVirtualInstanceID(input string) (*SapVirtualInstanceId, error) { } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSapVirtualInstanceIDInsensitively(input string) (*SapVirtualInstanceId } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SapVirtualInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_get.go index 206f642660d4..85535b6b2053 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/method_get.go @@ -45,7 +45,6 @@ func (c SAPApplicationServerInstancesClient) Get(ctx context.Context, id Applica var model SAPApplicationServerInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/version.go index 09c849d2626d..0ed7a47b2058 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapapplicationserverinstances/version.go @@ -1,12 +1,10 @@ package sapapplicationserverinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapapplicationserverinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapapplicationserverinstances/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/README.md index f5a2d5119dc8..793b9b417404 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails` Documentation -The `sapavailabilityzonedetails` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapavailabilityzonedetails` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapavailabilityzonedetails.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := sapavailabilityzonedetails.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := sapavailabilityzonedetails.SAPAvailabilityZoneDetailsRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/client.go index f3e01b03d447..331c00dba8df 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/client.go @@ -15,7 +15,7 @@ type SAPAvailabilityZoneDetailsClient struct { } func NewSAPAvailabilityZoneDetailsClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPAvailabilityZoneDetailsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapavailabilityzonedetails", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapavailabilityzonedetails", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPAvailabilityZoneDetailsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/id_location.go index e8a0d73a9a8e..23e3e46c9242 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/method_sapavailabilityzonedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/method_sapavailabilityzonedetails.go index 0f7595f67fad..0f5364c7cf2d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/method_sapavailabilityzonedetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/method_sapavailabilityzonedetails.go @@ -50,7 +50,6 @@ func (c SAPAvailabilityZoneDetailsClient) SAPAvailabilityZoneDetails(ctx context var model SAPAvailabilityZoneDetailsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/version.go index 5250751b0147..69da59bb0cb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapavailabilityzonedetails/version.go @@ -1,12 +1,10 @@ package sapavailabilityzonedetails -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapavailabilityzonedetails/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapavailabilityzonedetails/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/README.md index e03f00632519..05e5fb26d3e1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances` Documentation -The `sapcentralinstances` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapcentralinstances` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") payload := sapcentralinstances.SAPCentralServerInstance{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sapcentralinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapcentralinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") if err := client.StartInstanceThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.StartInstanceThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") payload := sapcentralinstances.StopRequest{ // ... @@ -115,7 +115,7 @@ if err := client.StopInstanceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "centralInstanceValue") +id := sapcentralinstances.NewCentralInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "centralInstanceName") payload := sapcentralinstances.UpdateSAPCentralInstanceRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/client.go index 82698cd1887d..d8f275585f6d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/client.go @@ -15,7 +15,7 @@ type SAPCentralInstancesClient struct { } func NewSAPCentralInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPCentralInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapcentralinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapcentralinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPCentralInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_centralinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_centralinstance.go index 14fae40c9bb9..fbc2fdf82a3f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_centralinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_centralinstance.go @@ -44,7 +44,7 @@ func ParseCentralInstanceID(input string) (*CentralInstanceId, error) { } id := CentralInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseCentralInstanceIDInsensitively(input string) (*CentralInstanceId, erro } id := CentralInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id CentralInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), resourceids.StaticSegment("staticCentralInstances", "centralInstances", "centralInstances"), - resourceids.UserSpecifiedSegment("centralInstanceName", "centralInstanceValue"), + resourceids.UserSpecifiedSegment("centralInstanceName", "centralInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_sapvirtualinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_sapvirtualinstance.go index 6b5a9cca6dee..d871f8f08674 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_sapvirtualinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/id_sapvirtualinstance.go @@ -42,7 +42,7 @@ func ParseSapVirtualInstanceID(input string) (*SapVirtualInstanceId, error) { } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSapVirtualInstanceIDInsensitively(input string) (*SapVirtualInstanceId } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SapVirtualInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/method_get.go index 51b2b250780f..4e8892918f15 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/method_get.go @@ -45,7 +45,6 @@ func (c SAPCentralInstancesClient) Get(ctx context.Context, id CentralInstanceId var model SAPCentralServerInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/version.go index 83ee8f7f4d6d..6c48a0eee4f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapcentralinstances/version.go @@ -1,12 +1,10 @@ package sapcentralinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapcentralinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapcentralinstances/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/README.md index 34301df01092..c40b21bfd962 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances` Documentation -The `sapdatabaseinstances` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapdatabaseinstances` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") payload := sapdatabaseinstances.SAPDatabaseInstance{ // ... @@ -41,7 +41,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -53,7 +53,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -69,7 +69,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapdatabaseinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -86,7 +86,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") if err := client.StartInstanceThenPoll(ctx, id); err != nil { // handle the error @@ -98,7 +98,7 @@ if err := client.StartInstanceThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") payload := sapdatabaseinstances.StopRequest{ // ... @@ -115,7 +115,7 @@ if err := client.StopInstanceThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue", "databaseInstanceValue") +id := sapdatabaseinstances.NewDatabaseInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName", "databaseInstanceName") payload := sapdatabaseinstances.UpdateSAPDatabaseInstanceRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/client.go index aa0ae88d4cc0..7ef60c6a7737 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/client.go @@ -15,7 +15,7 @@ type SAPDatabaseInstancesClient struct { } func NewSAPDatabaseInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPDatabaseInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapdatabaseinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapdatabaseinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPDatabaseInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_databaseinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_databaseinstance.go index 90b703d038e0..7b114164c04f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_databaseinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_databaseinstance.go @@ -44,7 +44,7 @@ func ParseDatabaseInstanceID(input string) (*DatabaseInstanceId, error) { } id := DatabaseInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -61,7 +61,7 @@ func ParseDatabaseInstanceIDInsensitively(input string) (*DatabaseInstanceId, er } id := DatabaseInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -121,9 +121,9 @@ func (id DatabaseInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), resourceids.StaticSegment("staticDatabaseInstances", "databaseInstances", "databaseInstances"), - resourceids.UserSpecifiedSegment("databaseInstanceName", "databaseInstanceValue"), + resourceids.UserSpecifiedSegment("databaseInstanceName", "databaseInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_sapvirtualinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_sapvirtualinstance.go index cbd40fec6dec..f4f8aa9d143d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_sapvirtualinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/id_sapvirtualinstance.go @@ -42,7 +42,7 @@ func ParseSapVirtualInstanceID(input string) (*SapVirtualInstanceId, error) { } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSapVirtualInstanceIDInsensitively(input string) (*SapVirtualInstanceId } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SapVirtualInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_get.go index f10920fbb71a..1c4add58a171 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/method_get.go @@ -45,7 +45,6 @@ func (c SAPDatabaseInstancesClient) Get(ctx context.Context, id DatabaseInstance var model SAPDatabaseInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/version.go index 32c596059841..c73fb813dad2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdatabaseinstances/version.go @@ -1,12 +1,10 @@ package sapdatabaseinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapdatabaseinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapdatabaseinstances/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/README.md index 5e7ce81417b7..4049b9303a3e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations` Documentation -The `sapdiskconfigurations` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapdiskconfigurations` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapdiskconfigurations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := sapdiskconfigurations.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := sapdiskconfigurations.SAPDiskConfigurationsRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/client.go index 4f1d5dc82434..f0089d8d494e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/client.go @@ -15,7 +15,7 @@ type SAPDiskConfigurationsClient struct { } func NewSAPDiskConfigurationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPDiskConfigurationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapdiskconfigurations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapdiskconfigurations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPDiskConfigurationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/id_location.go index e690adba092e..2be06f8b73fd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/method_sapdiskconfigurations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/method_sapdiskconfigurations.go index 85d25b1c6236..8266364559d3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/method_sapdiskconfigurations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/method_sapdiskconfigurations.go @@ -50,7 +50,6 @@ func (c SAPDiskConfigurationsClient) SAPDiskConfigurations(ctx context.Context, var model SAPDiskConfigurationsResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/version.go index 93987390c170..4ef133e60367 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapdiskconfigurations/version.go @@ -1,12 +1,10 @@ package sapdiskconfigurations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapdiskconfigurations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapdiskconfigurations/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/README.md index 4df82c805269..8a599528e2a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor` Documentation -The `saplandscapemonitor` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `saplandscapemonitor` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := saplandscapemonitor.SapLandscapeMonitor{ // ... @@ -45,7 +45,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.Delete(ctx, id) if err != nil { @@ -61,7 +61,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") read, err := client.Get(ctx, id) if err != nil { @@ -77,7 +77,7 @@ if model := read.Model; model != nil { ```go ctx := context.TODO() -id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") // alternatively `client.List(ctx, id)` can be used to do batched pagination items, err := client.ListComplete(ctx, id) @@ -94,7 +94,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorValue") +id := saplandscapemonitor.NewMonitorID("12345678-1234-9876-4563-123456789012", "example-resource-group", "monitorName") payload := saplandscapemonitor.SapLandscapeMonitor{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/client.go index 36dc90431720..3ec9466c1f55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/client.go @@ -15,7 +15,7 @@ type SapLandscapeMonitorClient struct { } func NewSapLandscapeMonitorClientWithBaseURI(sdkApi sdkEnv.Api) (*SapLandscapeMonitorClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "saplandscapemonitor", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "saplandscapemonitor", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SapLandscapeMonitorClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/id_monitor.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/id_monitor.go index 2b38fac00465..f16fcb5afe43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/id_monitor.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/id_monitor.go @@ -42,7 +42,7 @@ func ParseMonitorID(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseMonitorIDInsensitively(input string) (*MonitorId, error) { } id := MonitorId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id MonitorId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticMonitors", "monitors", "monitors"), - resourceids.UserSpecifiedSegment("monitorName", "monitorValue"), + resourceids.UserSpecifiedSegment("monitorName", "monitorName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_create.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_create.go index 40f00c0103b5..72d44ef93084 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_create.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_create.go @@ -51,7 +51,6 @@ func (c SapLandscapeMonitorClient) Create(ctx context.Context, id MonitorId, inp var model SapLandscapeMonitor result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_get.go index 94e551c1abd1..ddbb8034375d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_get.go @@ -46,7 +46,6 @@ func (c SapLandscapeMonitorClient) Get(ctx context.Context, id MonitorId) (resul var model SapLandscapeMonitor result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_update.go index bcb5e7387b3d..93d5a8cc5b21 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/method_update.go @@ -50,7 +50,6 @@ func (c SapLandscapeMonitorClient) Update(ctx context.Context, id MonitorId, inp var model SapLandscapeMonitor result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/version.go index d89a5f15a1d3..b30ff2f2fbb5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplandscapemonitor/version.go @@ -1,12 +1,10 @@ package saplandscapemonitor -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/saplandscapemonitor/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/saplandscapemonitor/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/README.md index 74564d3cd54f..1fc43602acc2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations` Documentation -The `saprecommendations` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `saprecommendations` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := saprecommendations.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := saprecommendations.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := saprecommendations.SAPSizingRecommendationRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/client.go index 8a1af72250fd..5ae52c515dc7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/client.go @@ -15,7 +15,7 @@ type SAPRecommendationsClient struct { } func NewSAPRecommendationsClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPRecommendationsClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "saprecommendations", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "saprecommendations", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPRecommendationsClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/id_location.go index 8c69fd831749..7ab88eff87b3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/method_sapsizingrecommendations.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/method_sapsizingrecommendations.go index e69cc36efa0a..3b5d3eeef2aa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/method_sapsizingrecommendations.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/method_sapsizingrecommendations.go @@ -16,7 +16,7 @@ import ( type SAPSizingRecommendationsOperationResponse struct { HttpResponse *http.Response OData *odata.OData - Model *SAPSizingRecommendationResult + Model SAPSizingRecommendationResult } // SAPSizingRecommendations ... @@ -53,11 +53,11 @@ func (c SAPRecommendationsClient) SAPSizingRecommendations(ctx context.Context, if err = resp.Unmarshal(&respObj); err != nil { return } - model, err := unmarshalSAPSizingRecommendationResultImplementation(respObj) + model, err := UnmarshalSAPSizingRecommendationResultImplementation(respObj) if err != nil { return } - result.Model = &model + result.Model = model return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_sapsizingrecommendationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_sapsizingrecommendationresult.go index 9aefdce8c29a..7898af2f5df6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_sapsizingrecommendationresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_sapsizingrecommendationresult.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SAPSizingRecommendationResult interface { + SAPSizingRecommendationResult() BaseSAPSizingRecommendationResultImpl } -// RawSAPSizingRecommendationResultImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SAPSizingRecommendationResult = BaseSAPSizingRecommendationResultImpl{} + +type BaseSAPSizingRecommendationResultImpl struct { + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s BaseSAPSizingRecommendationResultImpl) SAPSizingRecommendationResult() BaseSAPSizingRecommendationResultImpl { + return s +} + +var _ SAPSizingRecommendationResult = RawSAPSizingRecommendationResultImpl{} + +// RawSAPSizingRecommendationResultImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSAPSizingRecommendationResultImpl struct { - Type string - Values map[string]interface{} + sAPSizingRecommendationResult BaseSAPSizingRecommendationResultImpl + Type string + Values map[string]interface{} +} + +func (s RawSAPSizingRecommendationResultImpl) SAPSizingRecommendationResult() BaseSAPSizingRecommendationResultImpl { + return s.sAPSizingRecommendationResult } -func unmarshalSAPSizingRecommendationResultImplementation(input []byte) (SAPSizingRecommendationResult, error) { +func UnmarshalSAPSizingRecommendationResultImplementation(input []byte) (SAPSizingRecommendationResult, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSAPSizingRecommendationResultImplementation(input []byte) (SAPSizi return nil, fmt.Errorf("unmarshaling SAPSizingRecommendationResult into map[string]interface: %+v", err) } - value, ok := temp["deploymentType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["deploymentType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "SingleServer") { @@ -52,10 +69,15 @@ func unmarshalSAPSizingRecommendationResultImplementation(input []byte) (SAPSizi return out, nil } - out := RawSAPSizingRecommendationResultImpl{ - Type: value, - Values: temp, + var parent BaseSAPSizingRecommendationResultImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSAPSizingRecommendationResultImpl: %+v", err) } - return out, nil + + return RawSAPSizingRecommendationResultImpl{ + sAPSizingRecommendationResult: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_singleserverrecommendationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_singleserverrecommendationresult.go index c0b6380ad7a0..587239a5009e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_singleserverrecommendationresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_singleserverrecommendationresult.go @@ -14,6 +14,14 @@ type SingleServerRecommendationResult struct { VMSku *string `json:"vmSku,omitempty"` // Fields inherited from SAPSizingRecommendationResult + + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s SingleServerRecommendationResult) SAPSizingRecommendationResult() BaseSAPSizingRecommendationResultImpl { + return BaseSAPSizingRecommendationResultImpl{ + DeploymentType: s.DeploymentType, + } } var _ json.Marshaler = SingleServerRecommendationResult{} @@ -27,9 +35,10 @@ func (s SingleServerRecommendationResult) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SingleServerRecommendationResult: %+v", err) } + decoded["deploymentType"] = "SingleServer" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_threetierrecommendationresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_threetierrecommendationresult.go index 27360b7cc67d..840b3d6d89d6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_threetierrecommendationresult.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/model_threetierrecommendationresult.go @@ -19,6 +19,14 @@ type ThreeTierRecommendationResult struct { DbVMSku *string `json:"dbVmSku,omitempty"` // Fields inherited from SAPSizingRecommendationResult + + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s ThreeTierRecommendationResult) SAPSizingRecommendationResult() BaseSAPSizingRecommendationResultImpl { + return BaseSAPSizingRecommendationResultImpl{ + DeploymentType: s.DeploymentType, + } } var _ json.Marshaler = ThreeTierRecommendationResult{} @@ -32,9 +40,10 @@ func (s ThreeTierRecommendationResult) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ThreeTierRecommendationResult: %+v", err) } + decoded["deploymentType"] = "ThreeTier" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/version.go index b91a7baeb518..6abe682dd336 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations/version.go @@ -1,12 +1,10 @@ package saprecommendations -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/saprecommendations/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/saprecommendations/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/README.md index ed1e39c26994..c6574e81e51b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku` Documentation -The `sapsupportedsku` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapsupportedsku` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -24,7 +24,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapsupportedsku.NewLocationID("12345678-1234-9876-4563-123456789012", "locationValue") +id := sapsupportedsku.NewLocationID("12345678-1234-9876-4563-123456789012", "location") payload := sapsupportedsku.SAPSupportedSkusRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/client.go index 8011ac22b2ed..44d2b8e07baa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/client.go @@ -15,7 +15,7 @@ type SAPSupportedSkuClient struct { } func NewSAPSupportedSkuClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPSupportedSkuClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapsupportedsku", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapsupportedsku", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPSupportedSkuClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/id_location.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/id_location.go index 6e3073b19042..f6741537a202 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/id_location.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/id_location.go @@ -40,7 +40,7 @@ func ParseLocationID(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -57,7 +57,7 @@ func ParseLocationIDInsensitively(input string) (*LocationId, error) { } id := LocationId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -107,7 +107,7 @@ func (id LocationId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticLocations", "locations", "locations"), - resourceids.UserSpecifiedSegment("locationName", "locationValue"), + resourceids.UserSpecifiedSegment("locationName", "location"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/method_sapsupportedsku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/method_sapsupportedsku.go index 5be4b86862b4..b23d62947b82 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/method_sapsupportedsku.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/method_sapsupportedsku.go @@ -50,7 +50,6 @@ func (c SAPSupportedSkuClient) SAPSupportedSku(ctx context.Context, id LocationI var model SAPSupportedResourceSkusResult result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/version.go index d1324c82032d..3e71b2b0daa5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku/version.go @@ -1,12 +1,10 @@ package sapsupportedsku -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapsupportedsku/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapsupportedsku/2023-04-01" } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md index 956682388255..f936bdd0b202 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/README.md @@ -1,7 +1,7 @@ ## `github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances` Documentation -The `sapvirtualinstances` SDK allows for interaction with the Azure Resource Manager Service `workloads` (API Version `2023-04-01`). +The `sapvirtualinstances` SDK allows for interaction with Azure Resource Manager `workloads` (API Version `2023-04-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). @@ -25,7 +25,7 @@ client.Client.Authorizer = authorizer ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") payload := sapvirtualinstances.SAPVirtualInstance{ // ... @@ -42,7 +42,7 @@ if err := client.CreateThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error @@ -54,7 +54,7 @@ if err := client.DeleteThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") read, err := client.Get(ctx, id) if err != nil { @@ -104,7 +104,7 @@ for _, item := range items { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") if err := client.StartThenPoll(ctx, id); err != nil { // handle the error @@ -116,7 +116,7 @@ if err := client.StartThenPoll(ctx, id); err != nil { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") payload := sapvirtualinstances.StopRequest{ // ... @@ -133,7 +133,7 @@ if err := client.StopThenPoll(ctx, id, payload); err != nil { ```go ctx := context.TODO() -id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceValue") +id := sapvirtualinstances.NewSapVirtualInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "sapVirtualInstanceName") payload := sapvirtualinstances.UpdateSAPVirtualInstanceRequest{ // ... diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/client.go index db3692232a20..e7297735c3f3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/client.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/client.go @@ -15,7 +15,7 @@ type SAPVirtualInstancesClient struct { } func NewSAPVirtualInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*SAPVirtualInstancesClient, error) { - client, err := resourcemanager.NewResourceManagerClient(sdkApi, "sapvirtualinstances", defaultApiVersion) + client, err := resourcemanager.NewClient(sdkApi, "sapvirtualinstances", defaultApiVersion) if err != nil { return nil, fmt.Errorf("instantiating SAPVirtualInstancesClient: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/id_sapvirtualinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/id_sapvirtualinstance.go index ba6e03ec5d71..64a6c56e20c4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/id_sapvirtualinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/id_sapvirtualinstance.go @@ -42,7 +42,7 @@ func ParseSapVirtualInstanceID(input string) (*SapVirtualInstanceId, error) { } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -59,7 +59,7 @@ func ParseSapVirtualInstanceIDInsensitively(input string) (*SapVirtualInstanceId } id := SapVirtualInstanceId{} - if err := id.FromParseResult(*parsed); err != nil { + if err = id.FromParseResult(*parsed); err != nil { return nil, err } @@ -115,7 +115,7 @@ func (id SapVirtualInstanceId) Segments() []resourceids.Segment { resourceids.StaticSegment("staticProviders", "providers", "providers"), resourceids.ResourceProviderSegment("staticMicrosoftWorkloads", "Microsoft.Workloads", "Microsoft.Workloads"), resourceids.StaticSegment("staticSapVirtualInstances", "sapVirtualInstances", "sapVirtualInstances"), - resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceValue"), + resourceids.UserSpecifiedSegment("sapVirtualInstanceName", "sapVirtualInstanceName"), } } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_get.go index f907040f3e44..a475bb7cdfb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_get.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_get.go @@ -45,7 +45,6 @@ func (c SAPVirtualInstancesClient) Get(ctx context.Context, id SapVirtualInstanc var model SAPVirtualInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_update.go index 73002adae599..7bdbe8ea62fa 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/method_update.go @@ -49,7 +49,6 @@ func (c SAPVirtualInstancesClient) Update(ctx context.Context, id SapVirtualInst var model SAPVirtualInstance result.Model = &model - if err = resp.Unmarshal(result.Model); err != nil { return } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_createandmountfileshareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_createandmountfileshareconfiguration.go index ea44f0fd7e31..f5ba7197c670 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_createandmountfileshareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_createandmountfileshareconfiguration.go @@ -15,6 +15,14 @@ type CreateAndMountFileShareConfiguration struct { StorageAccountName *string `json:"storageAccountName,omitempty"` // Fields inherited from FileShareConfiguration + + ConfigurationType ConfigurationType `json:"configurationType"` +} + +func (s CreateAndMountFileShareConfiguration) FileShareConfiguration() BaseFileShareConfigurationImpl { + return BaseFileShareConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = CreateAndMountFileShareConfiguration{} @@ -28,9 +36,10 @@ func (s CreateAndMountFileShareConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling CreateAndMountFileShareConfiguration: %+v", err) } + decoded["configurationType"] = "CreateAndMount" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentconfiguration.go index d85caa83fa17..f1c10fae8c3a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentconfiguration.go @@ -16,6 +16,14 @@ type DeploymentConfiguration struct { SoftwareConfiguration SoftwareConfiguration `json:"softwareConfiguration"` // Fields inherited from SAPConfiguration + + ConfigurationType SAPConfigurationType `json:"configurationType"` +} + +func (s DeploymentConfiguration) SAPConfiguration() BaseSAPConfigurationImpl { + return BaseSAPConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = DeploymentConfiguration{} @@ -29,9 +37,10 @@ func (s DeploymentConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DeploymentConfiguration: %+v", err) } + decoded["configurationType"] = "Deployment" encoded, err = json.Marshal(decoded) @@ -45,13 +54,16 @@ func (s DeploymentConfiguration) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &DeploymentConfiguration{} func (s *DeploymentConfiguration) UnmarshalJSON(bytes []byte) error { - type alias DeploymentConfiguration - var decoded alias + var decoded struct { + AppLocation *string `json:"appLocation,omitempty"` + ConfigurationType SAPConfigurationType `json:"configurationType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DeploymentConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AppLocation = decoded.AppLocation + s.ConfigurationType = decoded.ConfigurationType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -59,7 +71,7 @@ func (s *DeploymentConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["infrastructureConfiguration"]; ok { - impl, err := unmarshalInfrastructureConfigurationImplementation(v) + impl, err := UnmarshalInfrastructureConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'InfrastructureConfiguration' for 'DeploymentConfiguration': %+v", err) } @@ -67,11 +79,12 @@ func (s *DeploymentConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["softwareConfiguration"]; ok { - impl, err := unmarshalSoftwareConfigurationImplementation(v) + impl, err := UnmarshalSoftwareConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SoftwareConfiguration' for 'DeploymentConfiguration': %+v", err) } s.SoftwareConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentwithosconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentwithosconfiguration.go index 883594a67615..9feff2a8ee72 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentwithosconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_deploymentwithosconfiguration.go @@ -17,6 +17,14 @@ type DeploymentWithOSConfiguration struct { SoftwareConfiguration SoftwareConfiguration `json:"softwareConfiguration"` // Fields inherited from SAPConfiguration + + ConfigurationType SAPConfigurationType `json:"configurationType"` +} + +func (s DeploymentWithOSConfiguration) SAPConfiguration() BaseSAPConfigurationImpl { + return BaseSAPConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = DeploymentWithOSConfiguration{} @@ -30,9 +38,10 @@ func (s DeploymentWithOSConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DeploymentWithOSConfiguration: %+v", err) } + decoded["configurationType"] = "DeploymentWithOSConfig" encoded, err = json.Marshal(decoded) @@ -46,14 +55,18 @@ func (s DeploymentWithOSConfiguration) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &DeploymentWithOSConfiguration{} func (s *DeploymentWithOSConfiguration) UnmarshalJSON(bytes []byte) error { - type alias DeploymentWithOSConfiguration - var decoded alias + var decoded struct { + AppLocation *string `json:"appLocation,omitempty"` + OsSapConfiguration *OsSapConfiguration `json:"osSapConfiguration,omitempty"` + ConfigurationType SAPConfigurationType `json:"configurationType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into DeploymentWithOSConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AppLocation = decoded.AppLocation s.OsSapConfiguration = decoded.OsSapConfiguration + s.ConfigurationType = decoded.ConfigurationType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -61,7 +74,7 @@ func (s *DeploymentWithOSConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["infrastructureConfiguration"]; ok { - impl, err := unmarshalInfrastructureConfigurationImplementation(v) + impl, err := UnmarshalInfrastructureConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'InfrastructureConfiguration' for 'DeploymentWithOSConfiguration': %+v", err) } @@ -69,11 +82,12 @@ func (s *DeploymentWithOSConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["softwareConfiguration"]; ok { - impl, err := unmarshalSoftwareConfigurationImplementation(v) + impl, err := UnmarshalSoftwareConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'SoftwareConfiguration' for 'DeploymentWithOSConfiguration': %+v", err) } s.SoftwareConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_discoveryconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_discoveryconfiguration.go index a6c63c24ee4d..05e6556d3688 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_discoveryconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_discoveryconfiguration.go @@ -16,6 +16,14 @@ type DiscoveryConfiguration struct { ManagedRgStorageAccountName *string `json:"managedRgStorageAccountName,omitempty"` // Fields inherited from SAPConfiguration + + ConfigurationType SAPConfigurationType `json:"configurationType"` +} + +func (s DiscoveryConfiguration) SAPConfiguration() BaseSAPConfigurationImpl { + return BaseSAPConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = DiscoveryConfiguration{} @@ -29,9 +37,10 @@ func (s DiscoveryConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling DiscoveryConfiguration: %+v", err) } + decoded["configurationType"] = "Discovery" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_externalinstallationsoftwareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_externalinstallationsoftwareconfiguration.go index 6805c0db671c..5e0b4faacb71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_externalinstallationsoftwareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_externalinstallationsoftwareconfiguration.go @@ -14,6 +14,14 @@ type ExternalInstallationSoftwareConfiguration struct { CentralServerVMId *string `json:"centralServerVmId,omitempty"` // Fields inherited from SoftwareConfiguration + + SoftwareInstallationType SAPSoftwareInstallationType `json:"softwareInstallationType"` +} + +func (s ExternalInstallationSoftwareConfiguration) SoftwareConfiguration() BaseSoftwareConfigurationImpl { + return BaseSoftwareConfigurationImpl{ + SoftwareInstallationType: s.SoftwareInstallationType, + } } var _ json.Marshaler = ExternalInstallationSoftwareConfiguration{} @@ -27,9 +35,10 @@ func (s ExternalInstallationSoftwareConfiguration) MarshalJSON() ([]byte, error) } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ExternalInstallationSoftwareConfiguration: %+v", err) } + decoded["softwareInstallationType"] = "External" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_fileshareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_fileshareconfiguration.go index 115d03e06dd8..7c18f42a8cf1 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_fileshareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_fileshareconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type FileShareConfiguration interface { + FileShareConfiguration() BaseFileShareConfigurationImpl } -// RawFileShareConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ FileShareConfiguration = BaseFileShareConfigurationImpl{} + +type BaseFileShareConfigurationImpl struct { + ConfigurationType ConfigurationType `json:"configurationType"` +} + +func (s BaseFileShareConfigurationImpl) FileShareConfiguration() BaseFileShareConfigurationImpl { + return s +} + +var _ FileShareConfiguration = RawFileShareConfigurationImpl{} + +// RawFileShareConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawFileShareConfigurationImpl struct { - Type string - Values map[string]interface{} + fileShareConfiguration BaseFileShareConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawFileShareConfigurationImpl) FileShareConfiguration() BaseFileShareConfigurationImpl { + return s.fileShareConfiguration } -func unmarshalFileShareConfigurationImplementation(input []byte) (FileShareConfiguration, error) { +func UnmarshalFileShareConfigurationImplementation(input []byte) (FileShareConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalFileShareConfigurationImplementation(input []byte) (FileShareConfi return nil, fmt.Errorf("unmarshaling FileShareConfiguration into map[string]interface: %+v", err) } - value, ok := temp["configurationType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["configurationType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "CreateAndMount") { @@ -60,10 +77,15 @@ func unmarshalFileShareConfigurationImplementation(input []byte) (FileShareConfi return out, nil } - out := RawFileShareConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseFileShareConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseFileShareConfigurationImpl: %+v", err) } - return out, nil + + return RawFileShareConfigurationImpl{ + fileShareConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_infrastructureconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_infrastructureconfiguration.go index a0f9a0fee748..138f40f4a243 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_infrastructureconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_infrastructureconfiguration.go @@ -10,18 +10,36 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type InfrastructureConfiguration interface { + InfrastructureConfiguration() BaseInfrastructureConfigurationImpl } -// RawInfrastructureConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ InfrastructureConfiguration = BaseInfrastructureConfigurationImpl{} + +type BaseInfrastructureConfigurationImpl struct { + AppResourceGroup string `json:"appResourceGroup"` + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s BaseInfrastructureConfigurationImpl) InfrastructureConfiguration() BaseInfrastructureConfigurationImpl { + return s +} + +var _ InfrastructureConfiguration = RawInfrastructureConfigurationImpl{} + +// RawInfrastructureConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawInfrastructureConfigurationImpl struct { - Type string - Values map[string]interface{} + infrastructureConfiguration BaseInfrastructureConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawInfrastructureConfigurationImpl) InfrastructureConfiguration() BaseInfrastructureConfigurationImpl { + return s.infrastructureConfiguration } -func unmarshalInfrastructureConfigurationImplementation(input []byte) (InfrastructureConfiguration, error) { +func UnmarshalInfrastructureConfigurationImplementation(input []byte) (InfrastructureConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +49,9 @@ func unmarshalInfrastructureConfigurationImplementation(input []byte) (Infrastru return nil, fmt.Errorf("unmarshaling InfrastructureConfiguration into map[string]interface: %+v", err) } - value, ok := temp["deploymentType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["deploymentType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "SingleServer") { @@ -52,10 +70,15 @@ func unmarshalInfrastructureConfigurationImplementation(input []byte) (Infrastru return out, nil } - out := RawInfrastructureConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseInfrastructureConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseInfrastructureConfigurationImpl: %+v", err) } - return out, nil + + return RawInfrastructureConfigurationImpl{ + infrastructureConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_linuxconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_linuxconfiguration.go index c41104d4a160..3e39988ded8e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_linuxconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_linuxconfiguration.go @@ -16,6 +16,14 @@ type LinuxConfiguration struct { SshKeyPair *SshKeyPair `json:"sshKeyPair,omitempty"` // Fields inherited from OSConfiguration + + OsType OSType `json:"osType"` +} + +func (s LinuxConfiguration) OSConfiguration() BaseOSConfigurationImpl { + return BaseOSConfigurationImpl{ + OsType: s.OsType, + } } var _ json.Marshaler = LinuxConfiguration{} @@ -29,9 +37,10 @@ func (s LinuxConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling LinuxConfiguration: %+v", err) } + decoded["osType"] = "Linux" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_mountfileshareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_mountfileshareconfiguration.go index c47dae32d2c0..d9f96ff22a70 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_mountfileshareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_mountfileshareconfiguration.go @@ -15,6 +15,14 @@ type MountFileShareConfiguration struct { PrivateEndpointId string `json:"privateEndpointId"` // Fields inherited from FileShareConfiguration + + ConfigurationType ConfigurationType `json:"configurationType"` +} + +func (s MountFileShareConfiguration) FileShareConfiguration() BaseFileShareConfigurationImpl { + return BaseFileShareConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = MountFileShareConfiguration{} @@ -28,9 +36,10 @@ func (s MountFileShareConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling MountFileShareConfiguration: %+v", err) } + decoded["configurationType"] = "Mount" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osconfiguration.go index ac3111e872f6..53ac3199476d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type OSConfiguration interface { + OSConfiguration() BaseOSConfigurationImpl } -// RawOSConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ OSConfiguration = BaseOSConfigurationImpl{} + +type BaseOSConfigurationImpl struct { + OsType OSType `json:"osType"` +} + +func (s BaseOSConfigurationImpl) OSConfiguration() BaseOSConfigurationImpl { + return s +} + +var _ OSConfiguration = RawOSConfigurationImpl{} + +// RawOSConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawOSConfigurationImpl struct { - Type string - Values map[string]interface{} + oSConfiguration BaseOSConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawOSConfigurationImpl) OSConfiguration() BaseOSConfigurationImpl { + return s.oSConfiguration } -func unmarshalOSConfigurationImplementation(input []byte) (OSConfiguration, error) { +func UnmarshalOSConfigurationImplementation(input []byte) (OSConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalOSConfigurationImplementation(input []byte) (OSConfiguration, erro return nil, fmt.Errorf("unmarshaling OSConfiguration into map[string]interface: %+v", err) } - value, ok := temp["osType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["osType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Linux") { @@ -52,10 +69,15 @@ func unmarshalOSConfigurationImplementation(input []byte) (OSConfiguration, erro return out, nil } - out := RawOSConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseOSConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseOSConfigurationImpl: %+v", err) } - return out, nil + + return RawOSConfigurationImpl{ + oSConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osprofile.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osprofile.go index faf6dbd93032..5b4cba4ab6f0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osprofile.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_osprofile.go @@ -17,10 +17,12 @@ type OSProfile struct { var _ json.Unmarshaler = &OSProfile{} func (s *OSProfile) UnmarshalJSON(bytes []byte) error { - type alias OSProfile - var decoded alias + var decoded struct { + AdminPassword *string `json:"adminPassword,omitempty"` + AdminUsername *string `json:"adminUsername,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into OSProfile: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.AdminPassword = decoded.AdminPassword @@ -32,11 +34,12 @@ func (s *OSProfile) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["osConfiguration"]; ok { - impl, err := unmarshalOSConfigurationImplementation(v) + impl, err := UnmarshalOSConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'OsConfiguration' for 'OSProfile': %+v", err) } s.OsConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapconfiguration.go index 5cbf8ec6874e..776e6a14fc55 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SAPConfiguration interface { + SAPConfiguration() BaseSAPConfigurationImpl } -// RawSAPConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SAPConfiguration = BaseSAPConfigurationImpl{} + +type BaseSAPConfigurationImpl struct { + ConfigurationType SAPConfigurationType `json:"configurationType"` +} + +func (s BaseSAPConfigurationImpl) SAPConfiguration() BaseSAPConfigurationImpl { + return s +} + +var _ SAPConfiguration = RawSAPConfigurationImpl{} + +// RawSAPConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSAPConfigurationImpl struct { - Type string - Values map[string]interface{} + sAPConfiguration BaseSAPConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawSAPConfigurationImpl) SAPConfiguration() BaseSAPConfigurationImpl { + return s.sAPConfiguration } -func unmarshalSAPConfigurationImplementation(input []byte) (SAPConfiguration, error) { +func UnmarshalSAPConfigurationImplementation(input []byte) (SAPConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSAPConfigurationImplementation(input []byte) (SAPConfiguration, er return nil, fmt.Errorf("unmarshaling SAPConfiguration into map[string]interface: %+v", err) } - value, ok := temp["configurationType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["configurationType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "Deployment") { @@ -60,10 +77,15 @@ func unmarshalSAPConfigurationImplementation(input []byte) (SAPConfiguration, er return out, nil } - out := RawSAPConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseSAPConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSAPConfigurationImpl: %+v", err) } - return out, nil + + return RawSAPConfigurationImpl{ + sAPConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapinstallwithoutosconfigsoftwareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapinstallwithoutosconfigsoftwareconfiguration.go index ba8a4310c7cd..20516b1c9680 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapinstallwithoutosconfigsoftwareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapinstallwithoutosconfigsoftwareconfiguration.go @@ -17,6 +17,14 @@ type SAPInstallWithoutOSConfigSoftwareConfiguration struct { SoftwareVersion string `json:"softwareVersion"` // Fields inherited from SoftwareConfiguration + + SoftwareInstallationType SAPSoftwareInstallationType `json:"softwareInstallationType"` +} + +func (s SAPInstallWithoutOSConfigSoftwareConfiguration) SoftwareConfiguration() BaseSoftwareConfigurationImpl { + return BaseSoftwareConfigurationImpl{ + SoftwareInstallationType: s.SoftwareInstallationType, + } } var _ json.Marshaler = SAPInstallWithoutOSConfigSoftwareConfiguration{} @@ -30,9 +38,10 @@ func (s SAPInstallWithoutOSConfigSoftwareConfiguration) MarshalJSON() ([]byte, e } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SAPInstallWithoutOSConfigSoftwareConfiguration: %+v", err) } + decoded["softwareInstallationType"] = "SAPInstallWithoutOSConfig" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapvirtualinstanceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapvirtualinstanceproperties.go index 9df9160efa47..5add87870948 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapvirtualinstanceproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_sapvirtualinstanceproperties.go @@ -23,10 +23,18 @@ type SAPVirtualInstanceProperties struct { var _ json.Unmarshaler = &SAPVirtualInstanceProperties{} func (s *SAPVirtualInstanceProperties) UnmarshalJSON(bytes []byte) error { - type alias SAPVirtualInstanceProperties - var decoded alias + var decoded struct { + Environment SAPEnvironmentType `json:"environment"` + Errors *SAPVirtualInstanceError `json:"errors,omitempty"` + Health *SAPHealthState `json:"health,omitempty"` + ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"` + ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty"` + SapProduct SAPProductType `json:"sapProduct"` + State *SAPVirtualInstanceState `json:"state,omitempty"` + Status *SAPVirtualInstanceStatus `json:"status,omitempty"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SAPVirtualInstanceProperties: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } s.Environment = decoded.Environment @@ -44,11 +52,12 @@ func (s *SAPVirtualInstanceProperties) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["configuration"]; ok { - impl, err := unmarshalSAPConfigurationImplementation(v) + impl, err := UnmarshalSAPConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'Configuration' for 'SAPVirtualInstanceProperties': %+v", err) } s.Configuration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_serviceinitiatedsoftwareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_serviceinitiatedsoftwareconfiguration.go index 55d76f5ab59f..134133ef7ec8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_serviceinitiatedsoftwareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_serviceinitiatedsoftwareconfiguration.go @@ -19,6 +19,14 @@ type ServiceInitiatedSoftwareConfiguration struct { SshPrivateKey string `json:"sshPrivateKey"` // Fields inherited from SoftwareConfiguration + + SoftwareInstallationType SAPSoftwareInstallationType `json:"softwareInstallationType"` +} + +func (s ServiceInitiatedSoftwareConfiguration) SoftwareConfiguration() BaseSoftwareConfigurationImpl { + return BaseSoftwareConfigurationImpl{ + SoftwareInstallationType: s.SoftwareInstallationType, + } } var _ json.Marshaler = ServiceInitiatedSoftwareConfiguration{} @@ -32,9 +40,10 @@ func (s ServiceInitiatedSoftwareConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ServiceInitiatedSoftwareConfiguration: %+v", err) } + decoded["softwareInstallationType"] = "ServiceInitiated" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverconfiguration.go index 441b04b16288..0b4d0c8b665b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverconfiguration.go @@ -19,7 +19,16 @@ type SingleServerConfiguration struct { VirtualMachineConfiguration VirtualMachineConfiguration `json:"virtualMachineConfiguration"` // Fields inherited from InfrastructureConfiguration - AppResourceGroup string `json:"appResourceGroup"` + + AppResourceGroup string `json:"appResourceGroup"` + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s SingleServerConfiguration) InfrastructureConfiguration() BaseInfrastructureConfigurationImpl { + return BaseInfrastructureConfigurationImpl{ + AppResourceGroup: s.AppResourceGroup, + DeploymentType: s.DeploymentType, + } } var _ json.Marshaler = SingleServerConfiguration{} @@ -33,9 +42,10 @@ func (s SingleServerConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SingleServerConfiguration: %+v", err) } + decoded["deploymentType"] = "SingleServer" encoded, err = json.Marshal(decoded) @@ -49,18 +59,26 @@ func (s SingleServerConfiguration) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &SingleServerConfiguration{} func (s *SingleServerConfiguration) UnmarshalJSON(bytes []byte) error { - type alias SingleServerConfiguration - var decoded alias + var decoded struct { + DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"` + DbDiskConfiguration *DiskConfiguration `json:"dbDiskConfiguration,omitempty"` + NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"` + SubnetId string `json:"subnetId"` + VirtualMachineConfiguration VirtualMachineConfiguration `json:"virtualMachineConfiguration"` + AppResourceGroup string `json:"appResourceGroup"` + DeploymentType SAPDeploymentType `json:"deploymentType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into SingleServerConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.AppResourceGroup = decoded.AppResourceGroup s.DatabaseType = decoded.DatabaseType s.DbDiskConfiguration = decoded.DbDiskConfiguration s.NetworkConfiguration = decoded.NetworkConfiguration s.SubnetId = decoded.SubnetId s.VirtualMachineConfiguration = decoded.VirtualMachineConfiguration + s.AppResourceGroup = decoded.AppResourceGroup + s.DeploymentType = decoded.DeploymentType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -68,11 +86,12 @@ func (s *SingleServerConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customResourceNames"]; ok { - impl, err := unmarshalSingleServerCustomResourceNamesImplementation(v) + impl, err := UnmarshalSingleServerCustomResourceNamesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomResourceNames' for 'SingleServerConfiguration': %+v", err) } s.CustomResourceNames = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleservercustomresourcenames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleservercustomresourcenames.go index 9b7b0814fe3a..0004c02b979f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleservercustomresourcenames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleservercustomresourcenames.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SingleServerCustomResourceNames interface { + SingleServerCustomResourceNames() BaseSingleServerCustomResourceNamesImpl } -// RawSingleServerCustomResourceNamesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SingleServerCustomResourceNames = BaseSingleServerCustomResourceNamesImpl{} + +type BaseSingleServerCustomResourceNamesImpl struct { + NamingPatternType NamingPatternType `json:"namingPatternType"` +} + +func (s BaseSingleServerCustomResourceNamesImpl) SingleServerCustomResourceNames() BaseSingleServerCustomResourceNamesImpl { + return s +} + +var _ SingleServerCustomResourceNames = RawSingleServerCustomResourceNamesImpl{} + +// RawSingleServerCustomResourceNamesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSingleServerCustomResourceNamesImpl struct { - Type string - Values map[string]interface{} + singleServerCustomResourceNames BaseSingleServerCustomResourceNamesImpl + Type string + Values map[string]interface{} +} + +func (s RawSingleServerCustomResourceNamesImpl) SingleServerCustomResourceNames() BaseSingleServerCustomResourceNamesImpl { + return s.singleServerCustomResourceNames } -func unmarshalSingleServerCustomResourceNamesImplementation(input []byte) (SingleServerCustomResourceNames, error) { +func UnmarshalSingleServerCustomResourceNamesImplementation(input []byte) (SingleServerCustomResourceNames, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSingleServerCustomResourceNamesImplementation(input []byte) (Singl return nil, fmt.Errorf("unmarshaling SingleServerCustomResourceNames into map[string]interface: %+v", err) } - value, ok := temp["namingPatternType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["namingPatternType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FullResourceName") { @@ -44,10 +61,15 @@ func unmarshalSingleServerCustomResourceNamesImplementation(input []byte) (Singl return out, nil } - out := RawSingleServerCustomResourceNamesImpl{ - Type: value, - Values: temp, + var parent BaseSingleServerCustomResourceNamesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSingleServerCustomResourceNamesImpl: %+v", err) } - return out, nil + + return RawSingleServerCustomResourceNamesImpl{ + singleServerCustomResourceNames: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverfullresourcenames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverfullresourcenames.go index 72c2cfdf3e6b..b33a1da3d75a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverfullresourcenames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_singleserverfullresourcenames.go @@ -14,6 +14,14 @@ type SingleServerFullResourceNames struct { VirtualMachine *VirtualMachineResourceNames `json:"virtualMachine,omitempty"` // Fields inherited from SingleServerCustomResourceNames + + NamingPatternType NamingPatternType `json:"namingPatternType"` +} + +func (s SingleServerFullResourceNames) SingleServerCustomResourceNames() BaseSingleServerCustomResourceNamesImpl { + return BaseSingleServerCustomResourceNamesImpl{ + NamingPatternType: s.NamingPatternType, + } } var _ json.Marshaler = SingleServerFullResourceNames{} @@ -27,9 +35,10 @@ func (s SingleServerFullResourceNames) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SingleServerFullResourceNames: %+v", err) } + decoded["namingPatternType"] = "FullResourceName" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_skipfileshareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_skipfileshareconfiguration.go index 764e4ad74716..19385189b9ad 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_skipfileshareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_skipfileshareconfiguration.go @@ -13,6 +13,14 @@ var _ FileShareConfiguration = SkipFileShareConfiguration{} type SkipFileShareConfiguration struct { // Fields inherited from FileShareConfiguration + + ConfigurationType ConfigurationType `json:"configurationType"` +} + +func (s SkipFileShareConfiguration) FileShareConfiguration() BaseFileShareConfigurationImpl { + return BaseFileShareConfigurationImpl{ + ConfigurationType: s.ConfigurationType, + } } var _ json.Marshaler = SkipFileShareConfiguration{} @@ -26,9 +34,10 @@ func (s SkipFileShareConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling SkipFileShareConfiguration: %+v", err) } + decoded["configurationType"] = "Skip" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_softwareconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_softwareconfiguration.go index 50f3ddb99cb7..79d4059c6d0b 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_softwareconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_softwareconfiguration.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SoftwareConfiguration interface { + SoftwareConfiguration() BaseSoftwareConfigurationImpl } -// RawSoftwareConfigurationImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ SoftwareConfiguration = BaseSoftwareConfigurationImpl{} + +type BaseSoftwareConfigurationImpl struct { + SoftwareInstallationType SAPSoftwareInstallationType `json:"softwareInstallationType"` +} + +func (s BaseSoftwareConfigurationImpl) SoftwareConfiguration() BaseSoftwareConfigurationImpl { + return s +} + +var _ SoftwareConfiguration = RawSoftwareConfigurationImpl{} + +// RawSoftwareConfigurationImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawSoftwareConfigurationImpl struct { - Type string - Values map[string]interface{} + softwareConfiguration BaseSoftwareConfigurationImpl + Type string + Values map[string]interface{} +} + +func (s RawSoftwareConfigurationImpl) SoftwareConfiguration() BaseSoftwareConfigurationImpl { + return s.softwareConfiguration } -func unmarshalSoftwareConfigurationImplementation(input []byte) (SoftwareConfiguration, error) { +func UnmarshalSoftwareConfigurationImplementation(input []byte) (SoftwareConfiguration, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalSoftwareConfigurationImplementation(input []byte) (SoftwareConfigu return nil, fmt.Errorf("unmarshaling SoftwareConfiguration into map[string]interface: %+v", err) } - value, ok := temp["softwareInstallationType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["softwareInstallationType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "External") { @@ -60,10 +77,15 @@ func unmarshalSoftwareConfigurationImplementation(input []byte) (SoftwareConfigu return out, nil } - out := RawSoftwareConfigurationImpl{ - Type: value, - Values: temp, + var parent BaseSoftwareConfigurationImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseSoftwareConfigurationImpl: %+v", err) } - return out, nil + + return RawSoftwareConfigurationImpl{ + softwareConfiguration: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_storageconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_storageconfiguration.go index 2c688a25d7af..ec1780335300 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_storageconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_storageconfiguration.go @@ -22,11 +22,12 @@ func (s *StorageConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["transportFileShareConfiguration"]; ok { - impl, err := unmarshalFileShareConfigurationImplementation(v) + impl, err := UnmarshalFileShareConfigurationImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'TransportFileShareConfiguration' for 'StorageConfiguration': %+v", err) } s.TransportFileShareConfiguration = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierconfiguration.go index 6ae4e32a5c0b..19f94f63f0a3 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierconfiguration.go @@ -20,7 +20,16 @@ type ThreeTierConfiguration struct { StorageConfiguration *StorageConfiguration `json:"storageConfiguration,omitempty"` // Fields inherited from InfrastructureConfiguration - AppResourceGroup string `json:"appResourceGroup"` + + AppResourceGroup string `json:"appResourceGroup"` + DeploymentType SAPDeploymentType `json:"deploymentType"` +} + +func (s ThreeTierConfiguration) InfrastructureConfiguration() BaseInfrastructureConfigurationImpl { + return BaseInfrastructureConfigurationImpl{ + AppResourceGroup: s.AppResourceGroup, + DeploymentType: s.DeploymentType, + } } var _ json.Marshaler = ThreeTierConfiguration{} @@ -34,9 +43,10 @@ func (s ThreeTierConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ThreeTierConfiguration: %+v", err) } + decoded["deploymentType"] = "ThreeTier" encoded, err = json.Marshal(decoded) @@ -50,19 +60,28 @@ func (s ThreeTierConfiguration) MarshalJSON() ([]byte, error) { var _ json.Unmarshaler = &ThreeTierConfiguration{} func (s *ThreeTierConfiguration) UnmarshalJSON(bytes []byte) error { - type alias ThreeTierConfiguration - var decoded alias + var decoded struct { + ApplicationServer ApplicationServerConfiguration `json:"applicationServer"` + CentralServer CentralServerConfiguration `json:"centralServer"` + DatabaseServer DatabaseConfiguration `json:"databaseServer"` + HighAvailabilityConfig *HighAvailabilityConfiguration `json:"highAvailabilityConfig,omitempty"` + NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"` + StorageConfiguration *StorageConfiguration `json:"storageConfiguration,omitempty"` + AppResourceGroup string `json:"appResourceGroup"` + DeploymentType SAPDeploymentType `json:"deploymentType"` + } if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling into ThreeTierConfiguration: %+v", err) + return fmt.Errorf("unmarshaling: %+v", err) } - s.AppResourceGroup = decoded.AppResourceGroup s.ApplicationServer = decoded.ApplicationServer s.CentralServer = decoded.CentralServer s.DatabaseServer = decoded.DatabaseServer s.HighAvailabilityConfig = decoded.HighAvailabilityConfig s.NetworkConfiguration = decoded.NetworkConfiguration s.StorageConfiguration = decoded.StorageConfiguration + s.AppResourceGroup = decoded.AppResourceGroup + s.DeploymentType = decoded.DeploymentType var temp map[string]json.RawMessage if err := json.Unmarshal(bytes, &temp); err != nil { @@ -70,11 +89,12 @@ func (s *ThreeTierConfiguration) UnmarshalJSON(bytes []byte) error { } if v, ok := temp["customResourceNames"]; ok { - impl, err := unmarshalThreeTierCustomResourceNamesImplementation(v) + impl, err := UnmarshalThreeTierCustomResourceNamesImplementation(v) if err != nil { return fmt.Errorf("unmarshaling field 'CustomResourceNames' for 'ThreeTierConfiguration': %+v", err) } s.CustomResourceNames = impl } + return nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetiercustomresourcenames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetiercustomresourcenames.go index 55eebe79ef5d..da72d08566f4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetiercustomresourcenames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetiercustomresourcenames.go @@ -10,18 +10,35 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ThreeTierCustomResourceNames interface { + ThreeTierCustomResourceNames() BaseThreeTierCustomResourceNamesImpl } -// RawThreeTierCustomResourceNamesImpl is returned when the Discriminated Value -// doesn't match any of the defined types +var _ ThreeTierCustomResourceNames = BaseThreeTierCustomResourceNamesImpl{} + +type BaseThreeTierCustomResourceNamesImpl struct { + NamingPatternType NamingPatternType `json:"namingPatternType"` +} + +func (s BaseThreeTierCustomResourceNamesImpl) ThreeTierCustomResourceNames() BaseThreeTierCustomResourceNamesImpl { + return s +} + +var _ ThreeTierCustomResourceNames = RawThreeTierCustomResourceNamesImpl{} + +// RawThreeTierCustomResourceNamesImpl is returned when the Discriminated Value doesn't match any of the defined types // NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) // and is used only for Deserialization (e.g. this cannot be used as a Request Payload). type RawThreeTierCustomResourceNamesImpl struct { - Type string - Values map[string]interface{} + threeTierCustomResourceNames BaseThreeTierCustomResourceNamesImpl + Type string + Values map[string]interface{} +} + +func (s RawThreeTierCustomResourceNamesImpl) ThreeTierCustomResourceNames() BaseThreeTierCustomResourceNamesImpl { + return s.threeTierCustomResourceNames } -func unmarshalThreeTierCustomResourceNamesImplementation(input []byte) (ThreeTierCustomResourceNames, error) { +func UnmarshalThreeTierCustomResourceNamesImplementation(input []byte) (ThreeTierCustomResourceNames, error) { if input == nil { return nil, nil } @@ -31,9 +48,9 @@ func unmarshalThreeTierCustomResourceNamesImplementation(input []byte) (ThreeTie return nil, fmt.Errorf("unmarshaling ThreeTierCustomResourceNames into map[string]interface: %+v", err) } - value, ok := temp["namingPatternType"].(string) - if !ok { - return nil, nil + var value string + if v, ok := temp["namingPatternType"]; ok { + value = fmt.Sprintf("%v", v) } if strings.EqualFold(value, "FullResourceName") { @@ -44,10 +61,15 @@ func unmarshalThreeTierCustomResourceNamesImplementation(input []byte) (ThreeTie return out, nil } - out := RawThreeTierCustomResourceNamesImpl{ - Type: value, - Values: temp, + var parent BaseThreeTierCustomResourceNamesImpl + if err := json.Unmarshal(input, &parent); err != nil { + return nil, fmt.Errorf("unmarshaling into BaseThreeTierCustomResourceNamesImpl: %+v", err) } - return out, nil + + return RawThreeTierCustomResourceNamesImpl{ + threeTierCustomResourceNames: parent, + Type: value, + Values: temp, + }, nil } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierfullresourcenames.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierfullresourcenames.go index 2d5be5fede64..01be320e9ba9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierfullresourcenames.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_threetierfullresourcenames.go @@ -17,6 +17,14 @@ type ThreeTierFullResourceNames struct { SharedStorage *SharedStorageResourceNames `json:"sharedStorage,omitempty"` // Fields inherited from ThreeTierCustomResourceNames + + NamingPatternType NamingPatternType `json:"namingPatternType"` +} + +func (s ThreeTierFullResourceNames) ThreeTierCustomResourceNames() BaseThreeTierCustomResourceNamesImpl { + return BaseThreeTierCustomResourceNamesImpl{ + NamingPatternType: s.NamingPatternType, + } } var _ json.Marshaler = ThreeTierFullResourceNames{} @@ -30,9 +38,10 @@ func (s ThreeTierFullResourceNames) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling ThreeTierFullResourceNames: %+v", err) } + decoded["namingPatternType"] = "FullResourceName" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_windowsconfiguration.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_windowsconfiguration.go index 138faef716a8..81f41dff6860 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_windowsconfiguration.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/model_windowsconfiguration.go @@ -13,6 +13,14 @@ var _ OSConfiguration = WindowsConfiguration{} type WindowsConfiguration struct { // Fields inherited from OSConfiguration + + OsType OSType `json:"osType"` +} + +func (s WindowsConfiguration) OSConfiguration() BaseOSConfigurationImpl { + return BaseOSConfigurationImpl{ + OsType: s.OsType, + } } var _ json.Marshaler = WindowsConfiguration{} @@ -26,9 +34,10 @@ func (s WindowsConfiguration) MarshalJSON() ([]byte, error) { } var decoded map[string]interface{} - if err := json.Unmarshal(encoded, &decoded); err != nil { + if err = json.Unmarshal(encoded, &decoded); err != nil { return nil, fmt.Errorf("unmarshaling WindowsConfiguration: %+v", err) } + decoded["osType"] = "Windows" encoded, err = json.Marshal(decoded) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/version.go index 7da86029fc41..80c7cbb9b2e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances/version.go @@ -1,12 +1,10 @@ package sapvirtualinstances -import "fmt" - // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. const defaultApiVersion = "2023-04-01" func userAgent() string { - return fmt.Sprintf("hashicorp/go-azure-sdk/sapvirtualinstances/%s", defaultApiVersion) + return "hashicorp/go-azure-sdk/sapvirtualinstances/2023-04-01" } diff --git a/vendor/modules.txt b/vendor/modules.txt index df8876e9dd1c..2f6203fd633d 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -148,7 +148,7 @@ github.com/hashicorp/go-azure-helpers/resourcemanager/tags github.com/hashicorp/go-azure-helpers/resourcemanager/zones github.com/hashicorp/go-azure-helpers/sender github.com/hashicorp/go-azure-helpers/storage -# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240906.1232634 +# github.com/hashicorp/go-azure-sdk/resource-manager v0.20240923.1151247 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/resource-manager/aad/2021-05-01/domainservices github.com/hashicorp/go-azure-sdk/resource-manager/aadb2c/2021-04-01-preview @@ -1104,7 +1104,7 @@ github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saplands github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/saprecommendations github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapsupportedsku github.com/hashicorp/go-azure-sdk/resource-manager/workloads/2023-04-01/sapvirtualinstances -# github.com/hashicorp/go-azure-sdk/sdk v0.20240906.1232634 +# github.com/hashicorp/go-azure-sdk/sdk v0.20240923.1151247 ## explicit; go 1.21 github.com/hashicorp/go-azure-sdk/sdk/auth github.com/hashicorp/go-azure-sdk/sdk/auth/autorest